rockchip: Fixes and improvements for ROCK Pi S
Subsystems (4)
cover rockchip: Fixes and improvements for ROCK Pi S
This series include fixes for DT schema validation, fixes and improve support for onboard features of the Radxa ROCK Pi S board.
Patch 1-2 fixes DT schema validation of ethernet and audio codec.
Patch 3 fixes use of onboard SD NAND and eMMC.
Patch 4-7 improve details and support for onboard features.
Patch 8 add OTP device node to SoC DT.
Patch 9-11 add support for RK3308 IO voltage domain to driver and DT.
Patch 12-13 correctly configures IO voltage domain and fixes WiFi/BT.
This series have been tested on a v1.3 board having a RK3308B SoC.
David Wu (1):
soc: rockchip: io-domain: Add RK3308 IO voltage domains
Jonas Karlman (12):
dt-bindings: net: rockchip-dwmac: Fix rockchip,rk3308-gmac compatible
arm64: dts: rockchip: rk3308: Fix codec@ff560000 reset-names
arm64: dts: rockchip: rk3308-rock-pi-s: Fix SD NAND and eMMC init
arm64: dts: rockchip: rk3308-rock-pi-s: Add sdmmc related properties
arm64: dts: rockchip: rk3308-rock-pi-s: Add pinctrl for UART0
arm64: dts: rockchip: rk3308-rock-pi-s: Rename LED related pinctrl
nodes
arm64: dts: rockchip: rk3308-rock-pi-s: Add mdio and ethernet-phy
nodes
arm64: dts: rockchip: Add OTP device node for RK3308
dt-bindings: power: rockchip: Document RK3308 IO voltage domains
arm64: dts: rockchip: Add RK3308 IO voltage domains
arm64: dts: rockchip: rk3308-rock-pi-s: Enable the io-domains node
arm64: dts: rockchip: rk3308-rock-pi-s: Update WIFi/BT related nodes
.../devicetree/bindings/net/snps,dwmac.yaml | 1 + .../bindings/power/rockchip-io-domain.yaml | 24 +++++ .../boot/dts/rockchip/rk3308-rock-pi-s.dts | 99 ++++++++++++++++--- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 31 +++++- drivers/soc/rockchip/io-domain.c | 40 ++++++++ 5 files changed, 182 insertions(+), 13 deletions(-)
Signature · 1 line
2.43.2
PATCH 1/13 dt-bindings: net: rockchip-dwmac: Fix rockchip,rk3308-gmac compatible
Schema validation using rockchip,rk3308-gmac compatible fails with:
ethernet@ff4e0000: compatible: ['rockchip,rk3308-gmac'] does not contain items matching the given schema
from schema $id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml#
ethernet@ff4e0000: Unevaluated properties are not allowed ('interrupt-names', 'interrupts', 'phy-mode',
'reg', 'reset-names', 'resets', 'snps,reset-active-low', 'snps,reset-delays-us', 'snps,reset-gpio' were unexpected)
from schema $id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml#
Add rockchip,rk3308-gmac to snps,dwmac.yaml to fix DT schema validation.
--- Documentation/devicetree/bindings/net/snps,dwmac.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/net/snps,dwmac.yaml +1 -0
@@ -76,6 +76,7 @@ properties: - rockchip,rk3128-gmac - rockchip,rk3228-gmac - rockchip,rk3288-gmac + - rockchip,rk3308-gmac - rockchip,rk3328-gmac - rockchip,rk3366-gmac - rockchip,rk3368-gmac
Signature · 1 line
2.43.2
Re: [PATCH 01/13] dt-bindings: net: rockchip-dwmac: Fix rockchip,rk3308-gmac compatible
Am Dienstag, 21. Mai 2024, 23:10:04 CEST schrieb Jonas Karlman:
Quoted 9 lines
Schema validation using rockchip,rk3308-gmac compatible fails with:
ethernet@ff4e0000: compatible: ['rockchip,rk3308-gmac'] does not contain items matching the given schema
from schema $id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml#
ethernet@ff4e0000: Unevaluated properties are not allowed ('interrupt-names', 'interrupts', 'phy-mode',
'reg', 'reset-names', 'resets', 'snps,reset-active-low', 'snps,reset-delays-us', 'snps,reset-gpio' were unexpected)
from schema $id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml#
Quoted 4 lines
Add rockchip,rk3308-gmac to snps,dwmac.yaml to fix DT schema validation.
Fixes 2cc8c910f515 ("dt-bindings: net: rockchip-dwmac: add rk3308 gmac compatible")Signed-off-by Jonas Karlman <[email protected]>
I'm not sure how the network tree works these days, but this patch is the only one that should go through the network tree.
Quoted 17 lines
--- Documentation/devicetree/bindings/net/snps,dwmac.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/net/snps,dwmac.yaml +1
-0@@ -76,6 +76,7 @@ properties: - rockchip,rk3128-gmac - rockchip,rk3228-gmac - rockchip,rk3288-gmac + - rockchip,rk3308-gmac - rockchip,rk3328-gmac - rockchip,rk3366-gmac - rockchip,rk3368-gmac
Paolo Abeni
maintainerRe: [PATCH 01/13] dt-bindings: net: rockchip-dwmac: Fix rockchip,rk3308-gmac compatible
Quoted 12 lines · Heiko Stübner
Am Dienstag, 21. Mai 2024, 23:10:04 CEST schrieb Jonas Karlman:
Quoted 11 lines
Schema validation using rockchip,rk3308-gmac compatible fails with:
ethernet@ff4e0000: compatible: ['rockchip,rk3308-gmac'] does not contain items matching the given schema
from schema $id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml#
ethernet@ff4e0000: Unevaluated properties are not allowed ('interrupt-names', 'interrupts', 'phy-mode',
'reg', 'reset-names', 'resets', 'snps,reset-active-low', 'snps,reset-delays-us', 'snps,reset-gpio' were unexpected)
from schema $id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml#Add rockchip,rk3308-gmac to snps,dwmac.yaml to fix DT schema validation.
Quoted 7 lines
Quoted 2 lines
Fixes 2cc8c910f515 ("dt-bindings: net: rockchip-dwmac: add rk3308 gmac compatible")Signed-off-by Jonas Karlman <[email protected]>Reviewed-by Heiko Stuebner <[email protected]>I'm not sure how the network tree works these days, but this patch is the only one that should go through the network tree.
It looks like the rest of the series has no dependency and will be merged
via other trees.
If so, I think it would be cleaner if you could submit this patch individually to the net tree, including the target tree 'net' into the subj.
That will trigger successfully our CI - that currently does little for DT changes but still more then nothing and things could improve in the future.
Thanks,
Paolo
Re: [PATCH 01/13] dt-bindings: net: rockchip-dwmac: Fix rockchip,rk3308-gmac compatible
In reply to Jonas KarlmanQuoted 10 lines · Jonas Karlman
Schema validation using rockchip,rk3308-gmac compatible fails with:
ethernet@ff4e0000: compatible: ['rockchip,rk3308-gmac'] does not contain items matching the given schema
from schema $id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml#
ethernet@ff4e0000: Unevaluated properties are not allowed ('interrupt-names', 'interrupts', 'phy-mode',
'reg', 'reset-names', 'resets', 'snps,reset-active-low', 'snps,reset-delays-us', 'snps,reset-gpio' were unexpected)
from schema $id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml#Add rockchip,rk3308-gmac to snps,dwmac.yaml to fix DT schema validation.
Best regards,
Krzysztof
PATCH 2/13 arm64: dts: rockchip: rk3308: Fix codec@ff560000 reset-names
In reply to Jonas KarlmanThe commit 30d72458624b ("arm64: dts: rockchip: add the internal audio codec on rk3308") added codec@ff560000 node to SoC DT. However, the node does not pass DT schema validation:
codec@ff560000: reset-names:0: 'codec' was expected
from schema $id: http://devicetree.org/schemas/sound/rockchip,rk3308-codec.yaml#
Use the expected codec reset name to fix this.
--- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3308.dtsi +1 -1
@@ -811,7 +811,7 @@ codec: codec@ff560000 { clocks = <&cru SCLK_I2S2_8CH_TX_OUT>, <&cru SCLK_I2S2_8CH_RX_OUT>, <&cru PCLK_ACODEC>; - reset-names = "codec-reset"; + reset-names = "codec"; resets = <&cru SRST_ACODEC_P>; #sound-dai-cells = <0>; status = "disabled";
Signature · 1 line
2.43.2
PATCH 3/13 arm64: dts: rockchip: rk3308-rock-pi-s: Fix SD NAND and eMMC init
In reply to Jonas KarlmanRadxa ROCK Pi S have optional onboard SD NAND on board revision v1.1, v1.2 and v1.3, revision v1.5 changed to use optional onboard eMMC.
The optional SD NAND typically fails to initialize:
mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
mmc0: error -110 whilst initialising SD card
mmc_host mmc0: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
mmc0: error -110 whilst initialising SD card
mmc_host mmc0: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
mmc0: error -110 whilst initialising SD card
mmc_host mmc0: Bus speed (slot 0) = 100000Hz (slot req 100000Hz, actual 100000HZ div = 0)
mmc0: error -110 whilst initialising SD card
Add pinctrl and cap-sd-highspeed to fix SD NAND initialization. Also drop bus-width and mmc-hs200-1_8v to fix eMMC initialization on the new v1.5 board revision, only 3v3 signal voltage is used.
---
Hardware revision changes can be found at:
- https://wiki.radxa.com/RockpiS/hardware/revisions
- https://docs.radxa.com/en/rockpi/rockpis/hardware/hardware-revision
--- arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts +4 -2
@@ -126,10 +126,12 @@ &cpu0 { }; &emmc { - bus-width = <4>; cap-mmc-highspeed; - mmc-hs200-1_8v; + cap-sd-highspeed; + no-sdio; non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>; vmmc-supply = <&vcc_io>; status = "okay"; };
Signature · 1 line
2.43.2
PATCH 4/13 arm64: dts: rockchip: rk3308-rock-pi-s: Add sdmmc related properties
In reply to Jonas KarlmanAdd cap-mmc-highspeed to allow use of high speed MMC mode using an eMMC to uSD board. Use disable-wp to signal that no physical write-protect line is present. Also add vcc_io used for card and IO line power as vmmc-supply.
--- arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts | 3 +++ 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts +3 -0
@@ -266,7 +266,10 @@ &sdio { }; &sdmmc { + cap-mmc-highspeed; cap-sd-highspeed; + disable-wp; + vmmc-supply = <&vcc_io>; status = "okay"; };
Signature · 1 line
2.43.2
PATCH 5/13 arm64: dts: rockchip: rk3308-rock-pi-s: Add pinctrl for UART0
In reply to Jonas KarlmanUAR0 CTS/RTS is not wired to any pin and is not used for the default serial console use of UART0 on ROCK Pi S.
Override the SoC defined pinctrl props to limit configuration of the two xfer pins wired to one of the GPIO pin headers.
--- arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts +2 -0
@@ -288,6 +288,8 @@ u2phy_otg: otg-port { }; &uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_xfer>; status = "okay"; };
Signature · 1 line
2.43.2
PATCH 6/13 arm64: dts: rockchip: rk3308-rock-pi-s: Rename LED related pinctrl nodes
In reply to Jonas KarlmanThe nodename, <name>-gpio, of referenced pinctrl nodes for the two LEDs on the ROCK Pi S cause DT schema validation error:
leds: green-led-gpio: {'rockchip,pins': [[0, 6, 0, 90]], 'phandle': [[98]]} is not of type 'array'
from schema $id: http://devicetree.org/schemas/gpio/gpio-consumer.yaml#
leds: heartbeat-led-gpio: {'rockchip,pins': [[0, 5, 0, 90]], 'phandle': [[99]]} is not of type 'array'
from schema $id: http://devicetree.org/schemas/gpio/gpio-consumer.yaml#
Rename the pinctrl nodes and symbols to pass DT schema validation, also extend LED nodes with information about color and function.
--- arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts +9 -3
@@ -5,6 +5,8 @@ */ /dts-v1/; + +#include <dt-bindings/leds/common.h> #include "rk3308.dtsi" / {
@@ -24,17 +26,21 @@ chosen { leds { compatible = "gpio-leds"; pinctrl-names = "default"; - pinctrl-0 = <&green_led_gio>, <&heartbeat_led_gpio>; + pinctrl-0 = <&green_led>, <&heartbeat_led>; green-led { + color = <LED_COLOR_ID_GREEN>; default-state = "on"; + function = LED_FUNCTION_POWER; gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; label = "rockpis:green:power"; linux,default-trigger = "default-on"; }; blue-led { + color = <LED_COLOR_ID_BLUE>; default-state = "on"; + function = LED_FUNCTION_HEARTBEAT; gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; label = "rockpis:blue:user"; linux,default-trigger = "heartbeat";
@@ -216,11 +222,11 @@ &pinctrl { pinctrl-0 = <&rtc_32k>; leds { - green_led_gio: green-led-gpio { + green_led: green-led { rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; }; - heartbeat_led_gpio: heartbeat-led-gpio { + heartbeat_led: heartbeat-led { rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; }; };
Signature · 1 line
2.43.2
PATCH 7/13 arm64: dts: rockchip: rk3308-rock-pi-s: Add mdio and ethernet-phy nodes
In reply to Jonas KarlmanBe explicit about the Ethernet port and define mdio and ethernet-phy nodes in the device tree for ROCK Pi S.
--- .../boot/dts/rockchip/rk3308-rock-pi-s.dts | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts +23 -3
@@ -144,11 +144,25 @@ &emmc { &gmac { clock_in_out = "output"; + phy-handle = <&rtl8201f>; phy-supply = <&vcc_io>; - snps,reset-gpio = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; - snps,reset-active-low; - snps,reset-delays-us = <0 50000 50000>; status = "okay"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + rtl8201f: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&mac_rst>; + reset-assert-us = <20000>; + reset-deassert-us = <50000>; + reset-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; + }; + }; }; &gpio0 {
@@ -221,6 +235,12 @@ &pinctrl { pinctrl-names = "default"; pinctrl-0 = <&rtc_32k>; + gmac { + mac_rst: mac-rst { + rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + leds { green_led: green-led { rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
Signature · 1 line
2.43.2
PATCH 8/13 arm64: dts: rockchip: Add OTP device node for RK3308
In reply to Jonas KarlmanThe RK3308 SoC contains a controller for one-time-programmable memory, add a device node for it.
--- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm64/boot/dts/rockchip/rk3308.dtsi +24 -0
@@ -556,6 +556,30 @@ saradc: saradc@ff1e0000 { status = "disabled"; }; + otp: efuse@ff210000 { + compatible = "rockchip,rk3308-otp"; + reg = <0x0 0xff210000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + clocks = <&cru SCLK_OTP_USR>, <&cru PCLK_OTP_NS>, + <&cru PCLK_OTP_PHY>; + clock-names = "otp", "apb_pclk", "phy"; + resets = <&cru SRST_OTP_PHY>; + reset-names = "phy"; + + cpu_id: id@7 { + reg = <0x07 0x10>; + }; + + cpu_leakage: cpu-leakage@17 { + reg = <0x17 0x1>; + }; + + logic_leakage: logic-leakage@18 { + reg = <0x18 0x1>; + }; + }; + dmac0: dma-controller@ff2c0000 { compatible = "arm,pl330", "arm,primecell"; reg = <0x0 0xff2c0000 0x0 0x4000>;
Signature · 1 line
2.43.2
PATCH 9/13 dt-bindings: power: rockchip: Document RK3308 IO voltage domains
In reply to Jonas KarlmanDocument dt-bindings for RK3308 IO voltage domains.
--- .../bindings/power/rockchip-io-domain.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)
Documentation/devicetree/bindings/power/rockchip-io-domain.yaml +24 -0
@@ -50,6 +50,7 @@ properties: - rockchip,rk3188-io-voltage-domain - rockchip,rk3228-io-voltage-domain - rockchip,rk3288-io-voltage-domain + - rockchip,rk3308-io-voltage-domain - rockchip,rk3328-io-voltage-domain - rockchip,rk3368-io-voltage-domain - rockchip,rk3368-pmu-io-voltage-domain
@@ -71,6 +72,7 @@ allOf: - $ref: "#/$defs/rk3188" - $ref: "#/$defs/rk3228" - $ref: "#/$defs/rk3288" + - $ref: "#/$defs/rk3308" - $ref: "#/$defs/rk3328" - $ref: "#/$defs/rk3368" - $ref: "#/$defs/rk3368-pmu"
@@ -194,6 +196,28 @@ $defs: wifi-supply: description: The supply connected to APIO3_VDD. Also known as SDIO0. + rk3308: + if: + properties: + compatible: + contains: + const: rockchip,rk3308-io-voltage-domain + + then: + properties: + vccio0-supply: + description: The supply connected to VCCIO0. + vccio1-supply: + description: The supply connected to VCCIO1. + vccio2-supply: + description: The supply connected to VCCIO2. + vccio3-supply: + description: The supply connected to VCCIO3. + vccio4-supply: + description: The supply connected to VCCIO4. + vccio5-supply: + description: The supply connected to VCCIO5. + rk3328: if: properties:
Signature · 1 line
2.43.2
Re: [PATCH 09/13] dt-bindings: power: rockchip: Document RK3308 IO voltage domains
Quoted 4 lines · Jonas Karlman
Document dt-bindings for RK3308 IO voltage domains.
Signed-off-by Jonas Karlman <[email protected]>---
Best regards,
Krzysztof
PATCH 10/13 soc: rockchip: io-domain: Add RK3308 IO voltage domains
In reply to Jonas KarlmanFrom: David Wu <[email protected]>
Add IO voltage domains support for the RK3308 SoC.
--- drivers/soc/rockchip/io-domain.c | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+)
drivers/soc/rockchip/io-domain.c +40 -0
@@ -39,6 +39,10 @@#define RK3288_SOC_CON2_FLASH0 BIT(7)#define RK3288_SOC_FLASH_SUPPLY_NUM 2 +#define RK3308_SOC_CON0 0x300 +#define RK3308_SOC_CON0_VCCIO3 BIT(8) +#define RK3308_SOC_VCCIO3_SUPPLY_NUM 3 +#define RK3328_SOC_CON4 0x410#define RK3328_SOC_CON4_VCCIO2 BIT(7)#define RK3328_SOC_VCCIO2_SUPPLY_NUM 1
@@ -229,6 +233,25 @@ static void rk3288_iodomain_init(struct rockchip_iodomain *iod)dev_warn (iod->dev,"couldn't update flash0 ctrl\n" ); } +static void rk3308_iodomain_init (struct rockchip_iodomain *iod) +{ +int ret; +u32 val; + +/* if no vccio3 supply we should leave things alone */ +if (!iod->supplies[RK3308_SOC_VCCIO3_SUPPLY_NUM ].reg) +return ; + +/* +* set vccio3 iodomain to also use this framework +* instead of a special gpio. +*/ + val =RK3308_SOC_CON0_VCCIO3 | (RK3308_SOC_CON0_VCCIO3 <<16 ); + ret =regmap_write (iod->grf,RK3308_SOC_CON0 , val); +if (ret <0 ) +dev_warn (iod->dev,"couldn't update vccio3 vsel ctrl\n" ); +} +static void rk3328_iodomain_init (struct rockchip_iodomain *iod) {int ret;
@@ -376,6 +399,19 @@ static const struct rockchip_iodomain_soc_data soc_data_rk3288 = { .init = rk3288_iodomain_init, }; +static const struct rockchip_iodomain_soc_data soc_data_rk3308 = { + .grf_offset =0x300 , + .supply_names = { +"vccio0" , +"vccio1" , +"vccio2" , +"vccio3" , +"vccio4" , +"vccio5" , + }, + .init = rk3308_iodomain_init, +}; +static const struct rockchip_iodomain_soc_data soc_data_rk3328 = { .grf_offset =0x410 , .supply_names = {
@@ -528,6 +564,10 @@ static const struct of_device_id rockchip_iodomain_match[] = { .compatible = "rockchip,rk3288-io-voltage-domain", .data = &soc_data_rk3288 }, + { + .compatible = "rockchip,rk3308-io-voltage-domain", + .data = &soc_data_rk3308 + }, { .compatible ="rockchip,rk3328-io-voltage-domain" , .data = &soc_data_rk3328
Signature · 1 line
2.43.2
PATCH 11/13 arm64: dts: rockchip: Add RK3308 IO voltage domains
In reply to Jonas KarlmanAdd a disabled RK3308 IO voltage domains node to SoC DT.
--- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/rockchip/rk3308.dtsi +5 -0
@@ -173,6 +173,11 @@ grf: grf@ff000000 { compatible = "rockchip,rk3308-grf", "syscon", "simple-mfd"; reg = <0x0 0xff000000 0x0 0x08000>; + io_domains: io-domains { + compatible = "rockchip,rk3308-io-voltage-domain"; + status = "disabled"; + }; + reboot-mode { compatible = "syscon-reboot-mode"; offset = <0x500>;
Signature · 1 line
2.43.2
PATCH 12/13 arm64: dts: rockchip: rk3308-rock-pi-s: Enable the io-domains node
In reply to Jonas KarlmanThe VCCIO4 io-domain used for WiFi/BT is using 1v8 IO signal voltage.
Add io-domains node with the VCCIO supplies connected on the board.
--- arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts +10 -0
@@ -231,6 +231,16 @@ &i2c1 { status = "okay"; }; +&io_domains { + vccio0-supply = <&vcc_io>; + vccio1-supply = <&vcc_io>; + vccio2-supply = <&vcc_io>; + vccio3-supply = <&vcc_io>; + vccio4-supply = <&vcc_1v8>; + vccio5-supply = <&vcc_io>; + status = "okay"; +}; + &pinctrl { pinctrl-names = "default"; pinctrl-0 = <&rtc_32k>;
Signature · 1 line
2.43.2
PATCH 13/13 arm64: dts: rockchip: rk3308-rock-pi-s: Update WIFi/BT related nodes
In reply to Jonas KarlmanUpdate WiFi SDIO and BT UART related props to better reflect details about the optional onboard RTL8723DS WiFi/BT module.
Also correct the compatible used for bluetooth to match the WiFi/BT module used on the board.
--- .../boot/dts/rockchip/rk3308-rock-pi-s.dts | 40 +++++++++++++++++-- 1 file changed, 36 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts +36 -4
@@ -17,6 +17,7 @@ aliases { ethernet0 = &gmac; mmc0 = &emmc; mmc1 = &sdmmc; + mmc2 = &sdio; }; chosen {
@@ -245,6 +246,20 @@ &pinctrl { pinctrl-names = "default"; pinctrl-0 = <&rtc_32k>; + bluetooth { + bt_reg_on: bt-reg-on { + rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_wake_host: bt-wake-host { + rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>; + }; + + host_wake_bt: host-wake-bt { + rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + gmac { mac_rst: mac-rst { rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -294,11 +309,24 @@ &sdio { cap-sd-highspeed; cap-sdio-irq; keep-power-in-suspend; - max-frequency = <1000000>; + max-frequency = <100000000>; mmc-pwrseq = <&sdio_pwrseq>; + no-mmc; + no-sd; non-removable; - sd-uhs-sdr104; + sd-uhs-sdr50; + vmmc-supply = <&vcc_io>; + vqmmc-supply = <&vcc_1v8>; status = "okay"; + + rtl8723ds: wifi@1 { + reg = <1>; + interrupt-parent = <&gpio0>; + interrupts = <RK_PA0 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "host-wake"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_host_wake>; + }; }; &sdmmc {
@@ -330,12 +358,16 @@ &uart0 { }; &uart4 { + uart-has-rtscts; status = "okay"; bluetooth { - compatible = "realtek,rtl8723bs-bt"; - device-wake-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; + compatible = "realtek,rtl8723ds-bt"; + device-wake-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; + enable-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; host-wake-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_reg_on &bt_wake_host &host_wake_bt>; }; };
Signature · 1 line
2.43.2
Re: (subset) [PATCH 00/13] rockchip: Fixes and improvements for ROCK Pi S
In reply to Jonas KarlmanQuoted 8 lines · Jonas Karlman
This series include fixes for DT schema validation, fixes and improve support for onboard features of the Radxa ROCK Pi S board.
Patch 1-2 fixes DT schema validation of ethernet and audio codec.
Patch 3 fixes use of onboard SD NAND and eMMC.
[...]
Applied, thanks!
[02/13] arm64: dts: rockchip: rk3308: Fix codec@ff560000 reset-names
commit: cb1622df6a28e3eac34a8b95feba2dd2dc6cd887
[03/13] arm64: dts: rockchip: rk3308-rock-pi-s: Fix SD NAND and eMMC init
commit: 1fb98c855ccd7bc7f50c7a9626fbb8440454760b
[04/13] arm64: dts: rockchip: rk3308-rock-pi-s: Add sdmmc related properties
commit: fc0daeccc384233eadfa9d5ddbd00159653c6bdc
[05/13] arm64: dts: rockchip: rk3308-rock-pi-s: Add pinctrl for UART0
commit: 7affb86ef62581e3475ce3e0a7640da1f2ee29f8
[06/13] arm64: dts: rockchip: rk3308-rock-pi-s: Rename LED related pinctrl nodes
commit: d2a52f678883fe4bc00bca89366b1ba504750abf
[07/13] arm64: dts: rockchip: rk3308-rock-pi-s: Add mdio and ethernet-phy nodes
commit: 4b64ed510ed946a4e4ca6d51d6512bf5361f6a04
[08/13] arm64: dts: rockchip: Add OTP device node for RK3308
commit: 36d3bbc8cdbef2f83391f7708888265ac4c37a99
[09/13] dt-bindings: power: rockchip: Document RK3308 IO voltage domains
commit: 579e5b476307797b3a1260bec544dbbabcce1de5
[10/13] soc: rockchip: io-domain: Add RK3308 IO voltage domains
commit: 0536fa6e6fa3e48f4ca11855b586c277be524fbe
[11/13] arm64: dts: rockchip: Add RK3308 IO voltage domains
commit: d1829ba469d5743734e37d59fece73e3668ab084
[12/13] arm64: dts: rockchip: rk3308-rock-pi-s: Enable the io-domains node
commit: 100b3bdee6035192f6d4a1847970fe004bb505fb
[13/13] arm64: dts: rockchip: rk3308-rock-pi-s: Update WIFi/BT related nodes
commit: 12c3ec878cbe3709782e85b88124abecc3bb8617I've split this up slightly.
Some patches for 6.10 as fixes, and the rest for 6.11 . Edited patch7 (for 6.11) to apply without patch6 (6.10) That disappears during a merge of those branches.
Best regards,
Signature · 1 line
Heiko Stuebner <[email protected]>
Heiko Stübner
maintainerRe: (subset) [PATCH 00/13] rockchip: Fixes and improvements for ROCK Pi S
Am Dienstag, 28. Mai 2024, 00:42:16 CEST schrieb Heiko Stuebner:
Quoted 37 lines · Jonas Karlman
Quoted 8 lines
This series include fixes for DT schema validation, fixes and improve support for onboard features of the Radxa ROCK Pi S board.
Patch 1-2 fixes DT schema validation of ethernet and audio codec.
Patch 3 fixes use of onboard SD NAND and eMMC.
[...]
Applied, thanks!
[02/13] arm64: dts: rockchip: rk3308: Fix codec@ff560000 reset-names
commit: cb1622df6a28e3eac34a8b95feba2dd2dc6cd887 [03/13] arm64: dts: rockchip: rk3308-rock-pi-s: Fix SD NAND and eMMC init commit: 1fb98c855ccd7bc7f50c7a9626fbb8440454760b [04/13] arm64: dts: rockchip: rk3308-rock-pi-s: Add sdmmc related properties commit: fc0daeccc384233eadfa9d5ddbd00159653c6bdc [05/13] arm64: dts: rockchip: rk3308-rock-pi-s: Add pinctrl for UART0 commit: 7affb86ef62581e3475ce3e0a7640da1f2ee29f8 [06/13] arm64: dts: rockchip: rk3308-rock-pi-s: Rename LED related pinctrl nodes commit: d2a52f678883fe4bc00bca89366b1ba504750abf [07/13] arm64: dts: rockchip: rk3308-rock-pi-s: Add mdio and ethernet-phy nodes commit: 4b64ed510ed946a4e4ca6d51d6512bf5361f6a04 [08/13] arm64: dts: rockchip: Add OTP device node for RK3308 commit: 36d3bbc8cdbef2f83391f7708888265ac4c37a99 [09/13] dt-bindings: power: rockchip: Document RK3308 IO voltage domains commit: 579e5b476307797b3a1260bec544dbbabcce1de5 [10/13] soc: rockchip: io-domain: Add RK3308 IO voltage domains commit: 0536fa6e6fa3e48f4ca11855b586c277be524fbe [11/13] arm64: dts: rockchip: Add RK3308 IO voltage domains commit: d1829ba469d5743734e37d59fece73e3668ab084 [12/13] arm64: dts: rockchip: rk3308-rock-pi-s: Enable the io-domains node commit: 100b3bdee6035192f6d4a1847970fe004bb505fb [13/13] arm64: dts: rockchip: rk3308-rock-pi-s: Update WIFi/BT related nodes commit: 12c3ec878cbe3709782e85b88124abecc3bb8617
Quoted 4 lines
I've split this up slightly.
Some patches for 6.10 as fixes, and the rest for 6.11 . Edited patch7 (for 6.11) to apply without patch6 (6.10) That disappears during a merge of those branches.
and as stated, please re-send patch1 separately.
Thanks
Heiko
Re: (subset) [PATCH 00/13] rockchip: Fixes and improvements for ROCK Pi S
Hi Heiko,
Quoted 38 lines · Heiko Stübner
Am Dienstag, 28. Mai 2024, 00:42:16 CEST schrieb Heiko Stuebner:
Quoted 37 lines · Jonas Karlman
Quoted 8 lines
This series include fixes for DT schema validation, fixes and improve support for onboard features of the Radxa ROCK Pi S board.
Patch 1-2 fixes DT schema validation of ethernet and audio codec.
Patch 3 fixes use of onboard SD NAND and eMMC.
[...]
Applied, thanks!
[02/13] arm64: dts: rockchip: rk3308: Fix codec@ff560000 reset-names
commit: cb1622df6a28e3eac34a8b95feba2dd2dc6cd887 [03/13] arm64: dts: rockchip: rk3308-rock-pi-s: Fix SD NAND and eMMC init commit: 1fb98c855ccd7bc7f50c7a9626fbb8440454760b [04/13] arm64: dts: rockchip: rk3308-rock-pi-s: Add sdmmc related properties commit: fc0daeccc384233eadfa9d5ddbd00159653c6bdc [05/13] arm64: dts: rockchip: rk3308-rock-pi-s: Add pinctrl for UART0 commit: 7affb86ef62581e3475ce3e0a7640da1f2ee29f8 [06/13] arm64: dts: rockchip: rk3308-rock-pi-s: Rename LED related pinctrl nodes commit: d2a52f678883fe4bc00bca89366b1ba504750abf [07/13] arm64: dts: rockchip: rk3308-rock-pi-s: Add mdio and ethernet-phy nodes commit: 4b64ed510ed946a4e4ca6d51d6512bf5361f6a04 [08/13] arm64: dts: rockchip: Add OTP device node for RK3308 commit: 36d3bbc8cdbef2f83391f7708888265ac4c37a99 [09/13] dt-bindings: power: rockchip: Document RK3308 IO voltage domains commit: 579e5b476307797b3a1260bec544dbbabcce1de5 [10/13] soc: rockchip: io-domain: Add RK3308 IO voltage domains commit: 0536fa6e6fa3e48f4ca11855b586c277be524fbe [11/13] arm64: dts: rockchip: Add RK3308 IO voltage domains commit: d1829ba469d5743734e37d59fece73e3668ab084 [12/13] arm64: dts: rockchip: rk3308-rock-pi-s: Enable the io-domains node commit: 100b3bdee6035192f6d4a1847970fe004bb505fb [13/13] arm64: dts: rockchip: rk3308-rock-pi-s: Update WIFi/BT related nodes commit: 12c3ec878cbe3709782e85b88124abecc3bb8617
Quoted 6 lines
Quoted 4 lines
I've split this up slightly.
Some patches for 6.10 as fixes, and the rest for 6.11 . Edited patch7 (for 6.11) to apply without patch6 (6.10) That disappears during a merge of those branches.and as stated, please re-send patch1 separately.
Thanks!, I will re-send first patch shortly :-)
Regards,
Jonas
Quoted 5 lines
Thanks
Heiko