summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2020-11-05 08:41:32 +0300
committerMaxime Ripard <maxime@cerno.tech>2020-11-05 14:21:59 +0300
commit085d96b88403edfc0a8ee340b7e6122c34f039c2 (patch)
treed8bad9327c6b150d0cf3cd15d40cfd5bdd9424d7 /arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts
parent3cf9bf3b25505d8e2a0366c35b0af6b48e7a3c40 (diff)
downloadlinux-085d96b88403edfc0a8ee340b7e6122c34f039c2.tar.xz
arm64: dts: allwinner: pinephone: Add LED flash
All revisions of the PinePhone have an SGM3140 LED flash. The gpios were swapped on v1.0 of the board, but this was fixed in later revisions. Signed-off-by: Luca Weiss <luca@z3ntu.xyz> Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://lore.kernel.org/r/20201105054135.24860-4-samuel@sholland.org
Diffstat (limited to 'arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts')
-rw-r--r--arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts
index 0c42272106af..3d5a2ae9aa39 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts
@@ -9,3 +9,8 @@
model = "Pine64 PinePhone Developer Batch (1.0)";
compatible = "pine64,pinephone-1.0", "allwinner,sun50i-a64";
};
+
+&sgm3140 {
+ enable-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */
+ flash-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
+};