blob: 32ffe93b4d9f2ba5e25fbc280e81c748d1b6e8ec [file] [log] [blame]
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +00001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * sam9x60ek.dts - Device Tree file for SAM9X60 EK board
4 *
5 * Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries
6 *
7 * Author: Sandeep Sheriker M <Sandeepsheriker.mallikarjun@microchip.com>
8 */
9/dts-v1/;
Eugen Hristeveecfff02021-08-27 13:44:12 +030010#include <dt-bindings/mfd/atmel-flexcom.h>
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +000011#include "sam9x60.dtsi"
12
13/ {
14 model = "Microchip SAM9X60-Ek";
15 compatible = "microchip,sam9x60ek", "microchip,sam9x60", "atmel,at91sam9";
16
17 chosen {
18 stdout-path = &dbgu;
Eugen Hristeveeb172b2019-10-09 09:23:41 +000019 i2c0 = &flx0;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +000020 };
Tudor Ambarus6c8b9502019-09-27 13:09:19 +000021
Claudiu Beznea3de09762020-10-07 18:17:09 +030022 clocks {
23 slow_xtal: slow_xtal {
24 clock-frequency = <32768>;
25 };
26
27 main_xtal: main_xtal {
28 clock-frequency = <24000000>;
29 };
30 };
31
Eugen Hristeve3b47be2019-09-30 07:28:59 +000032 onewire_tm: onewire {
Eugen Hristev87a31d72021-06-23 16:13:35 +030033 gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
Eugen Hristeve3b47be2019-09-30 07:28:59 +000034 pinctrl-names = "default";
35 pinctrl-0 = <&pinctrl_onewire_tm_default>;
36 status = "okay";
37
38 w1_eeprom: w1_eeprom@0 {
39 compatible = "maxim,ds24b33";
40 status = "okay";
41 };
42 };
43
Tudor Ambarus6c8b9502019-09-27 13:09:19 +000044 ahb {
45 apb {
46 qspi: spi@f0014000 {
47 pinctrl-names = "default";
48 pinctrl-0 = <&pinctrl_qspi>;
49 status = "okay";
50
51 nor_flash: sst26vf064@0 {
52 compatible = "spi-flash";
53 reg = <0>;
54 spi-max-frequency = <80000000>;
55 spi-rx-bus-width = <4>;
56 spi-tx-bus-width = <4>;
57 };
58 };
59
Eugen Hristeveeb172b2019-10-09 09:23:41 +000060 flx0: flexcom@f801c600 {
Eugen Hristeveecfff02021-08-27 13:44:12 +030061 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
Eugen Hristeveeb172b2019-10-09 09:23:41 +000062 status = "okay";
63
64 i2c@600 {
65 compatible = "atmel,sama5d2-i2c";
66 reg = <0x600 0x200>;
67 pinctrl-names = "default";
68 pinctrl-0 = <&pinctrl_flx0>;
69 #address-cells = <1>;
70 #size-cells = <0>;
Claudiu Beznea562a8642020-10-07 18:17:12 +030071 clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
Eugen Hristeveeb172b2019-10-09 09:23:41 +000072 status = "okay";
73
74 eeprom@53 {
75 compatible = "atmel,24c32";
76 reg = <0x53>;
77 pagesize = <16>;
78 };
79 };
80 };
81
Tudor Ambarus6c8b9502019-09-27 13:09:19 +000082 pinctrl {
83 pinctrl_qspi: qspi {
84 atmel,pins =
85 <AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_NONE
86 AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_NONE
87 AT91_PIOB 21 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
88 AT91_PIOB 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
89 AT91_PIOB 23 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
90 AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
91 };
92
Eugen Hristeveeb172b2019-10-09 09:23:41 +000093 pinctrl_flx0: flx0_default {
94 atmel,pins =
95 <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE
96 AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE>;
97 };
98
Eugen Hristeve3b47be2019-09-30 07:28:59 +000099 pinctrl_onewire_tm_default: onewire_tm_default {
100 atmel,pins =
101 <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
102 };
103
Tudor Ambarus6c8b9502019-09-27 13:09:19 +0000104 };
105 };
106 };
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000107};
Nicolas Ferred7d06bf2019-09-27 13:08:48 +0000108
109&macb0 {
110 phy-mode = "rmii";
111 status = "okay";
112};