Skip to content

Commit eddf730

Browse files
Stefan Nagymmind
authored andcommitted
arm64: dts: rockchip: Enable internal SPI flash for ROCK Pi 4A/B/C
The ROCK Pi 4A, ROCK Pi 4B and ROCK Pi 4C boards contain a nor-flash chip connected to spi1. Enable spi1 and add the device node. This patch has been tested on ROCK Pi 4A. Signed-off-by: Stefan Nagy <stefan.nagy@ixypsilon.net> Link: https://lore.kernel.org/r/20230811201118.15066-1-stefan.nagy@ixypsilon.net Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 893c177 commit eddf730

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@
1212
model = "Radxa ROCK Pi 4A";
1313
compatible = "radxa,rockpi4a", "radxa,rockpi4", "rockchip,rk3399";
1414
};
15+
16+
&spi1 {
17+
status = "okay";
18+
19+
flash@0 {
20+
compatible = "jedec,spi-nor";
21+
reg = <0>;
22+
spi-max-frequency = <10000000>;
23+
};
24+
};

arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@
3131
};
3232
};
3333

34+
&spi1 {
35+
status = "okay";
36+
37+
flash@0 {
38+
compatible = "jedec,spi-nor";
39+
reg = <0>;
40+
spi-max-frequency = <10000000>;
41+
};
42+
};
43+
3444
&uart0 {
3545
status = "okay";
3646

arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@
4343
hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
4444
};
4545

46+
&spi1 {
47+
status = "okay";
48+
49+
flash@0 {
50+
compatible = "jedec,spi-nor";
51+
reg = <0>;
52+
spi-max-frequency = <10000000>;
53+
};
54+
};
55+
4656
&uart0 {
4757
status = "okay";
4858

0 commit comments

Comments
 (0)