| 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 "qca956x.dtsi" |
| 4 | |
| 5 | #include <dt-bindings/gpio/gpio.h> |
| 6 | #include <dt-bindings/input/input.h> |
| 7 | |
| 8 | / { |
| 9 | model = "Compex WPJ563"; |
| 10 | compatible = "compex,wpj563", "qca,qca9563"; |
| 11 | |
| 12 | aliases { |
| 13 | label-mac-device = ð0; |
| 14 | led-boot = &led_sig4; |
| 15 | led-failsafe = &led_sig4; |
| 16 | led-running = &led_sig4; |
| 17 | led-upgrade = &led_sig4; |
| 18 | }; |
| 19 | |
| 20 | beeper { |
| 21 | compatible = "gpio-beeper"; |
| 22 | gpios = <&gpio 19 GPIO_ACTIVE_HIGH>; |
| 23 | }; |
| 24 | |
| 25 | keys { |
| 26 | compatible = "gpio-keys"; |
| 27 | |
| 28 | reset { |
| 29 | label = "reset"; |
| 30 | linux,code = <KEY_RESTART>; |
| 31 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
| 32 | debounce-interval = <60>; |
| 33 | }; |
| 34 | }; |
| 35 | |
| 36 | leds { |
| 37 | compatible = "gpio-leds"; |
| 38 | |
| 39 | sig1 { |
| 40 | label = "green:sig1"; |
| 41 | gpios = <&gpio 1 GPIO_ACTIVE_LOW>; |
| 42 | }; |
| 43 | |
| 44 | sig2 { |
| 45 | label = "green:sig2"; |
| 46 | gpios = <&gpio 5 GPIO_ACTIVE_LOW>; |
| 47 | }; |
| 48 | |
| 49 | sig3 { |
| 50 | label = "green:sig4"; |
| 51 | gpios = <&gpio 6 GPIO_ACTIVE_LOW>; |
| 52 | }; |
| 53 | |
| 54 | led_sig4: sig4 { |
| 55 | label = "green:sig4"; |
| 56 | gpios = <&gpio 7 GPIO_ACTIVE_LOW>; |
| 57 | }; |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | &pcie { |
| 62 | status = "okay"; |
| 63 | }; |
| 64 | |
| 65 | &spi { |
| 66 | status = "okay"; |
| 67 | |
| 68 | flash@0 { |
| 69 | compatible = "jedec,spi-nor"; |
| 70 | reg = <0>; |
| 71 | spi-max-frequency = <25000000>; |
| 72 | |
| 73 | partitions { |
| 74 | compatible = "fixed-partitions"; |
| 75 | #address-cells = <1>; |
| 76 | #size-cells = <1>; |
| 77 | |
| 78 | uboot: partition@0 { |
| 79 | label = "u-boot"; |
| 80 | reg = <0x000000 0x030000>; |
| 81 | read-only; |
| 82 | }; |
| 83 | |
| 84 | partition@30000 { |
| 85 | compatible = "denx,uimage"; |
| 86 | label = "firmware"; |
| 87 | reg = <0x030000 0xfc0000>; |
| 88 | }; |
| 89 | |
| 90 | art: partition@ff0000 { |
| 91 | label = "art"; |
| 92 | reg = <0xff0000 0x010000>; |
| 93 | read-only; |
| 94 | }; |
| 95 | }; |
| 96 | }; |
| 97 | }; |
| 98 | |
| 99 | &mdio0 { |
| 100 | status = "okay"; |
| 101 | |
| 102 | phy-mask = <0>; |
| 103 | |
| 104 | phy0: ethernet-phy@0 { |
| 105 | reg = <0>; |
| 106 | phy-mode = "sgmii"; |
| 107 | qca,mib-poll-interval = <500>; |
| 108 | |
| 109 | qca,ar8327-initvals = < |
| 110 | 0x04 0x00080080 /* PORT0 PAD MODE CTRL */ |
| 111 | 0x7c 0x0000007e /* PORT0_STATUS */ |
| 112 | >; |
| 113 | }; |
| 114 | }; |
| 115 | |
| 116 | ð0 { |
| 117 | status = "okay"; |
| 118 | |
| 119 | pll-data = <0x03000101 0x00000101 0x00001919>; |
| 120 | |
| 121 | mtd-mac-address = <&uboot 0x2e010>; |
| 122 | phy-mode = "sgmii"; |
| 123 | phy-handle = <&phy0>; |
| 124 | }; |
| 125 | |
| 126 | &usb_phy0 { |
| 127 | status = "okay"; |
| 128 | }; |
| 129 | |
| 130 | &usb0 { |
| 131 | status = "okay"; |
| 132 | }; |
| 133 | |
| 134 | &usb_phy1 { |
| 135 | status = "okay"; |
| 136 | }; |
| 137 | |
| 138 | &usb1 { |
| 139 | status = "okay"; |
| 140 | }; |
| 141 | |
| 142 | &wmac { |
| 143 | status = "okay"; |
| 144 | |
| 145 | mtd-cal-data = <&art 0x1000>; |
| 146 | }; |