Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 1 | /* |
| 2 | * at91-sama5d2_ptc_ek.dts - Device Tree file for SAMA5D2 PTC EK board |
| 3 | * |
| 4 | * Copyright (C) 2017 Microchip Technology Inc, |
| 5 | * Ludovic Desroches <ludovic.desroches@microchip.com> |
| 6 | * |
| 7 | * This file is dual-licensed: you can use it either under the terms |
| 8 | * of the GPL or the X11 license, at your option. Note that this dual |
| 9 | * licensing only applies to this file, and not this project as a |
| 10 | * whole. |
| 11 | * |
| 12 | * a) This file is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License as |
| 14 | * published by the Free Software Foundation; either version 2 of the |
| 15 | * License, or (at your option) any later version. |
| 16 | * |
| 17 | * This file is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * Or, alternatively, |
| 23 | * |
| 24 | * b) Permission is hereby granted, free of charge, to any person |
| 25 | * obtaining a copy of this software and associated documentation |
| 26 | * files (the "Software"), to deal in the Software without |
| 27 | * restriction, including without limitation the rights to use, |
| 28 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 29 | * sell copies of the Software, and to permit persons to whom the |
| 30 | * Software is furnished to do so, subject to the following |
| 31 | * conditions: |
| 32 | * |
| 33 | * The above copyright notice and this permission notice shall be |
| 34 | * included in all copies or substantial portions of the Software. |
| 35 | * |
| 36 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 37 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 38 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 39 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 40 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 41 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 42 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 43 | * OTHER DEALINGS IN THE SOFTWARE. |
| 44 | */ |
| 45 | /dts-v1/; |
| 46 | #include <dt-bindings/gpio/gpio.h> |
| 47 | #include "sama5d2.dtsi" |
| 48 | #include "sama5d2-pinfunc.h" |
| 49 | |
| 50 | / { |
| 51 | model = "Atmel SAMA5D2 PTC EK"; |
| 52 | compatible = "atmel,sama5d2-ptc_ek", "atmel,sama5d2", "atmel,sama5"; |
| 53 | |
| 54 | chosen { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 55 | bootph-all; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 56 | stdout-path = &uart0; |
| 57 | }; |
| 58 | |
Eugen Hristev | 7c9b568 | 2018-09-18 10:35:56 +0300 | [diff] [blame] | 59 | onewire_tm: onewire { |
Eugen Hristev | 87a31d7 | 2021-06-23 16:13:35 +0300 | [diff] [blame] | 60 | gpios = <&pioA PIN_PB31 GPIO_ACTIVE_HIGH>; |
Eugen Hristev | 7c9b568 | 2018-09-18 10:35:56 +0300 | [diff] [blame] | 61 | pinctrl-names = "default"; |
| 62 | pinctrl-0 = <&pinctrl_onewire_tm_default>; |
| 63 | status = "okay"; |
| 64 | |
| 65 | w1_eeprom: w1_eeprom@0 { |
| 66 | compatible = "maxim,ds24b33"; |
| 67 | status = "okay"; |
| 68 | }; |
| 69 | }; |
| 70 | |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 71 | ahb { |
| 72 | usb0: gadget@00300000 { |
| 73 | atmel,vbus-gpio = <&pioA PIN_PA27 GPIO_ACTIVE_HIGH>; |
| 74 | pinctrl-names = "default"; |
| 75 | pinctrl-0 = <&pinctrl_usba_vbus>; |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
Eugen Hristev | 21de284 | 2021-08-17 13:29:24 +0300 | [diff] [blame] | 79 | usb1: ohci@400000 { |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 80 | num-ports = <3>; |
| 81 | atmel,vbus-gpio = <0 |
| 82 | &pioA PIN_PB12 GPIO_ACTIVE_HIGH |
| 83 | 0 |
| 84 | >; |
| 85 | pinctrl-names = "default"; |
| 86 | pinctrl-0 = <&pinctrl_usb_default>; |
| 87 | status = "okay"; |
| 88 | }; |
| 89 | |
Eugen Hristev | 21de284 | 2021-08-17 13:29:24 +0300 | [diff] [blame] | 90 | usb2: ehci@500000 { |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 91 | status = "okay"; |
| 92 | }; |
| 93 | |
| 94 | sdmmc0: sdio-host@a0000000 { |
| 95 | bus-width = <8>; |
| 96 | pinctrl-names = "default"; |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 97 | pinctrl-0 = <&pinctrl_sdmmc0_default>; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 98 | status = "okay"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 99 | bootph-all; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 100 | }; |
| 101 | |
| 102 | sdmmc1: sdio-host@b0000000 { |
| 103 | bus-width = <4>; |
| 104 | pinctrl-names = "default"; |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 105 | pinctrl-0 = <&pinctrl_sdmmc1_default>; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 106 | status = "disabled"; /* conflicts with nand and qspi0*/ |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 107 | bootph-all; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 108 | }; |
| 109 | |
| 110 | apb { |
| 111 | macb0: ethernet@f8008000 { |
| 112 | pinctrl-names = "default"; |
| 113 | pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>; |
| 114 | phy-mode = "rmii"; |
| 115 | status = "okay"; |
| 116 | |
| 117 | ethernet-phy@1 { |
| 118 | reg = <0x1>; |
| 119 | }; |
| 120 | }; |
| 121 | |
| 122 | uart0: serial@f801c000 { |
| 123 | pinctrl-names = "default"; |
| 124 | pinctrl-0 = <&pinctrl_uart0_default>; |
| 125 | status = "okay"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 126 | bootph-all; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 127 | }; |
| 128 | |
| 129 | i2c1: i2c@fc028000 { |
| 130 | pinctrl-names = "default"; |
| 131 | pinctrl-0 = <&pinctrl_i2c1_default>; |
| 132 | status = "okay"; |
| 133 | |
| 134 | i2c_eeprom: i2c_eeprom@50 { |
| 135 | compatible = "atmel,24mac402"; |
| 136 | reg = <0x50>; |
| 137 | }; |
| 138 | }; |
| 139 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 140 | pioA: pinctrl@fc038000 { |
| 141 | pinctrl_i2c1_default: i2c1_default { |
| 142 | pinmux = <PIN_PC6__TWD1>, |
| 143 | <PIN_PC7__TWCK1>; |
| 144 | bias-disable; |
| 145 | }; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 146 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 147 | pinctrl_macb0_phy_irq: macb0_phy_irq { |
| 148 | pinmux = <PIN_PB24__GPIO>; |
| 149 | bias-disable; |
| 150 | }; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 151 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 152 | pinctrl_macb0_rmii: macb0_rmii { |
| 153 | pinmux = <PIN_PB14__GTXCK>, |
| 154 | <PIN_PB15__GTXEN>, |
| 155 | <PIN_PB16__GRXDV>, |
| 156 | <PIN_PB17__GRXER>, |
| 157 | <PIN_PB18__GRX0>, |
| 158 | <PIN_PB19__GRX1>, |
| 159 | <PIN_PB20__GTX0>, |
| 160 | <PIN_PB21__GTX1>, |
| 161 | <PIN_PB22__GMDC>, |
| 162 | <PIN_PB23__GMDIO>; |
| 163 | bias-disable; |
| 164 | }; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 165 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 166 | pinctrl_sdmmc0_default: sdmmc0_default { |
| 167 | cmd_dat { |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 168 | pinmux = <PIN_PA1__SDMMC0_CMD>, |
| 169 | <PIN_PA2__SDMMC0_DAT0>, |
| 170 | <PIN_PA3__SDMMC0_DAT1>, |
| 171 | <PIN_PA4__SDMMC0_DAT2>, |
| 172 | <PIN_PA5__SDMMC0_DAT3>, |
| 173 | <PIN_PA6__SDMMC0_DAT4>, |
| 174 | <PIN_PA7__SDMMC0_DAT5>, |
| 175 | <PIN_PA8__SDMMC0_DAT6>, |
| 176 | <PIN_PA9__SDMMC0_DAT7>; |
| 177 | bias-pull-up; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 178 | bootph-all; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 179 | }; |
| 180 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 181 | ck_cd { |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 182 | pinmux = <PIN_PA0__SDMMC0_CK>, |
| 183 | <PIN_PA10__SDMMC0_RSTN>, |
| 184 | <PIN_PA11__SDMMC0_VDDSEL>, |
| 185 | <PIN_PA13__SDMMC0_CD>; |
| 186 | bias-disable; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 187 | bootph-all; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 188 | }; |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 189 | }; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 190 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 191 | pinctrl_sdmmc1_default: sdmmc1_default { |
| 192 | cmd_dat { |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 193 | pinmux = <PIN_PA28__SDMMC1_CMD>, |
| 194 | <PIN_PA18__SDMMC1_DAT0>, |
| 195 | <PIN_PA19__SDMMC1_DAT1>, |
| 196 | <PIN_PA20__SDMMC1_DAT2>, |
| 197 | <PIN_PA21__SDMMC1_DAT3>; |
| 198 | bias-pull-up; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 199 | bootph-all; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 200 | }; |
| 201 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 202 | ck_cd { |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 203 | pinmux = <PIN_PA22__SDMMC1_CK>, |
| 204 | <PIN_PA30__SDMMC1_CD>; |
| 205 | bias-disable; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 206 | bootph-all; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 207 | }; |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 208 | }; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 209 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 210 | pinctrl_uart0_default: uart0_default { |
| 211 | pinmux = <PIN_PB26__URXD0>, |
| 212 | <PIN_PB27__UTXD0>; |
| 213 | bias-disable; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 214 | bootph-all; |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 215 | }; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 216 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 217 | pinctrl_usb_default: usb_default { |
| 218 | pinmux = <PIN_PB12__GPIO>; |
| 219 | bias-disable; |
| 220 | }; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 221 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 222 | pinctrl_usba_vbus: usba_vbus { |
| 223 | pinmux = <PIN_PB11__GPIO>; |
| 224 | bias-disable; |
| 225 | }; |
Eugen Hristev | 7c9b568 | 2018-09-18 10:35:56 +0300 | [diff] [blame] | 226 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 227 | pinctrl_onewire_tm_default: onewire_tm_default { |
| 228 | pinmux = <PIN_PB31__GPIO>; |
| 229 | bias-pull-up; |
Ludovic Desroches | 1240d88 | 2017-11-17 14:57:12 +0800 | [diff] [blame] | 230 | }; |
| 231 | }; |
| 232 | }; |
| 233 | }; |
| 234 | }; |