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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml

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

Diff markup

Differences between /Documentation/devicetree/bindings/leds/leds-lp55xx.yaml (Architecture mips) and /Documentation/devicetree/bindings/leds/leds-lp55xx.yaml (Architecture i386)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/leds/leds-l      4 $id: http://devicetree.org/schemas/leds/leds-lp55xx.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: TI/National Semiconductor LP55xx and LP      7 title: TI/National Semiconductor LP55xx and LP8501 LED Drivers
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Jacek Anaszewski <jacek.anaszewski@gmail.co     10   - Jacek Anaszewski <jacek.anaszewski@gmail.com>
 11   - Pavel Machek <pavel@ucw.cz>                     11   - Pavel Machek <pavel@ucw.cz>
 12                                                    12 
 13 description: |                                     13 description: |
 14   Bindings for the TI/National Semiconductor L     14   Bindings for the TI/National Semiconductor LP55xx and LP8501 multi channel
 15   LED Drivers.                                     15   LED Drivers.
 16                                                    16 
 17   For more product information please see the      17   For more product information please see the link below:
 18     https://www.ti.com/lit/gpn/lp5521              18     https://www.ti.com/lit/gpn/lp5521
 19     https://www.ti.com/lit/gpn/lp5523              19     https://www.ti.com/lit/gpn/lp5523
 20     https://www.ti.com/lit/gpn/lp55231             20     https://www.ti.com/lit/gpn/lp55231
 21     https://www.ti.com/lit/gpn/lp5562              21     https://www.ti.com/lit/gpn/lp5562
 22     https://www.ti.com/lit/gpn/lp8501              22     https://www.ti.com/lit/gpn/lp8501
 23                                                    23 
 24 properties:                                        24 properties:
 25   compatible:                                      25   compatible:
 26     enum:                                          26     enum:
 27       - national,lp5521                            27       - national,lp5521
 28       - national,lp5523                            28       - national,lp5523
 29       - ti,lp55231                                 29       - ti,lp55231
 30       - ti,lp5562                                  30       - ti,lp5562
 31       - ti,lp5569                                  31       - ti,lp5569
 32       - ti,lp8501                                  32       - ti,lp8501
 33                                                    33 
 34   reg:                                             34   reg:
 35     maxItems: 1                                    35     maxItems: 1
 36     description: I2C slave address                 36     description: I2C slave address
 37                                                    37 
 38   clock-mode:                                      38   clock-mode:
 39     $ref: /schemas/types.yaml#/definitions/uin     39     $ref: /schemas/types.yaml#/definitions/uint8
 40     description: |                                 40     description: |
 41       Input clock mode                             41       Input clock mode
 42     enum:                                          42     enum:
 43       - 0 # automode                               43       - 0 # automode
 44       - 1 # internal                               44       - 1 # internal
 45       - 2 # external                               45       - 2 # external
 46                                                    46 
 47   enable-gpios:                                    47   enable-gpios:
 48     maxItems: 1                                    48     maxItems: 1
 49     description: |                                 49     description: |
 50       GPIO attached to the chip's enable pin       50       GPIO attached to the chip's enable pin
 51                                                    51 
 52   label: true                                      52   label: true
 53                                                    53 
 54   pwr-sel:                                         54   pwr-sel:
 55     $ref: /schemas/types.yaml#/definitions/uin     55     $ref: /schemas/types.yaml#/definitions/uint8
 56     description: |                                 56     description: |
 57       LP8501 specific property. Power selectio     57       LP8501 specific property. Power selection for output channels.
 58     enum:                                          58     enum:
 59       - 0 # D1~9 are connected to VDD              59       - 0 # D1~9 are connected to VDD
 60       - 1 # D1~6 with VDD, D7~9 with VOUT          60       - 1 # D1~6 with VDD, D7~9 with VOUT
 61       - 2 # D1~6 with VOUT, D7~9 with VDD          61       - 2 # D1~6 with VOUT, D7~9 with VDD
 62       - 3 # D1~9 are connected to VOUT             62       - 3 # D1~9 are connected to VOUT
 63                                                    63 
 64   '#address-cells':                                64   '#address-cells':
 65     const: 1                                       65     const: 1
 66                                                    66 
 67   '#size-cells':                                   67   '#size-cells':
 68     const: 0                                       68     const: 0
 69                                                    69 
 70   ti,charge-pump-mode:                             70   ti,charge-pump-mode:
 71     description:                                   71     description:
 72       Set the operating mode of the internal c     72       Set the operating mode of the internal charge pump as defined in
 73       <dt-bindings/leds/leds-lp55xx.h>.            73       <dt-bindings/leds/leds-lp55xx.h>.
 74     $ref: /schemas/types.yaml#/definitions/uin     74     $ref: /schemas/types.yaml#/definitions/uint32
 75     default: 3 # auto                              75     default: 3 # auto
 76     maximum: 3                                     76     maximum: 3
 77                                                    77 
 78 patternProperties:                                 78 patternProperties:
 79   '^multi-led@[0-8]$':                             79   '^multi-led@[0-8]$':
 80     type: object                                   80     type: object
 81     $ref: leds-class-multicolor.yaml#              81     $ref: leds-class-multicolor.yaml#
 82     unevaluatedProperties: false                   82     unevaluatedProperties: false
 83                                                    83 
 84     properties:                                    84     properties:
 85       reg:                                         85       reg:
 86         maximum: 8                                 86         maximum: 8
 87                                                    87 
 88       '#address-cells':                            88       '#address-cells':
 89         const: 1                                   89         const: 1
 90                                                    90 
 91       '#size-cells':                               91       '#size-cells':
 92         const: 0                                   92         const: 0
 93                                                    93 
 94     patternProperties:                             94     patternProperties:
 95       "^led@[0-8]$":                               95       "^led@[0-8]$":
 96         type: object                               96         type: object
 97         $ref: common.yaml#                         97         $ref: common.yaml#
 98         unevaluatedProperties: false               98         unevaluatedProperties: false
 99                                                    99 
