xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3326-anbernic-rg351v.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1*8d13bc63SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*8d13bc63SEmmanuel Vadot
3*8d13bc63SEmmanuel Vadot/dts-v1/;
4*8d13bc63SEmmanuel Vadot#include "rk3326-anbernic-rg351m.dtsi"
5*8d13bc63SEmmanuel Vadot
6*8d13bc63SEmmanuel Vadot/ {
7*8d13bc63SEmmanuel Vadot	model = "Anbernic RG351V";
8*8d13bc63SEmmanuel Vadot	compatible = "anbernic,rg351v", "rockchip,rk3326";
9*8d13bc63SEmmanuel Vadot
10*8d13bc63SEmmanuel Vadot	gpio_keys_vol: gpio-keys-vol {
11*8d13bc63SEmmanuel Vadot		compatible = "gpio-keys";
12*8d13bc63SEmmanuel Vadot		autorepeat;
13*8d13bc63SEmmanuel Vadot
14*8d13bc63SEmmanuel Vadot		button-vol-down {
15*8d13bc63SEmmanuel Vadot			gpios = <&gpio2 RK_PA1 GPIO_ACTIVE_LOW>;
16*8d13bc63SEmmanuel Vadot			label = "VOLUMEDOWN";
17*8d13bc63SEmmanuel Vadot			linux,code = <KEY_VOLUMEDOWN>;
18*8d13bc63SEmmanuel Vadot		};
19*8d13bc63SEmmanuel Vadot
20*8d13bc63SEmmanuel Vadot		button-vol-up {
21*8d13bc63SEmmanuel Vadot			gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>;
22*8d13bc63SEmmanuel Vadot			label = "VOLUMEUP";
23*8d13bc63SEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
24*8d13bc63SEmmanuel Vadot		};
25*8d13bc63SEmmanuel Vadot	};
26*8d13bc63SEmmanuel Vadot};
27*8d13bc63SEmmanuel Vadot
28*8d13bc63SEmmanuel Vadot&internal_display {
29*8d13bc63SEmmanuel Vadot	compatible = "anbernic,rg351v-panel", "newvision,nv3051d";
30*8d13bc63SEmmanuel Vadot	vdd-supply = <&vcc_lcd>;
31*8d13bc63SEmmanuel Vadot};
32*8d13bc63SEmmanuel Vadot
33*8d13bc63SEmmanuel Vadot&io_domains {
34*8d13bc63SEmmanuel Vadot	vccio1-supply = <&vccio_sd>;
35*8d13bc63SEmmanuel Vadot};
36*8d13bc63SEmmanuel Vadot
37*8d13bc63SEmmanuel Vadot&vcc_sd {
38*8d13bc63SEmmanuel Vadot	regulator-max-microvolt = <3000000>;
39*8d13bc63SEmmanuel Vadot	regulator-min-microvolt = <1800000>;
40*8d13bc63SEmmanuel Vadot};
41*8d13bc63SEmmanuel Vadot
42*8d13bc63SEmmanuel Vadot&vccio_sd {
43*8d13bc63SEmmanuel Vadot	regulator-max-microvolt = <1800000>;
44*8d13bc63SEmmanuel Vadot};
45