| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
| 2 | |
| 3 | #include "qca953x.dtsi" |
| 4 | |
| 5 | #include <dt-bindings/gpio/gpio.h> |
| 6 | #include <dt-bindings/input/input.h> |
| 7 | |
| 8 | / { |
| 9 | compatible = "engenius,ews511ap", "qca,qca9531"; |
| 10 | model = "EnGenius EWS511AP"; |
| 11 | |
| 12 | aliases { |
| 13 | led-boot = &led_power; |
| 14 | led-failsafe = &led_power; |
| 15 | led-running = &led_power; |
| 16 | led-upgrade = &led_power; |
| 17 | }; |
| 18 | |
| 19 | keys { |
| 20 | compatible = "gpio-keys"; |
| 21 | |
| 22 | pinctrl-names = "default"; |
| 23 | pinctrl-0 = <&jtag_disable_pins>; |
| 24 | |
| 25 | reset { |
| 26 | label = "reset"; |
| 27 | linux,code = <KEY_RESTART>; |
| 28 | gpios = <&gpio 1 GPIO_ACTIVE_LOW>; |
| 29 | }; |
| 30 | }; |
| 31 | |
| 32 | leds { |
| 33 | compatible = "gpio-leds"; |
| 34 | |
| 35 | led_power: power { |
| 36 | label = "amber:power"; |
| 37 | gpios = <&gpio 0 GPIO_ACTIVE_LOW>; |
| 38 | default-state = "on"; |
| 39 | }; |
| 40 | |
| 41 | lan1 { |
| 42 | label = "blue:lan1"; |
| 43 | gpios = <&gpio 4 GPIO_ACTIVE_LOW>; |
| 44 | }; |
| 45 | |
| 46 | lan2 { |
| 47 | label = "blue:lan2"; |
| 48 | gpios = <&gpio 13 GPIO_ACTIVE_LOW>; |
| 49 | }; |
| 50 | |
| 51 | wlan2g { |
| 52 | label = "green:wlan2g"; |
| 53 | gpios = <&gpio 15 GPIO_ACTIVE_LOW>; |
| 54 | linux,default-trigger = "phy0tpt"; |
| 55 | }; |
| 56 | |
| 57 | wlan5g { |
| 58 | label = "green:wlan5g"; |
| 59 | gpios = <&gpio 3 GPIO_ACTIVE_LOW>; |
| 60 | linux,default-trigger = "phy1tpt"; |
| 61 | }; |
| 62 | }; |
| 63 | |
| 64 | watchdog { |
| 65 | compatible = "linux,wdt-gpio"; |
| 66 | |
| 67 | gpios = <&gpio 12 GPIO_ACTIVE_LOW>; |
| 68 | hw_algo = "toggle"; |
| 69 | /* hw_margin_ms is actually 300s but driver limits it to 60s */ |
| 70 | hw_margin_ms = <60000>; |
| 71 | always-running; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | &wdt { |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
| 79 | &rst { |
| 80 | status = "okay"; |
| 81 | }; |
| 82 | |
| 83 | &pcie0 { |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | &spi { |
| 88 | status = "okay"; |
| 89 | |
| 90 | flash@0 { |
| 91 | compatible = "jedec,spi-nor"; |
| 92 | reg = <0>; |
| 93 | spi-max-frequency = <25000000>; |
| 94 | |
| 95 | partitions { |
| 96 | compatible = "fixed-partitions"; |
| 97 | #address-cells = <1>; |
| 98 | #size-cells = <1>; |
| 99 | |
| 100 | partition@0 { |
| 101 | label = "u-boot"; |
| 102 | reg = <0x000000 0x040000>; |
| 103 | read-only; |
| 104 | }; |
| 105 | |
| 106 | ubootenv: partition@40000 { |
| 107 | label = "u-boot-env"; |
| 108 | reg = <0x040000 0x010000>; |
| 109 | }; |
| 110 | |
| 111 | art: partition@50000 { |
| 112 | label = "art"; |
| 113 | reg = <0x050000 0x010000>; |
| 114 | read-only; |
| 115 | }; |
| 116 | |
| 117 | partition@60000 { |
| 118 | compatible = "denx,uimage"; |
| 119 | label = "firmware"; |
| 120 | reg = <0x060000 0xfa0000>; |
| 121 | }; |
| 122 | }; |
| 123 | }; |
| 124 | }; |
| 125 | |
| 126 | ð0 { |
| 127 | status = "okay"; |
| 128 | |
| 129 | phy-handle = <&swphy4>; |
| 130 | }; |
| 131 | |
| 132 | &wmac { |
| 133 | status = "okay"; |
| 134 | |
| 135 | mtd-cal-data = <&art 0x1000>; |
| 136 | }; |