100         properties:                               100         properties:
101           led-cur:                                101           led-cur:
102             $ref: /schemas/types.yaml#/definit    102             $ref: /schemas/types.yaml#/definitions/uint8
103             description: |                        103             description: |
104               Current setting at each LED chan    104               Current setting at each LED channel (mA x10, 0 if LED is not connected)
105             minimum: 0                            105             minimum: 0
106             maximum: 255                          106             maximum: 255
107                                                   107 
108           max-cur:                                108           max-cur:
109             $ref: /schemas/types.yaml#/definit    109             $ref: /schemas/types.yaml#/definitions/uint8
110             description: Maximum current at ea    110             description: Maximum current at each LED channel.
111                                                   111 
112           reg:                                    112           reg:
113             maximum: 8                            113             maximum: 8
114                                                   114 
115         required:                                 115         required:
116           - reg                                   116           - reg
117                                                   117 
118   "^led@[0-8]$":                                  118   "^led@[0-8]$":
119     type: object                                  119     type: object
120     $ref: common.yaml#                            120     $ref: common.yaml#
121     unevaluatedProperties: false                  121     unevaluatedProperties: false
122                                                   122 
123     properties:                                   123     properties:
124       led-cur:                                    124       led-cur:
125         $ref: /schemas/types.yaml#/definitions    125         $ref: /schemas/types.yaml#/definitions/uint8
126         description: |                            126         description: |
127           Current setting at each LED channel     127           Current setting at each LED channel (mA x10, 0 if LED is not connected)
128         minimum: 0                                128         minimum: 0
129         maximum: 255                              129         maximum: 255
130                                                   130 
131       max-cur:                                    131       max-cur:
132         $ref: /schemas/types.yaml#/definitions    132         $ref: /schemas/types.yaml#/definitions/uint8
133         description: Maximum current at each L    133         description: Maximum current at each LED channel.
134                                                   134 
135       reg:                                        135       reg:
136         description: |                            136         description: |
137           Output channel for the LED.  This is    137           Output channel for the LED.  This is zero based channel identifier and
138           the data sheet is a one based channe    138           the data sheet is a one based channel identifier.
139           reg value to output to LED output nu    139           reg value to output to LED output number
140         enum:                                     140         enum:
141           - 0 # LED output D1                     141           - 0 # LED output D1
142           - 1 # LED output D2                     142           - 1 # LED output D2
143           - 2 # LED output D3                     143           - 2 # LED output D3
144           - 3 # LED output D4                     144           - 3 # LED output D4
145           - 4 # LED output D5                     145           - 4 # LED output D5
146           - 5 # LED output D6                     146           - 5 # LED output D6
147           - 6 # LED output D7                     147           - 6 # LED output D7
148           - 7 # LED output D8                     148           - 7 # LED output D8
149           - 8 # LED output D9                     149           - 8 # LED output D9
150                                                   150 
151       chan-name:                                  151       chan-name:
152         $ref: /schemas/types.yaml#/definitions    152         $ref: /schemas/types.yaml#/definitions/string
153         description: name of channel              153         description: name of channel
154                                                   154 
155 if:                                               155 if:
156   not:                                            156   not:
157     properties:                                   157     properties:
158       compatible:                                 158       compatible:
159         contains:                                 159         contains:
160           const: ti,lp8501                        160           const: ti,lp8501
161 then:                                             161 then:
162   properties:                                     162   properties:
163     pwr-sel: false                                163     pwr-sel: false
164                                                   164 
165 required:                                         165 required:
166   - compatible                                    166   - compatible
167   - reg                                           167   - reg
168                                                   168 
169 additionalProperties: false                       169 additionalProperties: false
170                                                   170 
171 examples:                                         171 examples:
172   - |                                             172   - |
173     #include <dt-bindings/leds/common.h>          173     #include <dt-bindings/leds/common.h>
174     #include <dt-bindings/leds/leds-lp55xx.h>     174     #include <dt-bindings/leds/leds-lp55xx.h>
175                                                   175 
176     i2c {                                         176     i2c {
177         #address-cells = <1>;                     177         #address-cells = <1>;
178         #size-cells = <0>;                        178         #size-cells = <0>;
179                                                   179 
180         led-controller@32 {                       180         led-controller@32 {
181             #address-cells = <1>;                 181             #address-cells = <1>;
182             #size-cells = <0>;                    182             #size-cells = <0>;
183             compatible = "ti,lp8501";             183             compatible = "ti,lp8501";
184             reg = <0x32>;                         184             reg = <0x32>;
185             clock-mode = /bits/ 8 <2>;            185             clock-mode = /bits/ 8 <2>;
186             pwr-sel = /bits/ 8 <3>;     /* D1~    186             pwr-sel = /bits/ 8 <3>;     /* D1~9 connected to VOUT */
187             ti,charge-pump-mode = <LP55XX_CP_B    187             ti,charge-pump-mode = <LP55XX_CP_BYPASS>;
188                                                   188 
189             led@0 {                               189             led@0 {
190                 reg = <0>;                        190                 reg = <0>;
191                 chan-name = "d1";                 191                 chan-name = "d1";
192                 led-cur = /bits/ 8 <0x14>;        192                 led-cur = /bits/ 8 <0x14>;
193                 max-cur = /bits/ 8 <0x20>;        193                 max-cur = /bits/ 8 <0x20>;
194             };                                    194             };
195                                                   195 
196             led@1 {                               196             led@1 {
197                 reg = <1>;                        197                 reg = <1>;
198                 chan-name = "d2";                 198                 chan-name = "d2";
199                 led-cur = /bits/ 8 <0x14>;        199                 led-cur = /bits/ 8 <0x14>;
200                 max-cur = /bits/ 8 <0x20>;        200                 max-cur = /bits/ 8 <0x20>;
201             };                                    201             };
202                                                   202 
203             led@2 {                               203             led@2 {
204                 reg = <2>;                        204                 reg = <2>;
205                 chan-name = "d3";                 205                 chan-name = "d3";
206                 led-cur = /bits/ 8 <0x14>;        206                 led-cur = /bits/ 8 <0x14>;
207                 max-cur = /bits/ 8 <0x20>;        207                 max-cur = /bits/ 8 <0x20>;
208             };                                    208             };
209                                                   209 
210             led@3 {                               210             led@3 {
211                 reg = <3>;                        211                 reg = <3>;
212                 chan-name = "d4";                 212                 chan-name = "d4";
213                 led-cur = /bits/ 8 <0x14>;        213                 led-cur = /bits/ 8 <0x14>;
214                 max-cur = /bits/ 8 <0x20>;        214                 max-cur = /bits/ 8 <0x20>;
215             };                                    215             };
216                                                   216 
217             led@4 {                               217             led@4 {
218                 reg = <4>;                        218                 reg = <4>;
219                 chan-name = "d5";                 219                 chan-name = "d5";
220                 led-cur = /bits/ 8 <0x14>;        220                 led-cur = /bits/ 8 <0x14>;
221                 max-cur = /bits/ 8 <0x20>;        221                 max-cur = /bits/ 8 <0x20>;
222             };                                    222             };
223                                                   223 
224             led@5 {                               224             led@5 {
225                 reg = <5>;                        225                 reg = <5>;
226                 chan-name = "d6";                 226                 chan-name = "d6";
227                 led-cur = /bits/ 8 <0x14>;        227                 led-cur = /bits/ 8 <0x14>;
228                 max-cur = /bits/ 8 <0x20>;        228                 max-cur = /bits/ 8 <0x20>;
229             };                                    229             };
230                                                   230 
231             led@6 {                               231             led@6 {
232                 reg = <6>;                        232                 reg = <6>;
233                 chan-name = "d7";                 233                 chan-name = "d7";
234                 led-cur = /bits/ 8 <0x14>;        234                 led-cur = /bits/ 8 <0x14>;
235                 max-cur = /bits/ 8 <0x20>;        235                 max-cur = /bits/ 8 <0x20>;
236             };                                    236             };
237                                                   237 
238             led@7 {                               238             led@7 {
239                 reg = <7>;                        239                 reg = <7>;
240                 chan-name = "d8";                 240                 chan-name = "d8";
241                 led-cur = /bits/ 8 <0x14>;        241                 led-cur = /bits/ 8 <0x14>;
242                 max-cur = /bits/ 8 <0x20>;        242                 max-cur = /bits/ 8 <0x20>;
243             };                                    243             };
244                                                   244 
245             led@8 {                               245             led@8 {
246                 reg = <8>;                        246                 reg = <8>;
247                 chan-name = "d9";                 247                 chan-name = "d9";
248                 led-cur = /bits/ 8 <0x14>;        248                 led-cur = /bits/ 8 <0x14>;
249                 max-cur = /bits/ 8 <0x20>;        249                 max-cur = /bits/ 8 <0x20>;
250             };                                    250             };
251         };                                        251         };
252                                                   252 
253         led-controller@33 {                       253         led-controller@33 {
254             #address-cells = <1>;                 254             #address-cells = <1>;
255             #size-cells = <0>;                    255             #size-cells = <0>;
256             compatible = "national,lp5523";       256             compatible = "national,lp5523";
257             reg = <0x33>;                         257             reg = <0x33>;
258             clock-mode = /bits/ 8 <0>;            258             clock-mode = /bits/ 8 <0>;
259                                                   259 
260             multi-led@2 {                         260             multi-led@2 {
261                 #address-cells = <1>;             261                 #address-cells = <1>;
262                 #size-cells = <0>;                262                 #size-cells = <0>;
263                 reg = <0x2>;                      263                 reg = <0x2>;
264                 color = <LED_COLOR_ID_RGB>;       264                 color = <LED_COLOR_ID_RGB>;
265                 function = LED_FUNCTION_STANDB    265                 function = LED_FUNCTION_STANDBY;
266                 linux,default-trigger = "heart    266                 linux,default-trigger = "heartbeat";
267                                                   267 
268                 led@0 {                           268                 led@0 {
269                     led-cur = /bits/ 8 <50>;      269                     led-cur = /bits/ 8 <50>;
270                     max-cur = /bits/ 8 <100>;     270                     max-cur = /bits/ 8 <100>;
271                     reg = <0x0>;                  271                     reg = <0x0>;
272                     color = <LED_COLOR_ID_GREE    272                     color = <LED_COLOR_ID_GREEN>;
273                 };                                273                 };
274                                                   274 
275                 led@1 {                           275                 led@1 {
276                     led-cur = /bits/ 8 <50>;      276                     led-cur = /bits/ 8 <50>;
277                     max-cur = /bits/ 8 <100>;     277                     max-cur = /bits/ 8 <100>;
278                     reg = <0x1>;                  278                     reg = <0x1>;
279                     color = <LED_COLOR_ID_BLUE    279                     color = <LED_COLOR_ID_BLUE>;
280                 };                                280                 };
281                                                   281 
282                 led@6 {                           282                 led@6 {
283                     led-cur = /bits/ 8 <50>;      283                     led-cur = /bits/ 8 <50>;
284                     max-cur = /bits/ 8 <100>;     284                     max-cur = /bits/ 8 <100>;
285                     reg = <0x6>;                  285                     reg = <0x6>;
286                     color = <LED_COLOR_ID_RED>    286                     color = <LED_COLOR_ID_RED>;
287                 };                                287                 };
288             };                                    288             };
289         };                                        289         };
290     };                                            290     };
291                                                   291 
292 ...                                               292 ...
                                                      

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