119caf746b3b3b8017b1d726cb192b281a8b2d40
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / pwm-ir-tx-overlay.dts
1 /dts-v1/;
2 /plugin/;
3
4 / {
5         compatible = "brcm,bcm2835";
6
7         fragment@0 {
8                 target = <&gpio>;
9                 __overlay__ {
10                         pwm0_pins: pwm0_pins {
11                                 brcm,pins = <18>;
12                                 brcm,function = <2>; /* Alt5 */
13                         };
14                 };
15         };
16
17         fragment@1 {
18                 target = <&pwm>;
19                 __overlay__ {
20                         pinctrl-names = "default";
21                         pinctrl-0 = <&pwm0_pins>;
22                         status = "okay";
23                 };
24         };
25
26         fragment@2 {
27                 target-path = "/";
28                 __overlay__ {
29                         pwm-ir-transmitter {
30                                 compatible = "pwm-ir-tx";
31                                 pwms = <&pwm 0 100>;
32                         };
33                 };
34         };
35
36         __overrides__ {
37                 gpio_pin = <&pwm0_pins>, "brcm,pins:0";
38                 func = <&pwm0_pins>,"brcm,function:0";
39         };
40 };