blob: 54c694bd78482ca457dde3716151328b68d49ee5 [file] [log] [blame]
Sandeep Sheriker Mallikarjunf99e0ad2019-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 Hristevd65b84a2021-08-27 13:44:12 +030010#include <dt-bindings/mfd/atmel-flexcom.h>
Sandeep Sheriker Mallikarjunf99e0ad2019-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 Hristev67fd5d82019-10-09 09:23:41 +000019 i2c0 = &flx0;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +000020 };
Tudor Ambarus228f9e02019-09-27 13:09:19 +000021
Claudiu Bezneaffd204f2020-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 Hristevc69ce802019-09-30 07:28:59 +000032 onewire_tm: onewire {
Eugen Hristev89bd68a2021-06-23 16:13:35 +030033 gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
Eugen Hristevc69ce802019-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 Ambarus228f9e02019-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 {
Sergiu Moga47413092022-05-13 18:13:39 +030052 compatible = "jedec,spi-nor";
Tudor Ambarus228f9e02019-09-27 13:09:19 +000053 reg = <0>;
54 spi-max-frequency = <80000000>;
55 spi-rx-bus-width = <4>;
56 spi-tx-bus-width = <4>;
57 };
58 };
59
Eugen Hristev67fd5d82019-10-09 09:23:41 +000060 flx0: flexcom@f801c600 {
Eugen Hristevd65b84a2021-08-27 13:44:12 +030061 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
Eugen Hristev67fd5d82019-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 Bezneac37d59a2020-10-07 18:17:12 +030071 clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
Eugen Hristev67fd5d82019-10-09 09:23:41 +000072 status = "okay";
73
74 eeprom@53 {
Eugen Hristev5ae89b32022-05-26 17:04:56 +030075 compatible = "atmel,24c02"; /* EEPROM is 2Kbits microchip 24aa025e48, an at24c02 with page size of 16 */
Eugen Hristev67fd5d82019-10-09 09:23:41 +000076 reg = <0x53>;
77 pagesize = <16>;
78 };
79 };
80 };
81
Tudor Ambarus228f9e02019-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 Hristev67fd5d82019-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 Hristevc69ce802019-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 Ambarus228f9e02019-09-27 13:09:19 +0000104 };
105 };
106 };
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000107};
Nicolas Ferre88555432019-09-27 13:08:48 +0000108
109&macb0 {
110 phy-mode = "rmii";
111 status = "okay";
112};