]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm: dts: mt2701: add nor flash node
authorGuochun Mao <guochun.mao@mediatek.com>
Wed, 25 Jan 2017 03:38:35 +0000 (11:38 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 15 May 2017 08:47:09 +0000 (10:47 +0200)
Add Mediatek nor flash node.

Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/boot/dts/mt2701-evb.dts
arch/arm/boot/dts/mt2701.dtsi

index a4837985b7a7dc399be9ce3729aa15e4caccbc76..0474fd2d602b1ca68871f99deb9fd1433bcc4c57 100644 (file)
        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";
 };
index 5daacfe05ea6cec1a88aa810426a0619cf0332ff..18a851b266d432ee639f42d0ef48f95c5393f1e9 100644 (file)
                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>;