arm64: dts: mt7622: add flash related device nodes
authorSean Wang <sean.wang@mediatek.com>
Sat, 17 Feb 2018 19:54:44 +0000 (03:54 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Sun, 11 Mar 2018 19:31:11 +0000 (20:31 +0100)
add nodes for NOR flash, parallel Nand flash with error correction code
support.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Cc: RogerCC Lin <rogercc.lin@mediatek.com>
Cc: Guochun Mao <guochun.mao@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
arch/arm64/boot/dts/mediatek/mt7622.dtsi

index ba6a79caca21b88f242e40ff7818b0482988bc4f..48c5ba472721faebfc5acb0d36b375946f4f2edb 100644 (file)
        };
 };
 
+&bch {
+       status = "disabled";
+};
+
 &btif {
        status = "okay";
 };
        status = "okay";
 };
 
+&nandc {
+       pinctrl-names = "default";
+       pinctrl-0 = <&parallel_nand_pins>;
+       status = "disabled";
+};
+
+&nor_flash {
+       pinctrl-names = "default";
+       pinctrl-0 = <&spi_nor_pins>;
+       status = "disabled";
+
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+       };
+};
+
 &pwm {
        pinctrl-names = "default";
        pinctrl-0 = <&pwm7_pins>;
index 755b1c57a07441ff7c1093cc1278d1c36ca4e2e0..e358eeb19fd36741b2d4b883920c6672e23a817f 100644 (file)
                status = "disabled";
        };
 
+       nandc: nfi@1100d000 {
+               compatible = "mediatek,mt7622-nfc";
+               reg = <0 0x1100D000 0 0x1000>;
+               interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
+               clocks = <&pericfg CLK_PERI_NFI_PD>,
+                        <&pericfg CLK_PERI_SNFI_PD>;
+               clock-names = "nfi_clk", "pad_clk";
+               ecc-engine = <&bch>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               status = "disabled";
+       };
+
+       bch: ecc@1100e000 {
+               compatible = "mediatek,mt7622-ecc";
+               reg = <0 0x1100e000 0 0x1000>;
+               interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>;
+               clocks = <&pericfg CLK_PERI_NFIECC_PD>;
+               clock-names = "nfiecc_clk";
+               status = "disabled";
+       };
+
+       nor_flash: spi@11014000 {
+               compatible = "mediatek,mt7622-nor",
+                            "mediatek,mt8173-nor";
+               reg = <0 0x11014000 0 0xe0>;
+               clocks = <&pericfg CLK_PERI_FLASH_PD>,
+                        <&topckgen CLK_TOP_FLASH_SEL>;
+               clock-names = "spi", "sf";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               status = "disabled";
+       };
+
        spi1: spi@11016000 {
                compatible = "mediatek,mt7622-spi";
                reg = <0 0x11016000 0 0x100>;