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