developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | #include "mt7981-fpga.dtsi" |
| 3 | / { |
| 4 | model = "MediaTek MT7981 FPGA"; |
| 5 | compatible = "mediatek,mt7981-fpga-snfi-nand"; |
| 6 | chosen { |
| 7 | bootargs = "console=ttyS0,115200n1 loglevel=8 \ |
| 8 | earlycon=uart8250,mmio32,0x11002000"; |
| 9 | }; |
| 10 | |
| 11 | memory { |
| 12 | // fpga ddr2: 128MB*2 |
| 13 | reg = <0 0x40000000 0 0x10000000>; |
| 14 | }; |
| 15 | |
| 16 | nmbm_snfi { |
| 17 | compatible = "generic,nmbm"; |
| 18 | |
| 19 | #address-cells = <1>; |
| 20 | #size-cells = <1>; |
| 21 | |
| 22 | lower-mtd-device = <&snand>; |
| 23 | forced-create; |
| 24 | empty-page-ecc-protected; |
| 25 | |
| 26 | partitions { |
| 27 | compatible = "fixed-partitions"; |
| 28 | #address-cells = <1>; |
| 29 | #size-cells = <1>; |
| 30 | |
| 31 | partition@0 { |
| 32 | label = "BL2"; |
| 33 | reg = <0x00000 0x0100000>; |
| 34 | read-only; |
| 35 | }; |
| 36 | |
| 37 | partition@100000 { |
| 38 | label = "u-boot-env"; |
| 39 | reg = <0x0100000 0x0080000>; |
| 40 | }; |
| 41 | |
| 42 | factory: partition@180000 { |
| 43 | label = "Factory"; |
| 44 | reg = <0x180000 0x0200000>; |
| 45 | }; |
| 46 | |
| 47 | partition@380000 { |
| 48 | label = "FIP"; |
| 49 | reg = <0x380000 0x0200000>; |
| 50 | }; |
| 51 | |
| 52 | partition@580000 { |
| 53 | label = "ubi"; |
| 54 | reg = <0x580000 0x4000000>; |
| 55 | }; |
| 56 | }; |
| 57 | }; |
| 58 | |
| 59 | wsys_adie: wsys_adie@0 { |
| 60 | // fpga cases need to manual change adie_id / sku_type for dvt only |
| 61 | compatible = "mediatek,rebb-mt7981-adie"; |
| 62 | adie_id = <7976>; |
| 63 | sku_type = <3000>; |
| 64 | }; |
| 65 | }; |
| 66 | |
| 67 | &uart0 { |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
| 71 | &spi1 { |
| 72 | pinctrl-names = "default"; |
| 73 | /* pin shared with snfi */ |
| 74 | pinctrl-0 = <&spic_pins>; |
| 75 | status = "disabled"; |
| 76 | }; |
| 77 | |
| 78 | &pcie { |
| 79 | pinctrl-names = "default"; |
| 80 | pinctrl-0 = <&pcie_pins>; |
| 81 | status = "okay"; |
| 82 | }; |
| 83 | |
| 84 | &pio { |
| 85 | pcie_pins: pcie-pins { |
| 86 | mux { |
| 87 | function = "pcie"; |
| 88 | groups = "pcie_pereset", "pcie_clk", "pcie_wake"; |
| 89 | }; |
| 90 | }; |
| 91 | |
| 92 | snfi_pins: snfi-pins { |
| 93 | mux { |
| 94 | function = "flash"; |
| 95 | groups = "snfi"; |
| 96 | }; |
| 97 | }; |
| 98 | |
| 99 | spic_pins: spi1-pins { |
| 100 | mux { |
| 101 | function = "spi"; |
| 102 | groups = "spi1_1"; |
| 103 | }; |
| 104 | }; |
| 105 | }; |
| 106 | |
| 107 | &watchdog { |
| 108 | status = "disabled"; |
| 109 | }; |
| 110 | |
| 111 | &snand { |
| 112 | pinctrl-names = "default"; |
| 113 | /* pin shared with spic */ |
| 114 | pinctrl-0 = <&snfi_pins>; |
| 115 | status = "okay"; |
| 116 | mediatek,quad-spi; |
| 117 | }; |
| 118 | |
| 119 | ð { |
| 120 | status = "okay"; |
| 121 | |
| 122 | gmac0: mac@0 { |
| 123 | compatible = "mediatek,eth-mac"; |
| 124 | reg = <0>; |
| 125 | phy-mode = "rgmii"; |
| 126 | |
| 127 | fixed-link { |
| 128 | speed = <100>; |
| 129 | full-duplex; |
| 130 | pause; |
| 131 | }; |
| 132 | }; |
| 133 | gmac1: mac@1 { |
| 134 | compatible = "mediatek,eth-mac"; |
| 135 | reg = <1>; |
| 136 | phy-mode = "rgmii"; |
| 137 | |
| 138 | fixed-link { |
| 139 | speed = <100>; |
| 140 | full-duplex; |
| 141 | pause; |
| 142 | }; |
| 143 | }; |
| 144 | |
| 145 | mdio: mdio-bus { |
| 146 | #address-cells = <1>; |
| 147 | #size-cells = <0>; |
| 148 | }; |
| 149 | |
| 150 | }; |
| 151 | |
| 152 | &hnat { |
| 153 | mtketh-wan = "eth1"; |
| 154 | mtketh-lan = "eth0"; |
| 155 | mtketh-max-gmac = <2>; |
| 156 | status = "okay"; |
| 157 | }; |