1// 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/;
10#include "sam9x60.dtsi"
11
12/ {
13	model = "Microchip SAM9X60-Ek";
14	compatible = "microchip,sam9x60ek", "microchip,sam9x60", "atmel,at91sam9";
15
16	chosen {
17		stdout-path = &dbgu;
18		i2c0 = &flx0;
19	};
20
21	clocks {
22		slow_xtal: slow_xtal {
23			clock-frequency = <32768>;
24		};
25
26		main_xtal: main_xtal {
27			clock-frequency = <24000000>;
28		};
29	};
30
31	onewire_tm: onewire {
32		gpios = <&pioD 14 0>;
33		pinctrl-names = "default";
34		pinctrl-0 = <&pinctrl_onewire_tm_default>;
35		status = "okay";
36
37		w1_eeprom: w1_eeprom@0 {
38			compatible = "maxim,ds24b33";
39			status = "okay";
40		};
41	};
42
43	ahb {
44		apb {
45			qspi: spi@f0014000 {
46				pinctrl-names = "default";
47				pinctrl-0 = <&pinctrl_qspi>;
48				status = "okay";
49
50				nor_flash: sst26vf064@0 {
51					compatible = "spi-flash";
52					reg = <0>;
53					spi-max-frequency = <80000000>;
54					spi-rx-bus-width = <4>;
55					spi-tx-bus-width = <4>;
56				};
57			};
58
59			flx0: flexcom@f801c600 {
60				atmel,flexcom-mode = <3>;
61				status = "okay";
62
63				i2c@600 {
64					compatible = "atmel,sama5d2-i2c";
65					reg = <0x600 0x200>;
66					pinctrl-names = "default";
67					pinctrl-0 = <&pinctrl_flx0>;
68					#address-cells = <1>;
69					#size-cells = <0>;
70					clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
71					status = "okay";
72
73					eeprom@53 {
74						compatible = "atmel,24c32";
75						reg = <0x53>;
76						pagesize = <16>;
77					};
78				};
79			};
80
81			pinctrl {
82					pinctrl_qspi: qspi {
83						atmel,pins =
84							<AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_NONE
85							 AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_NONE
86							 AT91_PIOB 21 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
87							 AT91_PIOB 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
88							 AT91_PIOB 23 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
89							 AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
90					};
91
92					pinctrl_flx0: flx0_default {
93						atmel,pins =
94							<AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE
95							 AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE>;
96					};
97
98					pinctrl_onewire_tm_default: onewire_tm_default {
99						atmel,pins =
100							<AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
101					};
102
103			};
104		};
105	};
106};
107
108&macb0 {
109	phy-mode = "rmii";
110	status = "okay";
111};
112