OSDN Git Service

ARM: dts: imx7d-nitrogen7: use OF graph to describe the display
authorGary Bisson <gary.bisson@boundarydevices.com>
Fri, 13 Jul 2018 12:49:03 +0000 (14:49 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 17 Jul 2018 06:34:23 +0000 (14:34 +0800)
To make use of the new eLCDIF DRM driver OF graph description is
required. Describe the display using OF graph nodes.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7d-nitrogen7.dts

index 9c6a3fd..d8aac4a 100644 (file)
        model = "Boundary Devices i.MX7 Nitrogen7 Board";
        compatible = "boundary,imx7d-nitrogen7", "fsl,imx7d";
 
-       aliases {
-               fb-lcd = &lcdif;
-               t-lcd = &t_lcd;
-       };
-
        memory@80000000 {
                reg = <0x80000000 0x40000000>;
        };
@@ -28,7 +23,7 @@
                default-on;
        };
 
-       backlight-j20 {
+       backlight_lcd: backlight-j20 {
                compatible = "pwm-backlight";
                pwms = <&pwm1 0 5000000 0>;
                brightness-levels = <0 4 8 16 32 64 128 255>;
                status = "okay";
        };
 
+       panel-lcd {
+               compatible = "okaya,rs800480t-7x0gp";
+               backlight = <&backlight_lcd>;
+
+               port {
+                       panel_in: endpoint {
+                               remote-endpoint = <&lcdif_out>;
+                       };
+               };
+       };
+
        reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
                compatible = "regulator-fixed";
                regulator-name = "usb_otg1_vbus";
 };
 
 &lcdif {
-       pinctrl-names = "default";
-       pinctrl-0 = <&pinctrl_lcdif_dat
-                    &pinctrl_lcdif_ctrl>;
-       lcd-supply = <&reg_vref_3v3>;
-       display = <&display0>;
        status = "okay";
 
-       display0: lcd-display {
-               bits-per-pixel = <16>;
-               bus-width = <18>;
-
-               display-timings {
-                       native-mode = <&t_lcd>;
-                       t_lcd: t_lcd_default {
-                               /* default to Okaya display */
-                               clock-frequency = <30000000>;
-                               hactive = <800>;
-                               vactive = <480>;
-                               hfront-porch = <40>;
-                               hback-porch = <40>;
-                               hsync-len = <48>;
-                               vback-porch = <29>;
-                               vfront-porch = <13>;
-                               vsync-len = <3>;
-                               hsync-active = <0>;
-                               vsync-active = <0>;
-                               de-active = <1>;
-                               pixelclk-active = <0>;
-                       };
+       port {
+               lcdif_out: endpoint {
+                       remote-endpoint = <&panel_in>;
                };
        };
 };