Add support for Ariaboard Photonicat RK3568
Subsystems (2)
cover Add support for Ariaboard Photonicat RK3568
Add dts for Ariaboard Photonicat RK3568.
This series bring support for:
* Debug UART
* SDIO QCA9377 WiFi and Bluetooth
* M.2 E-Key PCIe WiFi and Bluetooth
* M.2 B-Key USB Modem WWAN
* Ethernet WAN Port
* MicroSD Card slot
* eMMC
* HDMI Output
* Mali GPU
* USB Type-A
Junhao Xie (3):
dt-bindings: vendor-prefixes: Add Shanghai Novotech Ariaboard
dt-bindings: arm: rockchip: Add Ariaboard Photonicat RK3568
arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
.../devicetree/bindings/arm/rockchip.yaml | 5 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/rockchip/Makefile | 1 + .../rockchip/rk3568-ariaboard-photonicat.dts | 598 ++++++++++++++++++ 4 files changed, 606 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts
Signature · 1 line
2.46.0
PATCH 1/3 dt-bindings: vendor-prefixes: Add Shanghai Novotech Ariaboard
Add an entry for Shanghai Novotech Ariaboard (https://ariaboard.com/)
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -145,6 +145,8 @@ patternProperties: description: Arctic Sand "^arcx,.*": description: arcx Inc. / Archronix Inc. + "^ariaboard,.*": + description: Shanghai Novotech Co., Ltd. "^aries,.*": description: Aries Embedded GmbH "^arm,.*":
Signature · 1 line
2.46.0
Re: [PATCH 1/3] dt-bindings: vendor-prefixes: Add Shanghai Novotech Ariaboard
Quoted 12 lines · Junhao Xie
Add an entry for Shanghai Novotech Ariaboard (https://ariaboard.com/)
Signed-off-by Junhao Xie <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/vendor-prefixes.yaml +0
-0
Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 149
Quoted 5 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -145,6 +145,8 @@ patternProperties: description: Arctic Sand "^arcx,.*": description: arcx Inc. / Archronix Inc. + "^ariaboard,.*": + description: Shanghai Novotech Co., Ltd.
This is confusing. Prefix is entirely different than company name. I would expect prefix like shanghainovotech.
Best regards,
Krzysztof
Re: [PATCH 1/3] dt-bindings: vendor-prefixes: Add Shanghai Novotech Ariaboard
Quoted 22 lines · Krzysztof Kozlowski
Quoted 12 lines · Junhao Xie
Add an entry for Shanghai Novotech Ariaboard (https://ariaboard.com/)
Signed-off-by Junhao Xie <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/vendor-prefixes.yaml +0
-0Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 149
Quoted 5 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -145,6 +145,8 @@ patternProperties: description: Arctic Sand "^arcx,.*": description: arcx Inc. / Archronix Inc. + "^ariaboard,.*": + description: Shanghai Novotech Co., Ltd.This is confusing. Prefix is entirely different than company name. I would expect prefix like shanghainovotech.
Quoted 3 lines
Best regards,
Krzysztof
Thank you for your reply.
Ariaboard is a subsidiary of Shanghai Novotech, maybe it would be better to change description to "Ariaboard"?
Shanghai Novotech: https://shanghainovotech.com/
Ariaboard: https://ariaboard.com/
Best regards,
Junhao
Re: [PATCH 1/3] dt-bindings: vendor-prefixes: Add Shanghai Novotech Ariaboard
Quoted 27 lines · Junhao Xie
Quoted 22 lines · Krzysztof Kozlowski
Quoted 12 lines · Junhao Xie
Add an entry for Shanghai Novotech Ariaboard (https://ariaboard.com/)
Signed-off-by Junhao Xie <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/vendor-prefixes.yaml +0
-0Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 149
Quoted 5 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -145,6 +145,8 @@ patternProperties: description: Arctic Sand "^arcx,.*": description: arcx Inc. / Archronix Inc. + "^ariaboard,.*": + description: Shanghai Novotech Co., Ltd.This is confusing. Prefix is entirely different than company name. I would expect prefix like shanghainovotech.
Quoted 3 lines
Best regards,
Krzysztof
Quoted 6 lines
Thank you for your reply.
Ariaboard is a subsidiary of Shanghai Novotech, maybe it would be better to change description to "Ariaboard"?Shanghai Novotech: https://shanghainovotech.com/
Ariaboard: https://ariaboard.com/
This does not sound like subsidiary but just name of the board family or product family. Their about page suggests "affiliation" but all contact points are for Shanghai Novotech.
I am fine with ariaboard prefix, but please provide context in commit msg.
Best regards,
Krzysztof
Re: [PATCH 1/3] dt-bindings: vendor-prefixes: Add Shanghai Novotech Ariaboard
Quoted 32 lines · Krzysztof Kozlowski
Quoted 31 lines · Junhao Xie
Quoted 22 lines · Krzysztof Kozlowski
Quoted 12 lines · Junhao Xie
Add an entry for Shanghai Novotech Ariaboard (https://ariaboard.com/)
Signed-off-by Junhao Xie <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/vendor-prefixes.yaml +0
-0Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 149
Quoted 5 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -145,6 +145,8 @@ patternProperties: description: Arctic Sand "^arcx,.*": description: arcx Inc. / Archronix Inc. + "^ariaboard,.*": + description: Shanghai Novotech Co., Ltd.This is confusing. Prefix is entirely different than company name. I would expect prefix like shanghainovotech.
Quoted 3 lines
Best regards,
KrzysztofThank you for your reply.
Ariaboard is a subsidiary of Shanghai Novotech, maybe it would be better to change description to "Ariaboard"?
Quoted 9 lines
Quoted 2 lines
Shanghai Novotech: https://shanghainovotech.com/
Ariaboard: https://ariaboard.com/This does not sound like subsidiary but just name of the board family or product family. Their about page suggests "affiliation" but all contact points are for Shanghai Novotech.
I am fine with ariaboard prefix, but please provide context in commit msg.
Thanks, I will add it to commit message in PATCH v2.
Best regards,
Junhao
PATCH 2/3 dt-bindings: arm: rockchip: Add Ariaboard Photonicat RK3568
In reply to Junhao XieThis documents Ariaboard Photonicat which is a router based on the RK3568 SoC.
--- Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
@@ -49,6 +49,11 @@ properties: - anbernic,rg-arc-s - const: rockchip,rk3566 + - description: Ariaboard Photonicat RK3568 + items: + - const: ariaboard,photonicat + - const: rockchip,rk3568 + - description: ArmSoM Sige7 board items: - const: armsom,sige7
Signature · 1 line
2.46.0
Re: [PATCH 2/3] dt-bindings: arm: rockchip: Add Ariaboard Photonicat RK3568
Quoted 13 lines · Junhao Xie
This documents Ariaboard Photonicat which is a router based on the RK3568 SoC.
Signed-off-by Junhao Xie <[email protected]>--- Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++ 1 file changed, 5 insertions(+)Documentation/devicetree/bindings/arm/rockchip.yaml +0
-0
Documentation/devicetree/bindings/arm/rockchip.yaml properties: · line 52
Quoted 4 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +1
-0@@ -49,6 +49,11 @@ properties: - anbernic,rg-arc-s - const: rockchip,rk3566 + - description: Ariaboard Photonicat RK3568
And here is Ariaboard, not Shanghai Novotech. You have entire commit msg to give some sort of context for such unusual things.
Best regards,
Krzysztof
PATCH 3/3 arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
In reply to Junhao XieAdd dts for Ariaboard Photonicat RK3568.
Working IO:
Debug UART
SDIO QCA9377 WiFi and Bluetooth
M.2 E-Key PCIe WiFi and Bluetooth
M.2 B-Key USB Modem WWAN
Ethernet WAN Port
MicroSD Card slot
eMMC
HDMI Output
Mali GPU
USB Type-A
Not working IO:
Ethernet LAN Port (Lack of SGMII support) Power management MCU on UART4 (Driver pending)
Not working IO in MCU:
Battery voltage sensor
Board temperature sensor
Hardware Power-off
Hardware Watchdog
Network status LED
Real-time clock
USB Charger voltage sensor
About onboard power management MCU:
A heartbeat must be sent to the MCU within 60 seconds, otherwise the MCU will restart the system.
When powering off, a shutdown command needs to be sent to the MCU. When the power button is long pressed, the MCU will send a shutdown command to the system. If the system does not shutdown within 60 seconds, the power will be turned off directly.
MCU only provides voltage for charger and battery. Manufacturer removed RK8xx PMIC.
--- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../rockchip/rk3568-ariaboard-photonicat.dts | 598 ++++++++++++++++++ 2 files changed, 599 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
@@ -103,6 +103,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-soquartz-cm4.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-soquartz-model-a.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-box-demo.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-lubancat-1.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-ariaboard-photonicat.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r66s.dtb
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +598 -0
598 lines not on this page · raw message
Signature · 1 line
2.46.0
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Quoted 10 lines
+&gmac1 {
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +9
-0+ assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; + assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>; + assigned-clock-rates = <0>, <125000000>; + clock_in_out = "output"; + phy-handle = <&rgmii_phy1>; + phy-mode = "rgmii"; + phy-supply = <&vcc_3v3>; + pinctrl-names = "default"; + pinctrl-0 = <&gmac1m1_miim
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 279
Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +10
-0+ &gmac1m1_tx_bus2 + &gmac1m1_rx_bus2 + &gmac1m1_rgmii_clk + &gmac1m1_rgmii_bus>; + snps,reset-gpio = <&gpio4 RK_PC0 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + snps,reset-delays-us = <0 20000 100000>; + tx_delay = <0x38>; + rx_delay = <0x15>; + status = "okay";
This has been discussed a few times. You should be using phy-mode rgmii-id.
arch/arm/boot/dts/rockchip/rk3288-phycore-som.dtsi is i think also a YT8521SC.
Andrew
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Quoted 24 lines · Andrew Lunn
Quoted 10 lines
+&gmac1 {
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +9
-0+ assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; + assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>; + assigned-clock-rates = <0>, <125000000>; + clock_in_out = "output"; + phy-handle = <&rgmii_phy1>; + phy-mode = "rgmii"; + phy-supply = <&vcc_3v3>; + pinctrl-names = "default"; + pinctrl-0 = <&gmac1m1_miimarch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 279
Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +10
-0+ &gmac1m1_tx_bus2 + &gmac1m1_rx_bus2 + &gmac1m1_rgmii_clk + &gmac1m1_rgmii_bus>; + snps,reset-gpio = <&gpio4 RK_PC0 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + snps,reset-delays-us = <0 20000 100000>; + tx_delay = <0x38>; + rx_delay = <0x15>; + status = "okay";This has been discussed a few times. You should be using phy-mode rgmii-id.
Quoted 4 lines
arch/arm/boot/dts/rockchip/rk3288-phycore-som.dtsiis i think also a YT8521SC.Andrew
Thanks, I changed phy-mode to rgmii-id and it seems to work fine.
Best regards,
Junhao
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
In reply to Andrew LunnQuoted 1 line · Andrew Lunn
Quoted 1 line
+&gmac1 {
[...]
Quoted 2 lines
This has been discussed a few times. You should be using phy-mode rgmii-id.
After I changed phy-mode to rgmii-id, it seemed to work, but it didn't transmit any data.
Maybe I made a mistake or should I continue to use phy-mode rgmii?
Quoted 2 lines
arch/arm/boot/dts/rockchip/rk3288-phycore-som.dtsiis i think also a YT8521SC.
According to commit message and some pictures, rk3288-phycore-som is using TI DP83867 PHY?
Best regards,
Junhao
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Quoted 9 lines · Junhao Xie
Quoted 1 line · Andrew Lunn
Quoted 1 line
+&gmac1 {
[...]
Quoted 2 lines
This has been discussed a few times. You should be using phy-mode rgmii-id.
After I changed phy-mode to rgmii-id, it seemed to work, but it didn't transmit any data.
Maybe I made a mistake or should I continue to use phy-mode rgmii?
How did you change the rx_delay and tx_delay?
In general, we want the PHY to add the delay, not the MAC. Most boards in Linux do that. But boards using the motocomm PHY have got into a cargo cult copy/paste of using the MAC to add the delays.
Andrew
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Quoted 11 lines · Andrew Lunn
Quoted 9 lines · Junhao Xie
Quoted 1 line · Andrew Lunn
Quoted 1 line
+&gmac1 {
[...]
Quoted 2 lines
This has been discussed a few times. You should be using phy-mode rgmii-id.
After I changed phy-mode to rgmii-id, it seemed to work, but it didn't transmit any data.
Maybe I made a mistake or should I continue to use phy-mode rgmii?
Quoted 5 lines
How did you change the
rx_delayandtx_delay?In general, we want the PHY to add the delay, not the MAC. Most boards in Linux do that. But boards using the motocomm PHY have got into a cargo cult copy/paste of using the MAC to add the delays.
I have tried rgmii-id with tx_delay/rx_delay 0x38/0x15, or 0x0/0x0, or directly removed tx_delay/rx_delay, they all didn't transmit data.
I saw in dwmac-rk.c that when using rgmii-id, the tx_delay/rx_delay properties in dt are ignored?
arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dts also uses YT8521. I added rx-internal-delay-ps and tx-internal-delay-ps to rgmii_phy1 of mdio1 according to the prompts, and it now works well using rgmii-id!
&mdio1 {
rgmii_phy1: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x0>;
rx-internal-delay-ps = <1500>;
tx-internal-delay-ps = <1500>;
};
};&gmac1 {
[...]
phy-mode = "rgmii-id";
[...]
tx_delay = <0x0>;
rx_delay = <0x0>;
status = "okay";
/* Motorcomm YT8521SC WAN port */
};Best regards,
Junhao
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Quoted 14 lines
arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dtsalso uses YT8521. I added rx-internal-delay-ps and tx-internal-delay-ps torgmii_phy1of mdio1 according to the prompts, and it now works well using rgmii-id!&mdio1 { rgmii_phy1: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0x0>; rx-internal-delay-ps = <1500>; tx-internal-delay-ps = <1500>; }; };
Quoted 9 lines
&gmac1 {
[...]
phy-mode = "rgmii-id";
[...]
tx_delay = <0x0>;
rx_delay = <0x0>;
status = "okay";
/* Motorcomm YT8521SC WAN port */
};That looks O.K.
The YT8521SC seems to have issues with delays.jh7100-starfive-visionfive-v1.dts says
/*
* The board uses a Motorcomm YT8521 PHY supporting RGMII-ID, but requires
* manual adjustment of the RX internal delay to work properly. The default
* RX delay provided by the driver (1.95ns) is too high, but applying a 50%
* reduction seems to mitigate the issue.
*
* It is worth noting the adjustment is not necessary on BeagleV Starlight SBC,
* which uses a Microchip PHY. Hence, most likely the Motorcomm PHY is the one
* responsible for the misbehaviour, not the GMAC.
*/
Andrew
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
In reply to Junhao XieHi Junhao,
Quoted 5 lines
I have tried rgmii-id with tx_delay/rx_delay 0x38/0x15, or 0x0/0x0, or directly removed tx_delay/rx_delay, they all didn't transmit data.
I saw in
dwmac-rk.cthat when using rgmii-id, the tx_delay/rx_delay properties in dt are ignored?
When using rgmii-id mode, tx_delay and rx_delay can be removed directly. But you need to test whether the rx/tx-internal-delay-ps is appropriate.
Signature · 7 lines
2.25.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Quoted 11 lines · Chukun Pan
Hi Junhao,
Quoted 5 lines
I have tried rgmii-id with tx_delay/rx_delay 0x38/0x15, or 0x0/0x0, or directly removed tx_delay/rx_delay, they all didn't transmit data.
I saw in
dwmac-rk.cthat when using rgmii-id, the tx_delay/rx_delay properties in dt are ignored?When using rgmii-id mode,
tx_delayandrx_delaycan be removed directly. But you need to test whether the rx/tx-internal-delay-ps is appropriate.
When tx_delay and rx_delay are removed, the driver prints some errors in kmsg. Maybe we need to modify the driver?
Lines 1657 and 1668 of drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:
rk_gmac-dwmac fe010000.ethernet: Can not read property: tx_delay. rk_gmac-dwmac fe010000.ethernet: set tx_delay to 0x30 rk_gmac-dwmac fe010000.ethernet: Can not read property: rx_delay. rk_gmac-dwmac fe010000.ethernet: set rx_delay to 0x10
After testing, rx/tx-internal-delay-ps 1500 seems stable:
$ ping 192.168.0.224 64 bytes from 192.168.0.224: icmp_seq=0 ttl=64 time=1.256 ms 64 bytes from 192.168.0.224: icmp_seq=1 ttl=64 time=1.146 ms ... $ iperf3 -t 60 -c 192.168.0.224 Connecting to host 192.168.0.224, port 5201 [ 4] local 192.168.0.101 port 59565 connected to 192.168.0.224 port 5201 [ ID] Interval Transfer Bandwidth [ 4] 0.00-1.00 sec 114 MBytes 956 Mbits/sec ... [ 4] 59.00-60.00 sec 112 MBytes 942 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth [ 4] 0.00-60.00 sec 6.58 GBytes 942 Mbits/sec sender [ 4] 0.00-60.00 sec 6.58 GBytes 942 Mbits/sec receiver
Best regards,
Junhao
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
In reply to Junhao XieHi Junhao,
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts
Quoted 3 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +0
-0
This should be 'rk3568-photonicat.dts',
e.g. "Radxa ROCK 3A" -> rk3568-rock-3a.dts
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 15
Quoted 3 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +2
-0+ model = "Ariaboard Photonicat RK3568"; + compatible = "ariaboard,photonicat", "rockchip,rk3568";
The official model name does not include 'RK3568'.
Quoted 13 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +11
-0+ firmware { + optee: optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges;
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 77
Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +10
-0+ + ramoops: ramoops@110000 { + compatible = "ramoops"; + reg = <0 0x110000 0 0xf0000>; + console-size = <0x80000>; + ftrace-size = <0x00000>; + pmsg-size = <0x50000>; + record-size = <0x20000>; + }; + };
Maybe these can be moved to rk356x.dtsi?
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 87
Quoted 2 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vcca1v8: regulator-1v8-vcca {
schematics: VCCA_1V8
Quoted 1 line
...
+ vcc3v3_pcie: regulator-3v3-vcc-pcie {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pcie_enable_h>;
schematics: pcie_pwren_hvcc_syson -> vcc3v3_pi6cvcc_syson -> vcc3v3_pcie
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts
Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +2
-0+ regulator-always-on; + regulator-boot-on;
No need.
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 133
Quoted 2 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vcc5v0_sys: regulator-5v0-vcc-sys {
There is no vcc5v0_sys, but vcc_syson.
vcc_syson (5v) -> vcc3v3_sysvcc_sysin (5v) - (mcu) -> vcc_sysonvccin_5v -> vcc_sysin
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 142
Quoted 2 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vcc5v0_usb_host: regulator-5v0-vcc-usb-host {
schematics: VCC5V0_USB30_OTG0 and usb_host_pwren_h It's a little weird, but that's what they're calling it.
Also: VCCIN_5V -> VCC5V0_USB30_OTG0
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 154
Quoted 2 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vcc5v0_usb_modem: regulator-5v0-vcc-usb-modem {
Are you sure this regulator is 5v?
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 186
Quoted 2 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vdda0v9: regulator-0v9-vdda {
schematics: VDDA_0V9
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 221
Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +4
-0+ wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_enable_h>;
schematics: wifi_reg_on_h
Also you need to enable the clk:
clocks = <&pmucru CLK_RTC_32K>; clock-names = "ext_clock"; pinctrl-names = "default"; pinctrl-0 = <&wifi_reg_on_h &clk32k_out1>;
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts
Quoted 7 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +5
-0+ post-power-on-delay-ms = <200>; + reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>; + }; +&pcie30phy { + phy-supply = <&vcc3v3_pcie>;
phy-supply = <&vcc3v3_pi6c>;
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 357
Quoted 6 lines
...
+&pcie3x2 {arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +4
-0+ max-link-speed = <1>; + num-lanes = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie30x2m1_pins>;
These are actually pcie30x1m0_pins.
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 421
Quoted 3 lines
...
+&pmugrf {arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ reboot-mode {
Maybe these can be moved to rk356x.dtsi?
Quoted 2 lines
...
+&sdhci {
Missing mmc-hs200-1_8v;
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 457
Quoted 4 lines
...
+&sdmmc0 {arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +2
-0+ bus-width = <4>; + cap-mmc-highspeed;
Why does sdcard need cap-mmc-highspeed?
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts
Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +2
-0+ max-frequency = <150000000>; + sd-uhs-sdr104;
The sdcard does not have 1.8v io voltage,
so this is wrong, please add no-1-8-v;
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 474
Quoted 5 lines
+&sdmmc1 {
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +4
-0+ bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + disable-wp;
sdio wifi does not need disable-wp.
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 489
Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +2
-0+ qca_wifi: qca-wifi@1 { + compatible = "qcom,ath10k";
ath10k does not need compatible.
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 512
Quoted 7 lines
...
+&uart1 {
...arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +4
-0+ clocks = <&pmucru CLK_RTC_32K>; + enable-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_enable_h>;
schematics: bt_reg_on_h
Missing clock-names = "lpo";
Signature · 7 lines
2.25.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Quoted 9 lines · Chukun Pan
Hi Junhao,
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts
Quoted 3 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +0
-0This should be '
rk3568-photonicat.dts',
e.g. "Radxa ROCK 3A" ->rk3568-rock-3a.dts
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 15
Quoted 3 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +2
-0+ model = "Ariaboard Photonicat RK3568"; + compatible = "ariaboard,photonicat", "rockchip,rk3568";The official model name does not include 'RK3568'.
I will rename it.
Quoted 18 lines
Quoted 18 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +15
-0+ firmware { + optee: optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ramoops: ramoops@110000 { + compatible = "ramoops"; + reg = <0 0x110000 0 0xf0000>;
Quoted 8 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 77
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +6
-0+ console-size = <0x80000>; + ftrace-size = <0x00000>; + pmsg-size = <0x50000>; + record-size = <0x20000>; + }; + };Maybe these can be moved to
rk356x.dtsi?
Yes, I will split them.
Quoted 39 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 87
Quoted 3 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vcca1v8: regulator-1v8-vcca {schematics:
VCCA_1V8Quoted 1 line
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +6
-0+ vcc3v3_pcie: regulator-3v3-vcc-pcie { + compatible = "regulator-fixed"; + enable-active-high; + gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie_enable_h>;schematics:
pcie_pwren_hvcc_syson->vcc3v3_pi6cvcc_syson->vcc3v3_pciearch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts
Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +2
-0+ regulator-always-on; + regulator-boot-on;No need.
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 133
Quoted 2 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vcc5v0_sys: regulator-5v0-vcc-sys {There is no
vcc5v0_sys, butvcc_syson.
vcc_syson(5v) ->vcc3v3_sysvcc_sysin(5v) - (mcu) ->vcc_sysonvccin_5v->vcc_sysinarch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 142
Quoted 2 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vcc5v0_usb_host: regulator-5v0-vcc-usb-host {schematics:
VCC5V0_USB30_OTG0andusb_host_pwren_hIt's a little weird, but that's what they're calling it.
Also:VCCIN_5V->VCC5V0_USB30_OTG0
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 154
Quoted 2 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vcc5v0_usb_modem: regulator-5v0-vcc-usb-modem {Are you sure this regulator is 5v?
It should actually be 3.3V, I will fix it and rename to vcc3v3_usb_modem
Quoted 23 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 186
Quoted 3 lines
...
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vdda0v9: regulator-0v9-vdda {schematics:
VDDA_0V9arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 221
Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +4
-0+ wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_enable_h>;schematics:
wifi_reg_on_h
Also you need to enable the clk:clocks = <&pmucru CLK_RTC_32K>; clock-names = "ext_clock"; pinctrl-names = "default"; pinctrl-0 = <&wifi_reg_on_h &clk32k_out1>;Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +3
-0+ post-power-on-delay-ms = <200>; + reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>; + };
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 349
Quoted 3 lines
...
+&pcie30phy {arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ phy-supply = <&vcc3v3_pcie>;phy-supply = <
&vcc3v3_pi6c>;
I will change it to vcc3v3_pi6c.
But there seems to be a warning here, maybe phy-supply is missing in rockchip,pcie3-phy.yaml?
/tmp/build/arch/arm64/boot/dts/rockchip/rk3568-photonicat.dtb: phy@fe8c0000: 'phy-supply' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/phy/rockchip,pcie3-phy.yaml#
Quoted 9 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 357
Quoted 7 lines
...
+&pcie3x2 {arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +4
-0+ max-link-speed = <1>; + num-lanes = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie30x2m1_pins>;These are actually
pcie30x1m0_pins.
pcie30x1m0_pins seems to conflict with sdmmc0, I changed it to pcie30x1m1_pins
Quoted 7 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 421
Quoted 4 lines
...
+&pmugrf {arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ reboot-mode {Maybe these can be moved to
rk356x.dtsi?
Quoted 5 lines
Quoted 2 lines
...
+&sdhci {Missing mmc-hs200-1_8v;
[...]>
Quoted 1 line
ath10k does not need compatible.
I will remove them
Quoted 11 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 512
Quoted 8 lines
...
+&uart1 {
...arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +4
-0+ clocks = <&pmucru CLK_RTC_32K>; + enable-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_enable_h>;schematics:
bt_reg_on_h
Missing clock-names = "lpo";
When I add clocks-name, check_dtbs gives me a warning
/tmp/build/arch/arm64/boot/dts/rockchip/rk3568-photonicat.dtb: bluetooth: 'clock-names' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
Maybe clock-name is missing in qualcomm-bluetooth.yaml?
Quoted 1 line
Thanks for your review, I will fix all problems in PATCH v2.
Best regards,
Junhao
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Hi Junhao,
Quoted 7 lines
Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 154
Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vcc5v0_usb_modem: regulator-5v0-vcc-usb-modem {Are you sure this regulator is 5v?
It should actually be 3.3V, I will fix it and rename to
vcc3v3_usb_modem
I prefer vcc3v3_rf or vcc3v3_ngff,
this is closer to the schematics.
Quoted 7 lines
Quoted 4 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pcie30x2m1_pins>;These are actually
pcie30x1m0_pins.
pcie30x1m0_pinsseems to conflict with sdmmc0,
I changed it topcie30x1m1_pins
This is obviously incorrect. I didn't notice that
your pinctrl for sdmmc0 is wrong.
(Because the cd pin are different)
The sdmmc0 node should be like this:
&sdmmc0 {
bus-width = <4>;
cap-sd-highspeed;
cd-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_LOW>;
disable-wp;
no-1-8-v;
pinctrl-names = "default";
pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd>;
vmmc-supply = <&vcc3v3_sd>;
vqmmc-supply = <&vcc_3v3>;
status = "okay";
};Signature · 7 lines
2.25.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Re: [PATCH 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Quoted 7 lines · Chukun Pan
Hi Junhao,
Quoted 5 lines
Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts line 154
Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts new file +1
-0+ vcc5v0_usb_modem: regulator-5v0-vcc-usb-modem {Are you sure this regulator is 5v?
Quoted 6 lines
Quoted 2 lines
It should actually be 3.3V, I will fix it and rename to
vcc3v3_usb_modemI prefer
vcc3v3_rforvcc3v3_ngff,
this is closer to the schematics.
Yes, I changed it to vcc3v3_rf, this is the name used in the schematics.
Quoted 11 lines
Quoted 7 lines
Quoted 4 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pcie30x2m1_pins>;These are actually
pcie30x1m0_pins.
pcie30x1m0_pinsseems to conflict with sdmmc0,
I changed it topcie30x1m1_pinsThis is obviously incorrect. I didn't notice that
your pinctrl for sdmmc0 is wrong.
(Because the cd pin are different)
After fixing sdmmc0, using pcie30x1m0_pins can work normally.
Best regards,
Junhao
Rob Herring (Arm)
maintainerQuoted 27 lines · Junhao Xie
Add dts for Ariaboard Photonicat RK3568.
This series bring support for:
* Debug UART
* SDIO QCA9377 WiFi and Bluetooth
* M.2 E-Key PCIe WiFi and Bluetooth
* M.2 B-Key USB Modem WWAN
* Ethernet WAN Port
* MicroSD Card slot
* eMMC
* HDMI Output
* Mali GPU
* USB Type-AJunhao Xie (3):
dt-bindings: vendor-prefixes: Add Shanghai Novotech Ariaboard
dt-bindings: arm: rockchip: Add Ariaboard Photonicat RK3568
arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568.../devicetree/bindings/arm/rockchip.yaml | 5 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/rockchip/Makefile | 1 + .../rockchip/rk3568-ariaboard-photonicat.dts | 598 ++++++++++++++++++ 4 files changed, 606 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dts
Quoted 5 lines
--
2.46.0
My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y rockchip/rk3568-ariaboard-photonicat.dtb' for [email protected]:
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dtb: phy@fe8c0000: 'phy-supply' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/phy/rockchip,pcie3-phy.yaml#arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dtb: rfkill-modem: 'reset-gpios' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/net/rfkill-gpio.yaml#
Quoted 2 lines · Junhao Xie
Quoted 2 lines
Add dts for Ariaboard Photonicat RK3568.
[...]
Quoted 12 lines
My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
Quoted 7 lines
pip3 install dtschema --upgradeNew warnings running 'make CHECK_DTBS=y rockchip/rk3568-ariaboard-photonicat.dtb' for [email protected]:
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dtb: phy@fe8c0000: 'phy-supply' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/phy/rockchip,pcie3-phy.yaml#
I will remove it in PATCH v2
Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3568-ariaboard-photonicat.dtb: rfkill-modem: 'reset-gpios' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/net/rfkill-gpio.yaml#
The modem in Photonicat must have a reset signal to work properly.
I can find reset-gpios in net/rfkill/rfkill-gpio.c, but it is not in the schema. Maybe reset-gpios is missing in rfkill-gpio.yaml? or this property cannot be used in dts?
Quoted 1 line
Thanks for your reply, I will fix them in PATCH v2.
Best regards,
Junhao