dts/zero-sugar: use fixed regulator to manage WIFI_PWR_EN
Besides WIFI_REG_ON handled by wifi_pwrseq, we need to deal with WIFI_PWR_EN as well to get BCM43455 WiFi chip powered properly. This WIFI_PWR_EN is currently handled in U-Boot. As we have fixed-regulator infrastructure in kernel which can handle this nicely, let's use it, so that we can drop the code from U-Boot. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>pull/10/head
parent
c2ab64fc4e
commit
8ccf9125f6
|
@ -63,6 +63,18 @@
|
||||||
regulator-max-microvolt = <1800000>;
|
regulator-max-microvolt = <1800000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
reg_brcm: regulator-brcm {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "brcm_reg";
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pinctrl_brcm_reg>;
|
||||||
|
gpio = <&gpio6 13 GPIO_ACTIVE_HIGH>;
|
||||||
|
enable-active-high;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
wifi_pwrseq: wifi_pwrseq {
|
wifi_pwrseq: wifi_pwrseq {
|
||||||
compatible = "mmc-pwrseq-simple";
|
compatible = "mmc-pwrseq-simple";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
@ -512,6 +524,7 @@
|
||||||
pinctrl-0 = <&pinctrl_usdhc2>;
|
pinctrl-0 = <&pinctrl_usdhc2>;
|
||||||
pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
|
pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
|
||||||
mmc-pwrseq = <&wifi_pwrseq>;
|
mmc-pwrseq = <&wifi_pwrseq>;
|
||||||
|
vmmc-supply = <®_brcm>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
non-removable;
|
non-removable;
|
||||||
keep-power-in-suspend;
|
keep-power-in-suspend;
|
||||||
|
@ -727,6 +740,13 @@
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pinctrl_brcm_reg: brcmreggrp {
|
||||||
|
fsl,pins = <
|
||||||
|
/* WIFI_PWR_EN */
|
||||||
|
MX7D_PAD_SAI1_TX_BCLK__GPIO6_IO13 0x14
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
pinctrl_wifi: wifigrp {
|
pinctrl_wifi: wifigrp {
|
||||||
fsl,pins = <
|
fsl,pins = <
|
||||||
/* WiFi Reg On */
|
/* WiFi Reg On */
|
||||||
|
|
Loading…
Reference in New Issue