devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] dts fixes for Sonoff iHost
@ 2024-02-15 11:04 Tim Lunn
  2024-02-15 11:04 ` [PATCH 1/2] ARM: dts: rockchip: mmc aliases " Tim Lunn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tim Lunn @ 2024-02-15 11:04 UTC (permalink / raw)
  To: linux-rockchip
  Cc: Tim Lunn, Conor Dooley, Heiko Stuebner, Krzysztof Kozlowski,
	Rob Herring, devicetree, linux-arm-kernel, linux-kernel

A couple of tweaks to the dts for Sonoff iHost.

Add aliases for sdio and sdmmc to ensure consistent ordering of devices
on boot.

Tweak sdio properties to improve detection of the rtl8723ds sdio wifi module.


Tim Lunn (2):
  ARM: dts: rockchip: mmc aliases for Sonoff iHost
  ARM: dts: rockchip: Wifi improvements for Sonoff iHost

 arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] ARM: dts: rockchip: mmc aliases for Sonoff iHost
  2024-02-15 11:04 [PATCH 0/2] dts fixes for Sonoff iHost Tim Lunn
@ 2024-02-15 11:04 ` Tim Lunn
  2024-02-15 11:04 ` [PATCH 2/2] ARM: dts: rockchip: Wifi improvements " Tim Lunn
  2024-02-27 23:13 ` [PATCH 0/2] dts fixes " Heiko Stuebner
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Lunn @ 2024-02-15 11:04 UTC (permalink / raw)
  To: linux-rockchip
  Cc: Tim Lunn, Conor Dooley, Heiko Stuebner, Krzysztof Kozlowski,
	Rob Herring, devicetree, linux-arm-kernel, linux-kernel

Add aliases for sdio and sdmmc to ensure consistent ordering of
mmc devices on boot

Signed-off-by: Tim Lunn <tim@feathertop.org>
---

 arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi b/arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi
index 32b329e87a0c..ba6c3a674f22 100644
--- a/arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi
+++ b/arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi
@@ -8,6 +8,8 @@ / {
 	aliases {
 		ethernet0 = &gmac;
 		mmc0 = &emmc;
+		mmc1 = &sdio;
+		mmc2 = &sdmmc;
 	};
 
 	chosen {
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: dts: rockchip: Wifi improvements for Sonoff iHost
  2024-02-15 11:04 [PATCH 0/2] dts fixes for Sonoff iHost Tim Lunn
  2024-02-15 11:04 ` [PATCH 1/2] ARM: dts: rockchip: mmc aliases " Tim Lunn
@ 2024-02-15 11:04 ` Tim Lunn
  2024-02-27 23:13 ` [PATCH 0/2] dts fixes " Heiko Stuebner
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Lunn @ 2024-02-15 11:04 UTC (permalink / raw)
  To: linux-rockchip
  Cc: Tim Lunn, Conor Dooley, Heiko Stuebner, Krzysztof Kozlowski,
	Rob Herring, devicetree, linux-arm-kernel, linux-kernel

In some instances the kernel fails to detect the sdio wifi module
in the Sonoff iHost.

Tweak sdio properties to improve detection of rtl8723ds wifi module

Signed-off-by: Tim Lunn <tim@feathertop.org>
---

 arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi b/arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi
index ba6c3a674f22..9a87dc0d5f66 100644
--- a/arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi
+++ b/arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi
@@ -327,7 +327,7 @@ &pmu_io_domains {
 	pmuio1-supply = <&vcc3v3_sys>;
 	vccio1-supply = <&vcc_1v8>;
 	vccio2-supply = <&vccio_sd>;
-	vccio3-supply = <&vcc_1v8>;
+	vccio3-supply = <&vcc3v3_sd>;
 	vccio4-supply = <&vcc_dovdd>;
 	vccio5-supply = <&vcc_1v8>;
 	vccio6-supply = <&vcc_1v8>;
@@ -345,14 +345,14 @@ &sdio {
 	cap-sd-highspeed;
 	cap-sdio-irq;
 	keep-power-in-suspend;
-	max-frequency = <100000000>;
+	max-frequency = <50000000>;
 	mmc-pwrseq = <&sdio_pwrseq>;
 	non-removable;
 	pinctrl-names = "default";
 	pinctrl-0 = <&sdmmc1_clk &sdmmc1_cmd &sdmmc1_bus4>;
 	rockchip,default-sample-phase = <90>;
-	sd-uhs-sdr104;
-	vmmc-supply = <&vcc3v3_sys>;
+	sd-uhs-sdr50;
+	vmmc-supply = <&vcc3v3_sd>;
 	vqmmc-supply = <&vcc_1v8>;
 	status = "okay";
 };
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] dts fixes for Sonoff iHost
  2024-02-15 11:04 [PATCH 0/2] dts fixes for Sonoff iHost Tim Lunn
  2024-02-15 11:04 ` [PATCH 1/2] ARM: dts: rockchip: mmc aliases " Tim Lunn
  2024-02-15 11:04 ` [PATCH 2/2] ARM: dts: rockchip: Wifi improvements " Tim Lunn
@ 2024-02-27 23:13 ` Heiko Stuebner
  2 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2024-02-27 23:13 UTC (permalink / raw)
  To: linux-rockchip, Tim Lunn
  Cc: Heiko Stuebner, Conor Dooley, devicetree, Rob Herring,
	Krzysztof Kozlowski, linux-arm-kernel, linux-kernel

On Thu, 15 Feb 2024 22:04:23 +1100, Tim Lunn wrote:
> A couple of tweaks to the dts for Sonoff iHost.
> 
> Add aliases for sdio and sdmmc to ensure consistent ordering of devices
> on boot.
> 
> Tweak sdio properties to improve detection of the rtl8723ds sdio wifi module.
> 
> [...]

Applied, thanks!

[1/2] ARM: dts: rockchip: mmc aliases for Sonoff iHost
      commit: eb246eaaa55aaa52c0c183f835157a56270ce81e
[2/2] ARM: dts: rockchip: Wifi improvements for Sonoff iHost
      commit: 391f46c775fa2108952c8f9a88b5bea2c3c74d1d

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-27 23:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-15 11:04 [PATCH 0/2] dts fixes for Sonoff iHost Tim Lunn
2024-02-15 11:04 ` [PATCH 1/2] ARM: dts: rockchip: mmc aliases " Tim Lunn
2024-02-15 11:04 ` [PATCH 2/2] ARM: dts: rockchip: Wifi improvements " Tim Lunn
2024-02-27 23:13 ` [PATCH 0/2] dts fixes " Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).