arm64: dts: imx8mn-somdevices.dtsi: Add SN65DSI83 support and eeprom.
authorJosep Orga <jorga@somdevices.com>
Mon, 11 Oct 2021 11:24:12 +0000 (13:24 +0200)
committerJosep Orga <jorga@somdevices.com>
Mon, 11 Oct 2021 11:30:20 +0000 (13:30 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi

index 00fe08a..e684074 100644 (file)
                #clock-cells = <0>;
                clock-frequency = <20000000>;
        };
+
+       backlight {
+               compatible = "pwm-backlight";
+               pwms = <&pwm1 0 2000000>;
+               brightness-levels = <0 4 8 16 32 64 128 255>;
+               default-brightness-level = <6>;
+               status = "okay";
+       };
 };
 
 &A53_0 {
        pinctrl-0 = <&pinctrl_i2c1>;
        status = "okay";
 
+       dsi_lvds_bridge: sn65dsi84@2c {
+               compatible = "ti,sn65dsi83";
+               reg = <0x2c>;
+               ti,dsi-lanes = <4>;
+               ti,lvds-format = <2>;
+               ti,lvds-bpp = <24>;
+               ti,lvds-channels = <1>;
+               ti,width-mm = <154>;
+               ti,height-mm = <87>;
+               enable-gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_lvds>;
+               status = "okay";
+
+               display-timings {
+                       lvds {
+                               clock-frequency = <51200000>;
+                               hactive = <1024>;
+                               vactive = <600>;
+                               hfront-porch = <120>;
+                               hsync-len = <20>;
+                               hback-porch = <140>;
+                               vfront-porch = <12>;
+                               vsync-len = <3>;
+                               vback-porch = <20>;
+
+                               hsync-active = <0>;
+                               vsync-active = <0>;
+                               de-active = <1>;
+                               pixelclk-active = <0>;
+                       };
+               };
+
+               port {
+                       dsi_lvds_bridge_in: endpoint {
+                               remote-endpoint = <&mipi_dsi_out>;
+                       };
+               };
+       };
+
+       eeprom@50 {
+               compatible = "microchip,24c02";
+               reg = <0x50>;
+       };
+
        pmic: pmic@25 {
                compatible = "nxp,pca9450b";
                reg = <0x25>;
        status = "okay";
 
        port@1 {
-               dsim_to_adv7535: endpoint {
+               mipi_dsi_out: endpoint {
+                       remote-endpoint = <&dsi_lvds_bridge_in>;
                        attach-bridge;
                };
        };
        };
 };
 
+&pwm1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm1>;
+       status = "okay";
+};
+
 &resmem {
        /* global autoconfigured region for contiguous allocations */
        linux,cma {
                >;
        };
 
+       pinctrl_lvds: lvdsgrp {
+               fsl,pins = <
+                       MX8MN_IOMUXC_I2C4_SDA_GPIO5_IO21                0x16
+               >;
+       };
+
        pinctrl_pmic: pmicirqgrp {
                fsl,pins = <
                        MX8MN_IOMUXC_I2C4_SCL_GPIO5_IO20        0x141
                >;
        };
 
+       pinctrl_pwm1: pwm1grp {
+               fsl,pins = <
+                       MX8MN_IOMUXC_GPIO1_IO01_PWM1_OUT        0x16
+               >;
+       };
+
        pinctrl_sai5: sai5grp {
                fsl,pins = <
                        MX8MN_IOMUXC_SAI5_MCLK_SAI5_MCLK        0xd6