Skip to contentSkip to conversation

Add Support for Orange Pi 5

PATCH Applied Muhammed Efe Cetin 2 participants 5 messages Oct 9, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v4 cover Add Support for Orange Pi 5

Hi,

These series add initial support for Orange Pi 5 and SFC node for RK3588S.

Changes in v4:
* Update SFC patch commit description.
* Add Reviewed-by tags from Dhruva Gole <[email protected]>.

Changes in v3:
* Remove cap-mmc-highspeed property from sdmmc.
* Make vcc_1v1_nldo_s3 an alias of dcdc-reg6 and add regulator-max-microvolt, regulator-min-microvolt properties.
* Make press-threshold-microvolt 1800 for recovery button.
* Remove assigned-clocks from sfc node.
* Drop some properties from sfc node in orangepi5 devicetree.
* Move snps reset properties to rgmii_phy1.

Changes in v2:
* Fix CHECK_DTBS warnings and add dtb to makefile.
* Remove assigned-clock-rates from sfc node and fix wrong interrupts property.
* Remove non-existent adc buttons and add button-recovery instead.
* Remove backlight_1, backlight, vcc12v_dcin, vcc5v0_usbdcin, vcc5v0_usb, combophy_avdd0v85, combophy_avdd1v8, sata0, u2phy0, u2phy0_otg nodes.
* Rename vcc3v3_pcie2x1l2 to vcc3v3_pcie20, vbus5v0_typec to vbus_typec.
* Remove regulator-always-on property from vcc_3v3_sd_s0 and vcc3v3_pcie20.

Muhammed Efe Cetin (3):
dt-bindings: arm: rockchip: Add Orange Pi 5 board
arm64: dts: rockchip: Add sfc node to rk3588s
arm64: dts: rockchip: Add Orange Pi 5

 .../devicetree/bindings/arm/rockchip.yaml     |   5 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3588s-orangepi-5.dts  | 673 ++++++++++++++++++
 arch/arm64/boot/dts/rockchip/rk3588s.dtsi     |  11 +
 4 files changed, 690 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts
Signature · 1 line
2.42.0
#1 lore raw

PATCH v4 1/3 dt-bindings: arm: rockchip: Add Orange Pi 5 board

Add Orange Pi 5 SBC from Xunlong.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
index ca5389862887..b9649e27bc82 100644
@@ -877,6 +877,11 @@ properties:
               - xunlong,orangepi-r1-plus-lts
           - const: rockchip,rk3328
 
+      - description: Xunlong Orange Pi 5
+        items:
+          - const: xunlong,orangepi-5
+          - const: rockchip,rk3588s
+
       - description: Zkmagic A95X Z2
         items:
           - const: zkmagic,a95x-z2
Signature · 1 line
2.42.0
#2 lore raw

PATCH v4 2/3 arm64: dts: rockchip: Add sfc node to rk3588s

In reply to Muhammed Efe Cetin

Add SFC (SPI Flash) to RK3588S SOC.

---
 arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/rockchip/rk3588s.dtsi +11 -0
index 5544f66c6ff4..1a820a5a51eb 100644
@@ -1424,6 +1424,17 @@ sata-port@0 {
 		};
 	};
 
+	sfc: spi@fe2b0000 {
+		compatible = "rockchip,sfc";
+		reg = <0x0 0xfe2b0000 0x0 0x4000>;
+		interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH 0>;
+		clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
+		clock-names = "clk_sfc", "hclk_sfc";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
 	sdmmc: mmc@fe2c0000 {
 		compatible = "rockchip,rk3588-dw-mshc", "rockchip,rk3288-dw-mshc";
 		reg = <0x0 0xfe2c0000 0x0 0x4000>;
Signature · 1 line
2.42.0
#3 lore raw

PATCH v4 3/3 arm64: dts: rockchip: Add Orange Pi 5

In reply to Muhammed Efe Cetin

Add initial support for OPi5 that includes support for USB2, PCIe2, Sata, Sdmmc, SPI Flash, PMIC.

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3588s-orangepi-5.dts  | 673 ++++++++++++++++++
 2 files changed, 674 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index e7728007fd1b..c29386106b7a 100644
@@ -105,3 +105,4 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-rock-5b.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-indiedroid-nova.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-khadas-edge2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-rock-5a.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-orangepi-5.dtb
arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts new file +673 -0

673 lines not on this page · raw message

Signature · 1 line
2.42.0
maintainer Applied
#4 lore raw
In reply to Muhammed Efe Cetin
Quoted 14 lines · Muhammed Efe Cetin

These series add initial support for Orange Pi 5 and SFC node for RK3588S.

Changes in v4:
* Update SFC patch commit description.
* Add Reviewed-by tags from Dhruva Gole <[email protected]>.

Changes in v3:
* Remove cap-mmc-highspeed property from sdmmc.
* Make vcc_1v1_nldo_s3 an alias of dcdc-reg6 and add regulator-max-microvolt, regulator-min-microvolt properties.
* Make press-threshold-microvolt 1800 for recovery button.
* Remove assigned-clocks from sfc node.
* Drop some properties from sfc node in orangepi5 devicetree.
* Move snps reset properties to rgmii_phy1.

Quoted 1 line

[...]

Applied, thanks!

[1/3] dt-bindings: arm: rockchip: Add Orange Pi 5 board

      commit: ce9d927720d642e20296988b6c1c0f877209be8d
[2/3] arm64: dts: rockchip: Add sfc node to rk3588s
      commit: 3eaf2abd11aa7f3b2fb04d60c64b2c756fe030eb
[3/3] arm64: dts: rockchip: Add Orange Pi 5
      commit: f20a420e21644a0f79e0f8108a50b9836306cf23

I've dropped the vendor mem-supply stuff and resorted some properties and nodes.

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>