2020-03-10 09:56:38 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
/*
|
2022-03-07 14:29:42 +00:00
|
|
|
* at91-sama7g5ek-u-boot.dtsi - Device Tree file for SAMA7G5 SoC u-boot
|
|
|
|
* properties.
|
2020-03-10 09:56:38 +00:00
|
|
|
*
|
2022-03-07 14:29:42 +00:00
|
|
|
* Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries
|
2020-03-10 09:56:38 +00:00
|
|
|
*
|
2022-03-07 14:29:42 +00:00
|
|
|
* Author: Eugen Hristev <eugen.hristev@microchip.com>
|
|
|
|
* Author: Claudiu Beznea <claudiu.beznea@microchip.com>
|
2020-03-10 09:56:38 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2023-01-04 14:04:16 +00:00
|
|
|
#include "sama7g5-pinfunc.h"
|
2023-01-04 14:04:15 +00:00
|
|
|
#include <dt-bindings/reset/sama7g5-reset.h>
|
|
|
|
#include <dt-bindings/clock/at91.h>
|
|
|
|
|
2020-03-10 09:56:38 +00:00
|
|
|
/ {
|
|
|
|
chosen {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-03-10 09:56:38 +00:00
|
|
|
};
|
|
|
|
|
2023-01-04 14:04:15 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2022-03-07 14:29:42 +00:00
|
|
|
soc {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2023-01-04 14:04:15 +00:00
|
|
|
|
|
|
|
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>;
|
|
|
|
};
|
2020-03-10 09:56:38 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-06-02 12:22:21 +00:00
|
|
|
&main_rc {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-06-02 12:22:21 +00:00
|
|
|
};
|
|
|
|
|
2020-06-02 12:23:02 +00:00
|
|
|
&main_xtal {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-06-02 12:23:02 +00:00
|
|
|
};
|
|
|
|
|
2022-09-01 14:22:40 +00:00
|
|
|
&pioA {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-06-04 07:37:13 +00:00
|
|
|
};
|
|
|
|
|
2020-06-04 07:38:49 +00:00
|
|
|
&pinctrl_flx3_default {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-06-04 07:38:49 +00:00
|
|
|
};
|
|
|
|
|
2022-03-07 14:29:42 +00:00
|
|
|
&pioA {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2023-01-04 14:04:16 +00:00
|
|
|
|
|
|
|
pinctrl_usb_default: usb_default {
|
|
|
|
pinmux = <PIN_PC6__GPIO>;
|
|
|
|
bias-disable;
|
|
|
|
};
|
2022-03-07 14:29:42 +00:00
|
|
|
};
|
|
|
|
|
2020-06-02 15:42:18 +00:00
|
|
|
&pit64b0 {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-06-02 15:42:18 +00:00
|
|
|
};
|
|
|
|
|
2020-06-02 12:24:25 +00:00
|
|
|
&pmc {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-06-02 12:24:25 +00:00
|
|
|
};
|
|
|
|
|
2020-06-02 12:22:21 +00:00
|
|
|
&slow_rc_osc {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-06-02 12:22:21 +00:00
|
|
|
};
|
|
|
|
|
2020-06-02 12:23:02 +00:00
|
|
|
&slow_xtal {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-06-02 12:23:02 +00:00
|
|
|
};
|
|
|
|
|
2022-03-07 14:29:42 +00:00
|
|
|
&uart3 {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-03-10 09:56:38 +00:00
|
|
|
};
|
2023-01-04 14:04:16 +00:00
|
|
|
|
|
|
|
&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";
|
|
|
|
};
|