blob: a54cfaccbf6cb15882569463fabd81d1f87e4d70 [file] [log] [blame]
Eugen Hristev1d463d62020-03-10 11:56:38 +02001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
Eugen Hristev746b7382022-03-07 16:29:42 +02003 * at91-sama7g5ek-u-boot.dtsi - Device Tree file for SAMA7G5 SoC u-boot
4 * properties.
Eugen Hristev1d463d62020-03-10 11:56:38 +02005 *
Eugen Hristev746b7382022-03-07 16:29:42 +02006 * Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries
Eugen Hristev1d463d62020-03-10 11:56:38 +02007 *
Eugen Hristev746b7382022-03-07 16:29:42 +02008 * Author: Eugen Hristev <eugen.hristev@microchip.com>
9 * Author: Claudiu Beznea <claudiu.beznea@microchip.com>
Eugen Hristev1d463d62020-03-10 11:56:38 +020010 *
11 */
12
Sergiu Moga3cd06bf2023-01-04 16:04:16 +020013#include "sama7g5-pinfunc.h"
Sergiu Moga851960e2023-01-04 16:04:15 +020014#include <dt-bindings/reset/sama7g5-reset.h>
15#include <dt-bindings/clock/at91.h>
16
Eugen Hristev1d463d62020-03-10 11:56:38 +020017/ {
18 chosen {
19 u-boot,dm-pre-reloc;
20 };
21
Sergiu Moga851960e2023-01-04 16:04:15 +020022 utmi {
23 compatible = "simple-bus";
24 #address-cells = <1>;
25 #size-cells = <0>;
26
27 usb_phy0: phy@0 {
28 compatible = "microchip,sama7g5-usb-phy";
29 sfr-phandle = <&sfr>;
30 reg = <0>;
31 clocks = <&utmi_clk USB_UTMI1>;
32 clock-names = "utmi_clk";
33 status = "disabled";
34 #phy-cells = <0>;
35 };
36
37 usb_phy1: phy@1 {
38 compatible = "microchip,sama7g5-usb-phy";
39 sfr-phandle = <&sfr>;
40 reg = <1>;
41 clocks = <&utmi_clk USB_UTMI2>;
42 clock-names = "utmi_clk";
43 status = "disabled";
44 #phy-cells = <0>;
45 };
46
47 usb_phy2: phy@2 {
48 compatible = "microchip,sama7g5-usb-phy";
49 sfr-phandle = <&sfr>;
50 reg = <2>;
51 clocks = <&utmi_clk USB_UTMI3>;
52 clock-names = "utmi_clk";
53 status = "disabled";
54 #phy-cells = <0>;
55 };
56 };
57
58 utmi_clk: utmi-clk {
59 compatible = "microchip,sama7g5-utmi-clk";
60 sfr-phandle = <&sfr>;
61 #clock-cells = <1>;
62 clocks = <&pmc PMC_TYPE_CORE 27>;
63 clock-names = "utmi_clk";
64 resets = <&reset_controller SAMA7G5_RESET_USB_PHY1>,
65 <&reset_controller SAMA7G5_RESET_USB_PHY2>,
66 <&reset_controller SAMA7G5_RESET_USB_PHY3>;
67 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
68 };
69
Eugen Hristev746b7382022-03-07 16:29:42 +020070 soc {
Eugen Hristev1d463d62020-03-10 11:56:38 +020071 u-boot,dm-pre-reloc;
Sergiu Moga851960e2023-01-04 16:04:15 +020072
73 usb2: usb@400000 {
74 compatible = "microchip,sama7g5-ohci", "usb-ohci";
75 reg = <0x00400000 0x100000>;
76 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
77 clocks = <&pmc PMC_TYPE_PERIPHERAL 106>, <&utmi_clk USB_UTMI1>, <&usb_clk>;
78 clock-names = "ohci_clk", "hclk", "uhpck";
79 status = "disabled";
80 };
81
82 usb3: usb@500000 {
83 compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
84 reg = <0x00500000 0x100000>;
85 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
86 clocks = <&usb_clk>, <&pmc PMC_TYPE_PERIPHERAL 106>;
87 clock-names = "usb_clk", "ehci_clk";
88 status = "disabled";
89 };
90
91 sfr: sfr@e1624000 {
92 compatible = "microchip,sama7g5-sfr", "syscon";
93 reg = <0xe1624000 0x4000>;
94 };
Eugen Hristev1d463d62020-03-10 11:56:38 +020095 };
96};
97
Claudiu Beznea5e19ade2020-06-02 15:22:21 +030098&main_rc {
99 u-boot,dm-pre-reloc;
100};
101
Claudiu Beznea072c9752020-06-02 15:23:02 +0300102&main_xtal {
103 u-boot,dm-pre-reloc;
104};
105
Sergiu Mogaf02e52b2022-09-01 17:22:40 +0300106&pioA {
Eugen Hristev47a13af2020-06-04 10:37:13 +0300107 u-boot,dm-pre-reloc;
Eugen Hristev47a13af2020-06-04 10:37:13 +0300108};
109
Eugen Hristev7d41a8d2020-06-04 10:38:49 +0300110&pinctrl_flx3_default {
111 u-boot,dm-pre-reloc;
112};
113
Eugen Hristev746b7382022-03-07 16:29:42 +0200114&pioA {
115 u-boot,dm-pre-reloc;
Sergiu Moga3cd06bf2023-01-04 16:04:16 +0200116
117 pinctrl_usb_default: usb_default {
118 pinmux = <PIN_PC6__GPIO>;
119 bias-disable;
120 };
Eugen Hristev746b7382022-03-07 16:29:42 +0200121};
122
Claudiu Bezneab0322302020-06-02 18:42:18 +0300123&pit64b0 {
124 u-boot,dm-pre-reloc;
125};
126
Claudiu Beznea33fa0b62020-06-02 15:24:25 +0300127&pmc {
128 u-boot,dm-pre-reloc;
129};
130
Claudiu Beznea5e19ade2020-06-02 15:22:21 +0300131&slow_rc_osc {
132 u-boot,dm-pre-reloc;
133};
134
Claudiu Beznea072c9752020-06-02 15:23:02 +0300135&slow_xtal {
136 u-boot,dm-pre-reloc;
137};
138
Eugen Hristev746b7382022-03-07 16:29:42 +0200139&uart3 {
Eugen Hristev1d463d62020-03-10 11:56:38 +0200140 u-boot,dm-pre-reloc;
141};
Sergiu Moga3cd06bf2023-01-04 16:04:16 +0200142
143&usb2 {
144 num-ports = <3>;
145 atmel,vbus-gpio = <0
146 0
147 &pioA PIN_PC6 GPIO_ACTIVE_HIGH
148 >;
149 pinctrl-names = "default";
150 pinctrl-0 = <&pinctrl_usb_default>;
151 phys = <&usb_phy2>;
152 phy-names = "usb";
153 status = "okay";
154};
155
156&usb3 {
157 status = "okay";
158};
159
160&usb_phy0 {
161 status = "okay";
162};
163
164&usb_phy1 {
165 status = "okay";
166};
167
168&usb_phy2 {
169 status = "okay";
170};