Update the device tree with the following: - Add backlight node - Add panel node for the Logic L2 panel - Add graph node to connect display with the panel - Drop all obsolete properties for the display node The updates was done to have proper support for backlight and to be compatible with the updated bindings for the display node. Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx> --- arch/arm/dts/at91-skov-arm9cpu.dts | 107 +++++++++++++---------------- 1 file changed, 49 insertions(+), 58 deletions(-) diff --git a/arch/arm/dts/at91-skov-arm9cpu.dts b/arch/arm/dts/at91-skov-arm9cpu.dts index 8e4fddfd3..c8d88050d 100644 --- a/arch/arm/dts/at91-skov-arm9cpu.dts +++ b/arch/arm/dts/at91-skov-arm9cpu.dts @@ -202,43 +202,31 @@ 0x04050056 /* col5 row4 KEY_102ND */ >; }; -}; -&{/ahb/apb} { - pinctrl: pinctrl@fffff200 { + panel_reg: panel_reg { + compatible = "regulator-fixed"; + regulator-name = "panel-power-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + status = "okay"; }; - watchdog@fffffd40 { + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm0 1 100000 1>; + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; + default-brightness-level = <8>; status = "okay"; }; -}; - -&dbgu { - status = "okay"; -}; -&fb0 { - status = "okay"; - display = <&display0>; - display0: display0 { - bits-per-pixel = <16>; - atmel,lcdcon-backlight; - atmel,dmacon = <0x1>; - atmel,lcdcon2 = <0x80008002>; - atmel,guard-time = <1>; - atmel,lcd-wiring-mode = "BRG"; - pinctrl-names = "default"; - pinctrl-0 = < - &pinctrl_board_fb - &pinctrl_disp_type - &pinctrl_logic_type - >; - atmel,power-control-gpio = <&pioA 30 GPIO_ACTIVE_HIGH>; + panel: panel { + compatible = "logictechno,lttd800480070-l2rt", "simple-panel"; + backlight = <&backlight>; + power-supply = <&panel_reg>; + status = "okay"; display-timings { - native-mode = <&l2rt>; - l2rt: l2rt { /* LTTD800480070-L2RT @ 55 */ clock-frequency = <30000000>; @@ -264,39 +252,42 @@ vsync-active = <0>; de-active = <1>; }; + }; - l6whrt: l6whrt { - clock-frequency = <33000000>; - hactive = <800>; - vactive = <480>; - hback-porch = <43>; - hfront-porch = <154>; - vback-porch = <20>; - vfront-porch = <47>; - hsync-len = <3>; - vsync-len = <3>; - pixelclk-active = <1>; - hsync-active = <0>; - vsync-active = <0>; - de-active = <1>; + port { + panel_input: endpoint { + remote-endpoint = <&panel_output>; }; + }; + }; +}; - seiko: seiko { - /* 70WVW2AZ0 @ 55 */ - clock-frequency = <33000000>; - hactive = <800>; - vactive = <480>; - hback-porch = <0>; - hfront-porch = <256>; - vback-porch = <45>; - vfront-porch = <0>; - hsync-len = <0>; - vsync-len = <0>; - pixelclk-active = <1>; - hsync-active = <0>; - vsync-active = <0>; - de-active = <1>; - }; +&{/ahb/apb} { + pinctrl: pinctrl@fffff200 { + }; + + watchdog@fffffd40 { + status = "okay"; + }; +}; + +&dbgu { + status = "okay"; +}; + +&fb0 { + status = "okay"; + + pinctrl-0 = < + &pinctrl_board_fb + &pinctrl_disp_type + &pinctrl_logic_type>; + + atmel,lcd-wiring-mode = "BRG"; + + port { + panel_output: endpoint { + remote-endpoint = <&panel_input>; }; }; }; -- 2.34.1