Skip to content

Commit 9434d86

Browse files
rpardiniigorpecovnik
authored andcommitted
arm64: dts: rockchip: add Radxa E24C
- Apparently there's versions with either eMMC or SPI NOR and they share a pin - From https://github.com/radxa/kernel/blob/linux-6.1-stan-rkr5.1/arch/arm64/boot/dts/rockchip/rk3528-radxa-e24c.dts @8582469f117fdfd5d1ab88fa7e4e15c3b714bf24 - From https://github.com/radxa/kernel/blob/linux-6.1-stan-rkr5.1/arch/arm64/boot/dts/rockchip/rk3528-radxa-e24c-spi.dts @8582469f117fdfd5d1ab88fa7e4e15c3b714bf24
1 parent 1bbe4f2 commit 9434d86

File tree

3 files changed

+934
-0
lines changed

3 files changed

+934
-0
lines changed

arch/arm64/boot/dts/rockchip/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3528-hinlink-ht2.dtb
113113
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-h96max-v56.dtb
114114
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3528-mangopi-m28k.dtb
115115
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3528-radxa-e20c.dtb
116+
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3528-radxa-e24c.dtb
117+
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3528-radxa-e24c-spi.dtb
116118
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3528-rock-2a.dtb
117119
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3528-rock-2f.dtb
118120
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3562-dictpen-test3-v20.dtb
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
4+
* Copyright (c) 2024 Radxa Computer (Shenzhen) Co., Ltd.
5+
*
6+
*/
7+
8+
// From https://github.com/radxa/kernel/blob/linux-6.1-stan-rkr5.1/arch/arm64/boot/dts/rockchip/rk3528-radxa-e24c-spi.dts @8582469f117fdfd5d1ab88fa7e4e15c3b714bf24
9+
10+
/dts-v1/;
11+
12+
#include "rk3528-radxa-e24c.dts"
13+
14+
/ {
15+
model = "Radxa E24C SPI";
16+
compatible = "radxa,e24c-spi", "radxa,e24c", "radxa,rock-2", "rockchip,rk3528a";
17+
};
18+
19+
&sfc {
20+
status = "okay";
21+
max-freq = <50000000>;
22+
#address-cells = <1>;
23+
#size-cells = <0>;
24+
pinctrl-names = "default";
25+
pinctrl-0 = <&fspi_pins &fspi_csn0>;
26+
num-cs = <2>;
27+
28+
spi_flash: spi-flash@0 {
29+
#address-cells = <1>;
30+
#size-cells = <0>;
31+
compatible = "jedec,spi-nor";
32+
reg = <0x0>;
33+
spi-max-frequency = <50000000>;
34+
spi-tx-bus-width = <1>;
35+
spi-rx-bus-width = <4>;
36+
status = "okay";
37+
38+
partitions {
39+
compatible = "fixed-partitions";
40+
#address-cells = <1>;
41+
#size-cells = <1>;
42+
43+
loader@0 {
44+
label = "loader";
45+
reg = <0x0 0x1000000>;
46+
};
47+
};
48+
};
49+
};
50+
51+
&sdhci {
52+
status = "disabled";
53+
};

0 commit comments

Comments
 (0)