developer | 691e73f | 2021-06-28 19:41:35 +0800 | [diff] [blame] | 1 | /dts-v1/; |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 2 | #include "mt7986b.dtsi" |
| 3 | #include "mt7986b-pinctrl.dtsi" |
| 4 | #include "mt7986-spim-nor-partition.dtsi" |
developer | 691e73f | 2021-06-28 19:41:35 +0800 | [diff] [blame] | 5 | / { |
| 6 | model = "MediaTek MT7986b RFB"; |
| 7 | compatible = "mediatek,mt7986b-nor-rfb"; |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 8 | chosen { |
| 9 | bootargs = "console=ttyS0,115200n1 loglevel=8 \ |
| 10 | earlycon=uart8250,mmio32,0x11002000"; |
| 11 | }; |
| 12 | |
| 13 | memory { |
| 14 | reg = <0 0x40000000 0 0x10000000>; |
| 15 | }; |
developer | 691e73f | 2021-06-28 19:41:35 +0800 | [diff] [blame] | 16 | }; |
| 17 | |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 18 | &uart0 { |
developer | 691e73f | 2021-06-28 19:41:35 +0800 | [diff] [blame] | 19 | status = "okay"; |
developer | 5b91be7 | 2021-09-27 14:03:07 +0800 | [diff] [blame] | 20 | }; |
| 21 | |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 22 | /* Warning: pins shared with &snand */ |
| 23 | &uart1 { |
| 24 | pinctrl-names = "default"; |
| 25 | pinctrl-0 = <&uart1_pins>; |
developer | 5b91be7 | 2021-09-27 14:03:07 +0800 | [diff] [blame] | 26 | status = "disabled"; |
| 27 | }; |
| 28 | |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 29 | /* Warning: pins shared with &spi1 */ |
| 30 | &uart2 { |
| 31 | pinctrl-names = "default"; |
| 32 | pinctrl-0 = <&uart2_pins>; |
developer | 5b91be7 | 2021-09-27 14:03:07 +0800 | [diff] [blame] | 33 | status = "disabled"; |
developer | 691e73f | 2021-06-28 19:41:35 +0800 | [diff] [blame] | 34 | }; |
| 35 | |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 36 | &i2c0 { |
| 37 | pinctrl-names = "default"; |
| 38 | pinctrl-0 = <&i2c_pins>; |
| 39 | status = "okay"; |
| 40 | }; |
| 41 | |
| 42 | &watchdog { |
| 43 | status = "okay"; |
| 44 | }; |
| 45 | |
| 46 | ð { |
| 47 | status = "okay"; |
| 48 | |
| 49 | gmac0: mac@0 { |
| 50 | compatible = "mediatek,eth-mac"; |
| 51 | reg = <0>; |
| 52 | phy-mode = "2500base-x"; |
| 53 | |
| 54 | fixed-link { |
| 55 | speed = <2500>; |
| 56 | full-duplex; |
| 57 | pause; |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | gmac1: mac@1 { |
| 62 | compatible = "mediatek,eth-mac"; |
| 63 | reg = <1>; |
| 64 | phy-mode = "2500base-x"; |
| 65 | |
| 66 | fixed-link { |
| 67 | speed = <2500>; |
| 68 | full-duplex; |
| 69 | pause; |
| 70 | }; |
| 71 | }; |
| 72 | |
| 73 | mdio: mdio-bus { |
| 74 | #address-cells = <1>; |
| 75 | #size-cells = <0>; |
| 76 | |
| 77 | phy5: phy@5 { |
| 78 | compatible = "ethernet-phy-id67c9.de0a"; |
| 79 | reg = <5>; |
| 80 | reset-gpios = <&pio 6 1>; |
| 81 | reset-deassert-us = <20000>; |
| 82 | phy-mode = "2500base-x"; |
| 83 | }; |
| 84 | |
| 85 | phy6: phy@6 { |
| 86 | compatible = "ethernet-phy-id67c9.de0a"; |
| 87 | reg = <6>; |
| 88 | phy-mode = "2500base-x"; |
| 89 | }; |
| 90 | |
| 91 | switch@0 { |
| 92 | compatible = "mediatek,mt7531"; |
| 93 | reg = <31>; |
| 94 | reset-gpios = <&pio 5 0>; |
| 95 | |
| 96 | ports { |
| 97 | #address-cells = <1>; |
| 98 | #size-cells = <0>; |
developer | 691e73f | 2021-06-28 19:41:35 +0800 | [diff] [blame] | 99 | |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 100 | port@0 { |
| 101 | reg = <0>; |
| 102 | label = "lan0"; |
| 103 | }; |
| 104 | |
| 105 | port@1 { |
| 106 | reg = <1>; |
| 107 | label = "lan1"; |
| 108 | }; |
| 109 | |
| 110 | port@2 { |
| 111 | reg = <2>; |
| 112 | label = "lan2"; |
| 113 | }; |
| 114 | |
| 115 | port@3 { |
| 116 | reg = <3>; |
| 117 | label = "lan3"; |
| 118 | }; |
| 119 | |
| 120 | port@4 { |
| 121 | reg = <4>; |
| 122 | label = "lan4"; |
| 123 | }; |
developer | 691e73f | 2021-06-28 19:41:35 +0800 | [diff] [blame] | 124 | |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 125 | port@5 { |
| 126 | reg = <5>; |
| 127 | label = "lan5"; |
| 128 | phy-mode = "2500base-x"; |
| 129 | |
| 130 | fixed-link { |
| 131 | speed = <2500>; |
| 132 | full-duplex; |
| 133 | pause; |
| 134 | }; |
| 135 | }; |
| 136 | |
| 137 | port@6 { |
| 138 | reg = <6>; |
| 139 | label = "cpu"; |
| 140 | ethernet = <&gmac0>; |
| 141 | phy-mode = "2500base-x"; |
| 142 | |
| 143 | fixed-link { |
| 144 | speed = <2500>; |
| 145 | full-duplex; |
| 146 | pause; |
| 147 | }; |
developer | 691e73f | 2021-06-28 19:41:35 +0800 | [diff] [blame] | 148 | }; |
| 149 | }; |
| 150 | }; |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 151 | }; |
| 152 | }; |
| 153 | |
| 154 | &hnat { |
| 155 | mtketh-wan = "eth1"; |
| 156 | mtketh-lan = "lan"; |
| 157 | mtketh-max-gmac = <2>; |
| 158 | status = "okay"; |
| 159 | }; |
| 160 | |
| 161 | &spi0 { |
| 162 | pinctrl-names = "default"; |
| 163 | pinctrl-0 = <&spi_flash_pins>; |
| 164 | cs-gpios = <0>, <0>; |
| 165 | status = "okay"; |
| 166 | |
| 167 | spi_nor@0 { |
| 168 | #address-cells = <1>; |
| 169 | #size-cells = <1>; |
| 170 | compatible = "jedec,spi-nor"; |
| 171 | reg = <0>; |
| 172 | spi-max-frequency = <20000000>; |
| 173 | spi-tx-buswidth = <4>; |
| 174 | spi-rx-buswidth = <4>; |
| 175 | }; |
| 176 | }; |
| 177 | |
| 178 | /* Warning: pins shared with &uart2 */ |
| 179 | &spi1 { |
| 180 | pinctrl-names = "default"; |
| 181 | pinctrl-0 = <&spic_pins>; |
| 182 | status = "okay"; |
| 183 | }; |
| 184 | |
| 185 | &wbsys { |
| 186 | mediatek,mtd-eeprom = <&factory 0x0000>; |
| 187 | status = "okay"; |
| 188 | }; |
| 189 | |
| 190 | &pio { |
| 191 | spi_flash_pins: spi-flash-pins-33-to-38 { |
| 192 | mux { |
| 193 | function = "flash"; |
| 194 | groups = "spi0", "spi0_wp_hold"; |
| 195 | }; |
| 196 | conf-pu { |
| 197 | pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP"; |
| 198 | drive-strength = <MTK_DRIVE_8mA>; |
| 199 | mediatek,pull-up-adv = <0>; /* bias-disable */ |
| 200 | }; |
| 201 | conf-pd { |
| 202 | pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO"; |
| 203 | drive-strength = <MTK_DRIVE_8mA>; |
| 204 | mediatek,pull-down-adv = <0>; /* bias-disable */ |
| 205 | }; |
| 206 | |
developer | 691e73f | 2021-06-28 19:41:35 +0800 | [diff] [blame] | 207 | }; |
| 208 | }; |