1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 2 %YAML 1.2 3 --- 4 $id: http://devicetree.org/schemas/leds/nxp,pc 5 $schema: http://devicetree.org/meta-schemas/co 6 7 title: NXP PCA963x LED controllers 8 9 maintainers: 10 - Laurent Pinchart <laurent.pinchart@ideasonb 11 12 description: | 13 The NXP PCA963x are I2C-controlled LED drive 14 Red/Green/Blue/Amber (RGBA) color mixing app 15 individually controllable and has its own PW 16 17 Datasheets are available at 18 19 - https://www.nxp.com/docs/en/data-sheet/PCA 20 - https://www.nxp.com/docs/en/data-sheet/PCA 21 - https://www.nxp.com/docs/en/data-sheet/PCA 22 - https://www.nxp.com/docs/en/data-sheet/PCA 23 24 properties: 25 compatible: 26 enum: 27 - nxp,pca9632 28 - nxp,pca9633 29 - nxp,pca9634 30 - nxp,pca9635 31 32 reg: 33 maxItems: 1 34 35 "#address-cells": 36 const: 1 37 38 "#size-cells": 39 const: 0 40 41 nxp,hw-blink: 42 type: boolean 43 description: 44 Use hardware blinking instead of softwar 45 46 nxp,inverted-out: 47 type: boolean 48 description: 49 Invert the polarity of the generated PWM 50 51 nxp,period-scale: 52 $ref: /schemas/types.yaml#/definitions/uin 53 description: 54 In some configurations, the chip blinks 55 parameter provides a scaling ratio (fixe 56 to compensate, e.g. 1300=1.3x and 750=0. 57 58 nxp,totem-pole: 59 type: boolean 60 description: 61 Use totem pole (push-pull) instead of op 62 open-drain, newer chips to totem pole). 63 64 patternProperties: 65 "^led@[0-9a-f]+$": 66 type: object 67 $ref: common.yaml# 68 unevaluatedProperties: false 69 70 properties: 71 reg: 72 minimum: 0 73 74 required: 75 - reg 76 77 allOf: 78 - if: 79 properties: 80 compatible: 81 contains: 82 enum: 83 - nxp,pca9632 84 - nxp,pca9633 85 then: 86 patternProperties: 87 "^led@[0-9a-f]+$": 88 properties: 89 reg: 90 maximum: 3 91 else: 92 patternProperties: 93 "^led@[0-9a-f]+$": 94 properties: 95 reg: 96 maximum: 7 97 98 additionalProperties: false 99 100 examples: 101 - | 102 #include <dt-bindings/leds/common.h> 103 104 i2c { 105 #address-cells = <1>; 106 #size-cells = <0>; 107 108 led-controller@62 { 109 compatible = "nxp,pca9632"; 110 reg = <0x62>; 111 #address-cells = <1>; 112 #size-cells = <0>; 113 114 led@0 { 115 reg = <0>; 116 color = <LED_COLOR_ID_RED> 117 function = LED_FUNCTION_ST 118 }; 119 120 led@1 { 121 reg = <1>; 122 color = <LED_COLOR_ID_GREE 123 function = LED_FUNCTION_ST 124 }; 125 126 led@2 { 127 reg = <2>; 128 color = <LED_COLOR_ID_BLUE 129 function = LED_FUNCTION_ST 130 }; 131 132 led@3 { 133 reg = <3>; 134 color = <LED_COLOR_ID_WHIT 135 function = LED_FUNCTION_ST 136 }; 137 }; 138 }; 139 140 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.