xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3566-anbernic-rg-arc-d.dts (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1*01950c46SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*01950c46SEmmanuel Vadot
3*01950c46SEmmanuel Vadot/dts-v1/;
4*01950c46SEmmanuel Vadot
5*01950c46SEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
6*01950c46SEmmanuel Vadot#include <dt-bindings/input/linux-event-codes.h>
7*01950c46SEmmanuel Vadot#include <dt-bindings/pinctrl/rockchip.h>
8*01950c46SEmmanuel Vadot#include "rk3566-anbernic-rg-arc.dtsi"
9*01950c46SEmmanuel Vadot
10*01950c46SEmmanuel Vadot/ {
11*01950c46SEmmanuel Vadot	model = "Anbernic RG ARC-D";
12*01950c46SEmmanuel Vadot	compatible = "anbernic,rg-arc-d", "rockchip,rk3566";
13*01950c46SEmmanuel Vadot
14*01950c46SEmmanuel Vadot	aliases {
15*01950c46SEmmanuel Vadot		mmc0 = &sdhci;
16*01950c46SEmmanuel Vadot		mmc1 = &sdmmc0;
17*01950c46SEmmanuel Vadot		mmc2 = &sdmmc1;
18*01950c46SEmmanuel Vadot		mmc3 = &sdmmc2;
19*01950c46SEmmanuel Vadot	};
20*01950c46SEmmanuel Vadot};
21*01950c46SEmmanuel Vadot
22*01950c46SEmmanuel Vadot&i2c2 {
23*01950c46SEmmanuel Vadot	pinctrl-0 = <&i2c2m1_xfer>;
24*01950c46SEmmanuel Vadot	pinctrl-names = "default";
25*01950c46SEmmanuel Vadot	status = "okay";
26*01950c46SEmmanuel Vadot
27*01950c46SEmmanuel Vadot	touchscreen@14 {
28*01950c46SEmmanuel Vadot		compatible = "goodix,gt927";
29*01950c46SEmmanuel Vadot		reg = <0x14>;
30*01950c46SEmmanuel Vadot		interrupt-parent = <&gpio4>;
31*01950c46SEmmanuel Vadot		interrupts = <RK_PB1 IRQ_TYPE_EDGE_FALLING>;
32*01950c46SEmmanuel Vadot		irq-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
33*01950c46SEmmanuel Vadot		pinctrl-0 = <&touch_int>;
34*01950c46SEmmanuel Vadot		pinctrl-names = "default";
35*01950c46SEmmanuel Vadot		reset-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
36*01950c46SEmmanuel Vadot		touchscreen-inverted-y;
37*01950c46SEmmanuel Vadot		touchscreen-size-x = <640>;
38*01950c46SEmmanuel Vadot		touchscreen-size-y = <480>;
39*01950c46SEmmanuel Vadot	};
40*01950c46SEmmanuel Vadot};
41*01950c46SEmmanuel Vadot
42*01950c46SEmmanuel Vadot&pinctrl {
43*01950c46SEmmanuel Vadot	touchscreen {
44*01950c46SEmmanuel Vadot		touch_int: touch_int {
45*01950c46SEmmanuel Vadot			rockchip,pins = <4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
46*01950c46SEmmanuel Vadot		};
47*01950c46SEmmanuel Vadot	};
48*01950c46SEmmanuel Vadot};
49*01950c46SEmmanuel Vadot
50*01950c46SEmmanuel Vadot&sdhci {
51*01950c46SEmmanuel Vadot	bus-width = <8>;
52*01950c46SEmmanuel Vadot	mmc-hs200-1_8v;
53*01950c46SEmmanuel Vadot	non-removable;
54*01950c46SEmmanuel Vadot	pinctrl-0 = <&emmc_bus8>, <&emmc_clk>, <&emmc_cmd>,
55*01950c46SEmmanuel Vadot		    <&emmc_datastrobe>, <&emmc_rstnout>;
56*01950c46SEmmanuel Vadot	pinctrl-names = "default";
57*01950c46SEmmanuel Vadot	vmmc-supply = <&vcc_3v3>;
58*01950c46SEmmanuel Vadot	vqmmc-supply = <&vcc_1v8>;
59*01950c46SEmmanuel Vadot	status = "okay";
60*01950c46SEmmanuel Vadot};
61