0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * Copyright (C) 2015 Marek Vasut <marex@denx.de>
0004 */
0005
0006 #include "sama5d4.dtsi"
0007
0008 / {
0009 model = "Aries/DENX MA5D4";
0010 compatible = "aries,ma5d4", "denx,ma5d4", "atmel,sama5d4", "atmel,sama5";
0011
0012 memory@20000000 {
0013 reg = <0x20000000 0x10000000>;
0014 };
0015
0016 clocks {
0017 slow_xtal {
0018 clock-frequency = <32768>;
0019 };
0020
0021 main_xtal {
0022 clock-frequency = <12000000>;
0023 };
0024
0025 clk20m: clk20m {
0026 compatible = "fixed-clock";
0027 #clock-cells = <0>;
0028 clock-frequency = <20000000>;
0029 clock-output-names = "clk20m";
0030 };
0031 };
0032
0033 ahb {
0034 apb {
0035 mmc0: mmc@f8000000 {
0036 pinctrl-names = "default";
0037 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7>;
0038 vmmc-supply = <&vcc_mmc0_reg>;
0039 vqmmc-supply = <&vcc_3v3_reg>;
0040 status = "okay";
0041 slot@0 {
0042 reg = <0>;
0043 bus-width = <8>;
0044 broken-cd;
0045 };
0046 };
0047
0048 spi0: spi@f8010000 {
0049 cs-gpios = <&pioC 3 0>, <0>, <0>, <0>;
0050 status = "okay";
0051
0052 flash@0 {
0053 compatible = "atmel,at25df321a";
0054 spi-max-frequency = <50000000>;
0055 reg = <0>;
0056 };
0057 };
0058
0059 i2c0: i2c@f8014000 {
0060 status = "okay";
0061 };
0062
0063 spi1: spi@fc018000 {
0064 cs-gpios = <&pioB 22 0>, <&pioB 23 0>, <0>, <0>;
0065 status = "okay";
0066
0067 can0: can@0 {
0068 compatible = "microchip,mcp2515";
0069 reg = <0>;
0070 clocks = <&clk20m>;
0071 interrupt-parent = <&pioE>;
0072 interrupts = <6 IRQ_TYPE_EDGE_RISING>;
0073 spi-max-frequency = <10000000>;
0074 };
0075
0076 can1: can@1 {
0077 compatible = "microchip,mcp2515";
0078 reg = <1>;
0079 clocks = <&clk20m>;
0080 interrupt-parent = <&pioE>;
0081 interrupts = <7 IRQ_TYPE_EDGE_RISING>;
0082 spi-max-frequency = <10000000>;
0083 };
0084 };
0085
0086 tcb2: timer@fc024000 {
0087 timer@0 {
0088 compatible = "atmel,tcb-timer";
0089 reg = <0>;
0090 };
0091
0092 timer@1 {
0093 compatible = "atmel,tcb-timer";
0094 reg = <1>;
0095 };
0096 };
0097
0098 adc0: adc@fc034000 {
0099 pinctrl-names = "default";
0100 pinctrl-0 = <
0101 /* external trigger conflicts with USBA_VBUS */
0102 &pinctrl_adc0_ad0
0103 &pinctrl_adc0_ad1
0104 &pinctrl_adc0_ad2
0105 &pinctrl_adc0_ad3
0106 &pinctrl_adc0_ad4
0107 >;
0108 atmel,adc-vref = <3300>;
0109 status = "okay";
0110 };
0111
0112 watchdog@fc068640 {
0113 status = "okay";
0114 };
0115 };
0116 };
0117
0118 vcc_3v3_reg: fixedregulator_3v3 {
0119 compatible = "regulator-fixed";
0120 regulator-name = "VCC 3V3";
0121 regulator-min-microvolt = <3300000>;
0122 regulator-max-microvolt = <3300000>;
0123 regulator-boot-on;
0124 regulator-always-on;
0125 };
0126
0127 vcc_mmc0_reg: fixedregulator_mmc0 {
0128 compatible = "regulator-fixed";
0129 gpio = <&pioE 15 GPIO_ACTIVE_HIGH>;
0130 regulator-name = "RST_n MCI0";
0131 regulator-min-microvolt = <3300000>;
0132 regulator-max-microvolt = <3300000>;
0133 vin-supply = <&vcc_3v3_reg>;
0134 regulator-boot-on;
0135 };
0136 };