summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGuochun Mao <guochun.mao@mediatek.com>2017-01-25 04:38:35 +0100
committerMatthias Brugger <matthias.bgg@gmail.com>2017-05-15 10:47:09 +0200
commitdf3074f06ffc038c3f24dd5ed7d366f3a25240b2 (patch)
tree12e1dd87fd371bb7e2c36b4d59282560b0f73430 /arch
parentARM: dts: mt2701: Add mtk-cirq node for mt2701 (diff)
downloadlinux-df3074f06ffc038c3f24dd5ed7d366f3a25240b2.tar.xz
linux-df3074f06ffc038c3f24dd5ed7d366f3a25240b2.zip
arm: dts: mt2701: add nor flash node
Add Mediatek nor flash node. Signed-off-by: Guochun Mao <guochun.mao@mediatek.com> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/mt2701-evb.dts25
-rw-r--r--arch/arm/boot/dts/mt2701.dtsi12
2 files changed, 37 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts
index a4837985b7a7..0474fd2d602b 100644
--- a/arch/arm/boot/dts/mt2701-evb.dts
+++ b/arch/arm/boot/dts/mt2701-evb.dts
@@ -78,6 +78,31 @@
status = "disabled";
};
+&nor_flash {
+ pinctrl-names = "default";
+ pinctrl-0 = <&nor_pins_default>;
+ status = "okay";
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ };
+};
+
+&pio {
+ nor_pins_default: nor {
+ pins1 {
+ pinmux = <MT2701_PIN_240_EXT_XCS__FUNC_EXT_XCS>,
+ <MT2701_PIN_241_EXT_SCK__FUNC_EXT_SCK>,
+ <MT2701_PIN_239_EXT_SDIO0__FUNC_EXT_SDIO0>,
+ <MT2701_PIN_238_EXT_SDIO1__FUNC_EXT_SDIO1>,
+ <MT2701_PIN_237_EXT_SDIO2__FUNC_EXT_SDIO2>,
+ <MT2701_PIN_236_EXT_SDIO3__FUNC_EXT_SDIO3>;
+ drive-strength = <MTK_DRIVE_4mA>;
+ bias-pull-up;
+ };
+ };
+};
+
&uart0 {
status = "okay";
};
diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi
index 5daacfe05ea6..18a851b266d4 100644
--- a/arch/arm/boot/dts/mt2701.dtsi
+++ b/arch/arm/boot/dts/mt2701.dtsi
@@ -344,6 +344,18 @@
status = "disabled";
};
+ nor_flash: spi@11014000 {
+ compatible = "mediatek,mt2701-nor",
+ "mediatek,mt8173-nor";
+ reg = <0 0x11014000 0 0xe0>;
+ clocks = <&pericfg CLK_PERI_FLASH>,
+ <&topckgen CLK_TOP_FLASH_SEL>;
+ clock-names = "spi", "sf";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
spi1: spi@11016000 {
compatible = "mediatek,mt2701-spi";
#address-cells = <1>;