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-nor"; |
| 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 | wsys_adie: wsys_adie@0 { |
| 17 | // fpga cases need to manual change adie_id / sku_type for dvt only |
| 18 | compatible = "mediatek,rebb-mt7981-adie"; |
| 19 | adie_id = <7976>; |
| 20 | sku_type = <3000>; |
| 21 | }; |
| 22 | }; |
| 23 | |
| 24 | &uart0 { |
| 25 | status = "okay"; |
| 26 | }; |
| 27 | |
| 28 | &spi1 { |
| 29 | pinctrl-names = "default"; |
| 30 | /* pin shared with snfi */ |
| 31 | pinctrl-0 = <&spic_pins>; |
| 32 | status = "disabled"; |
| 33 | }; |
| 34 | |
| 35 | &spi2 { |
| 36 | pinctrl-names = "default"; |
| 37 | pinctrl-0 = <&spi2_flash_pins>; |
| 38 | status = "okay"; |
| 39 | spi_nor@0 { |
| 40 | #address-cells = <1>; |
| 41 | #size-cells = <1>; |
| 42 | compatible = "jedec,spi-nor"; |
| 43 | reg = <0>; |
| 44 | spi-max-frequency = <500000>; |
| 45 | |
| 46 | partition@00000 { |
| 47 | label = "BL2"; |
| 48 | reg = <0x00000 0x0040000>; |
| 49 | }; |
| 50 | partition@40000 { |
| 51 | label = "u-boot-env"; |
| 52 | reg = <0x40000 0x0010000>; |
| 53 | }; |
| 54 | factory: partition@50000 { |
| 55 | label = "Factory"; |
| 56 | reg = <0x50000 0x00B0000>; |
| 57 | }; |
| 58 | partition@100000 { |
| 59 | label = "FIP"; |
| 60 | reg = <0x100000 0x0080000>; |
| 61 | }; |
| 62 | partition@180000 { |
| 63 | label = "firmware"; |
| 64 | reg = <0x180000 0xE00000>; |
| 65 | }; |
| 66 | }; |
| 67 | }; |
| 68 | |
| 69 | &pcie { |
| 70 | pinctrl-names = "default"; |
| 71 | pinctrl-0 = <&pcie_pins>; |
| 72 | status = "okay"; |
| 73 | }; |
| 74 | |
| 75 | &pio { |
| 76 | pcie_pins: pcie-pins { |
| 77 | mux { |
| 78 | function = "pcie"; |
| 79 | groups = "pcie_pereset", "pcie_clk", "pcie_wake"; |
| 80 | }; |
| 81 | }; |
| 82 | |
| 83 | spic_pins: spi1-pins { |
| 84 | mux { |
| 85 | function = "spi"; |
| 86 | groups = "spi1_1"; |
| 87 | }; |
| 88 | }; |
| 89 | |
| 90 | spi2_flash_pins: spi2-pins { |
| 91 | mux { |
| 92 | function = "spi"; |
| 93 | groups = "spi2", "spi2_wp_hold"; |
| 94 | }; |
| 95 | }; |
| 96 | }; |
| 97 | |
| 98 | &watchdog { |
| 99 | status = "disabled"; |
| 100 | }; |
| 101 | |
| 102 | ð { |
| 103 | status = "okay"; |
| 104 | |
| 105 | gmac0: mac@0 { |
| 106 | compatible = "mediatek,eth-mac"; |
| 107 | reg = <0>; |
| 108 | phy-mode = "rgmii"; |
| 109 | |
| 110 | fixed-link { |
| 111 | speed = <100>; |
| 112 | full-duplex; |
| 113 | pause; |
| 114 | }; |
| 115 | }; |
| 116 | gmac1: mac@1 { |
| 117 | compatible = "mediatek,eth-mac"; |
| 118 | reg = <1>; |
| 119 | phy-mode = "rgmii"; |
| 120 | |
| 121 | fixed-link { |
| 122 | speed = <100>; |
| 123 | full-duplex; |
| 124 | pause; |
| 125 | }; |
| 126 | }; |
| 127 | |
| 128 | mdio: mdio-bus { |
| 129 | #address-cells = <1>; |
| 130 | #size-cells = <0>; |
| 131 | }; |
| 132 | |
| 133 | }; |
| 134 | |
| 135 | &hnat { |
| 136 | mtketh-wan = "eth1"; |
| 137 | mtketh-lan = "eth0"; |
| 138 | mtketh-max-gmac = <2>; |
| 139 | status = "okay"; |
| 140 | }; |
| 141 | |
| 142 | &wed { |
| 143 | dy_txbm_enable = "true"; |
| 144 | dy_txbm_budge = <8>; |
| 145 | txbm_init_sz = <10>; |
| 146 | status = "okay"; |
| 147 | }; |
| 148 | |