xref: /freebsd/sys/contrib/device-tree/src/arm64/allwinner/sun50i-h700-anbernic-rg35xx-sp.dts (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b2d2a78aSEmmanuel Vadot/*
3*b2d2a78aSEmmanuel Vadot * Copyright (C) 2024 Ryan Walklin <ryan@testtoast.com>.
4*b2d2a78aSEmmanuel Vadot * Copyright (C) 2024 Chris Morgan <macroalpha82@gmail.com>.
5*b2d2a78aSEmmanuel Vadot */
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadot#include <dt-bindings/input/gpio-keys.h>
8*b2d2a78aSEmmanuel Vadot#include "sun50i-h700-anbernic-rg35xx-plus.dts"
9*b2d2a78aSEmmanuel Vadot
10*b2d2a78aSEmmanuel Vadot/ {
11*b2d2a78aSEmmanuel Vadot	model = "Anbernic RG35XX SP";
12*b2d2a78aSEmmanuel Vadot	compatible = "anbernic,rg35xx-sp", "allwinner,sun50i-h700";
13*b2d2a78aSEmmanuel Vadot
14*b2d2a78aSEmmanuel Vadot	gpio-keys-lid {
15*b2d2a78aSEmmanuel Vadot		compatible = "gpio-keys";
16*b2d2a78aSEmmanuel Vadot
17*b2d2a78aSEmmanuel Vadot		lid-switch {
18*b2d2a78aSEmmanuel Vadot			label = "Lid Switch";
19*b2d2a78aSEmmanuel Vadot			gpios = <&pio 4 7 GPIO_ACTIVE_LOW>; /* PE7 */
20*b2d2a78aSEmmanuel Vadot			linux,can-disable;
21*b2d2a78aSEmmanuel Vadot			linux,code = <SW_LID>;
22*b2d2a78aSEmmanuel Vadot			linux,input-type = <EV_SW>;
23*b2d2a78aSEmmanuel Vadot			wakeup-event-action = <EV_ACT_DEASSERTED>;
24*b2d2a78aSEmmanuel Vadot			wakeup-source;
25*b2d2a78aSEmmanuel Vadot		};
26*b2d2a78aSEmmanuel Vadot	};
27*b2d2a78aSEmmanuel Vadot};
28*b2d2a78aSEmmanuel Vadot
29*b2d2a78aSEmmanuel Vadot&r_i2c {
30*b2d2a78aSEmmanuel Vadot	rtc_ext: rtc@51 {
31*b2d2a78aSEmmanuel Vadot		compatible = "nxp,pcf8563";
32*b2d2a78aSEmmanuel Vadot		reg = <0x51>;
33*b2d2a78aSEmmanuel Vadot	};
34*b2d2a78aSEmmanuel Vadot};
35