blob: d6ae3d648daf92a3173a89f74d8c81c42b6dd88c [file] [log] [blame]
Durai Manickam KRa0509712022-04-04 11:23:19 +05301// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * at91-sam9x60_curiosity.dts - Device Tree file for SAM9X60 CURIOSITY board
4 *
5 * Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries
6 *
7 * Author: Durai Manickam KR <durai.manickamkr@microchip.com>
8 */
9/dts-v1/;
10#include <dt-bindings/mfd/atmel-flexcom.h>
11#include "sam9x60.dtsi"
12
13/ {
14 model = "Microchip SAM9X60 CURIOSITY";
15 compatible = "microchip,sam9x60-curiosity", "microchip,sam9x60", "atmel,at91sam9";
16
17 ahb {
18 apb {
19 flx0: flexcom@f801c600 {
20 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
21 status = "okay";
22
23 i2c@600 {
24 compatible = "atmel,sama5d2-i2c";
25 reg = <0x600 0x200>;
26 pinctrl-names = "default";
27 pinctrl-0 = <&pinctrl_flx0>;
28 #address-cells = <1>;
29 #size-cells = <0>;
30 clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
31 status = "okay";
32
33 eeprom@53 {
34 compatible = "atmel,24c32";
35 reg = <0x53>;
36 pagesize = <16>;
37 };
38 };
39 };
40
41 pinctrl {
42 pinctrl_flx0: flx0_default {
43 atmel,pins =
44 <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE
45 AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE>;
46 };
Durai Manickam KRed458092022-07-07 16:40:56 +053047
48 pinctrl_onewire_tm_default: onewire_tm_default {
49 atmel,pins =
50 <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
51 };
Sergiu Mogafd41ebf2023-01-04 16:04:11 +020052
53 usb1 {
54 pinctrl_usb_default: usb_default {
55 atmel,pins = <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
56 AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
57 };
58 };
Durai Manickam KRa0509712022-04-04 11:23:19 +053059 };
60 };
61 };
62
63 chosen {
64 stdout-path = &dbgu;
65 i2c0 = &flx0;
66 };
67
68 clocks {
69 slow_xtal: slow_xtal {
70 clock-frequency = <32768>;
71 };
72
73 main_xtal: main_xtal {
74 clock-frequency = <24000000>;
75 };
76 };
77
78 memory {
79 reg = <0x20000000 0x8000000>;
80 };
Durai Manickam KRed458092022-07-07 16:40:56 +053081
82 onewire_tm: onewire {
83 gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&pinctrl_onewire_tm_default>;
86 status = "okay";
87
88 w1_eeprom: w1_eeprom@0 {
89 compatible = "maxim,ds24b33";
90 status = "okay";
91 };
92 };
Durai Manickam KRa0509712022-04-04 11:23:19 +053093};
94
95&macb0 {
96 phy-mode = "rmii";
97 status = "okay";
98};
Sergiu Mogafd41ebf2023-01-04 16:04:11 +020099
100&usb1 {
101 num-ports = <3>;
102 atmel,vbus-gpio = <0
103 &pioD 15 GPIO_ACTIVE_HIGH
104 &pioD 18 GPIO_ACTIVE_HIGH>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&pinctrl_usb_default>;
107 status = "okay";
108};
109
110&usb2 {
111 status = "okay";
112};