Skip to content

Commit bd14ba1

Browse files
committed
arm64: dts: allwinner: t527: orangepi-4a: Enable SPI-NOR flash
The Orangepi 4A has a SPI-NOR flash connected to spi0 on the PC pins. The HOLD and WP pins are not connected, and are instead pulled up by the supply rail. Enable spi0 and add a device node for the SPI-NOR flash. Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://patch.msgid.link/20251221110513.1850535-5-wens@kernel.org Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
1 parent 1bec3bd commit bd14ba1

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

arch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,21 @@
400400
assigned-clock-rates = <32768>;
401401
};
402402

403+
&spi0 {
404+
pinctrl-names = "default";
405+
pinctrl-0 = <&spi0_pc_pins>, <&spi0_cs0_pc_pin>;
406+
status = "okay";
407+
408+
flash@0 {
409+
#address-cells = <1>;
410+
#size-cells = <1>;
411+
compatible = "jedec,spi-nor";
412+
reg = <0>;
413+
spi-max-frequency = <20000000>;
414+
vcc-supply = <&reg_cldo1>;
415+
};
416+
};
417+
403418
&uart0 {
404419
pinctrl-names = "default";
405420
pinctrl-0 = <&uart0_pb_pins>;

0 commit comments

Comments
 (0)