Tom Rini | 8b0c8a1 | 2018-05-06 18:27:01 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR X11 |
Hans de Goede | 78087c1 | 2015-04-23 17:04:19 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2015 Hans de Goede <hdegoede@redhat.com> |
| 4 | * |
| 5 | * Minimal dts file for the Mixtile LOFT-Q for u-boot only |
Hans de Goede | 78087c1 | 2015-04-23 17:04:19 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
Samuel Holland | 0829dd9 | 2023-01-22 17:50:19 -0600 | [diff] [blame] | 9 | |
| 10 | #include <dt-bindings/gpio/gpio.h> |
| 11 | |
Hans de Goede | 78087c1 | 2015-04-23 17:04:19 +0200 | [diff] [blame] | 12 | #include "sun6i-a31.dtsi" |
| 13 | |
| 14 | / { |
| 15 | model = "Mixtile LOFT-Q"; |
| 16 | compatible = "mixtile,loft-q", "allwinner,sun6i-a31"; |
| 17 | |
| 18 | aliases { |
| 19 | serial0 = &uart0; |
| 20 | }; |
| 21 | |
| 22 | chosen { |
| 23 | stdout-path = "serial0:115200n8"; |
| 24 | }; |
Samuel Holland | 0829dd9 | 2023-01-22 17:50:19 -0600 | [diff] [blame] | 25 | |
| 26 | reg_usb1_vbus: usb1-vbus { |
| 27 | compatible = "regulator-fixed"; |
| 28 | regulator-name = "usb1-vbus"; |
| 29 | regulator-min-microvolt = <5000000>; |
| 30 | regulator-max-microvolt = <5000000>; |
| 31 | enable-active-high; |
| 32 | gpio = <&pio 7 24 GPIO_ACTIVE_HIGH>; /* PH24 */ |
| 33 | }; |
Hans de Goede | 78087c1 | 2015-04-23 17:04:19 +0200 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | &ehci0 { |
| 37 | status = "okay"; |
| 38 | }; |
| 39 | |
| 40 | &ehci1 { |
| 41 | status = "okay"; |
| 42 | }; |
| 43 | |
| 44 | &gmac { |
| 45 | pinctrl-names = "default"; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 46 | pinctrl-0 = <&gmac_rgmii_pins>; |
Hans de Goede | 78087c1 | 2015-04-23 17:04:19 +0200 | [diff] [blame] | 47 | phy = <&phy1>; |
| 48 | phy-mode = "rgmii"; |
| 49 | status = "okay"; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 50 | }; |
Hans de Goede | 78087c1 | 2015-04-23 17:04:19 +0200 | [diff] [blame] | 51 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 52 | &mdio { |
Hans de Goede | 78087c1 | 2015-04-23 17:04:19 +0200 | [diff] [blame] | 53 | phy1: ethernet-phy@1 { |
| 54 | reg = <1>; |
| 55 | }; |
| 56 | }; |
| 57 | |
| 58 | &ohci0 { |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
| 62 | &ohci1 { |
| 63 | status = "okay"; |
| 64 | }; |
| 65 | |
| 66 | &uart0 { |
| 67 | pinctrl-names = "default"; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 68 | pinctrl-0 = <&uart0_ph_pins>; |
Hans de Goede | 78087c1 | 2015-04-23 17:04:19 +0200 | [diff] [blame] | 69 | status = "okay"; |
| 70 | }; |
Samuel Holland | 0829dd9 | 2023-01-22 17:50:19 -0600 | [diff] [blame] | 71 | |
| 72 | &usbphy { |
| 73 | usb1_vbus-supply = <®_usb1_vbus>; |
| 74 | status = "okay"; |
| 75 | }; |