Lines Matching +full:usb +full:- +full:to +full:- +full:serial

1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-bcm6328.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: LEDs connected to Broadcom BCM6328 controller
10 - Álvaro Fernández Rojas <noltari@gmail.com>
14 In these SoCs it's possible to control LEDs both as GPIOs or by hardware.
15 However, on some devices there are Serial LEDs (LEDs connected to a 74x164
17 as spi-gpio. See
20 Some of these Serial LEDs are hardware controlled (e.g. ethernet LEDs) and
21 exporting the 74x164 as spi-gpio prevents those LEDs to be hardware
22 controlled, so the only chance to keep them working is by using this driver.
27 is usually 1:1 for hardware to LED signals, but through the activity/link
29 explained later in brcm,link-signal-sources). Even if a LED is hardware
30 controlled you are still able to make it blink or light it up if it isn't,
31 but you can't turn it off if the hardware decides to light it up. For this
34 Each LED is represented as a sub-node of the brcm,bcm6328-leds device.
38 const: brcm,bcm6328-leds
43 brcm,serial-leds:
45 description: Enables Serial LEDs.
47 brcm,serial-mux:
49 description: Enables Serial LEDs multiplexing.
51 brcm,serial-clk-low:
55 brcm,serial-dat-low:
59 brcm,serial-shift-inv:
61 description: Inverts Serial LEDs shift direction.
63 "#address-cells":
66 "#size-cells":
70 "@[a-f0-9]+$":
78 - maximum: 23
79 description: LED pin number (only LEDs 0 to 23 are valid).
81 brcm,hardware-controlled:
85 brcm,link-signal-sources:
86 $ref: /schemas/types.yaml#/definitions/uint32-array
90 An array of hardware link signal sources. Up to four link hardware
91 signals can get muxed into these LEDs. Only valid for LEDs 0 to 7,
92 where LED signals 0 to 3 may be muxed to LEDs 0 to 3, and signals 4 to
93 7 may be muxed to LEDs 4 to 7. A signal can be muxed to more than one
96 brcm,activity-signal-sources:
97 $ref: /schemas/types.yaml#/definitions/uint32-array
101 An array of hardware activity signal sources. Up to four activity
103 to 7, where LED signals 0 to 3 may be muxed to LEDs 0 to 3, and
104 signals 4 to 7 may be muxed to LEDs 4 to 7. A signal can be muxed to
108 - reg
113 - reg
114 - "#address-cells"
115 - "#size-cells"
120 - |
122 led-controller@10000800 {
123 compatible = "brcm,bcm6328-leds";
124 #address-cells = <1>;
125 #size-cells = <0>;
130 active-low;
136 active-low;
142 active-low;
144 default-state = "on";
149 brcm,hardware-controlled;
154 brcm,hardware-controlled;
159 brcm,hardware-controlled;
164 brcm,hardware-controlled;
167 - |
168 /* BCM63268 with Serial/GPHY0 LEDs */
169 led-controller@10001900 {
170 compatible = "brcm,bcm6328-leds";
171 #address-cells = <1>;
172 #size-cells = <0>;
174 brcm,serial-leds;
175 brcm,serial-dat-low;
176 brcm,serial-shift-inv;
180 brcm,hardware-controlled;
181 brcm,link-signal-sources = <0>;
186 brcm,hardware-controlled;
187 brcm,link-signal-sources = <1>;
192 active-low;
198 active-low;
204 active-low;
205 label = "green:usb";
210 active-low;
216 active-low;
222 brcm,hardware-controlled;
227 brcm,hardware-controlled;
232 brcm,hardware-controlled;
237 brcm,hardware-controlled;
242 brcm,hardware-controlled;
247 brcm,hardware-controlled;
252 brcm,hardware-controlled;
257 active-low;
259 default-state = "on";
262 - |
264 led-controller@10001900 {
265 compatible = "brcm,bcm6328-leds";
266 #address-cells = <1>;
267 #size-cells = <0>;
270 usb@0 {
272 brcm,hardware-controlled;
273 brcm,link-signal-sources = <0>;
274 brcm,activity-signal-sources = <0>;
275 /* USB link/activity routed to USB LED */
280 brcm,hardware-controlled;
281 brcm,activity-signal-sources = <1>;
282 /* INET activity routed to INET LED */
287 brcm,hardware-controlled;
288 brcm,link-signal-sources = <4>;
289 /* EPHY0 link routed to EPHY0 LED */
294 brcm,hardware-controlled;
295 brcm,link-signal-sources = <5>;
296 /* EPHY1 link routed to EPHY1 LED */
301 brcm,hardware-controlled;
302 brcm,link-signal-sources = <6>;
303 /* EPHY2 link routed to EPHY2 LED */
308 brcm,hardware-controlled;
309 brcm,link-signal-sources = <7>;
310 /* EPHY3 link routed to EPHY3 LED */
315 active-low;
317 default-state = "on";
320 - |
322 led-controller@10001900 {
323 compatible = "brcm,bcm6328-leds";
324 #address-cells = <1>;
325 #size-cells = <0>;
328 usb@0 {
330 brcm,hardware-controlled;
331 brcm,link-signal-sources = <0 1>;
332 brcm,activity-signal-sources = <0 1>;
333 /* USB/INET link/activity routed to USB LED */
338 brcm,hardware-controlled;
339 brcm,link-signal-sources = <4 5 6 7>;
340 /* EPHY0/1/2/3 link routed to EPHY0 LED */
345 active-low;
347 default-state = "on";
350 - |
352 led-controller@10001900 {
353 compatible = "brcm,bcm6328-leds";
354 #address-cells = <1>;
355 #size-cells = <0>;
358 usb@0 {
360 brcm,hardware-controlled;
361 brcm,link-signal-sources = <0>;
362 brcm,activity-signal-sources = <0 1>;
363 /* USB link/act and INET act routed to USB LED */
368 brcm,hardware-controlled;
369 brcm,link-signal-sources = <7>;
370 /* EPHY3 link routed to EPHY0 LED */
375 brcm,hardware-controlled;
376 brcm,link-signal-sources = <6>;
377 /* EPHY2 link routed to EPHY1 LED */
382 brcm,hardware-controlled;
383 brcm,link-signal-sources = <5>;
384 /* EPHY1 link routed to EPHY2 LED */
389 brcm,hardware-controlled;
390 brcm,link-signal-sources = <4>;
391 /* EPHY0 link routed to EPHY3 LED */
396 active-low;
398 default-state = "on";