1 // SPDX-License-Identifier: GPL-2.0-or-later O 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 2 3 #include <dt-bindings/gpio/gpio.h> 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/input/input.h> 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/leds/common.h> 5 #include <dt-bindings/leds/common.h> 6 6 7 #include "bcm4906.dtsi" 7 #include "bcm4906.dtsi" 8 8 9 / { 9 / { 10 compatible = "tplink,archer-c2300-v1", 10 compatible = "tplink,archer-c2300-v1", "brcm,bcm4906", "brcm,bcm4908", "brcm,bcmbca"; 11 model = "TP-Link Archer C2300 V1"; 11 model = "TP-Link Archer C2300 V1"; 12 12 13 memory@0 { 13 memory@0 { 14 device_type = "memory"; 14 device_type = "memory"; 15 reg = <0x00 0x00 0x00 0x200000 15 reg = <0x00 0x00 0x00 0x20000000>; 16 }; 16 }; 17 17 18 leds { 18 leds { 19 compatible = "gpio-leds"; 19 compatible = "gpio-leds"; 20 20 21 led-power { 21 led-power { 22 function = LED_FUNCTIO 22 function = LED_FUNCTION_POWER; 23 color = <LED_COLOR_ID_ 23 color = <LED_COLOR_ID_BLUE>; 24 gpios = <&gpio0 0 GPIO 24 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; 25 }; 25 }; 26 26 27 led-2ghz { 27 led-2ghz { 28 function = "2ghz"; 28 function = "2ghz"; 29 color = <LED_COLOR_ID_ 29 color = <LED_COLOR_ID_BLUE>; 30 gpios = <&gpio0 2 GPIO 30 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; 31 }; 31 }; 32 32 33 led-5ghz { 33 led-5ghz { 34 function = "5ghz"; 34 function = "5ghz"; 35 color = <LED_COLOR_ID_ 35 color = <LED_COLOR_ID_BLUE>; 36 gpios = <&gpio0 3 GPIO 36 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; 37 }; 37 }; 38 38 39 led-wan-amber { 39 led-wan-amber { 40 function = LED_FUNCTIO 40 function = LED_FUNCTION_WAN; 41 color = <LED_COLOR_ID_ 41 color = <LED_COLOR_ID_AMBER>; 42 gpios = <&gpio0 4 GPIO 42 gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; 43 }; 43 }; 44 44 45 led-wan-blue { 45 led-wan-blue { 46 function = LED_FUNCTIO 46 function = LED_FUNCTION_WAN; 47 color = <LED_COLOR_ID_ 47 color = <LED_COLOR_ID_BLUE>; 48 gpios = <&gpio0 10 GPI 48 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 49 }; 49 }; 50 50 51 led-lan { 51 led-lan { 52 function = LED_FUNCTIO 52 function = LED_FUNCTION_LAN; 53 color = <LED_COLOR_ID_ 53 color = <LED_COLOR_ID_BLUE>; 54 gpios = <&gpio0 12 GPI 54 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; 55 }; 55 }; 56 56 57 led-wps { 57 led-wps { 58 function = LED_FUNCTIO 58 function = LED_FUNCTION_WPS; 59 color = <LED_COLOR_ID_ 59 color = <LED_COLOR_ID_BLUE>; 60 gpios = <&gpio0 14 GPI 60 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 61 }; 61 }; 62 62 63 led-usb2 { 63 led-usb2 { 64 function = "usb2"; 64 function = "usb2"; 65 color = <LED_COLOR_ID_ 65 color = <LED_COLOR_ID_BLUE>; 66 gpios = <&gpio0 15 GPI 66 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 67 trigger-sources = <&oh 67 trigger-sources = <&ohci_port1>, <&ehci_port1>; 68 linux,default-trigger 68 linux,default-trigger = "usbport"; 69 }; 69 }; 70 70 71 led-usb3 { 71 led-usb3 { 72 function = "usb3"; 72 function = "usb3"; 73 color = <LED_COLOR_ID_ 73 color = <LED_COLOR_ID_BLUE>; 74 gpios = <&gpio0 17 GPI 74 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; 75 trigger-sources = <&oh 75 trigger-sources = <&ohci_port2>, <&ehci_port2>, <&xhci_port2>; 76 linux,default-trigger 76 linux,default-trigger = "usbport"; 77 }; 77 }; 78 78 79 led-brightness { 79 led-brightness { 80 function = LED_FUNCTIO 80 function = LED_FUNCTION_BACKLIGHT; 81 color = <LED_COLOR_ID_ 81 color = <LED_COLOR_ID_WHITE>; 82 gpios = <&gpio0 19 GPI 82 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; 83 }; 83 }; 84 }; 84 }; 85 85 86 gpio-keys-polled { 86 gpio-keys-polled { 87 compatible = "gpio-keys-polled 87 compatible = "gpio-keys-polled"; 88 poll-interval = <100>; 88 poll-interval = <100>; 89 89 90 key-brightness { 90 key-brightness { 91 label = "LEDs"; 91 label = "LEDs"; 92 linux,code = <KEY_BRIG 92 linux,code = <KEY_BRIGHTNESS_ZERO>; 93 gpios = <&gpio0 18 GPI 93 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; 94 }; 94 }; 95 95 96 key-wps { 96 key-wps { 97 label = "WPS"; 97 label = "WPS"; 98 linux,code = <KEY_WPS_ 98 linux,code = <KEY_WPS_BUTTON>; 99 gpios = <&gpio0 21 GPI 99 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; 100 }; 100 }; 101 101 102 key-wifi { 102 key-wifi { 103 label = "WiFi"; 103 label = "WiFi"; 104 linux,code = <KEY_RFKI 104 linux,code = <KEY_RFKILL>; 105 gpios = <&gpio0 22 GPI 105 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; 106 }; 106 }; 107 107 108 key-restart { 108 key-restart { 109 label = "Reset"; 109 label = "Reset"; 110 linux,code = <KEY_REST 110 linux,code = <KEY_RESTART>; 111 gpios = <&gpio0 23 GPI 111 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; 112 }; 112 }; 113 }; 113 }; 114 }; 114 }; 115 115 116 &usb_phy { 116 &usb_phy { 117 brcm,ioc = <1>; 117 brcm,ioc = <1>; 118 status = "okay"; 118 status = "okay"; 119 }; 119 }; 120 120 121 &ehci { 121 &ehci { 122 status = "okay"; 122 status = "okay"; 123 }; 123 }; 124 124 125 &ohci { 125 &ohci { 126 status = "okay"; 126 status = "okay"; 127 }; 127 }; 128 128 129 &xhci { 129 &xhci { 130 status = "okay"; 130 status = "okay"; 131 }; 131 }; 132 132 133 &ports { 133 &ports { 134 port@0 { 134 port@0 { 135 label = "lan4"; 135 label = "lan4"; 136 }; 136 }; 137 137 138 port@1 { 138 port@1 { 139 label = "lan3"; 139 label = "lan3"; 140 }; 140 }; 141 141 142 port@2 { 142 port@2 { 143 label = "lan2"; 143 label = "lan2"; 144 }; 144 }; 145 145 146 port@3 { 146 port@3 { 147 label = "lan1"; 147 label = "lan1"; 148 }; 148 }; 149 149 150 port@7 { 150 port@7 { 151 reg = <7>; 151 reg = <7>; 152 phy-mode = "internal"; 152 phy-mode = "internal"; 153 phy-handle = <&phy12>; 153 phy-handle = <&phy12>; 154 label = "wan"; 154 label = "wan"; 155 }; 155 }; 156 }; 156 }; 157 157 158 &nand_controller { 158 &nand_controller { 159 brcm,wp-not-connected; 159 brcm,wp-not-connected; 160 status = "okay"; 160 status = "okay"; 161 }; 161 }; 162 162 163 &nandcs { 163 &nandcs { 164 nand-ecc-strength = <4>; 164 nand-ecc-strength = <4>; 165 nand-ecc-step-size = <512>; 165 nand-ecc-step-size = <512>; 166 nand-on-flash-bbt; 166 nand-on-flash-bbt; 167 167 168 #address-cells = <1>; 168 #address-cells = <1>; 169 #size-cells = <0>; 169 #size-cells = <0>; 170 170 171 partitions { 171 partitions { 172 compatible = "brcm,bcm4908-par 172 compatible = "brcm,bcm4908-partitions"; 173 #address-cells = <1>; 173 #address-cells = <1>; 174 #size-cells = <1>; 174 #size-cells = <1>; 175 175 176 partition@0 { 176 partition@0 { 177 label = "cferom"; 177 label = "cferom"; 178 reg = <0x0 0x100000>; 178 reg = <0x0 0x100000>; 179 }; 179 }; 180 180 181 partition@100000 { 181 partition@100000 { 182 compatible = "brcm,bcm 182 compatible = "brcm,bcm4908-firmware"; 183 reg = <0x100000 0x3900 183 reg = <0x100000 0x3900000>; 184 }; 184 }; 185 185 186 partition@5800000 { 186 partition@5800000 { 187 compatible = "brcm,bcm 187 compatible = "brcm,bcm4908-firmware"; 188 reg = <0x3a00000 0x390 188 reg = <0x3a00000 0x3900000>; 189 }; 189 }; 190 }; 190 }; 191 }; 191 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.