| 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 = "comfast,cf-ew72", "qca,qca9531"; |
| 10 | model = "COMFAST CF-EW72"; |
| 11 | |
| 12 | aliases { |
| 13 | serial0 = &uart; |
| 14 | led-boot = &led_wan; |
| 15 | led-failsafe = &led_wan; |
| 16 | led-upgrade = &led_wan; |
| 17 | }; |
| 18 | |
| 19 | leds { |
| 20 | compatible = "gpio-leds"; |
| 21 | |
| 22 | pinctrl-names = "default"; |
| 23 | pinctrl-0 = <&jtag_disable_pins>; |
| 24 | |
| 25 | lan { |
| 26 | label = "blue:lan"; |
| 27 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
| 28 | }; |
| 29 | |
| 30 | led_wan: wan { |
| 31 | label = "blue:wan"; |
| 32 | gpios = <&gpio 11 GPIO_ACTIVE_LOW>; |
| 33 | }; |
| 34 | |
| 35 | wlan { |
| 36 | label = "blue:wlan"; |
| 37 | gpios = <&gpio 14 GPIO_ACTIVE_LOW>; |
| 38 | linux,default-trigger = "phy0tpt"; |
| 39 | }; |
| 40 | }; |
| 41 | |
| 42 | keys { |
| 43 | compatible = "gpio-keys"; |
| 44 | |
| 45 | reset { |
| 46 | label = "reset"; |
| 47 | linux,code = <KEY_RESTART>; |
| 48 | gpios = <&gpio 17 GPIO_ACTIVE_LOW>; |
| 49 | debounce-interval = <60>; |
| 50 | }; |
| 51 | }; |
| 52 | |
| 53 | watchdog { |
| 54 | compatible = "linux,wdt-gpio"; |
| 55 | |
| 56 | gpios = <&gpio 13 GPIO_ACTIVE_LOW>; |
| 57 | hw_algo = "toggle"; |
| 58 | hw_margin_ms = <1200>; |
| 59 | always-running; |
| 60 | }; |
| 61 | }; |
| 62 | |
| 63 | &pcie0 { |
| 64 | status = "okay"; |
| 65 | }; |
| 66 | |
| 67 | &spi { |
| 68 | status = "okay"; |
| 69 | |
| 70 | flash@0 { |
| 71 | compatible = "winbond,w25q128", "jedec,spi-nor"; |
| 72 | reg = <0>; |
| 73 | spi-max-frequency = <25000000>; |
| 74 | |
| 75 | partitions { |
| 76 | compatible = "fixed-partitions"; |
| 77 | #address-cells = <1>; |
| 78 | #size-cells = <1>; |
| 79 | |
| 80 | partition@0 { |
| 81 | label = "u-boot"; |
| 82 | reg = <0x000000 0x010000>; |
| 83 | read-only; |
| 84 | }; |
| 85 | |
| 86 | art: partition@10000 { |
| 87 | label = "art"; |
| 88 | reg = <0x010000 0x010000>; |
| 89 | read-only; |
| 90 | }; |
| 91 | |
| 92 | partition@20000 { |
| 93 | compatible = "denx,uimage"; |
| 94 | label = "firmware"; |
| 95 | reg = <0x020000 0xfd0000>; |
| 96 | }; |
| 97 | |
| 98 | partition@ff0000 { |
| 99 | label = "nvram"; |
| 100 | reg = <0xff0000 0x010000>; |
| 101 | read-only; |
| 102 | }; |
| 103 | }; |
| 104 | }; |
| 105 | }; |
| 106 | |
| 107 | ð0 { |
| 108 | status = "okay"; |
| 109 | |
| 110 | phy-handle = <&swphy4>; |
| 111 | |
| 112 | mtd-mac-address = <&art 0x0>; |
| 113 | mtd-mac-address-increment = <1>; |
| 114 | }; |
| 115 | |
| 116 | ð1 { |
| 117 | mtd-mac-address = <&art 0x0>; |
| 118 | }; |
| 119 | |
| 120 | &wmac { |
| 121 | status = "okay"; |
| 122 | |
| 123 | mtd-cal-data = <&art 0x1000>; |
| 124 | mtd-mac-address = <&art 0x0>; |
| 125 | mtd-mac-address-increment = <3>; |
| 126 | }; |