xref: /freebsd/sys/contrib/device-tree/Bindings/pwm/pwm-lp3943.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotTI/National Semiconductor LP3943 PWM controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot  - compatible: "ti,lp3943-pwm"
5*c66ec88fSEmmanuel Vadot  - #pwm-cells: Should be 2. See pwm.yaml in this directory for a
6*c66ec88fSEmmanuel Vadot                description of the cells format.
7*c66ec88fSEmmanuel Vadot                Note that this hardware limits the period length to the
8*c66ec88fSEmmanuel Vadot                range 6250~1600000.
9*c66ec88fSEmmanuel Vadot  - ti,pwm0 or ti,pwm1: Output pin number(s) for PWM channel 0 or 1.
10*c66ec88fSEmmanuel Vadot    0 = output 0
11*c66ec88fSEmmanuel Vadot    1 = output 1
12*c66ec88fSEmmanuel Vadot    .
13*c66ec88fSEmmanuel Vadot    .
14*c66ec88fSEmmanuel Vadot    15 = output 15
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotExample:
17*c66ec88fSEmmanuel VadotPWM 0 is for RGB LED brightness control
18*c66ec88fSEmmanuel VadotPWM 1 is for brightness control of LP8557 backlight device
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel Vadot&i2c3 {
21*c66ec88fSEmmanuel Vadot	lp3943@60 {
22*c66ec88fSEmmanuel Vadot		compatible = "ti,lp3943";
23*c66ec88fSEmmanuel Vadot		reg = <0x60>;
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadot		/*
26*c66ec88fSEmmanuel Vadot		 * PWM 0 : output 8, 9 and 10
27*c66ec88fSEmmanuel Vadot		 * PWM 1 : output 15
28*c66ec88fSEmmanuel Vadot		 */
29*c66ec88fSEmmanuel Vadot		pwm3943: pwm {
30*c66ec88fSEmmanuel Vadot			compatible = "ti,lp3943-pwm";
31*c66ec88fSEmmanuel Vadot			#pwm-cells = <2>;
32*c66ec88fSEmmanuel Vadot			ti,pwm0 = <8 9 10>;
33*c66ec88fSEmmanuel Vadot			ti,pwm1 = <15>;
34*c66ec88fSEmmanuel Vadot		};
35*c66ec88fSEmmanuel Vadot	};
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot};
38*c66ec88fSEmmanuel Vadot
39*c66ec88fSEmmanuel Vadot/* LEDs control with PWM 0 of LP3943 */
40*c66ec88fSEmmanuel Vadotpwmleds {
41*c66ec88fSEmmanuel Vadot	compatible = "pwm-leds";
42*c66ec88fSEmmanuel Vadot	rgb {
43*c66ec88fSEmmanuel Vadot		label = "indi::rgb";
44*c66ec88fSEmmanuel Vadot		pwms = <&pwm3943 0 10000>;
45*c66ec88fSEmmanuel Vadot		max-brightness = <255>;
46*c66ec88fSEmmanuel Vadot	};
47*c66ec88fSEmmanuel Vadot};
48*c66ec88fSEmmanuel Vadot
49*c66ec88fSEmmanuel Vadot&i2c4 {
50*c66ec88fSEmmanuel Vadot	/* Backlight control with PWM 1 of LP3943 */
51*c66ec88fSEmmanuel Vadot	backlight@2c {
52*c66ec88fSEmmanuel Vadot		compatible = "ti,lp8557";
53*c66ec88fSEmmanuel Vadot		reg = <0x2c>;
54*c66ec88fSEmmanuel Vadot
55*c66ec88fSEmmanuel Vadot		pwms = <&pwm3943 1 10000>;
56*c66ec88fSEmmanuel Vadot		pwm-names = "lp8557";
57*c66ec88fSEmmanuel Vadot	};
58*c66ec88fSEmmanuel Vadot};
59