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 = "arcwireless,freestation5", "ralink,rt3050-soc"; |
| 8 | model = "ARC FreeStation5"; |
| 9 | |
| 10 | chosen { |
| 11 | bootargs = "console=ttyS0,115200"; |
| 12 | }; |
| 13 | |
| 14 | flash@1f000000 { |
| 15 | compatible = "cfi-flash"; |
| 16 | reg = <0x1f000000 0x800000>; |
| 17 | bank-width = <2>; |
| 18 | device-width = <2>; |
| 19 | |
| 20 | partitions { |
| 21 | compatible = "fixed-partitions"; |
| 22 | #address-cells = <1>; |
| 23 | #size-cells = <1>; |
| 24 | |
| 25 | partition@0 { |
| 26 | label = "u-boot"; |
| 27 | reg = <0x0 0x30000>; |
| 28 | read-only; |
| 29 | }; |
| 30 | |
| 31 | partition@30000 { |
| 32 | label = "u-boot-env"; |
| 33 | reg = <0x30000 0x10000>; |
| 34 | read-only; |
| 35 | }; |
| 36 | |
| 37 | factory: partition@40000 { |
| 38 | label = "factory"; |
| 39 | reg = <0x40000 0x10000>; |
| 40 | read-only; |
| 41 | }; |
| 42 | |
| 43 | partition@50000 { |
| 44 | compatible = "denx,uimage"; |
| 45 | label = "firmware"; |
| 46 | reg = <0x50000 0x7b0000>; |
| 47 | }; |
| 48 | }; |
| 49 | }; |
| 50 | |
| 51 | gpio-export { |
| 52 | compatible = "gpio-export"; |
| 53 | |
| 54 | /* |
| 55 | * Used to enable power-over-ethernet passthrough from port0 to port1. |
| 56 | * Disable passthrough by default to prevent accidental equipment damage. |
| 57 | */ |
| 58 | poe { |
| 59 | gpio-export,name = "poe-passthrough"; |
| 60 | gpio-export,output = <1>; |
| 61 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
| 62 | }; |
| 63 | }; |
| 64 | |
| 65 | leds { |
| 66 | compatible = "gpio-leds"; |
| 67 | |
| 68 | /* |
| 69 | * The following leds are defined in the ArcOS firmware, but reportedly |
| 70 | * not present in the Freestation5 device. |
| 71 | */ |
| 72 | wifi { |
| 73 | label = "unknown:wifi"; |
| 74 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
| 75 | }; |
| 76 | |
| 77 | powerg { |
| 78 | label = "unknown:powerg"; |
| 79 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
| 80 | }; |
| 81 | |
| 82 | usb { |
| 83 | label = "unknown:usb"; |
| 84 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
| 85 | }; |
| 86 | }; |
| 87 | }; |
| 88 | |
| 89 | &state_default { |
| 90 | gpio { |
| 91 | groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
| 92 | function = "gpio"; |
| 93 | }; |
| 94 | }; |
| 95 | |
| 96 | ðernet { |
| 97 | mtd-mac-address = <&factory 0x4>; |
| 98 | }; |
| 99 | |
| 100 | &esw { |
| 101 | mediatek,portmap = <0x01>; |
| 102 | }; |
| 103 | |
| 104 | &wmac { |
| 105 | ralink,mtd-eeprom = <&factory 0x0>; |
| 106 | }; |
| 107 | |
| 108 | &otg { |
| 109 | status = "okay"; |
| 110 | }; |