1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2// Copyright (C) 2019 Oceanic Systems (UK) Ltd.
3// Copyright (C) 2019 Amarula Solutions B.V.
4// Author: Jagan Teki <jagan@amarulasolutions.com>
5
6/dts-v1/;
7
8#include "sun50i-a64-sopine.dtsi"
9
10/ {
11	model = "Oceanic 5205 5inMFD";
12	compatible = "oceanic,5205-5inmfd", "allwinner,sun50i-a64";
13
14	aliases {
15		ethernet0 = &emac;
16		serial0 = &uart0;
17	};
18
19	chosen {
20		stdout-path = "serial0:115200n8";
21	};
22};
23
24&ehci0 {
25	status = "okay";
26};
27
28&emac {
29	pinctrl-names = "default";
30	pinctrl-0 = <&rgmii_pins>;
31	phy-mode = "rgmii";
32	phy-handle = <&ext_rgmii_phy>;
33	phy-supply = <&reg_dc1sw>;
34	allwinner,tx-delay-ps = <600>;
35	status = "okay";
36};
37
38&i2c0 {
39	status = "okay";
40
41	touchscreen@5d {
42		compatible = "goodix,gt911";
43		reg = <0x5d>;
44		AVDD28-supply = <&reg_ldo_io0>;			/* VDD_CTP: GPIO0-LDO */
45		interrupt-parent = <&pio>;
46		interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>;
47		irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>;	/* CTP-INT: PH4 */
48		reset-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>;	/* CTP-RST: PH11 */
49		touchscreen-inverted-x;
50		touchscreen-inverted-y;
51	};
52};
53
54&mdio {
55	ext_rgmii_phy: ethernet-phy@1 {
56		compatible = "ethernet-phy-ieee802.3-c22";
57		reg = <1>;
58	};
59};
60
61&ohci0 {
62	status = "okay";
63};
64
65&reg_dc1sw {
66	regulator-name = "vcc-phy";
67};
68
69&reg_ldo_io0 {
70	regulator-min-microvolt = <2800000>;
71	regulator-max-microvolt = <2800000>;
72	regulator-name = "vdd-ctp";
73	status = "okay";
74};
75
76&uart0 {
77	pinctrl-names = "default";
78	pinctrl-0 = <&uart0_pb_pins>;
79	status = "okay";
80};
81
82&usb_otg {
83	dr_mode = "host";
84	status = "okay";
85};
86
87&usbphy {
88	status = "okay";
89};
90