About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / leds / pca963x.txt




Custom Search

Based on kernel version 4.13.3. Page generated on 2017-09-23 13:55 EST.

1	LEDs connected to pca9632, pca9633 or pca9634
2	
3	Required properties:
4	- compatible : should be : "nxp,pca9632", "nxp,pca9633", "nxp,pca9634" or "nxp,pca9635"
5	
6	Optional properties:
7	- nxp,totem-pole : use totem pole (push-pull) instead of open-drain (pca9632 defaults
8	  to open-drain, newer chips to totem pole)
9	- nxp,hw-blink : use hardware blinking instead of software blinking
10	- nxp,period-scale : In some configurations, the chip blinks faster than expected.
11			     This parameter provides a scaling ratio (fixed point, decimal divided
12			     by 1000) to compensate, e.g. 1300=1.3x and 750=0.75x.
13	- nxp,inverted-out: invert the polarity of the generated PWM
14	
15	Each led is represented as a sub-node of the nxp,pca963x device.
16	
17	LED sub-node properties:
18	- label : (optional) see Documentation/devicetree/bindings/leds/common.txt
19	- reg : number of LED line (could be from 0 to 3 in pca9632 or pca9633,
20			0 to 7 in pca9634, or 0 to 15 in pca9635)
21	- linux,default-trigger : (optional)
22	   see Documentation/devicetree/bindings/leds/common.txt
23	
24	Examples:
25	
26	pca9632: pca9632 {
27		compatible = "nxp,pca9632";
28		#address-cells = <1>;
29		#size-cells = <0>;
30		reg = <0x62>;
31	
32		red@0 {
33			label = "red";
34			reg = <0>;
35			linux,default-trigger = "none";
36		};
37		green@1 {
38			label = "green";
39			reg = <1>;
40			linux,default-trigger = "none";
41		};
42		blue@2 {
43			label = "blue";
44			reg = <2>;
45			linux,default-trigger = "none";
46		};
47		unused@3 {
48			label = "unused";
49			reg = <3>;
50			linux,default-trigger = "none";
51		};
52	};
Hide Line Numbers
About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Information is copyright its respective author. All material is available from the Linux Kernel Source distributed under a GPL License. This page is provided as a free service by mjmwired.net.