tmp75 userspace driver
[linux-gpio-pinout] / device-tree / gpio-led.dts
1 /*
2  * add few leds
3  */
4
5 /dts-v1/;
6 /plugin/;
7
8 / {
9         compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun50i-a64", "allwinner,sun50i-h5";
10
11         /* Documentation/devicetree/bindings/leds/leds-gpio.txt */
12         fragment@0 {
13                 target-path = "/";
14
15                 __overlay__ {
16                         user-leds {
17                                 compatible = "gpio-leds";
18
19                                 leds@0 {
20                                         label = "gpio:red-top";
21                                         gpios = <&pio 8 20 0>; /* PI20 GPIO_ACTIVE_HIGH */
22                                         linux,default-trigger = "mmc0";
23                                 };
24
25                                 leds@1 {
26                                         label = "gpio:green-bottom";
27                                         gpios = <&pio 8 21 0>; /* PI21 GPIO_ACTIVE_HIGH */
28                                         linux,default-trigger = "cpu";
29                                 };
30                         };
31                 };
32         };
33 };