]> www.infradead.org Git - users/willy/xarray.git/commitdiff
arm64: dts: imx95-19x19-evk: add lpi2c[5,6] and sub-nodes
authorPeng Fan <peng.fan@nxp.com>
Sat, 12 Oct 2024 11:19:14 +0000 (19:19 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 22 Oct 2024 01:31:14 +0000 (09:31 +0800)
Add LPI2C[5,6] and the gpio expander subnodes.
Since we are at here, also add the alias for all lpi2c and gpio nodes.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts

index 5101cd171e095fb5209464055a52ebdfa7dc5a61..6086cb7fa5a0e14882be3a8c609725e15c179392 100644 (file)
        compatible = "fsl,imx95-19x19-evk", "fsl,imx95";
 
        aliases {
+               gpio0 = &gpio1;
+               gpio1 = &gpio2;
+               gpio2 = &gpio3;
+               gpio3 = &gpio4;
+               gpio4 = &gpio5;
+               i2c0 = &lpi2c1;
+               i2c1 = &lpi2c2;
+               i2c2 = &lpi2c3;
+               i2c3 = &lpi2c4;
+               i2c4 = &lpi2c5;
+               i2c5 = &lpi2c6;
+               i2c6 = &lpi2c7;
+               i2c7 = &lpi2c8;
                mmc0 = &usdhc1;
                mmc1 = &usdhc2;
                serial0 = &lpuart1;
        };
 };
 
+&lpi2c5 {
+       clock-frequency = <100000>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_lpi2c5>;
+       status = "okay";
+
+       i2c5_pcal6408: gpio@21 {
+               compatible = "nxp,pcal6408";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               vcc-supply = <&reg_3p3v>;
+       };
+};
+
+&lpi2c6 {
+       clock-frequency = <100000>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_lpi2c6>;
+       status = "okay";
+
+       i2c6_pcal6416: gpio@21 {
+               compatible = "nxp,pcal6416";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+               interrupt-parent = <&gpio4>;
+               interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_pcal6416>;
+               vcc-supply = <&reg_3p3v>;
+       };
+};
+
 &lpi2c7 {
        clock-frequency = <1000000>;
        pinctrl-names = "default";
                >;
        };
 
+       pinctrl_lpi2c5: lpi2c5grp {
+               fsl,pins = <
+                       IMX95_PAD_GPIO_IO22__LPI2C5_SDA                 0x40000b9e
+                       IMX95_PAD_GPIO_IO23__LPI2C5_SCL                 0x40000b9e
+               >;
+       };
+
+       pinctrl_lpi2c6: lpi2c6grp {
+               fsl,pins = <
+                       IMX95_PAD_GPIO_IO02__LPI2C6_SDA                 0x40000b9e
+                       IMX95_PAD_GPIO_IO03__LPI2C6_SCL                 0x40000b9e
+               >;
+       };
+
        pinctrl_lpi2c7: lpi2c7grp {
                fsl,pins = <
                        IMX95_PAD_GPIO_IO08__LPI2C7_SDA                 0x40000b9e
                >;
        };
 
+       pinctrl_pcal6416: pcal6416grp {
+               fsl,pins = <
+                       IMX95_PAD_CCM_CLKO3__GPIO4_IO_BIT28                     0x31e
+               >;
+       };
+
        pinctrl_pdm: pdmgrp {
                fsl,pins = <
                        IMX95_PAD_PDM_CLK__AONMIX_TOP_PDM_CLK                           0x31e