Jagan Teki | 7a0b4e0 | 2019-03-06 22:24:48 +0530 | [diff] [blame] | 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 = <®_dc1sw>; |
| 36 | allwinner,tx-delay-ps = <600>; |
| 37 | status = "okay"; |
| 38 | }; |
| 39 | |
| 40 | &mdio { |
| 41 | ext_rgmii_phy: ethernet-phy@1 { |
| 42 | compatible = "ethernet-phy-ieee802.3-c22"; |
| 43 | reg = <1>; |
| 44 | }; |
| 45 | }; |
| 46 | |
| 47 | &ohci0 { |
| 48 | status = "okay"; |
| 49 | }; |
| 50 | |
| 51 | ®_dc1sw { |
| 52 | regulator-name = "vcc-phy"; |
| 53 | }; |
| 54 | |
| 55 | &uart0 { |
| 56 | pinctrl-names = "default"; |
| 57 | pinctrl-0 = <&uart0_pb_pins>; |
| 58 | status = "okay"; |
| 59 | }; |
| 60 | |
| 61 | &usb_otg { |
| 62 | dr_mode = "host"; |
| 63 | status = "okay"; |
| 64 | }; |
| 65 | |
| 66 | &usbphy { |
| 67 | status = "okay"; |
| 68 | }; |