Skip to content

Commit 2873085

Browse files
macromorganwens
authored andcommitted
arm64: dts: allwinner: h700: Add Anbernic RG35XX-SP
The Anbernic RG35XXSP is almost identical to the RG35XX-Plus, but in a clamshell form-factor. The key differences between the SP and the Plus is a lid switch and an RTC on the same i2c bus as the PMIC. Signed-off-by: Chris Morgan <macromorgan@hotmail.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Link: https://lore.kernel.org/r/20240710231718.106894-5-macroalpha82@gmail.com Signed-off-by: Chen-Yu Tsai <wens@csie.org>
1 parent c712e5d commit 2873085

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

arch/arm64/boot/dts/allwinner/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero2w.dtb
4949
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb
5050
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-transpeed-8k618-t.dtb
5151
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-2024.dtb
52-
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-plus.dtb
5352
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-h.dtb
53+
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-plus.dtb
54+
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-sp.dtb
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
/*
3+
* Copyright (C) 2024 Ryan Walklin <ryan@testtoast.com>.
4+
* Copyright (C) 2024 Chris Morgan <macroalpha82@gmail.com>.
5+
*/
6+
7+
#include <dt-bindings/input/gpio-keys.h>
8+
#include "sun50i-h700-anbernic-rg35xx-plus.dts"
9+
10+
/ {
11+
model = "Anbernic RG35XX SP";
12+
compatible = "anbernic,rg35xx-sp", "allwinner,sun50i-h700";
13+
14+
gpio-keys-lid {
15+
compatible = "gpio-keys";
16+
17+
lid-switch {
18+
label = "Lid Switch";
19+
gpios = <&pio 4 7 GPIO_ACTIVE_LOW>; /* PE7 */
20+
linux,can-disable;
21+
linux,code = <SW_LID>;
22+
linux,input-type = <EV_SW>;
23+
wakeup-event-action = <EV_ACT_DEASSERTED>;
24+
wakeup-source;
25+
};
26+
};
27+
};
28+
29+
&r_i2c {
30+
rtc_ext: rtc@51 {
31+
compatible = "nxp,pcf8563";
32+
reg = <0x51>;
33+
};
34+
};

0 commit comments

Comments
 (0)