2020-03-10 09:56:03 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
/*
|
|
|
|
* sama7g5.dtsi - Device Tree Include file for SAMA7G5 SoC.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2020 Microchip Technology Inc. and its subsidiaries
|
|
|
|
*
|
|
|
|
* Author: Eugen Hristev <eugen.hristev@microchip.com>
|
|
|
|
* Author: Claudiu Beznea <claudiu.beznea@microchip.com>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "skeleton.dtsi"
|
2022-01-04 16:21:54 +00:00
|
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
2020-06-02 12:26:12 +00:00
|
|
|
#include <dt-bindings/clk/at91.h>
|
2022-01-04 16:21:54 +00:00
|
|
|
#include <dt-bindings/dma/at91.h>
|
2020-03-10 09:56:03 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Microchip SAMA7G5 family SoC";
|
|
|
|
compatible = "microchip,sama7g5";
|
2022-01-04 16:21:54 +00:00
|
|
|
interrupt-parent = <&gic>;
|
2020-03-10 09:56:03 +00:00
|
|
|
|
|
|
|
clocks {
|
2020-06-02 12:22:21 +00:00
|
|
|
slow_rc_osc: slow_rc_osc {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <32000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
main_rc: main_rc {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <12000000>;
|
|
|
|
};
|
|
|
|
|
2020-03-10 09:56:03 +00:00
|
|
|
slow_xtal: slow_xtal {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
main_xtal: main_xtal {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-06-02 12:35:55 +00:00
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
A7_0: cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a7";
|
|
|
|
clocks = <&pmc PMC_TYPE_CORE 8>, <&pmc PMC_TYPE_CORE 22>, <&main_xtal>;
|
|
|
|
clock-names = "cpu", "master", "xtal";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-03-10 09:56:03 +00:00
|
|
|
ahb {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
apb {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2020-06-04 07:37:13 +00:00
|
|
|
pioA: pinctrl@e0014000 {
|
2021-04-07 08:39:29 +00:00
|
|
|
compatible = "microchip,sama7g5-gpio";
|
2020-06-04 07:37:13 +00:00
|
|
|
reg = <0xe0014000 0x800>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 11>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
pinctrl: pinctrl_default {
|
|
|
|
compatible = "microchip,sama7g5-pinctrl";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-06-02 12:24:25 +00:00
|
|
|
pmc: pmc@e0018000 {
|
|
|
|
compatible = "microchip,sama7g5-pmc";
|
|
|
|
reg = <0xe0018000 0x200>;
|
|
|
|
#clock-cells = <2>;
|
|
|
|
clocks = <&clk32 1>, <&clk32 0>, <&main_xtal>, <&main_rc>;
|
|
|
|
clock-names = "td_slck", "md_slck", "main_xtal", "main_rc";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-06-02 12:23:49 +00:00
|
|
|
clk32: sckc@e001d050 {
|
|
|
|
compatible = "microchip,sam9x60-sckc";
|
|
|
|
reg = <0xe001d050 0x4>;
|
|
|
|
clocks = <&slow_rc_osc>, <&slow_xtal>;
|
|
|
|
#clock-cells = <1>;
|
|
|
|
};
|
|
|
|
|
2021-11-03 17:07:40 +00:00
|
|
|
qspi0: spi@e080c000 {
|
|
|
|
compatible = "microchip,sama7g5-ospi";
|
|
|
|
reg = <0xe080c000 0x400>, <0x20000000 0x10000000>;
|
|
|
|
reg-names = "qspi_base", "qspi_mmap";
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 78>, <&pmc PMC_TYPE_GCK 78>;
|
|
|
|
clock-names = "pclk", "gclk";
|
|
|
|
assigned-clocks = <&pmc PMC_TYPE_GCK 78>;
|
|
|
|
assigned-clock-parents = <&pmc PMC_TYPE_CORE 10>; /* sys pll div. */
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
qspi1: spi@e0810000 {
|
|
|
|
compatible = "microchip,sama7g5-qspi";
|
|
|
|
reg = <0xe0810000 0x400>, <0x30000000 0x10000000>;
|
|
|
|
reg-names = "qspi_base", "qspi_mmap";
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 79>, <&pmc PMC_TYPE_GCK 79>;
|
|
|
|
clock-names = "pclk", "gclk";
|
|
|
|
assigned-clocks = <&pmc PMC_TYPE_GCK 78>;
|
|
|
|
assigned-clock-parents = <&pmc PMC_TYPE_CORE 10>; /* sys pll div. */
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2020-07-30 12:52:13 +00:00
|
|
|
sdmmc0: sdio-host@e1204000 {
|
|
|
|
compatible = "microchip,sama7g5-sdhci";
|
|
|
|
reg = <0xe1204000 0x300>;
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 80>, <&pmc PMC_TYPE_GCK 80>;
|
|
|
|
clock-names = "hclock", "multclk";
|
|
|
|
assigned-clocks = <&pmc PMC_TYPE_GCK 80>;
|
|
|
|
assigned-clock-rates = <200000000>;
|
|
|
|
assigned-clock-parents = <&pmc PMC_TYPE_CORE 10>; /* sys pll div. */
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2020-03-10 09:56:03 +00:00
|
|
|
sdmmc1: sdio-host@e1208000 {
|
|
|
|
compatible = "microchip,sama7g5-sdhci";
|
|
|
|
reg = <0xe1208000 0x300>;
|
2020-06-02 12:26:12 +00:00
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 81>, <&pmc PMC_TYPE_GCK 81>;
|
|
|
|
clock-names = "hclock", "multclk";
|
2020-07-30 12:50:59 +00:00
|
|
|
assigned-clocks = <&pmc PMC_TYPE_GCK 81>;
|
|
|
|
assigned-clock-rates = <200000000>;
|
|
|
|
assigned-clock-parents = <&pmc PMC_TYPE_CORE 10>; /* sys pll div. */
|
2020-03-10 09:56:03 +00:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2020-06-02 15:42:18 +00:00
|
|
|
pit64b0: timer@e1800000 {
|
|
|
|
compatible = "microchip,sama7g5-pit64b";
|
|
|
|
reg = <0xe1800000 0x4000>;
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 70>, <&pmc PMC_TYPE_GCK 70>;
|
|
|
|
clock-names = "pclk", "gclk";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-07-31 12:19:23 +00:00
|
|
|
flx1: flexcom@e181c000 {
|
|
|
|
compatible = "atmel,sama5d2-flexcom";
|
|
|
|
reg = <0xe181c000 0x200>;
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 39>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0x0 0xe181c000 0x800>;
|
|
|
|
status = "disabled";
|
|
|
|
|
|
|
|
i2c1: i2c@600 {
|
|
|
|
compatible = "atmel,sama5d2-i2c";
|
|
|
|
reg = <0x600 0x200>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 39>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-03-10 09:56:03 +00:00
|
|
|
uart0: serial@e1824200 {
|
|
|
|
compatible = "atmel,at91sam9260-usart";
|
|
|
|
reg = <0xe1824200 0x200>;
|
2020-06-02 12:26:12 +00:00
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 41>;
|
2020-03-10 09:56:03 +00:00
|
|
|
clock-names = "usart";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2020-06-09 10:53:00 +00:00
|
|
|
|
|
|
|
gmac0: ethernet@e2800000 {
|
|
|
|
compatible = "cdns,sama7g5-gem";
|
|
|
|
reg = <0xe2800000 0x4000>;
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 51>, <&pmc PMC_TYPE_PERIPHERAL 51>, <&pmc PMC_TYPE_GCK 51>;
|
|
|
|
clock-names = "hclk", "pclk", "tx_clk";
|
|
|
|
assigned-clocks = <&pmc PMC_TYPE_GCK 51>;
|
|
|
|
assigned-clock-parents = <&pmc PMC_TYPE_CORE 21>; /* eth pll div. */
|
|
|
|
assigned-clock-rates = <125000000>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2020-06-09 10:53:45 +00:00
|
|
|
|
|
|
|
gmac1: ethernet@e2804000 {
|
|
|
|
compatible = "cdns,sama7g5-emac";
|
|
|
|
reg = <0xe2804000 0x1000>;
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 52>, <&pmc PMC_TYPE_PERIPHERAL 52>;
|
|
|
|
clock-names = "pclk", "hclk";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2022-01-04 16:21:54 +00:00
|
|
|
|
|
|
|
dma0: dma-controller@e2808000 {
|
|
|
|
compatible = "microchip,sama7g5-dma";
|
|
|
|
reg = <0xe2808000 0x1000>;
|
|
|
|
interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
#dma-cells = <1>;
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 22>;
|
|
|
|
clock-names = "dma_clk";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
flx8: flexcom@e2818000 {
|
|
|
|
compatible = "atmel,sama5d2-flexcom";
|
|
|
|
reg = <0xe2818000 0x200>;
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 46>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0x0 0xe2818000 0x800>;
|
|
|
|
status = "disabled";
|
|
|
|
|
|
|
|
i2c8: i2c@600 {
|
|
|
|
compatible = "microchip,sama7g5-i2c", "microchip,sam9x60-i2c";
|
|
|
|
reg = <0x600 0x200>;
|
|
|
|
interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
clocks = <&pmc PMC_TYPE_PERIPHERAL 46>;
|
|
|
|
atmel,fifo-size = <32>;
|
|
|
|
dmas = <&dma0 AT91_XDMAC_DT_PERID(21)>,
|
|
|
|
<&dma0 AT91_XDMAC_DT_PERID(22)>;
|
|
|
|
dma-names = "rx", "tx";
|
|
|
|
atmel,use-dma-rx;
|
|
|
|
atmel,use-dma-tx;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gic: interrupt-controller@e8c11000 {
|
|
|
|
compatible = "arm,cortex-a7-gic";
|
|
|
|
#interrupt-cells = <3>;
|
|
|
|
#address-cells = <0>;
|
|
|
|
interrupt-controller;
|
|
|
|
interrupt-parent;
|
|
|
|
reg = <0xe8c11000 0x1000>,
|
|
|
|
<0xe8c12000 0x2000>;
|
|
|
|
};
|
2020-03-10 09:56:03 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|