Skip to contentSkip to conversation

ARM: dts: exynos-artik5: add support for wlan

PATCH Superseded Michael Lyle 2 participants 4 messages Feb 1, 2018 – Feb 12, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 ARM: dts: exynos-artik5: add support for wlan

On the Artik520 module, there's a bcm4354 attached to mshc_1. Enable it, and turn on the regulator used for it, so that both wifi & bluetooth work.

Verified to work on the Artik 520 evaluation board.

v2: accidentally sent out v1
v3: non-removable instead of broken-cd, alphabetical order, formatting

---
 arch/arm/boot/dts/exynos3250-artik5.dtsi | 36 ++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
arch/arm/boot/dts/exynos3250-artik5.dtsi +36 -0
index 0aa577fe9f95..620b50c19ead 100644
@@ -245,6 +245,7 @@
 				regulator-name = "VLDO23_1.8V";
 				regulator-min-microvolt = <1800000>;
 				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
 			};
 
 			ldo24_reg: LDO24 {
@@ -316,6 +317,41 @@
 	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";
Signature · 1 line
2.14.1
#1 lore raw

PATCH v3 1/1 ARM: dts: exynos-artik5: add support for wlan

Quoted 8 lines · Michael Lyle

On the Artik520 module, there's a bcm4354 attached to mshc_1. Enable it, and turn on the regulator used for it, so that both wifi & bluetooth work.

Verified to work on the Artik 520 evaluation board.

v2: accidentally sent out v1
v3: non-removable instead of broken-cd, alphabetical order, formatting

Changelog should go after --- separator so it would not end in commit.

I'll fix it during applying. Looks good to me. I'll take it after merge window.

Best regards,
Krzysztof

Quoted 63 lines
---
 arch/arm/boot/dts/exynos3250-artik5.dtsi | 36 ++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
arch/arm/boot/dts/exynos3250-artik5.dtsi +36 -0
index 0aa577fe9f95..620b50c19ead 100644
@@ -245,6 +245,7 @@
 				regulator-name = "VLDO23_1.8V";
 				regulator-min-microvolt = <1800000>;
 				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
 			};
 
 			ldo24_reg: LDO24 {
@@ -316,6 +317,41 @@
 	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";
Signature · 1 line
2.14.1
#2 lore raw

PATCH v3 1/1 ARM: dts: exynos-artik5: add support for wlan

Hi Krzysztof ---

Excellent, thank you for all your help.

Mike

Quoted 81 lines · Krzysztof Kozlowski
Quoted 8 lines · Michael Lyle

On the Artik520 module, there's a bcm4354 attached to mshc_1. Enable it, and turn on the regulator used for it, so that both wifi & bluetooth work.

Verified to work on the Artik 520 evaluation board.

v2: accidentally sent out v1
v3: non-removable instead of broken-cd, alphabetical order, formatting

Changelog should go after --- separator so it would not end in commit.

I'll fix it during applying. Looks good to me. I'll take it after merge window.

Best regards,
Krzysztof

Quoted 63 lines
---
 arch/arm/boot/dts/exynos3250-artik5.dtsi | 36 ++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
arch/arm/boot/dts/exynos3250-artik5.dtsi +36 -1
index 0aa577fe9f95..620b50c19ead 100644
@@ -245,6 +245,7 @@
                              regulator-name = "VLDO23_1.8V";
                              regulator-min-microvolt = <1800000>;
                              regulator-max-microvolt = <1800000>;
+                             regulator-always-on;
                      };
 
                      ldo24_reg: LDO24 {
@@ -316,6 +317,41 @@
      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";
--

2.14.1

maintainer Applied
#3 lore raw

PATCH v3 1/1 ARM: dts: exynos-artik5: add support for wlan

In reply to Michael Lyle
Quoted 6 lines · Michael Lyle

On the Artik520 module, there's a bcm4354 attached to mshc_1. Enable it, and turn on the regulator used for it, so that both wifi & bluetooth work.

Verified to work on the Artik 520 evaluation board.

Quoted 8 lines

v2: accidentally sent out v1
v3: non-removable instead of broken-cd, alphabetical order, formatting

---
 arch/arm/boot/dts/exynos3250-artik5.dtsi | 36 ++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Thanks, applied.

Best regards,
Krzysztof