lvds1_pins_a: lvds1@0 {
pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19";
function = "lvds1";
drive-strength = <30>;
bias-disable;
};
lvds1_pins_b: lvds1@1 {
pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19";
function = "io_disabled";
drive-strength = <30>;
bias-disable;
};
&disp {
disp_init_enable = <1>;
disp_mode = <0>;
screen0_output_type = <1>;
screen0_output_mode = <10>;
screen1_output_type = <1>;
screen1_output_mode = <10>;
// screen1_output_format = <0>;
// screen1_output_bits = <0>;
// screen1_output_eotf = <4>;
// screen1_output_cs = <257>;
// screen1_output_dvi_hdmi = <2>;
// screen1_output_range = <2>;
// screen1_output_scan = <0>;
// screen1_output_aspect_ratio = <8>;
dev0_output_type = <1>;
dev0_output_mode = <4>;
dev0_screen_id = <0>;
dev0_do_hpd = <0>;
dev1_output_type = <1>;
dev1_output_mode = <10>;
dev1_screen_id = <1>;
dev1_do_hpd = <1>;
def_output_dev = <0>;
hdmi_mode_check = <1>;
fb0_format = <9>;
fb0_width = <1920>;
fb0_height = <1080>;
fb1_format = <9>;
fb1_width = <1920>;
fb1_height = <1080>;
chn_cfg_mode = <2>;
disp_para_zone = <1>;
/*VCC-LCD*/
/* dc1sw-supply = <®_dc1sw>;*/
/*VCC-DSI*/
/* eldo3-supply = <®_eldo3>;*/
/*VCC-PD*/
/* dcdc1-supply = <®_dcdc1>;*/
};
&lcd0 {
lcd_used = <1>;
lcd_driver_name = "dual_lvds_lcd";
lcd_if = <3>;
lcd_x = <1920>;
lcd_y = <1080>;
lcd_width = <340>;
lcd_height = <190>;
lcd_dclk_freq = <159>;
lcd_pwm_used = <0>;
lcd_pwm_ch = <5>;//背光PWM通道号
lcd_pwm_freq = <5000>;
lcd_pwm_pol = <1>;
lcd_backlight = <10>;
lcd_pwm_max_limit = <255>;
//= <&pio PD 27 1 0 3 1>;
// lcd_bl_en = <&pio PG 3 1 0 3 1>;//背光使能引脚
lcd_hbp = <272>;
lcd_ht = <2272>;//48
lcd_hspw = <32>;
lcd_vbp = <80>;
lcd_vt = <1169>;//3
lcd_vspw = <6>;
lcd_lvds_if = <1>;
lcd_lvds_colordepth = <0>;
lcd_lvds_mode = <0>;
lcd_frm = <0>;
lcd_hv_clk_phase = <0>;
lcd_hv_sync_polarity= <0>;
lcd_gamma_en = <0>;
lcd_bright_curve_en = <0>;
lcd_cmap_en = <0>;
lcd_fsync_en = <0>;
lcd_fsync_act_time = <1000>;
lcd_fsync_dis_time = <1000>;
lcd_fsync_pol = <0>;
deu_mode = <0>;
lcdgamma4iep = <22>;
smart_color = <90>;
lcd_gpio_0 = <&pio PG 3 1 0 3 0>;//背光使能
pinctrl-0 = <&lvds1_pins_a>;
pinctrl-1 = <&lvds1_pins_b>;
};
adb shell dump的信息:
root@TinaLinux:/# fbset
mode "1920x1080-60"
geometry 1920 1080 1920 2160 24
timings 6289 240 80 74 9 32 6
accel false
rgba 8/0,8/8,8/16,0/24
endmode
root@TinaLinux:/# cat /sys/kernel/debug/pinctrl/2000000.pinctrl/pinmux-pins
Pinmux settings per pin
Format: pin (name): mux_owner|gpio_owner (strict) hog?
...
pin 96 (PD0): UNCLAIMED
pin 97 (PD1): UNCLAIMED
pin 98 (PD2): UNCLAIMED
pin 99 (PD3): UNCLAIMED
pin 100 (PD4): UNCLAIMED
pin 101 (PD5): UNCLAIMED
pin 102 (PD6): UNCLAIMED
pin 103 (PD7): UNCLAIMED
pin 104 (PD8): UNCLAIMED
pin 105 (PD9): UNCLAIMED
pin 106 (PD10): UNCLAIMED
pin 107 (PD11): UNCLAIMED
pin 108 (PD12): UNCLAIMED
pin 109 (PD13): UNCLAIMED
pin 110 (PD14): UNCLAIMED
pin 111 (PD15): UNCLAIMED
pin 112 (PD16): UNCLAIMED
pin 113 (PD17): UNCLAIMED
pin 114 (PD18): UNCLAIMED
pin 115 (PD19): UNCLAIMED
pin 116 (PD20): UNCLAIMED
pin 117 (PD21): UNCLAIMED
pin 118 (PD22): UNCLAIMED
....