Add support for Ariaboard Photonicat RK3568
Subsystems (2)
v3 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
Changed from v1:
- move some general nodes (firmware, ramoops, reboot-mode) to rk356x.dtsi
- gmac1 change to phy-mode rgmii-id
- corrected some regulator to be closer to schematics
- rename rk3568-ariaboard-photonicat.dts to rk3568-photonicat.dts
https://lore.kernel.org/lkml/[email protected]/
Changed from v2:
- remove unused headers
- corrected some regulator to be closer to schematics
- remove usb_host1_ohci, usb_host1_ehci, usb2phy1_host that have no connection
https://lore.kernel.org/lkml/[email protected]/
Junhao Xie (3):
dt-bindings: vendor-prefixes: Add prefix for 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 + .../boot/dts/rockchip/rk3568-photonicat.dts | 586 ++++++++++++++++++ 4 files changed, 594 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts
Signature · 1 line
2.46.0
PATCH v3 1/3 dt-bindings: vendor-prefixes: Add prefix for Ariaboard
Add an entry for Ariaboard from Shanghai Novotech
Ariaboard represents a product line from Shanghai Novotech Co., Ltd.
--- 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. (Ariaboard) "^aries,.*": description: Aries Embedded GmbH "^arm,.*":
Signature · 1 line
2.46.0
PATCH v3 2/3 dt-bindings: arm: rockchip: Add Ariaboard Photonicat RK3568
In reply to Junhao XieThis documents Ariaboard Photonicat which is a router based on 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 + items: + - const: ariaboard,photonicat + - const: rockchip,rk3568 + - description: ArmSoM Sige7 board items: - const: armsom,sige7
Signature · 1 line
2.46.0
PATCH v3 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 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 + .../boot/dts/rockchip/rk3568-photonicat.dts | 586 ++++++++++++++++++ 2 files changed, 587 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
@@ -130,6 +130,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-jaguar.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-nanopc-t6.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-ok3588-c.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-orangepi-5-plus.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-photonicat.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-quartzpro64.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-rock-5-itx.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-rock-5b.dtb
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts new file +586 -0
586 lines not on this page · raw message
Signature · 1 line
2.46.0
Re: [PATCH v3 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Hi Junhao,
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts line 60
Quoted 12 lines
...
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts new file +7
-0+ rfkill-modem { + compatible = "rfkill-gpio"; + label = "M.2 USB Modem"; + radio-type = "wwan"; + reset-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>; + shutdown-gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>; + };
gpio0 RK_PB0 conflicts with xin32k, please add:
&xin32k {
pinctrl-names = "default";
pinctrl-0 = <&clk32k_out1>;
};arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts line 191
Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts new file +4
-0+ vccin_5v: regulator-5v0-vcc-in { + vcc_sysin: regulator-5v0-vcc-sysin { + vcc_syson: regulator-5v0-vcc-syson { + vcc5v0_usb30_otg0: regulator-5v0-vcc-usb-host {
obviously (
Signature · 7 lines
2.25.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Re: [PATCH v3 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Quoted 17 lines · Chukun Pan
Hi Junhao,
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts line 60
Quoted 12 lines
...
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts new file +7
-0+ rfkill-modem { + compatible = "rfkill-gpio"; + label = "M.2 USB Modem"; + radio-type = "wwan"; + reset-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>; + shutdown-gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>; + };gpio0
RK_PB0conflicts with xin32k, please add:
Quoted 4 lines
&xin32k {
pinctrl-names = "default";
pinctrl-0 = <&clk32k_out1>;
};I added it and it currently works fine
Quoted 7 lines
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts line 191
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts new file +4
-0+ vccin_5v: regulator-5v0-vcc-in { + vcc_sysin: regulator-5v0-vcc-sysin { + vcc_syson: regulator-5v0-vcc-syson { + vcc5v0_usb30_otg0: regulator-5v0-vcc-usb-host {obviously (
I seem to have misunderstood the rules in dt-bindings before. The following looks better:
vcc5v0_usb30_otg0: regulator-vcc5v0-usb30-otg0 {vccin_5v: regulator-vccin-5v {vcc_sysin: regulator-vcc-sysin {vcc_syson: regulator-vcc-syson {
Quoted 1 line
Thanks for your review, I will fix all problems in next version!
Best regards,
Junhao
Re: [PATCH v3 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Quoted 2 lines
I seem to have misunderstood the rules in dt-bindings before. The following looks better:
Please also update other regulators to unify the naming.
Thanks,
Chukun
Signature · 7 lines
2.25.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Re: [PATCH v3 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568
Quoted 4 lines · Chukun Pan
Quoted 2 lines
I seem to have misunderstood the rules in dt-bindings before. The following looks better:
Please also update other regulators to unify the naming.
Thanks, I will update in PATCH v5.
Best regards,
Junhao
Rob Herring (Arm)
maintainerQuoted 39 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-AChanged from v1:
- move some general nodes (firmware, ramoops, reboot-mode) tork356x.dtsi
- gmac1 change to phy-mode rgmii-id
- corrected some regulator to be closer to schematics
- renamerk3568-ariaboard-photonicat.dtstork3568-photonicat.dts
https://lore.kernel.org/lkml/[email protected]/Changed from v2:
- remove unused headers
- corrected some regulator to be closer to schematics
- removeusb_host1_ohci,usb_host1_ehci,usb2phy1_hostthat have no connection
https://lore.kernel.org/lkml/[email protected]/Junhao Xie (3):
dt-bindings: vendor-prefixes: Add prefix for 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 + .../boot/dts/rockchip/rk3568-photonicat.dts | 586 ++++++++++++++++++ 4 files changed, 594 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-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-photonicat.dtb' for [email protected]:
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#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#arch/arm64/boot/dts/rockchip/rk3568-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#