xref: /linux/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-sp.dts (revision 566ab427f827b0256d3e8ce0235d088e6a9c28bd)
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};
35