~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm64/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2 
  3 #include <dt-bindings/gpio/gpio.h>
  4 #include <dt-bindings/input/input.h>
  5 #include <dt-bindings/leds/common.h>
  6 
  7 #include "bcm4908.dtsi"
  8 
  9 / {
 10         compatible = "asus,gt-ac5300", "brcm,bcm4908", "brcm,bcmbca";
 11         model = "Asus GT-AC5300";
 12 
 13         memory@0 {
 14                 device_type = "memory";
 15                 reg = <0x00 0x00 0x00 0x40000000>;
 16         };
 17 
 18         gpio-keys-polled {
 19                 compatible = "gpio-keys-polled";
 20                 poll-interval = <100>;
 21 
 22                 key-wifi {
 23                         label = "WiFi";
 24                         linux,code = <KEY_RFKILL>;
 25                         gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
 26                 };
 27 
 28                 key-wps {
 29                         label = "WPS";
 30                         linux,code = <KEY_WPS_BUTTON>;
 31                         gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
 32                 };
 33 
 34                 key-restart {
 35                         label = "Reset";
 36                         linux,code = <KEY_RESTART>;
 37                         gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
 38                 };
 39 
 40                 key-brightness {
 41                         label = "LEDs";
 42                         linux,code = <KEY_BRIGHTNESS_ZERO>;
 43                         gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
 44                 };
 45         };
 46 };
 47 
 48 &enet {
 49         nvmem-cells = <&base_mac_addr>;
 50         nvmem-cell-names = "mac-address";
 51 };
 52 
 53 &usb_phy {
 54         brcm,ioc = <1>;
 55         status = "okay";
 56 };
 57 
 58 &ehci {
 59         status = "okay";
 60 };
 61 
 62 &ohci {
 63         status = "okay";
 64 };
 65 
 66 &xhci {
 67         status = "okay";
 68 };
 69 
 70 &ports {
 71         port@0 {
 72                 label = "lan2";
 73         };
 74 
 75         port@1 {
 76                 label = "lan1";
 77         };
 78 
 79         port@2 {
 80                 label = "lan6";
 81         };
 82 
 83         port@3 {
 84                 label = "lan5";
 85         };
 86 
 87         /* External BCM53134S switch */
 88         port@7 {
 89                 label = "sw";
 90                 reg = <7>;
 91                 phy-mode = "rgmii";
 92 
 93                 fixed-link {
 94                         speed = <1000>;
 95                         full-duplex;
 96                 };
 97         };
 98 };
 99 
100 &mdio {
101         /* lan8 */
102         ethernet-phy@0 {
103                 reg = <0>;
104         };
105 
106         /* lan7 */
107         ethernet-phy@1 {
108                 reg = <1>;
109         };
110 
111         /* lan4 */
112         ethernet-phy@2 {
113                 reg = <2>;
114         };
115 
116         /* lan3 */
117         ethernet-phy@3 {
118                 reg = <3>;
119         };
120 };
121 
122 &leds {
123         led@11 {
124                 reg = <0x11>;
125                 function = LED_FUNCTION_POWER;
126                 color = <LED_COLOR_ID_WHITE>;
127                 default-state = "on";
128                 active-low;
129                 pinctrl-names = "default";
130                 pinctrl-0 = <&pins_led_17_a>;
131         };
132 
133         led@12 {
134                 reg = <0x12>;
135                 function = LED_FUNCTION_WAN;
136                 color = <LED_COLOR_ID_RED>;
137                 active-low;
138                 pinctrl-names = "default";
139                 pinctrl-0 = <&pins_led_18_a>;
140         };
141 
142         led@14 {
143                 reg = <0x14>;
144                 function = LED_FUNCTION_WPS;
145                 color = <LED_COLOR_ID_WHITE>;
146                 active-low;
147                 pinctrl-names = "default";
148                 pinctrl-0 = <&pins_led_20_a>;
149         };
150 
151         led@15 {
152                 reg = <0x15>;
153                 function = LED_FUNCTION_WAN;
154                 color = <LED_COLOR_ID_WHITE>;
155                 active-low;
156                 pinctrl-names = "default";
157                 pinctrl-0 = <&pins_led_21_a>;
158         };
159 
160         led@19 {
161                 reg = <0x19>;
162                 function = LED_FUNCTION_LAN;
163                 color = <LED_COLOR_ID_WHITE>;
164                 pinctrl-names = "default";
165                 pinctrl-0 = <&pins_led_25_a>;
166         };
167 };
168 
169 &nand_controller {
170         brcm,wp-not-connected;
171         status = "okay";
172 };
173 
174 &nandcs {
175         nand-ecc-strength = <4>;
176         nand-ecc-step-size = <512>;
177         nand-on-flash-bbt;
178 
179         #address-cells = <1>;
180         #size-cells = <0>;
181 
182         partitions {
183                 compatible = "brcm,bcm4908-partitions";
184                 #address-cells = <1>;
185                 #size-cells = <1>;
186 
187                 partition@0 {
188                         label = "cferom";
189                         reg = <0x0 0x100000>;
190 
191                         nvmem-layout {
192                                 compatible = "fixed-layout";
193                                 #address-cells = <1>;
194                                 #size-cells = <1>;
195 
196                                 base_mac_addr: mac@106a0 {
197                                         reg = <0x106a0 0x6>;
198                                 };
199                         };
200                 };
201 
202                 partition@100000 {
203                         compatible = "brcm,bcm4908-firmware";
204                         reg = <0x100000 0x5700000>;
205                 };
206 
207                 partition@5800000 {
208                         compatible = "brcm,bcm4908-firmware";
209                         reg = <0x5800000 0x5700000>;
210                 };
211         };
212 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php