blob: bd98fb3e6a671a3e178a974bd556da7c615e45d3 [file] [log] [blame]
Tom Rini8b0c8a12018-05-06 18:27:01 -04001// SPDX-License-Identifier: GPL-2.0+ OR X11
Hans de Goede78087c12015-04-23 17:04:19 +02002/*
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 Goede78087c12015-04-23 17:04:19 +02006 */
7
8/dts-v1/;
Samuel Holland0829dd92023-01-22 17:50:19 -06009
10#include <dt-bindings/gpio/gpio.h>
11
Hans de Goede78087c12015-04-23 17:04:19 +020012#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 Holland0829dd92023-01-22 17:50:19 -060025
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 Goede78087c12015-04-23 17:04:19 +020034};
35
36&ehci0 {
37 status = "okay";
38};
39
40&ehci1 {
41 status = "okay";
42};
43
44&gmac {
45 pinctrl-names = "default";
Samuel Holland8d6fe612022-04-27 15:31:24 -050046 pinctrl-0 = <&gmac_rgmii_pins>;
Hans de Goede78087c12015-04-23 17:04:19 +020047 phy = <&phy1>;
48 phy-mode = "rgmii";
49 status = "okay";
Samuel Holland8d6fe612022-04-27 15:31:24 -050050};
Hans de Goede78087c12015-04-23 17:04:19 +020051
Samuel Holland8d6fe612022-04-27 15:31:24 -050052&mdio {
Hans de Goede78087c12015-04-23 17:04:19 +020053 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 Holland8d6fe612022-04-27 15:31:24 -050068 pinctrl-0 = <&uart0_ph_pins>;
Hans de Goede78087c12015-04-23 17:04:19 +020069 status = "okay";
70};
Samuel Holland0829dd92023-01-22 17:50:19 -060071
72&usbphy {
73 usb1_vbus-supply = <&reg_usb1_vbus>;
74 status = "okay";
75};