arm64: dts: imx8mm-somdevices.dtsi: Add SN65DSI83 support and eeprom.
authorJosep Orga <jorga@somdevices.com>
Fri, 13 Aug 2021 10:44:52 +0000 (12:44 +0200)
committerJosep Orga <jorga@somdevices.com>
Fri, 13 Aug 2021 10:44:52 +0000 (12:44 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm64/boot/dts/freescale/imx8mm-somdevices.dtsi

index c745a26..0965090 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_nxp: pca9450@25 {
                compatible = "nxp,pca9450a";
                reg = <0x25>;
 };
 
 &lcdif {
-       status = "okay";
+       status = "okay";
 };
 
 &mipi_csi_1 {
 };
 
 &mipi_dsi {
-       status = "okay";
+       status = "okay";
 
-       port@1 {
-               dsim_to_adv7535: endpoint {
+       port@1 {
+               mipi_dsi_out: endpoint {
+                       remote-endpoint = <&dsi_lvds_bridge_in>;
                        attach-bridge;
-               };
-       };
+               };
+       };
 };
 
 &pcie0{
        status = "disabled";
 };
 
+&pwm1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm1>;
+       status = "okay";
+};
+
 &resmem {
        /* global autoconfigured region for contiguous allocations */
        linux,cma {
                >;
        };
 
+       pinctrl_lvds: lvdsgrp {
+               fsl,pins = <
+                       MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21                0x16
+               >;
+       };
+
        pinctrl_pcie0: pcie0grp {
                fsl,pins = <
                        MX8MM_IOMUXC_UART4_RXD_PCIE1_CLKREQ_B   0x61 /* open drain, pull up */
                >;
        };
 
+       pinctrl_pwm1: pwm1grp {
+               fsl,pins = <
+                       MX8MM_IOMUXC_GPIO1_IO01_PWM1_OUT        0x16
+               >;
+       };
+
        pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
                fsl,pins = <
                        MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19     0x41