2019-03-06 16:54:48 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
2020-10-24 15:21:55 +00:00
|
|
|
// Copyright (C) 2019 Oceanic Systems (UK) Ltd.
|
|
|
|
// Copyright (C) 2019 Amarula Solutions B.V.
|
|
|
|
// Author: Jagan Teki <jagan@amarulasolutions.com>
|
2019-03-06 16:54:48 +00:00
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "sun50i-a64-sopine.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Oceanic 5205 5inMFD";
|
|
|
|
compatible = "oceanic,5205-5inmfd", "allwinner,sun50i-a64";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
ethernet0 = &emac;
|
|
|
|
serial0 = &uart0;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&emac {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&rgmii_pins>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
phy-handle = <&ext_rgmii_phy>;
|
|
|
|
phy-supply = <®_dc1sw>;
|
|
|
|
allwinner,tx-delay-ps = <600>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-10-24 15:21:55 +00:00
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
touchscreen@5d {
|
|
|
|
compatible = "goodix,gt911";
|
|
|
|
reg = <0x5d>;
|
|
|
|
AVDD28-supply = <®_ldo_io0>; /* VDD_CTP: GPIO0-LDO */
|
|
|
|
interrupt-parent = <&pio>;
|
|
|
|
interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>;
|
|
|
|
irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */
|
|
|
|
reset-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH11 */
|
|
|
|
touchscreen-inverted-x;
|
|
|
|
touchscreen-inverted-y;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-03-06 16:54:48 +00:00
|
|
|
&mdio {
|
|
|
|
ext_rgmii_phy: ethernet-phy@1 {
|
|
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
®_dc1sw {
|
|
|
|
regulator-name = "vcc-phy";
|
|
|
|
};
|
|
|
|
|
2020-10-24 15:21:55 +00:00
|
|
|
®_ldo_io0 {
|
|
|
|
regulator-min-microvolt = <2800000>;
|
|
|
|
regulator-max-microvolt = <2800000>;
|
|
|
|
regulator-name = "vdd-ctp";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2019-03-06 16:54:48 +00:00
|
|
|
&uart0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart0_pb_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_otg {
|
|
|
|
dr_mode = "host";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usbphy {
|
|
|
|
status = "okay";
|
|
|
|
};
|