From 77f223a57d21cb4e1aeab0051745b88bb76ffab8 Mon Sep 17 00:00:00 2001 From: Josep Orga Date: Mon, 11 Oct 2021 13:24:12 +0200 Subject: [PATCH] arm64: dts: imx8mn-somdevices.dtsi: Add SN65DSI83 support and eeprom. Signed-off-by: Josep Orga --- .../boot/dts/freescale/imx8mn-somdevices.dtsi | 74 ++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi index 00fe08ae0307..e68407488bc6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi @@ -75,6 +75,14 @@ #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 { @@ -167,6 +175,51 @@ 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>; @@ -325,7 +378,8 @@ status = "okay"; port@1 { - dsim_to_adv7535: endpoint { + mipi_dsi_out: endpoint { + remote-endpoint = <&dsi_lvds_bridge_in>; attach-bridge; }; }; @@ -347,6 +401,12 @@ }; }; +&pwm1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm1>; + status = "okay"; +}; + &resmem { /* global autoconfigured region for contiguous allocations */ linux,cma { @@ -592,12 +652,24 @@ >; }; + 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 -- 2.17.1