Commit 99a52450 authored by Vanessa Maegima's avatar Vanessa Maegima Committed by Shawn Guo

ARM: dts: imx7d-pico: Add Wifi support

imx7d-pico has an ap6212 wifi chip connected to usdhc2 port.

Add support for the usdhc2 port and to the WL_REG_ON regulator
so Wifi can be functional on this board.
Signed-off-by: default avatarVanessa Maegima <vanessa.maegima@nxp.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 2bd6bf03
...@@ -52,6 +52,17 @@ memory { ...@@ -52,6 +52,17 @@ memory {
reg = <0x80000000 0x80000000>; reg = <0x80000000 0x80000000>;
}; };
reg_ap6212: regulator-ap6212 {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_reg_ap6212>;
regulator-name = "AP6212";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio4 16 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
reg_2p5v: regulator-2p5v { reg_2p5v: regulator-2p5v {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "2P5V"; regulator-name = "2P5V";
...@@ -271,6 +282,17 @@ &usbotg2 { ...@@ -271,6 +282,17 @@ &usbotg2 {
status = "okay"; status = "okay";
}; };
&usdhc2 { /* Wifi SDIO */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc2>;
no-1-8-v;
non-removable;
keep-power-in-suspend;
wakeup-source;
vmmc-supply = <&reg_ap6212>;
status = "okay";
};
&usdhc3 { &usdhc3 {
pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-names = "default", "state_100mhz", "state_200mhz";
pinctrl-0 = <&pinctrl_usdhc3>; pinctrl-0 = <&pinctrl_usdhc3>;
...@@ -326,6 +348,12 @@ MX7D_PAD_SAI1_RX_SYNC__I2C4_SCL 0x4000007f ...@@ -326,6 +348,12 @@ MX7D_PAD_SAI1_RX_SYNC__I2C4_SCL 0x4000007f
>; >;
}; };
pinctrl_reg_ap6212: regap6212grp {
fsl,pins = <
MX7D_PAD_ECSPI1_SCLK__GPIO4_IO16 0x59
>;
};
pinctrl_sai1: sai1grp { pinctrl_sai1: sai1grp {
fsl,pins = < fsl,pins = <
MX7D_PAD_ENET1_RX_CLK__SAI1_TX_BCLK 0x1f MX7D_PAD_ENET1_RX_CLK__SAI1_TX_BCLK 0x1f
...@@ -348,6 +376,17 @@ MX7D_PAD_UART3_TX_DATA__GPIO4_IO5 0x14 ...@@ -348,6 +376,17 @@ MX7D_PAD_UART3_TX_DATA__GPIO4_IO5 0x14
>; >;
}; };
pinctrl_usdhc2: usdhc2grp {
fsl,pins = <
MX7D_PAD_SD2_CMD__SD2_CMD 0x59
MX7D_PAD_SD2_CLK__SD2_CLK 0x19
MX7D_PAD_SD2_DATA0__SD2_DATA0 0x59
MX7D_PAD_SD2_DATA1__SD2_DATA1 0x59
MX7D_PAD_SD2_DATA2__SD2_DATA2 0x59
MX7D_PAD_SD2_DATA3__SD2_DATA3 0x59
>;
};
pinctrl_usdhc3: usdhc3grp { pinctrl_usdhc3: usdhc3grp {
fsl,pins = < fsl,pins = <
MX7D_PAD_SD3_CMD__SD3_CMD 0x59 MX7D_PAD_SD3_CMD__SD3_CMD 0x59
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment