ARM: dts: omap3-overo: Add support for pwm-leds
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / omap3-overo.dtsi
1 /*
2  * Copyright (C) 2012 Florian Vaussard, EPFL Mobots group
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8
9 /*
10  * The Gumstix Overo must be combined with an expansion board.
11  */
12 /dts-v1/;
13
14 /include/ "omap3.dtsi"
15
16 / {
17         pwmleds {
18                 compatible = "pwm-leds";
19
20                 overo {
21                         label = "overo:blue:COM";
22                         pwms = <&twl_pwmled 1 7812500>;
23                         max-brightness = <127>;
24                 };
25         };
26 };
27
28 &i2c1 {
29         clock-frequency = <2600000>;
30
31         twl: twl@48 {
32                 reg = <0x48>;
33                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
34                 interrupt-parent = <&intc>;
35         };
36 };
37
38 /include/ "twl4030.dtsi"
39
40 /* i2c2 pins are used for gpio */
41 &i2c2 {
42         status = "disabled";
43 };
44
45 /* on board microSD slot */
46 &mmc1 {
47         vmmc-supply = <&vmmc1>;
48         bus-width = <4>;
49 };
50
51 /* optional on board WiFi */
52 &mmc2 {
53         bus-width = <4>;
54 };
55
56 &twl_gpio {
57         ti,use-leds;
58 };