MIPS: CI20: DTS: Add IW8103 Wifi + bluetooth
authorAlexandre GRIVEAUX <agriveaux@deutnet.info>
Tue, 1 Oct 2019 19:09:14 +0000 (21:09 +0200)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 16:46:20 +0000 (09:46 -0700)
Add IW8103 Wifi + bluetooth module to device tree and related power domain.

Signed-off-by: Alexandre GRIVEAUX <agriveaux@deutnet.info>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: robh+dt@kernel.org
Cc: mark.rutland@arm.com
Cc: ralf@linux-mips.org
Cc: jhogan@kernel.org
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org
arch/mips/boot/dts/ingenic/ci20.dts

index 4a77fa3..c62c36a 100644 (file)
                gpio = <&gpb 25 GPIO_ACTIVE_LOW>;
                enable-active-high;
        };
+
+       wlan0_power: fixedregulator@1 {
+               compatible = "regulator-fixed";
+               regulator-name = "wlan0_power";
+               gpio = <&gpb 19 GPIO_ACTIVE_LOW>;
+               enable-active-high;
+       };
 };
 
 &ext {
 
        bus-width = <4>;
        max-frequency = <50000000>;
+       non-removable;
 
        pinctrl-names = "default";
        pinctrl-0 = <&pins_mmc1>;
+
+       brcmf: wifi@1 {
+/*             reg = <4>;*/
+               compatible = "brcm,bcm4330-fmac";
+               vcc-supply = <&wlan0_power>;
+               device-wakeup-gpios = <&gpd 9 GPIO_ACTIVE_HIGH>;
+               shutdown-gpios = <&gpf 7 GPIO_ACTIVE_LOW>;
+       };
 };
 
 &uart0 {
        pinctrl-0 = <&pins_uart1>;
 };
 
+&uart2 {
+       status = "okay";
+
+       pinctrl-names = "default";
+       pinctrl-0 = <&pins_uart2>;
+       uart-has-rtscts;
+
+       bluetooth {
+               compatible = "brcm,bcm4330-bt";
+               reset-gpios = <&gpf 8 GPIO_ACTIVE_HIGH>;
+               vcc-supply = <&wlan0_power>;
+               device-wakeup-gpios = <&gpf 5 GPIO_ACTIVE_HIGH>;
+               host-wakeup-gpios = <&gpf 6 GPIO_ACTIVE_HIGH>;
+               shutdown-gpios = <&gpf 4 GPIO_ACTIVE_LOW>;
+       };
+};
+
 &uart3 {
        status = "okay";
 
                bias-disable;
        };
 
+       pins_uart2: uart2 {
+               function = "uart2";
+               groups = "uart2-data", "uart2-hwflow";
+               bias-disable;
+       };
+
        pins_uart3: uart3 {
                function = "uart3";
                groups = "uart3-data", "uart3-hwflow";