| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #include "rt3050.dtsi" |
| 2 | |
| 3 | #include <dt-bindings/gpio/gpio.h> |
| 4 | #include <dt-bindings/input/input.h> |
| 5 | |
| 6 | / { |
| 7 | compatible = "netgear,wnce2001", "ralink,rt3052-soc"; |
| 8 | model = "Netgear WNCE2001"; |
| 9 | |
| 10 | aliases { |
| 11 | led-boot = &led_power_green; |
| 12 | led-failsafe = &led_power_green; |
| 13 | led-running = &led_power_green; |
| 14 | led-upgrade = &led_power_green; |
| 15 | }; |
| 16 | |
| 17 | chosen { |
| 18 | bootargs = "console=ttyS0,115200"; |
| 19 | }; |
| 20 | |
| 21 | leds { |
| 22 | compatible = "gpio-leds"; |
| 23 | |
| 24 | led_power_green: power-green { |
| 25 | label = "green:power"; |
| 26 | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
| 27 | }; |
| 28 | |
| 29 | power-red { |
| 30 | label = "red:power"; |
| 31 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
| 32 | }; |
| 33 | |
| 34 | wlan-green { |
| 35 | label = "green:wlan"; |
| 36 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
| 37 | }; |
| 38 | |
| 39 | wlan-red { |
| 40 | label = "red:wlan"; |
| 41 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
| 42 | }; |
| 43 | }; |
| 44 | |
| 45 | keys { |
| 46 | compatible = "gpio-keys-polled"; |
| 47 | poll-interval = <20>; |
| 48 | |
| 49 | reset { |
| 50 | label = "reset"; |
| 51 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
| 52 | linux,code = <KEY_RESTART>; |
| 53 | }; |
| 54 | |
| 55 | wps { |
| 56 | label = "wps"; |
| 57 | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
| 58 | linux,code = <KEY_WPS_BUTTON>; |
| 59 | }; |
| 60 | |
| 61 | rt { |
| 62 | label = "rt"; |
| 63 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
| 64 | linux,code = <BTN_0>; |
| 65 | }; |
| 66 | |
| 67 | ap { |
| 68 | label = "ap"; |
| 69 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
| 70 | linux,code = <BTN_1>; |
| 71 | }; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | &spi0 { |
| 76 | status = "okay"; |
| 77 | |
| 78 | flash@0 { |
| 79 | compatible = "jedec,spi-nor"; |
| 80 | reg = <0>; |
| 81 | spi-max-frequency = <10000000>; |
| 82 | |
| 83 | partitions { |
| 84 | compatible = "fixed-partitions"; |
| 85 | #address-cells = <1>; |
| 86 | #size-cells = <1>; |
| 87 | |
| 88 | partition@0 { |
| 89 | label = "u-boot"; |
| 90 | reg = <0x0 0x30000>; |
| 91 | read-only; |
| 92 | }; |
| 93 | |
| 94 | factory: partition@30000 { |
| 95 | label = "factory"; |
| 96 | reg = <0x30000 0x10000>; |
| 97 | read-only; |
| 98 | }; |
| 99 | |
| 100 | partition@40000 { |
| 101 | label = "config"; |
| 102 | reg = <0x40000 0x20000>; |
| 103 | read-only; |
| 104 | }; |
| 105 | |
| 106 | partition@60000 { |
| 107 | label = "language"; |
| 108 | reg = <0x60000 0x30000>; |
| 109 | read-only; |
| 110 | }; |
| 111 | |
| 112 | partition@90000 { |
| 113 | label = "pot"; |
| 114 | reg = <0x90000 0x10000>; |
| 115 | read-only; |
| 116 | }; |
| 117 | |
| 118 | partition@a0000 { |
| 119 | label = "checksum"; |
| 120 | reg = <0xa0000 0x10000>; |
| 121 | }; |
| 122 | |
| 123 | partition@b0000 { |
| 124 | compatible = "denx,uimage"; |
| 125 | label = "firmware"; |
| 126 | reg = <0xb0000 0x350000>; |
| 127 | }; |
| 128 | }; |
| 129 | }; |
| 130 | }; |
| 131 | |
| 132 | &state_default { |
| 133 | gpio { |
| 134 | groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
| 135 | function = "gpio"; |
| 136 | }; |
| 137 | }; |
| 138 | |
| 139 | ðernet { |
| 140 | mtd-mac-address = <&factory 0x28>; |
| 141 | }; |
| 142 | |
| 143 | &wmac { |
| 144 | ralink,mtd-eeprom = <&factory 0x0>; |
| 145 | }; |