]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: rockchip: Add rk3588-orangepi-5b device tree
authorCenk Uluisik <cenk.uluisik@googlemail.com>
Thu, 24 Oct 2024 09:50:22 +0000 (09:50 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 25 Oct 2024 06:48:01 +0000 (08:48 +0200)
Implements a slightly modified rk3588s-orangepi-5b.dts from the vendor.
Unfortunately the &wireless_bluetooth and &wireless_wlan are not
implemented yet.

Therefore add the sdhci alias to be mmc0 on the rk3588s-orangepi-5b.dts.

How is the Orange Pi 5B unique?
  - the Orange Pi 5b uses combphy0_ps for the WiFi.
  - the Orange Pi 5B has GPIO0_C5 hooked to BT_WAKE_HOST.
  - builtin eMMC storage
  - ap6275p Wifi module (like the Orange Pi 5 Plus)
  - builtin BlueTooth module

Signed-off-by: Cenk Uluisik <cenk.uluisik@googlemail.com>
Link: https://lore.kernel.org/r/20241024095038.42079-3-cenk.uluisik@googlemail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/Makefile
arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi
arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5b.dts [new file with mode: 0644]

index e641033d23d1a54991d6639d471f9183d21164b2..2e485553ce8b2e75ae2f5135ca543a5627f40ed7 100644 (file)
@@ -160,3 +160,4 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-nanopi-r6c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-rock-5a.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-odroid-m2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-orangepi-5.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-orangepi-5b.dtb
index 5ef0ccfcf5989c7ae1e4109d29aadece7434f72e..0573b8f2d31825078d341a2ebcafc5d3d4937325 100644 (file)
        status = "okay";
 };
 
+&sdhci {
+       bus-width = <8>;
+       no-sdio;
+       no-sd;
+       non-removable;
+       max-frequency = <200000000>;
+       mmc-hs400-1_8v;
+       mmc-hs400-enhanced-strobe;
+       status = "disabled";
+};
+
 &sdmmc {
        bus-width = <4>;
        cap-sd-highspeed;
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5b.dts
new file mode 100644 (file)
index 0000000..d21ec32
--- /dev/null
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+/dts-v1/;
+
+#include "rk3588s-orangepi-5.dtsi"
+
+/ {
+       model = "Xunlong Orange Pi 5B";
+       compatible = "xunlong,orangepi-5b", "rockchip,rk3588s";
+
+       aliases {
+               mmc0 = &sdhci;
+               mmc1 = &sdmmc;
+       };
+};
+
+&sdhci {
+       status = "okay";
+};