blob: d3e79fbf194446fa046f7dd60b889efda84a560b [file] [log] [blame]
Jagan Tekica57bd62018-03-14 18:46:39 +05301/*
2 * Copyright (C) 2015 Marek Vasut <marex@denx.de>
3 *
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 */
11
12#include "sama5d4.dtsi"
13
14/ {
15 model = "Aries/DENX MA5D4";
16 compatible = "aries,ma5d4", "denx,ma5d4", "atmel,sama5d4", "atmel,sama5";
17
18 memory {
19 reg = <0x20000000 0x10000000>;
20 };
21
22 clocks {
23 slow_xtal {
24 clock-frequency = <32768>;
25 };
26
27 main_xtal {
28 clock-frequency = <12000000>;
29 };
30
31 clk20m: clk20m {
32 compatible = "fixed-clock";
33 #clock-cells = <0>;
34 clock-frequency = <20000000>;
35 clock-output-names = "clk20m";
36 };
37 };
38
39 ahb {
40 apb {
41 mmc0: mmc@f8000000 {
42 pinctrl-names = "default";
43 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7>;
44 vmmc-supply = <&vcc_mmc0_reg>;
45 vqmmc-supply = <&vcc_3v3_reg>;
46 status = "okay";
47 slot@0 {
48 reg = <0>;
49 bus-width = <8>;
50 broken-cd;
51 };
52 };
53
54 spi0: spi@f8010000 {
55 cs-gpios = <&pioC 3 0>, <0>, <0>, <0>;
56 status = "okay";
57
58 m25p80@0 {
59 compatible = "atmel,at25df321a";
60 spi-max-frequency = <50000000>;
61 reg = <0>;
62 };
63 };
64
65 i2c0: i2c@f8014000 {
66 status = "okay";
67 };
68
69 spi1: spi@fc018000 {
70 cs-gpios = <&pioB 22 0>, <&pioB 23 0>, <0>, <0>;
71 status = "okay";
72
73 can0: can@0 {
74 compatible = "microchip,mcp2515";
75 reg = <0>;
76 clocks = <&clk20m>;
77 interrupt-parent = <&pioE>;
78 interrupts = <6 IRQ_TYPE_EDGE_RISING>;
79 spi-max-frequency = <10000000>;
80 };
81
82 can1: can@1 {
83 compatible = "microchip,mcp2515";
84 reg = <1>;
85 clocks = <&clk20m>;
86 interrupt-parent = <&pioE>;
87 interrupts = <7 IRQ_TYPE_EDGE_RISING>;
88 spi-max-frequency = <10000000>;
89 };
90 };
91
92 tcb2: timer@fc024000 {
93 timer@0 {
94 compatible = "atmel,tcb-timer";
95 reg = <0>;
96 };
97
98 timer@1 {
99 compatible = "atmel,tcb-timer";
100 reg = <1>;
101 };
102 };
103
104 adc0: adc@fc034000 {
105 pinctrl-names = "default";
106 pinctrl-0 = <
107 /* external trigger conflicts with USBA_VBUS */
108 &pinctrl_adc0_ad0
109 &pinctrl_adc0_ad1
110 &pinctrl_adc0_ad2
111 &pinctrl_adc0_ad3
112 &pinctrl_adc0_ad4
113 >;
114 atmel,adc-vref = <3300>;
115 status = "okay";
116 };
117
118 watchdog@fc068640 {
119 status = "okay";
120 };
121 };
122 };
123
124 vcc_3v3_reg: fixedregulator_3v3 {
125 compatible = "regulator-fixed";
126 regulator-name = "VCC 3V3";
127 regulator-min-microvolt = <3300000>;
128 regulator-max-microvolt = <3300000>;
129 regulator-boot-on;
130 regulator-always-on;
131 };
132
133 vcc_mmc0_reg: fixedregulator_mmc0 {
134 compatible = "regulator-fixed";
135 gpio = <&pioE 15 GPIO_ACTIVE_HIGH>;
136 regulator-name = "RST_n MCI0";
137 regulator-min-microvolt = <3300000>;
138 regulator-max-microvolt = <3300000>;
139 vin-supply = <&vcc_3v3_reg>;
140 regulator-boot-on;
141 };
142};