OSDN Git Service

arm64: dts: meson-sm1-odroid-hc4: add spifc node to ODROID-HC4
authorChristian Hewitt <christianshewitt@gmail.com>
Mon, 7 Jun 2021 06:54:34 +0000 (08:54 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 14 Jun 2021 07:57:45 +0000 (09:57 +0200)
Add a node for the XT25F128B SPI-NOR flash to make it accessible
from Linux.

Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20210607065435.577334-7-narmstrong@baylibre.com
arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts

index fdad6b9..f3f9532 100644 (file)
        status = "disabled";
 };
 
+&spifc {
+       status = "okay";
+       pinctrl-0 = <&nor_pins>;
+       pinctrl-names = "default";
+
+       spi-flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <104000000>;
+       };
+};
+
 &usb {
        phys = <&usb2_phy1>;
        phy-names = "usb2-phy1";