linux-loongson/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-sp.dts
Chris Morgan 2873085a8c 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>
2024-08-01 22:00:49 +08:00

35 lines
744 B
Plaintext

// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/*
* Copyright (C) 2024 Ryan Walklin <ryan@testtoast.com>.
* Copyright (C) 2024 Chris Morgan <macroalpha82@gmail.com>.
*/
#include <dt-bindings/input/gpio-keys.h>
#include "sun50i-h700-anbernic-rg35xx-plus.dts"
/ {
model = "Anbernic RG35XX SP";
compatible = "anbernic,rg35xx-sp", "allwinner,sun50i-h700";
gpio-keys-lid {
compatible = "gpio-keys";
lid-switch {
label = "Lid Switch";
gpios = <&pio 4 7 GPIO_ACTIVE_LOW>; /* PE7 */
linux,can-disable;
linux,code = <SW_LID>;
linux,input-type = <EV_SW>;
wakeup-event-action = <EV_ACT_DEASSERTED>;
wakeup-source;
};
};
};
&r_i2c {
rtc_ext: rtc@51 {
compatible = "nxp,pcf8563";
reg = <0x51>;
};
};