BCM2708: Add core Device Tree support
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / act-led-overlay.dts
1 /dts-v1/;
2 /plugin/;
3
4 /* Pi3 uses a GPIO expander to drive the LEDs which can only be accessed
5    from the VPU. There is a special driver for this with a separate DT node,
6    which has the unfortunate consequence of breaking the act_led_gpio and
7    act_led_activelow dtparams.
8
9    This overlay changes the GPIO controller back to the standard one and
10    restores the dtparams.
11 */
12
13 /{
14         compatible = "brcm,bcm2835";
15
16         fragment@0 {
17                 target = <&act_led>;
18                 frag0: __overlay__ {
19                         gpios = <&gpio 0 0>;
20                 };
21         };
22
23         __overrides__ {
24                 gpio = <&frag0>,"gpios:4";
25                 activelow = <&frag0>,"gpios:8";
26         };
27 };