Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 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/; |
Eugen Hristev | eecfff0 | 2021-08-27 13:44:12 +0300 | [diff] [blame] | 10 | #include <dt-bindings/mfd/atmel-flexcom.h> |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 11 | #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 Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 19 | i2c0 = &flx0; |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 20 | }; |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 21 | |
Claudiu Beznea | 3de0976 | 2020-10-07 18:17:09 +0300 | [diff] [blame] | 22 | 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 Hristev | e3b47be | 2019-09-30 07:28:59 +0000 | [diff] [blame] | 32 | onewire_tm: onewire { |
Eugen Hristev | 87a31d7 | 2021-06-23 16:13:35 +0300 | [diff] [blame] | 33 | gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; |
Eugen Hristev | e3b47be | 2019-09-30 07:28:59 +0000 | [diff] [blame] | 34 | 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 Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 44 | 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 Moga | 9e351d7 | 2022-05-13 18:13:39 +0300 | [diff] [blame] | 52 | compatible = "jedec,spi-nor"; |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 53 | reg = <0>; |
| 54 | spi-max-frequency = <80000000>; |
| 55 | spi-rx-bus-width = <4>; |
| 56 | spi-tx-bus-width = <4>; |
| 57 | }; |
| 58 | }; |
| 59 | |
Eugen Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 60 | flx0: flexcom@f801c600 { |
Eugen Hristev | eecfff0 | 2021-08-27 13:44:12 +0300 | [diff] [blame] | 61 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
Eugen Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 62 | 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 Beznea | 562a864 | 2020-10-07 18:17:12 +0300 | [diff] [blame] | 71 | clocks = <&pmc PMC_TYPE_PERIPHERAL 5>; |
Eugen Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 72 | status = "okay"; |
| 73 | |
| 74 | eeprom@53 { |
Eugen Hristev | 6ff8a64 | 2022-05-26 17:04:56 +0300 | [diff] [blame] | 75 | compatible = "atmel,24c02"; /* EEPROM is 2Kbits microchip 24aa025e48, an at24c02 with page size of 16 */ |
Eugen Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 76 | reg = <0x53>; |
| 77 | pagesize = <16>; |
| 78 | }; |
| 79 | }; |
| 80 | }; |
| 81 | |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 82 | 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 Hristev | eeb172b | 2019-10-09 09:23:41 +0000 | [diff] [blame] | 93 | 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 Hristev | e3b47be | 2019-09-30 07:28:59 +0000 | [diff] [blame] | 99 | pinctrl_onewire_tm_default: onewire_tm_default { |
| 100 | atmel,pins = |
| 101 | <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; |
| 102 | }; |
| 103 | |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 104 | }; |
| 105 | }; |
| 106 | }; |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 107 | }; |
Nicolas Ferre | d7d06bf | 2019-09-27 13:08:48 +0000 | [diff] [blame] | 108 | |
| 109 | &macb0 { |
| 110 | phy-mode = "rmii"; |
| 111 | status = "okay"; |
| 112 | }; |