|
Posted at 4/23/2021 09:27:03
2#
举例(平台RK3326+Linux 4.4):
backlight: backlight {
compatible = "pwm-backlight";
pwms = <&pwm1 0 25000 0>;
brightness-levels = <
0 1 2 3 4 5 6 7
(省略N行)
248 249 250 251 252 253 254 255>;
default-brightness-level = <200>;
enable-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
};
panel {
status = "okay";
compatible = "simple-panel";
backlight = <&backlight>;
power-supply = <&vcc_3v0>;
init-delay-ms = <20>;
enable-delay-ms = <20>;
prepare-delay-ms = <20>;
unprepare-delay-ms = <20>;
disable-delay-ms = <20>;
bus-format = <MEDIA_BUS_FMT_RGB888_1X7X4_SPWG>;
enable-gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>;
standby-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
width-mm = <217>;
height-mm = <136>;
rockchip,output = "lvds";
display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <46000000>;
hactive = <1024>;
vactive = <600>;
hback-porch = <90>;
hfront-porch = <160>;
vback-porch = <13>;
vfront-porch = <12>;
hsync-len = <70>;
vsync-len = <10>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
port {
panel_in_lvds: endpoint {
remote-endpoint = <&lvds_out_panel>;
};
};
};
|
|