* [PATCH 0/2] rk3566 box demo io domain and network fix
@ 2022-12-25 11:49 Andy Yan
2022-12-25 11:49 ` [PATCH 1/2] arm64: dts: rockchip: rk3566-box-demo: add io domain setting Andy Yan
2022-12-25 11:49 ` [PATCH 2/2] arm64: dts: rockchip: Enable wifi module AP6398s for rk3566 box demo Andy Yan
0 siblings, 2 replies; 5+ messages in thread
From: Andy Yan @ 2022-12-25 11:49 UTC (permalink / raw)
To: heiko, krzysztof.kozlowski+dt, piotr.oniszczuk, robh+dt,
devicetree, linux-arm-kernel, linux-kernel, linux-rockchip
Cc: Andy Yan
The rk3566 box demo has a gmac and a ap6398s wifi demo,
These two patches add the io domain setting make gmac
work well, and fix the sdmmc1 dt nod to make wifi work.
Andy Yan (2):
arm64: dts: rockchip: rk3566-box-demo: add io domain setting
arm64: dts: rockchip: Enable wifi module AP6398s for rk3566 box demo
.../boot/dts/rockchip/rk3566-box-demo.dts | 37 +++++++++++++++++--
1 file changed, 33 insertions(+), 4 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] arm64: dts: rockchip: rk3566-box-demo: add io domain setting
2022-12-25 11:49 [PATCH 0/2] rk3566 box demo io domain and network fix Andy Yan
@ 2022-12-25 11:49 ` Andy Yan
2022-12-25 11:49 ` [PATCH 2/2] arm64: dts: rockchip: Enable wifi module AP6398s for rk3566 box demo Andy Yan
1 sibling, 0 replies; 5+ messages in thread
From: Andy Yan @ 2022-12-25 11:49 UTC (permalink / raw)
To: heiko, krzysztof.kozlowski+dt, piotr.oniszczuk, robh+dt,
devicetree, linux-arm-kernel, linux-kernel, linux-rockchip
Cc: Andy Yan
Add the missing pmu_io_domains setting, the gmac can't work well
without this.
Fixes: 2e0537b16b25 ("arm64: dts: rockchip: Add dts for rockchip rk3566 box demo board")
Signed-off-by: Andy Yan <andyshrk@163.com>
---
arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts b/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
index 4c7f9abd594f..d956496d5221 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
@@ -353,6 +353,17 @@ led_work_en: led_work_en {
};
};
+&pmu_io_domains {
+ pmuio2-supply = <&vcc_3v3>;
+ vccio1-supply = <&vcc_3v3>;
+ vccio3-supply = <&vcc_3v3>;
+ vccio4-supply = <&vcca_1v8>;
+ vccio5-supply = <&vcc_3v3>;
+ vccio6-supply = <&vcca_1v8>;
+ vccio7-supply = <&vcc_3v3>;
+ status = "okay";
+};
+
&pwm0 {
status = "okay";
};
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] arm64: dts: rockchip: Enable wifi module AP6398s for rk3566 box demo
2022-12-25 11:49 [PATCH 0/2] rk3566 box demo io domain and network fix Andy Yan
2022-12-25 11:49 ` [PATCH 1/2] arm64: dts: rockchip: rk3566-box-demo: add io domain setting Andy Yan
@ 2022-12-25 11:49 ` Andy Yan
2022-12-28 19:21 ` Heiko Stuebner
1 sibling, 1 reply; 5+ messages in thread
From: Andy Yan @ 2022-12-25 11:49 UTC (permalink / raw)
To: heiko, krzysztof.kozlowski+dt, piotr.oniszczuk, robh+dt,
devicetree, linux-arm-kernel, linux-kernel, linux-rockchip
Cc: Andy Yan
There is a AP6398s wifi/bt module on this board.
Fix the sdmmc1 dt node to make wifi work.
Fixes: 2e0537b16b25 ("arm64: dts: rockchip: Add dts for rockchip rk3566 box demo board")
Signed-off-by: Andy Yan <andyshrk@163.com>
---
.../boot/dts/rockchip/rk3566-box-demo.dts | 26 ++++++++++++++++---
1 file changed, 22 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts b/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
index d956496d5221..6c0c24226b52 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
@@ -324,8 +324,12 @@ wifi_enable_h: wifi-enable-h {
rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
};
+ wifi_host_wake_h: wifi-host-wake-l {
+ rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+
wifi_32k: wifi-32k {
- rockchip,pins = <0 RK_PB0 2 &pcfg_pull_none>;
+ rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>;
};
};
@@ -391,16 +395,30 @@ &sdmmc0 {
};
&sdmmc1 {
+ /* WiFi & BT combo module AMPAK AP6398S */
+ #address-cells = <1>;
+ #size-cells = <0>;
bus-width = <4>;
+ clock-frequency = <150000000>;
+ cap-sdio-irq;
cap-sd-highspeed;
- disable-wp;
+ sd-uhs-sdr104;
+ keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
pinctrl-names = "default";
pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
- vmmc-supply = <&vcc_3v3>;
- vqmmc-supply = <&vcca_1v8>;
status = "okay";
+
+ brcmf: wifi@1 {
+ compatible = "brcm,bcm4329-fmac";
+ reg = <1>;
+ interrupt-parent = <&gpio2>;
+ interrupts = <RK_PB2 GPIO_ACTIVE_HIGH>;
+ interrupt-names = "host-wake";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wifi_host_wake_h>;
+ };
};
&spdif {
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] arm64: dts: rockchip: Enable wifi module AP6398s for rk3566 box demo
2022-12-25 11:49 ` [PATCH 2/2] arm64: dts: rockchip: Enable wifi module AP6398s for rk3566 box demo Andy Yan
@ 2022-12-28 19:21 ` Heiko Stuebner
2022-12-29 11:55 ` Andy Yan
0 siblings, 1 reply; 5+ messages in thread
From: Heiko Stuebner @ 2022-12-28 19:21 UTC (permalink / raw)
To: krzysztof.kozlowski+dt, piotr.oniszczuk, robh+dt, devicetree,
linux-arm-kernel, linux-kernel, linux-rockchip, Andy Yan
Cc: Andy Yan
Hi Andy,
Am Sonntag, 25. Dezember 2022, 12:49:53 CET schrieb Andy Yan:
> There is a AP6398s wifi/bt module on this board.
> Fix the sdmmc1 dt node to make wifi work.
>
> Fixes: 2e0537b16b25 ("arm64: dts: rockchip: Add dts for rockchip rk3566 box demo board")
>
> Signed-off-by: Andy Yan <andyshrk@163.com>
> ---
>
> .../boot/dts/rockchip/rk3566-box-demo.dts | 26 ++++++++++++++++---
> 1 file changed, 22 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts b/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
> index d956496d5221..6c0c24226b52 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
> @@ -324,8 +324,12 @@ wifi_enable_h: wifi-enable-h {
> rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
> };
>
> + wifi_host_wake_h: wifi-host-wake-l {
> + rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
> + };
> +
> wifi_32k: wifi-32k {
> - rockchip,pins = <0 RK_PB0 2 &pcfg_pull_none>;
> + rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>;
> };
> };
>
> @@ -391,16 +395,30 @@ &sdmmc0 {
> };
>
> &sdmmc1 {
> + /* WiFi & BT combo module AMPAK AP6398S */
> + #address-cells = <1>;
> + #size-cells = <0>;
> bus-width = <4>;
> + clock-frequency = <150000000>;
> + cap-sdio-irq;
> cap-sd-highspeed;
> - disable-wp;
> + sd-uhs-sdr104;
> + keep-power-in-suspend;
> mmc-pwrseq = <&sdio_pwrseq>;
> non-removable;
> pinctrl-names = "default";
> pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
> - vmmc-supply = <&vcc_3v3>;
> - vqmmc-supply = <&vcca_1v8>;
why are you removing the mmc-supplies here?
The supplies needed for mmc to work should very much be present
I think, especially to also make sure something else doesn't
turn them off.
Heiko
> status = "okay";
> +
> + brcmf: wifi@1 {
> + compatible = "brcm,bcm4329-fmac";
> + reg = <1>;
> + interrupt-parent = <&gpio2>;
> + interrupts = <RK_PB2 GPIO_ACTIVE_HIGH>;
> + interrupt-names = "host-wake";
> + pinctrl-names = "default";
> + pinctrl-0 = <&wifi_host_wake_h>;
> + };
> };
>
> &spdif {
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re:Re: [PATCH 2/2] arm64: dts: rockchip: Enable wifi module AP6398s for rk3566 box demo
2022-12-28 19:21 ` Heiko Stuebner
@ 2022-12-29 11:55 ` Andy Yan
0 siblings, 0 replies; 5+ messages in thread
From: Andy Yan @ 2022-12-29 11:55 UTC (permalink / raw)
To: Heiko Stuebner
Cc: krzysztof.kozlowski+dt, piotr.oniszczuk, robh+dt, devicetree,
linux-arm-kernel, linux-kernel, linux-rockchip
Hi Heiko:
At 2022-12-29 03:21:32, "Heiko Stuebner" <heiko@sntech.de> wrote:
>Hi Andy,
>
>Am Sonntag, 25. Dezember 2022, 12:49:53 CET schrieb Andy Yan:
>> There is a AP6398s wifi/bt module on this board.
>> Fix the sdmmc1 dt node to make wifi work.
>>
>> Fixes: 2e0537b16b25 ("arm64: dts: rockchip: Add dts for rockchip rk3566 box demo board")
>>
>> Signed-off-by: Andy Yan <andyshrk@163.com>
>> ---
>>
>> .../boot/dts/rockchip/rk3566-box-demo.dts | 26 ++++++++++++++++---
>> 1 file changed, 22 insertions(+), 4 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts b/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
>> index d956496d5221..6c0c24226b52 100644
>> --- a/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
>> +++ b/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
>> @@ -324,8 +324,12 @@ wifi_enable_h: wifi-enable-h {
>> rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
>> };
>>
>> + wifi_host_wake_h: wifi-host-wake-l {
>> + rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
>> + };
>> +
>> wifi_32k: wifi-32k {
>> - rockchip,pins = <0 RK_PB0 2 &pcfg_pull_none>;
>> + rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>;
>> };
>> };
>>
>> @@ -391,16 +395,30 @@ &sdmmc0 {
>> };
>>
>> &sdmmc1 {
>> + /* WiFi & BT combo module AMPAK AP6398S */
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> bus-width = <4>;
>> + clock-frequency = <150000000>;
>> + cap-sdio-irq;
>> cap-sd-highspeed;
>> - disable-wp;
>> + sd-uhs-sdr104;
>> + keep-power-in-suspend;
>> mmc-pwrseq = <&sdio_pwrseq>;
>> non-removable;
>> pinctrl-names = "default";
>> pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
>> - vmmc-supply = <&vcc_3v3>;
>> - vqmmc-supply = <&vcca_1v8>;
>
>why are you removing the mmc-supplies here?
>The supplies needed for mmc to work should very much be present
>I think, especially to also make sure something else doesn't
>turn them off.
Thanks for catching this, I will fix it in V2.
>
>Heiko
>
>> status = "okay";
>> +
>> + brcmf: wifi@1 {
>> + compatible = "brcm,bcm4329-fmac";
>> + reg = <1>;
>> + interrupt-parent = <&gpio2>;
>> + interrupts = <RK_PB2 GPIO_ACTIVE_HIGH>;
>> + interrupt-names = "host-wake";
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&wifi_host_wake_h>;
>> + };
>> };
>>
>> &spdif {
>>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-12-29 12:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-25 11:49 [PATCH 0/2] rk3566 box demo io domain and network fix Andy Yan
2022-12-25 11:49 ` [PATCH 1/2] arm64: dts: rockchip: rk3566-box-demo: add io domain setting Andy Yan
2022-12-25 11:49 ` [PATCH 2/2] arm64: dts: rockchip: Enable wifi module AP6398s for rk3566 box demo Andy Yan
2022-12-28 19:21 ` Heiko Stuebner
2022-12-29 11:55 ` Andy Yan
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).