| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #include "rt5350.dtsi" |
| 2 | |
| 3 | #include <dt-bindings/gpio/gpio.h> |
| 4 | #include <dt-bindings/input/input.h> |
| 5 | |
| 6 | / { |
| 7 | compatible = "wiznet,wizfi630a", "ralink,rt5350-soc"; |
| 8 | model = "WIZnet WizFi630A"; |
| 9 | |
| 10 | aliases { |
| 11 | led-boot = &led_run; |
| 12 | led-failsafe = &led_run; |
| 13 | led-running = &led_run; |
| 14 | led-upgrade = &led_run; |
| 15 | }; |
| 16 | |
| 17 | chosen { |
| 18 | bootargs = "console=ttyS1,115200"; |
| 19 | }; |
| 20 | |
| 21 | leds { |
| 22 | compatible = "gpio-leds"; |
| 23 | |
| 24 | led_run: run { |
| 25 | label = ":run"; |
| 26 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
| 27 | }; |
| 28 | |
| 29 | wps { |
| 30 | label = ":wps"; |
| 31 | gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
| 32 | }; |
| 33 | |
| 34 | uart1 { |
| 35 | label = ":uart1"; |
| 36 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
| 37 | }; |
| 38 | |
| 39 | uart2 { |
| 40 | label = ":uart2"; |
| 41 | gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; |
| 42 | }; |
| 43 | }; |
| 44 | |
| 45 | keys { |
| 46 | compatible = "gpio-keys-polled"; |
| 47 | poll-interval = <20>; |
| 48 | |
| 49 | reset { |
| 50 | label = "reset"; |
| 51 | gpios = <&gpio0 17 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 | scm1 { |
| 62 | label = "SCM1"; |
| 63 | gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
| 64 | linux,code = <BTN_0>; |
| 65 | }; |
| 66 | |
| 67 | scm2 { |
| 68 | label = "SCM2"; |
| 69 | gpios = <&gpio0 2 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 | #size-cells = <1>; |
| 90 | label = "uboot"; |
| 91 | reg = <0x0 0x30000>; |
| 92 | read-only; |
| 93 | }; |
| 94 | |
| 95 | partition@30000 { |
| 96 | #size-cells = <1>; |
| 97 | label = "uboot-env"; |
| 98 | reg = <0x30000 0x10000>; |
| 99 | read-only; |
| 100 | }; |
| 101 | |
| 102 | factory: partition@40000 { |
| 103 | #size-cells = <1>; |
| 104 | label = "factory"; |
| 105 | reg = <0x40000 0x10000>; |
| 106 | read-only; |
| 107 | }; |
| 108 | |
| 109 | partition@50000 { |
| 110 | compatible = "denx,uimage"; |
| 111 | #size-cells = <1>; |
| 112 | label = "firmware"; |
| 113 | reg = <0x50000 0xfb0000>; |
| 114 | }; |
| 115 | }; |
| 116 | }; |
| 117 | }; |
| 118 | |
| 119 | &uart { |
| 120 | status = "okay"; |
| 121 | pinctrl-names = "default"; |
| 122 | pinctrl-0 = <&uartf_pins>; |
| 123 | }; |
| 124 | |
| 125 | &state_default { |
| 126 | gpio { |
| 127 | groups = "i2c", "jtag" ; |
| 128 | function = "gpio"; |
| 129 | }; |
| 130 | }; |
| 131 | |
| 132 | ðernet { |
| 133 | mtd-mac-address = <&factory 0x4>; |
| 134 | }; |
| 135 | |
| 136 | &esw { |
| 137 | mediatek,portmap = <0x17>; |
| 138 | }; |
| 139 | |
| 140 | &wmac { |
| 141 | ralink,mtd-eeprom = <&factory 0x0>; |
| 142 | }; |