arm64: dts: rockchip: Add SFC to Khadas Edge 2
authorMuhammed Efe Cetin <efectn@protonmail.com>
Mon, 19 Feb 2024 22:34:23 +0000 (01:34 +0300)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 10 Apr 2024 07:47:30 +0000 (09:47 +0200)
This commit adds SPI flash support for Khadas Edge 2.

Signed-off-by: Muhammed Efe Cetin <efectn@protonmail.com>
Link: https://lore.kernel.org/r/00942603f7e61ecb2a0067bebf6795dab3571613.1708381247.git.efectn@protonmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts

index 4600ed2..1bd6cb9 100644 (file)
        status = "okay";
 };
 
+&sfc {
+       pinctrl-names = "default";
+       pinctrl-0 = <&fspim2_pins>;
+       status = "okay";
+
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0x0>;
+               spi-max-frequency = <100000000>;
+               spi-rx-bus-width = <4>;
+               spi-tx-bus-width = <1>;
+       };
+};
+
 &spi2 {
        assigned-clocks = <&cru CLK_SPI2>;
        assigned-clock-rates = <200000000>;