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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/leds/leds-bcm6358.txt

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 LEDs connected to Broadcom BCM6358 controller
  2 
  3 This controller is present on BCM6358 and BCM6368.
  4 In these SoCs there are Serial LEDs (LEDs connected to a 74x164 controller),
  5 which can either be controlled by software (exporting the 74x164 as spi-gpio.
  6 See Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml), or
  7 by hardware using this driver.
  8 
  9 Required properties:
 10   - compatible : should be "brcm,bcm6358-leds".
 11   - #address-cells : must be 1.
 12   - #size-cells : must be 0.
 13   - reg : BCM6358 LED controller address and size.
 14 
 15 Optional properties:
 16   - brcm,clk-div : SCK signal divider. Possible values are 1, 2, 4 and 8.
 17     Default : 1
 18   - brcm,clk-dat-low : Boolean, makes clock and data signals active low.
 19     Default : false
 20 
 21 Each LED is represented as a sub-node of the brcm,bcm6358-leds device.
 22 
 23 LED sub-node required properties:
 24   - reg : LED pin number (only LEDs 0 to 31 are valid).
 25 
 26 LED sub-node optional properties:
 27   - label : see Documentation/devicetree/bindings/leds/common.txt
 28   - default-state : see
 29     Documentation/devicetree/bindings/leds/common.txt
 30   - linux,default-trigger : see
 31     Documentation/devicetree/bindings/leds/common.txt
 32 
 33 Examples:
 34 Scenario 1 : BCM6358
 35         leds0: led-controller@fffe00d0 {
 36                 compatible = "brcm,bcm6358-leds";
 37                 #address-cells = <1>;
 38                 #size-cells = <0>;
 39                 reg = <0xfffe00d0 0x8>;
 40 
 41                 alarm_white {
 42                         reg = <0>;
 43                         active-low;
 44                         label = "white:alarm";
 45                 };
 46                 tv_white {
 47                         reg = <2>;
 48                         active-low;
 49                         label = "white:tv";
 50                 };
 51                 tel_white {
 52                         reg = <3>;
 53                         active-low;
 54                         label = "white:tel";
 55                 };
 56                 adsl_white {
 57                         reg = <4>;
 58                         active-low;
 59                         label = "white:adsl";
 60                 };
 61         };
 62 
 63 Scenario 2 : BCM6368
 64         leds0: led-controller@100000d0 {
 65                 compatible = "brcm,bcm6358-leds";
 66                 #address-cells = <1>;
 67                 #size-cells = <0>;
 68                 reg = <0x100000d0 0x8>;
 69                 brcm,pol-low;
 70                 brcm,clk-div = <4>;
 71 
 72                 power_red {
 73                         reg = <0>;
 74                         active-low;
 75                         label = "red:power";
 76                 };
 77                 power_green {
 78                         reg = <1>;
 79                         active-low;
 80                         label = "green:power";
 81                         default-state = "on";
 82                 };
 83                 power_blue {
 84                         reg = <2>;
 85                         label = "blue:power";
 86                 };
 87                 broadband_red {
 88                         reg = <3>;
 89                         active-low;
 90                         label = "red:broadband";
 91                 };
 92                 broadband_green {
 93                         reg = <4>;
 94                         label = "green:broadband";
 95                 };
 96                 broadband_blue {
 97                         reg = <5>;
 98                         active-low;
 99                         label = "blue:broadband";
100                 };
101                 wireless_red {
102                         reg = <6>;
103                         active-low;
104                         label = "red:wireless";
105                 };
106                 wireless_green {
107                         reg = <7>;
108                         active-low;
109                         label = "green:wireless";
110                 };
111                 wireless_blue {
112                         reg = <8>;
113                         label = "blue:wireless";
114                 };
115                 phone_red {
116                         reg = <9>;
117                         active-low;
118                         label = "red:phone";
119                 };
120                 phone_green {
121                         reg = <10>;
122                         active-low;
123                         label = "green:phone";
124                 };
125                 phone_blue {
126                         reg = <11>;
127                         label = "blue:phone";
128                 };
129                 upgrading_red {
130                         reg = <12>;
131                         active-low;
132                         label = "red:upgrading";
133                 };
134                 upgrading_green {
135                         reg = <13>;
136                         active-low;
137                         label = "green:upgrading";
138                 };
139                 upgrading_blue {
140                         reg = <14>;
141                         label = "blue:upgrading";
142                 };
143         };

~ [ 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