brcm63xx: rename target to bcm63xx
[openwrt/staging/stintel.git] / target / linux / brcm2708 / patches-4.19 / 950-0371-overlays-Add-PiGlow-overlay.patch
1 From 615467f56356a2054d3a86854d391b7a2e0d5811 Mon Sep 17 00:00:00 2001
2 From: Stefan Wahren <wahrenst@gmx.net>
3 Date: Mon, 29 Apr 2019 19:35:33 +0200
4 Subject: [PATCH] overlays: Add PiGlow overlay
5
6 The PiGlow is a small add-on board for the Raspberry Pi that provides
7 18 individually controllable LEDs (SN3218) and uses the following pins:
8
9 P1 & P17 (3V3)
10 P2 (5V)
11 P3 (SDA)
12 P5 (SCL)
13 P14 (GND)
14
15 Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
16 ---
17 arch/arm/boot/dts/overlays/Makefile | 1 +
18 arch/arm/boot/dts/overlays/README | 6 ++
19 arch/arm/boot/dts/overlays/piglow-overlay.dts | 97 +++++++++++++++++++
20 3 files changed, 104 insertions(+)
21 create mode 100644 arch/arm/boot/dts/overlays/piglow-overlay.dts
22
23 --- a/arch/arm/boot/dts/overlays/Makefile
24 +++ b/arch/arm/boot/dts/overlays/Makefile
25 @@ -97,6 +97,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
26 pi3-disable-wifi.dtbo \
27 pi3-miniuart-bt.dtbo \
28 pibell.dtbo \
29 + piglow.dtbo \
30 piscreen.dtbo \
31 piscreen2r.dtbo \
32 pisound.dtbo \
33 --- a/arch/arm/boot/dts/overlays/README
34 +++ b/arch/arm/boot/dts/overlays/README
35 @@ -1532,6 +1532,12 @@ Params: alsaname Set the
36 "PiBell")
37
38
39 +Name: piglow
40 +Info: Configures the PiGlow by pimoroni.com
41 +Load: dtoverlay=piglow
42 +Params: <None>
43 +
44 +
45 Name: piscreen
46 Info: PiScreen display by OzzMaker.com
47 Load: dtoverlay=piscreen,<param>=<val>
48 --- /dev/null
49 +++ b/arch/arm/boot/dts/overlays/piglow-overlay.dts
50 @@ -0,0 +1,97 @@
51 +// Definitions for SN3218 LED driver from Si-En Technology on PiGlow
52 +/dts-v1/;
53 +/plugin/;
54 +
55 +/ {
56 + compatible = "brcm,bcm2708";
57 +
58 + fragment@0 {
59 + target = <&i2c_arm>;
60 + __overlay__ {
61 + #address-cells = <1>;
62 + #size-cells = <0>;
63 + status = "okay";
64 +
65 + sn3218@54 {
66 + compatible = "si-en,sn3218";
67 + reg = <0x54>;
68 + #address-cells = <1>;
69 + #size-cells = <0>;
70 + status = "okay";
71 +
72 + led@1 {
73 + reg = <1>;
74 + label = "piglow:red:led1";
75 + };
76 + led@2 {
77 + reg = <2>;
78 + label = "piglow:orange:led2";
79 + };
80 + led@3 {
81 + reg = <3>;
82 + label = "piglow:yellow:led3";
83 + };
84 + led@4 {
85 + reg = <4>;
86 + label = "piglow:green:led4";
87 + };
88 + led@5 {
89 + reg = <5>;
90 + label = "piglow:blue:led5";
91 + };
92 + led@6 {
93 + reg = <6>;
94 + label = "piglow:green:led6";
95 + };
96 + led@7 {
97 + reg = <7>;
98 + label = "piglow:red:led7";
99 + };
100 + led@8 {
101 + reg = <8>;
102 + label = "piglow:orange:led8";
103 + };
104 + led@9 {
105 + reg = <9>;
106 + label = "piglow:yellow:led9";
107 + };
108 + led@10 {
109 + reg = <10>;
110 + label = "piglow:white:led10";
111 + };
112 + led@11 {
113 + reg = <11>;
114 + label = "piglow:white:led11";
115 + };
116 + led@12 {
117 + reg = <12>;
118 + label = "piglow:blue:led12";
119 + };
120 + led@13 {
121 + reg = <13>;
122 + label = "piglow:white:led13";
123 + };
124 + led@14 {
125 + reg = <14>;
126 + label = "piglow:green:led14";
127 + };
128 + led@15 {
129 + reg = <15>;
130 + label = "piglow:blue:led15";
131 + };
132 + led@16 {
133 + reg = <16>;
134 + label = "piglow:yellow:led16";
135 + };
136 + led@17 {
137 + reg = <17>;
138 + label = "piglow:orange:led17";
139 + };
140 + led@18 {
141 + reg = <18>;
142 + label = "piglow:red:led18";
143 + };
144 + };
145 + };
146 + };
147 +};