]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: allwinner: t527: orangepi-4a: Enable SPI-NOR flash
authorChen-Yu Tsai <wens@kernel.org>
Sun, 21 Dec 2025 11:05:11 +0000 (19:05 +0800)
committerChen-Yu Tsai <wens@kernel.org>
Tue, 23 Dec 2025 15:47:16 +0000 (23:47 +0800)
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>
arch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts

index 9e6b21cf293ee79db6bed39188c6f52397fa9560..055be86e5fae00519ac64b76a1aeeb1c42c92d15 100644 (file)
        assigned-clock-rates = <32768>;
 };
 
+&spi0  {
+       pinctrl-names = "default";
+       pinctrl-0 = <&spi0_pc_pins>, <&spi0_cs0_pc_pin>;
+       status = "okay";
+
+       flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <20000000>;
+               vcc-supply = <&reg_cldo1>;
+       };
+};
+
 &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_pb_pins>;