summaryrefslogtreecommitdiffstats
path: root/arch/arm/dts/mt7622-rfb.dts
diff options
context:
space:
mode:
authorSkyLake.Huang <skylake.huang@mediatek.com>2021-01-20 15:31:34 +0800
committerTom Rini <trini@konsulko.com>2021-01-29 10:35:14 -0500
commit3f1250a9e25f6c4a10ed7689eee2af1f58275a38 (patch)
tree1493bd6dff012da149508897e418664dc62f8000 /arch/arm/dts/mt7622-rfb.dts
parent7a49d61742c2387e9d5fbb1e1e707ef1e0c624b5 (diff)
downloadu-boot-3f1250a9e25f6c4a10ed7689eee2af1f58275a38.tar.gz
u-boot-3f1250a9e25f6c4a10ed7689eee2af1f58275a38.tar.xz
u-boot-3f1250a9e25f6c4a10ed7689eee2af1f58275a38.zip
arm: dts: enable MTK SPI NOR controller driver
1. Enable MTK SPI NOR controller driver on mt7622 & mt7629. 2. Enable quad mode for read and single mode for write. Signed-off-by: SkyLake.Huang <skylake.huang@mediatek.com>
Diffstat (limited to 'arch/arm/dts/mt7622-rfb.dts')
-rw-r--r--arch/arm/dts/mt7622-rfb.dts16
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/arm/dts/mt7622-rfb.dts b/arch/arm/dts/mt7622-rfb.dts
index ef7d0f0270..c2f1ad2011 100644
--- a/arch/arm/dts/mt7622-rfb.dts
+++ b/arch/arm/dts/mt7622-rfb.dts
@@ -19,7 +19,7 @@
};
aliases {
- spi0 = &snfi;
+ spi0 = &snor;
};
memory@40000000 {
@@ -165,11 +165,25 @@
pinctrl-names = "default", "snfi";
pinctrl-0 = <&snor_pins>;
pinctrl-1 = <&snfi_pins>;
+ status = "disabled";
+
+ spi-flash@0{
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ u-boot,dm-pre-reloc;
+ };
+};
+
+&snor {
+ pinctrl-names = "default";
+ pinctrl-0 = <&snor_pins>;
status = "okay";
spi-flash@0{
compatible = "jedec,spi-nor";
reg = <0>;
+ spi-tx-bus-width = <1>;
+ spi-rx-bus-width = <4>;
u-boot,dm-pre-reloc;
};
};