b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | #include "mt7621_mikrotik.dtsi" |
| 2 | |
| 3 | / { |
| 4 | compatible = "mikrotik,routerboard-m11g", "mediatek,mt7621-soc"; |
| 5 | model = "MikroTik RouterBOARD M11G"; |
| 6 | |
| 7 | aliases { |
| 8 | led-boot = &led_usr; |
| 9 | led-failsafe = &led_usr; |
| 10 | led-running = &led_usr; |
| 11 | led-upgrade = &led_usr; |
| 12 | }; |
| 13 | |
| 14 | leds { |
| 15 | compatible = "gpio-leds"; |
| 16 | |
| 17 | led_usr: usr { |
| 18 | label = "green:usr"; |
| 19 | gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; |
| 20 | }; |
| 21 | |
| 22 | rssi0 { |
| 23 | label = "green:rssi0"; |
| 24 | gpios = <&gpio 22 GPIO_ACTIVE_LOW>; |
| 25 | }; |
| 26 | |
| 27 | rssi1 { |
| 28 | label = "green:rssi1"; |
| 29 | gpios = <&gpio 23 GPIO_ACTIVE_LOW>; |
| 30 | }; |
| 31 | |
| 32 | rssi2 { |
| 33 | label = "green:rssi2"; |
| 34 | gpios = <&gpio 24 GPIO_ACTIVE_LOW>; |
| 35 | }; |
| 36 | |
| 37 | rssi3 { |
| 38 | label = "green:rssi3"; |
| 39 | gpios = <&gpio 25 GPIO_ACTIVE_LOW>; |
| 40 | }; |
| 41 | |
| 42 | rssi4 { |
| 43 | label = "green:rssi4"; |
| 44 | gpios = <&gpio 26 GPIO_ACTIVE_LOW>; |
| 45 | }; |
| 46 | }; |
| 47 | |
| 48 | pcie0_vcc_reg { |
| 49 | compatible = "regulator-fixed"; |
| 50 | regulator-name = "pcie0_vcc"; |
| 51 | |
| 52 | regulator-min-microvolt = <3300000>; |
| 53 | regulator-max-microvolt = <3300000>; |
| 54 | gpio = <&gpio 9 GPIO_ACTIVE_HIGH>; |
| 55 | enable-active-high; |
| 56 | regulator-boot-on; |
| 57 | regulator-always-on; |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | &partitions { |
| 62 | partition@40000 { |
| 63 | compatible = "mikrotik,minor"; |
| 64 | label = "firmware"; |
| 65 | reg = <0x040000 0xfc0000>; |
| 66 | }; |
| 67 | }; |
| 68 | |
| 69 | &switch0 { |
| 70 | ports { |
| 71 | port@0 { |
| 72 | status = "okay"; |
| 73 | label = "lan"; |
| 74 | }; |
| 75 | }; |
| 76 | }; |
| 77 | |
| 78 | &state_default { |
| 79 | gpio { |
| 80 | groups = "uart2", "wdt", "rgmii2"; |
| 81 | function = "gpio"; |
| 82 | }; |
| 83 | }; |
| 84 | |
| 85 | &i2c { |
| 86 | status = "okay"; |
| 87 | }; |
| 88 | |
| 89 | &pcie { |
| 90 | status = "okay"; |
| 91 | }; |