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
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:
15 Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
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
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 \
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
40 +Info: Configures the PiGlow by pimoroni.com
41 +Load: dtoverlay=piglow
46 Info: PiScreen display by OzzMaker.com
47 Load: dtoverlay=piscreen,<param>=<val>
49 +++ b/arch/arm/boot/dts/overlays/piglow-overlay.dts
51 +// Definitions for SN3218 LED driver from Si-En Technology on PiGlow
56 + compatible = "brcm,bcm2708";
59 + target = <&i2c_arm>;
61 + #address-cells = <1>;
66 + compatible = "si-en,sn3218";
68 + #address-cells = <1>;
74 + label = "piglow:red:led1";
78 + label = "piglow:orange:led2";
82 + label = "piglow:yellow:led3";
86 + label = "piglow:green:led4";
90 + label = "piglow:blue:led5";
94 + label = "piglow:green:led6";
98 + label = "piglow:red:led7";
102 + label = "piglow:orange:led8";
106 + label = "piglow:yellow:led9";
110 + label = "piglow:white:led10";
114 + label = "piglow:white:led11";
118 + label = "piglow:blue:led12";
122 + label = "piglow:white:led13";
126 + label = "piglow:green:led14";
130 + label = "piglow:blue:led15";
134 + label = "piglow:yellow:led16";
138 + label = "piglow:orange:led17";
142 + label = "piglow:red:led18";