]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: dts: imx8m{m, n}-venice-gw7902: add gpio pins for new board revision
authorTim Harvey <tharvey@gateworks.com>
Fri, 11 Nov 2022 15:55:46 +0000 (07:55 -0800)
committerStefano Babic <sbabic@denx.de>
Tue, 31 Jan 2023 17:08:23 +0000 (18:08 +0100)
Add gpio pins present on new board revision:
 * LTE modem support (imx8mm-gw7902 only)
  - lte_pwr#
  - lte_rst
  - lte_int
 * M2 power enable
  - m2_pwr_en
 * off-board 4.0V supply
  - vdd_4p0_en

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
arch/arm/dts/imx8mm-venice-gw7902-u-boot.dtsi
arch/arm/dts/imx8mm-venice-gw7902.dts
arch/arm/dts/imx8mn-venice-gw7902-u-boot.dtsi
arch/arm/dts/imx8mn-venice-gw7902.dts

index f21e46b12dd77bfebee4bc10e8c9497c95f67ba6..d58a7d14b6317b78546ab16684fa4d435ddcdb36 100644 (file)
@@ -6,6 +6,13 @@
 #include "imx8mm-venice-u-boot.dtsi"
 
 &gpio1 {
+       m2pwren {
+               gpio-hog;
+               output-low;
+               gpios = <8 GPIO_ACTIVE_HIGH>;
+               line-name = "m2_pwren";
+       };
+
        m2rst {
                gpio-hog;
                output-low;
                line-name = "app_gpio1";
        };
 
+       vdd4p0en {
+               gpio-hog;
+               output-low;
+               gpios = <22 GPIO_ACTIVE_HIGH>;
+               line-name = "vdd_4p0_en";
+       };
+
        uart1rs485 {
                gpio-hog;
                output-low;
index 31f4c735fe4f011b081e72a6809cbe214f6e5205..921bffae0cc944d3b865b4c45a93952401149207 100644 (file)
 
 &gpio1 {
        gpio-line-names = "", "", "", "", "", "", "", "",
-               "", "", "", "", "", "m2_reset", "", "m2_wdis#",
+               "m2_pwr_en", "", "", "", "", "m2_reset", "", "m2_wdis#",
                "", "", "", "", "", "", "", "",
                "", "", "", "", "", "", "", "";
 };
 &gpio4 {
        gpio-line-names = "", "", "", "", "", "", "", "",
                "", "", "", "amp_gpio3", "amp_gpio2", "", "amp_gpio1", "",
-               "", "", "", "", "amp_gpio4", "app_gpio1", "", "uart1_rs485",
+               "lte_pwr#", "lte_rst", "lte_int", "",
+               "amp_gpio4", "app_gpio1", "vdd_4p0_en", "uart1_rs485",
                "", "uart1_term", "uart1_half", "app_gpio2",
                "mipi_gpio1", "", "", "";
 };
        pinctrl_hog: hoggrp {
                fsl,pins = <
                        MX8MM_IOMUXC_NAND_CE0_B_GPIO3_IO1       0x40000159 /* M2_GDIS# */
+                       MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8       0x40000041 /* M2_PWR_EN */
                        MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13      0x40000041 /* M2_RESET */
                        MX8MM_IOMUXC_NAND_DATA01_GPIO3_IO7      0x40000119 /* M2_OFF# */
                        MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15      0x40000159 /* M2_WDIS# */
+                       MX8MM_IOMUXC_SAI1_TXD6_GPIO4_IO18       0x40000041 /* LTE_INT */
+                       MX8MM_IOMUXC_SAI1_TXD5_GPIO4_IO17       0x40000041 /* LTE_RST# */
+                       MX8MM_IOMUXC_SAI1_TXD4_GPIO4_IO16       0x40000041 /* LTE_PWR */
                        MX8MM_IOMUXC_SAI1_TXD2_GPIO4_IO14       0x40000041 /* AMP GPIO1 */
                        MX8MM_IOMUXC_SAI1_TXD0_GPIO4_IO12       0x40000041 /* AMP GPIO2 */
                        MX8MM_IOMUXC_SAI1_TXC_GPIO4_IO11        0x40000041 /* AMP GPIO3 */
                        MX8MM_IOMUXC_SAI1_MCLK_GPIO4_IO20       0x40000041 /* AMP_GPIO4 */
                        MX8MM_IOMUXC_SAI2_RXFS_GPIO4_IO21       0x40000041 /* APP GPIO1 */
+                       MX8MM_IOMUXC_SAI2_RXC_GPIO4_IO22        0x40000041 /* VDD_4P0_EN */
                        MX8MM_IOMUXC_SAI2_MCLK_GPIO4_IO27       0x40000041 /* APP GPIO2 */
                        MX8MM_IOMUXC_SD1_DATA6_GPIO2_IO8        0x40000041 /* UART2_EN# */
                        MX8MM_IOMUXC_SAI3_RXFS_GPIO4_IO28       0x40000041 /* MIPI_GPIO1 */
                        MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL     0x1f
                        MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10              0x19 /* RST# */
                        MX8MM_IOMUXC_GPIO1_IO11_GPIO1_IO11              0x19 /* IRQ# */
-                       MX8MM_IOMUXC_GPIO1_IO08_ENET1_1588_EVENT0_IN    0x141
-                       MX8MM_IOMUXC_GPIO1_IO09_ENET1_1588_EVENT0_OUT   0x141
                >;
        };
 
index 17e6828c79f8d50ebb0130e37cbe9dab6058387f..10656ce903a56039080bb0e2c145011e7f638f1e 100644 (file)
@@ -6,6 +6,13 @@
 #include "imx8mn-venice-u-boot.dtsi"
 
 &gpio1 {
+       m2pwren {
+               gpio-hog;
+               output-low;
+               gpios = <8 GPIO_ACTIVE_HIGH>;
+               line-name = "m2_pwren";
+       };
+
        m2rst {
                gpio-hog;
                output-low;
                line-name = "app_gpio1";
        };
 
+       vdd4p0en {
+               gpio-hog;
+               output-low;
+               gpios = <22 GPIO_ACTIVE_HIGH>;
+               line-name = "vdd_4p0_en";
+       };
+
        uart1rs485 {
                gpio-hog;
                output-low;
index dd4302ac1de466a58894246706dbe45915a9b489..029ccdbee7d503a6b59d90cf70ee345f71697d44 100644 (file)
 
 &gpio1 {
        gpio-line-names = "", "", "", "", "", "", "", "",
-               "", "", "", "", "", "m2_reset", "", "m2_wdis#",
+               "m2_pwr_en", "", "", "", "", "m2_reset", "", "m2_wdis#",
                "", "", "", "", "", "", "", "",
                "", "", "", "", "", "", "", "";
 };
 &gpio4 {
        gpio-line-names = "", "", "", "", "", "", "", "",
                "", "", "", "", "", "", "", "",
-               "", "", "", "", "", "app_gpio1", "", "uart1_rs485",
+               "", "", "", "", "", "app_gpio1", "vdd_4p0_en", "uart1_rs485",
                "", "uart1_term", "uart1_half", "app_gpio2",
                "mipi_gpio1", "", "", "";
 };
        pinctrl_hog: hoggrp {
                fsl,pins = <
                        MX8MN_IOMUXC_NAND_CE0_B_GPIO3_IO1       0x40000159 /* M2_GDIS# */
+                       MX8MN_IOMUXC_GPIO1_IO08_GPIO1_IO8       0x40000041 /* M2_PWR_EN */
                        MX8MN_IOMUXC_GPIO1_IO13_GPIO1_IO13      0x40000041 /* M2_RESET */
                        MX8MN_IOMUXC_NAND_DATA01_GPIO3_IO7      0x40000119 /* M2_OFF# */
                        MX8MN_IOMUXC_GPIO1_IO15_GPIO1_IO15      0x40000159 /* M2_WDIS# */
                        MX8MN_IOMUXC_SAI2_RXFS_GPIO4_IO21       0x40000041 /* APP GPIO1 */
+                       MX8MN_IOMUXC_SAI2_RXC_GPIO4_IO22        0x40000041 /* VDD_4P0_EN */
                        MX8MN_IOMUXC_SAI2_MCLK_GPIO4_IO27       0x40000041 /* APP GPIO2 */
                        MX8MN_IOMUXC_SD1_DATA6_GPIO2_IO8        0x40000041 /* UART2_EN# */
                        MX8MN_IOMUXC_SAI3_RXFS_GPIO4_IO28       0x40000041 /* MIPI_GPIO1 */
                        MX8MN_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL     0x1f
                        MX8MN_IOMUXC_GPIO1_IO10_GPIO1_IO10              0x19 /* RST# */
                        MX8MN_IOMUXC_GPIO1_IO11_GPIO1_IO11              0x19 /* IRQ# */
-                       MX8MN_IOMUXC_GPIO1_IO08_ENET1_1588_EVENT0_IN    0x141
-                       MX8MN_IOMUXC_GPIO1_IO09_ENET1_1588_EVENT0_OUT   0x141
                >;
        };