ARM: dts: imx7[d]-mba7: hog Mini PCIe signals
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Mon, 18 Dec 2023 12:54:41 +0000 (13:54 +0100)
committerShawn Guo <shawnguo@kernel.org>
Sat, 3 Feb 2024 04:40:31 +0000 (12:40 +0800)
PCIE_DIS & PCIE_RST (correctly named W_DISABLE# & PERST#) affect USB
devices as well. So hog them to make USB devices attached to Mini PCIe
connector available, despite PCIe being disabled.
Supply voltages are enabled unconditionally.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts

index 34adf76b713e845b89aca7fd51eaf0e47216a64d..8f2f3898d9d1c416b0c89aefa1fd4b09de4e62c6 100644 (file)
        };
 };
 
+&gpio2 {
+       pcie-dis-hog {
+               gpio-hog;
+               gpios = <29 GPIO_ACTIVE_HIGH>;
+               output-high;
+               line-name = "pcie-dis";
+       };
+
+       pcie-rst-hog {
+               gpio-hog;
+               gpios = <12 GPIO_ACTIVE_HIGH>;
+               output-high;
+               line-name = "pcie-rst";
+       };
+};
+
 &iomuxc {
        pinctrl-names = "default";
-       pinctrl-0 = <&pinctrl_hog_mba7_1>;
+       pinctrl-0 = <&pinctrl_hog_mba7_1>, <&pinctrl_hog_pcie>;
 
        pinctrl_enet2: enet2grp {
                fsl,pins =
                        <MX7D_PAD_EPDC_PWR_STAT__GPIO2_IO31     0x40000078>;
        };
 
-       pinctrl_pcie: pciegrp {
+       pinctrl_hog_pcie: hogpciegrp {
                fsl,pins =
-                       /* #pcie_wake */
-                       <MX7D_PAD_EPDC_PWR_COM__GPIO2_IO30              0x70>,
                        /* #pcie_rst */
                        <MX7D_PAD_SD2_CLK__GPIO5_IO12                   0x70>,
                        /* #pcie_dis */
                        <MX7D_PAD_EPDC_BDR1__GPIO2_IO29                 0x70>;
        };
+
+       pinctrl_pcie: pciegrp {
+               fsl,pins =
+                       /* #pcie_wake */
+                       <MX7D_PAD_EPDC_PWR_COM__GPIO2_IO30              0x70>;
+       };
 };
 
 &iomuxc_lpsr {