Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 // Copyright (C) 2019 Oceanic Systems (UK) Ltd.
0003 // Copyright (C) 2019 Amarula Solutions B.V.
0004 // Author: Jagan Teki <jagan@amarulasolutions.com>
0005 
0006 /dts-v1/;
0007 
0008 #include "sun50i-a64-sopine.dtsi"
0009 
0010 / {
0011         model = "Oceanic 5205 5inMFD";
0012         compatible = "oceanic,5205-5inmfd", "allwinner,sun50i-a64";
0013 
0014         aliases {
0015                 ethernet0 = &emac;
0016                 serial0 = &uart0;
0017         };
0018 
0019         chosen {
0020                 stdout-path = "serial0:115200n8";
0021         };
0022 };
0023 
0024 &ehci0 {
0025         status = "okay";
0026 };
0027 
0028 &emac {
0029         pinctrl-names = "default";
0030         pinctrl-0 = <&rgmii_pins>;
0031         phy-mode = "rgmii";
0032         phy-handle = <&ext_rgmii_phy>;
0033         phy-supply = <&reg_dc1sw>;
0034         allwinner,tx-delay-ps = <600>;
0035         status = "okay";
0036 };
0037 
0038 &i2c0 {
0039         status = "okay";
0040 
0041         touchscreen@5d {
0042                 compatible = "goodix,gt911";
0043                 reg = <0x5d>;
0044                 AVDD28-supply = <&reg_ldo_io0>;                 /* VDD_CTP: GPIO0-LDO */
0045                 interrupt-parent = <&pio>;
0046                 interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>;
0047                 irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>;        /* CTP-INT: PH4 */
0048                 reset-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>;     /* CTP-RST: PH11 */
0049                 touchscreen-inverted-x;
0050                 touchscreen-inverted-y;
0051         };
0052 };
0053 
0054 &mdio {
0055         ext_rgmii_phy: ethernet-phy@1 {
0056                 compatible = "ethernet-phy-ieee802.3-c22";
0057                 reg = <1>;
0058         };
0059 };
0060 
0061 &ohci0 {
0062         status = "okay";
0063 };
0064 
0065 &reg_dc1sw {
0066         regulator-name = "vcc-phy";
0067 };
0068 
0069 &reg_ldo_io0 {
0070         regulator-min-microvolt = <2800000>;
0071         regulator-max-microvolt = <2800000>;
0072         regulator-name = "vdd-ctp";
0073         status = "okay";
0074 };
0075 
0076 &uart0 {
0077         pinctrl-names = "default";
0078         pinctrl-0 = <&uart0_pb_pins>;
0079         status = "okay";
0080 };
0081 
0082 &usb_otg {
0083         dr_mode = "host";
0084         status = "okay";
0085 };
0086 
0087 &usbphy {
0088         status = "okay";
0089 };