summaryrefslogtreecommitdiff
path: root/arch/arm/dts/at91-sama7g5ek-u-boot.dtsi
blob: 8b2e990de727b212c744206cdcc2b0955b48b81c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 *  at91-sama7g5ek-u-boot.dtsi - Device Tree file for SAMA7G5 SoC u-boot
 *  properties.
 *
 *  Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries
 *
 *  Author: Eugen Hristev <eugen.hristev@microchip.com>
 *  Author: Claudiu Beznea <claudiu.beznea@microchip.com>
 *
 */

#include "sama7g5-pinfunc.h"
#include <dt-bindings/reset/sama7g5-reset.h>
#include <dt-bindings/clock/at91.h>

/ {
	chosen {
		bootph-all;
	};

	utmi {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		usb_phy0: phy@0 {
			compatible = "microchip,sama7g5-usb-phy";
			sfr-phandle = <&sfr>;
			reg = <0>;
			clocks = <&utmi_clk USB_UTMI1>;
			clock-names = "utmi_clk";
			status = "disabled";
			#phy-cells = <0>;
		};

		usb_phy1: phy@1 {
			compatible = "microchip,sama7g5-usb-phy";
			sfr-phandle = <&sfr>;
			reg = <1>;
			clocks = <&utmi_clk USB_UTMI2>;
			clock-names = "utmi_clk";
			status = "disabled";
			#phy-cells = <0>;
		};

		usb_phy2: phy@2 {
			compatible = "microchip,sama7g5-usb-phy";
			sfr-phandle = <&sfr>;
			reg = <2>;
			clocks = <&utmi_clk USB_UTMI3>;
			clock-names = "utmi_clk";
			status = "disabled";
			#phy-cells = <0>;
		};
	};

	utmi_clk: utmi-clk {
		compatible = "microchip,sama7g5-utmi-clk";
		sfr-phandle = <&sfr>;
		#clock-cells = <1>;
		clocks = <&pmc PMC_TYPE_CORE 27>;
		clock-names = "utmi_clk";
		resets = <&reset_controller SAMA7G5_RESET_USB_PHY1>,
			 <&reset_controller SAMA7G5_RESET_USB_PHY2>,
			 <&reset_controller SAMA7G5_RESET_USB_PHY3>;
		reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
	};

	soc {
		bootph-all;

		usb2: usb@400000 {
			compatible = "microchip,sama7g5-ohci", "usb-ohci";
			reg = <0x00400000 0x100000>;
			interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&pmc PMC_TYPE_PERIPHERAL 106>, <&utmi_clk USB_UTMI1>, <&usb_clk>;
			clock-names = "ohci_clk", "hclk", "uhpck";
			status = "disabled";
		};

		usb3: usb@500000 {
			compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
			reg = <0x00500000 0x100000>;
			interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&usb_clk>, <&pmc PMC_TYPE_PERIPHERAL 106>;
			clock-names = "usb_clk", "ehci_clk";
			status = "disabled";
		};

		sfr: sfr@e1624000 {
			compatible = "microchip,sama7g5-sfr", "syscon";
			reg = <0xe1624000 0x4000>;
		};
	};
};

&main_rc {
	bootph-all;
};

&main_xtal {
	bootph-all;
};

&pioA {
	bootph-all;
};

&pinctrl_flx3_default {
	bootph-all;
};

&pioA {
	bootph-all;

	pinctrl_usb_default: usb_default {
		pinmux = <PIN_PC6__GPIO>;
		bias-disable;
	};
};

&pit64b0 {
	bootph-all;
};

&pmc {
	bootph-all;
};

&slow_rc_osc {
	bootph-all;
};

&slow_xtal {
	bootph-all;
};

&uart3 {
	bootph-all;
};

&usb2 {
	num-ports = <3>;
	atmel,vbus-gpio = <0
			   0
			   &pioA PIN_PC6 GPIO_ACTIVE_HIGH
			  >;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_usb_default>;
	phys = <&usb_phy2>;
	phy-names = "usb";
	status = "okay";
};

&usb3 {
	status = "okay";
};

&usb_phy0 {
	status = "okay";
};

&usb_phy1 {
	status = "okay";
};

&usb_phy2 {
	status = "okay";
};