From: Breno Lima Date: Mon, 23 Jan 2017 20:26:53 +0000 (-0200) Subject: ARM: dts: udoo_neo: Add Wifi support X-Git-Tag: v4.11-rc1~87^2~14^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=850a983f16eced30e2a825b6d11be256cf647d11;p=platform%2Fkernel%2Flinux-exynos.git ARM: dts: udoo_neo: Add Wifi support Udoo Neo has a TI WL1831 Wifi chip connected to the USDHC3 port. Add support for it. Signed-off-by: Breno Lima Signed-off-by: Shawn Guo --- diff --git a/arch/arm/boot/dts/imx6sx-udoo-neo.dtsi b/arch/arm/boot/dts/imx6sx-udoo-neo.dtsi index 99e1aea..efdfd85 100644 --- a/arch/arm/boot/dts/imx6sx-udoo-neo.dtsi +++ b/arch/arm/boot/dts/imx6sx-udoo-neo.dtsi @@ -97,6 +97,16 @@ gpio = <&gpio4 12 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + reg_wlan: regulator-wlan { + compatible = "regulator-fixed"; + regulator-name = "wlan-en-regulator"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio2 12 GPIO_ACTIVE_HIGH>; + startup-delay-us = <70000>; + enable-active-high; + }; }; &cpu0 { @@ -296,6 +306,19 @@ , ; /* CD */ }; + + pinctrl_usdhc3: usdhc3grp { + fsl,pins = + , + , + , + , + , + , + , + , + ; + }; }; &uart1 { @@ -351,3 +374,25 @@ wakeup-source; status = "okay"; }; + +&usdhc3 { /* Wi-Fi */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc3>; + non-removable; + vmmc-supply = <®_wlan>; + cap-power-off-card; + wakeup-source; + keep-power-in-suspend; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + wlcore: wlcore@2 { + compatible = "ti,wl1831"; + reg = <2>; + interrupt-parent = <&gpio2>; + interrupts = <16 IRQ_TYPE_EDGE_RISING>; + ref-clock-frequency = <38400000>; + tcxo-clock-frequency = <26000000>; + }; +};