]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: exynos: Add support for wlan to Artik 5
authorMichael Lyle <mlyle@lyle.org>
Thu, 1 Feb 2018 21:16:56 +0000 (13:16 -0800)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 12 Feb 2018 18:00:37 +0000 (19:00 +0100)
On the Artik 520 module, there is a bcm4354 attached to mshc_1.  Enable
it and turn on the regulator used for it, so that both WiFi & Bluetooth
will work.

Verified to work on the Artik 520 evaluation board.

Signed-off-by: Michael Lyle <mlyle@lyle.org>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos3250-artik5.dtsi

index 0aa577fe9f95087fc560935216f1d86a9e28173b..620b50c19ead93b65ef43794ec3f50d732a0a2db 100644 (file)
@@ -245,6 +245,7 @@ ldo23_reg: LDO23 {
                                regulator-name = "VLDO23_1.8V";
                                regulator-min-microvolt = <1800000>;
                                regulator-max-microvolt = <1800000>;
+                               regulator-always-on;
                        };
 
                        ldo24_reg: LDO24 {
@@ -316,6 +317,41 @@ &mshc_0 {
        status = "okay";
 };
 
+&mshc_1 {
+       cap-sd-highspeed;
+       cap-sdio-irq;
+       disable-wp;
+       non-removable;
+       keep-power-in-suspend;
+       fifo-depth = <0x40>;
+       vqmmc-supply = <&ldo11_reg>;
+       /*
+        * Voltage negotiation is broken for the SDIO periph so we
+        * can't actually set the voltage here.
+        * vmmc-supply = <&ldo23_reg>;
+        */
+       card-detect-delay = <500>;
+       clock-frequency = <100000000>;
+       max-frequency = <100000000>;
+       samsung,dw-mshc-ciu-div = <3>;
+       samsung,dw-mshc-sdr-timing = <0 1>;
+       samsung,dw-mshc-ddr-timing = <1 2>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&sd1_cmd &sd1_clk &sd1_bus1 &sd1_bus4 &wlanen>;
+       bus-width = <4>;
+       status = "okay";
+};
+
+&pinctrl_1 {
+       wlanen: wlanen {
+               samsung,pins = "gpx2-3";
+               samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
+               samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+               samsung,pin-drv = <EXYNOS4_PIN_DRV_LV3>;
+               samsung,pin-val = <1>;
+       };
+};
+
 &rtc {
        clocks = <&cmu CLK_RTC>, <&s2mps14_osc S2MPS11_CLK_AP>;
        clock-names = "rtc", "rtc_src";