Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 1 | /* |
| 2 | * sama5d27_som1.dtsi - Device Tree file for SAMA5D27 SOM1 |
| 3 | * |
| 4 | * Copyright (C) 2017 Microchip Corporation |
| 5 | * Wenyou Yang <wenyou.yang@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 | |
| 46 | #include "sama5d2.dtsi" |
| 47 | #include "sama5d2-pinfunc.h" |
| 48 | / { |
| 49 | model = "Atmel SAMA5D27 SOM1 EK"; |
| 50 | compatible = "atmel,sama5d27-som1-ek", "atmel,sama5d2", "atmel,sama5"; |
| 51 | |
| 52 | memory { |
| 53 | reg = <0x20000000 0x8000000>; |
| 54 | }; |
| 55 | |
| 56 | aliases { |
| 57 | spi0 = &qspi1; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 58 | }; |
| 59 | |
| 60 | ahb { |
| 61 | apb { |
| 62 | qspi1: spi@f0024000 { |
| 63 | pinctrl-names = "default"; |
| 64 | pinctrl-0 = <&pinctrl_qspi1_sck_cs_default &pinctrl_qspi1_dat_default>; |
| 65 | status = "okay"; |
| 66 | u-boot,dm-pre-reloc; |
| 67 | |
| 68 | spi_flash@0 { |
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 69 | compatible = "jedec,spi-nor"; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 70 | reg = <0>; |
| 71 | spi-max-frequency = <50000000>; |
| 72 | spi-rx-bus-width = <4>; |
| 73 | spi-tx-bus-width = <4>; |
| 74 | u-boot,dm-pre-reloc; |
| 75 | }; |
| 76 | }; |
| 77 | |
| 78 | macb0: ethernet@f8008000 { |
| 79 | pinctrl-names = "default"; |
| 80 | pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>; |
| 81 | phy-mode = "rmii"; |
| 82 | status = "okay"; |
| 83 | |
| 84 | ethernet-phy@1 { |
| 85 | reg = <0x1>; |
| 86 | }; |
| 87 | }; |
| 88 | |
| 89 | i2c0: i2c@f8028000 { |
| 90 | pinctrl-names = "default"; |
| 91 | pinctrl-0 = <&pinctrl_i2c0_default>; |
| 92 | status = "okay"; |
| 93 | |
| 94 | i2c_eeprom: i2c_eeprom@50 { |
Eugen Hristev | d155a0c | 2022-05-26 17:04:54 +0300 | [diff] [blame] | 95 | compatible = "atmel,24c02"; /* EEPROM is 2Kbits microchip 24aa02e48 */ |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 96 | reg = <0x50>; |
| 97 | }; |
| 98 | }; |
| 99 | |
| 100 | i2c1: i2c@fc028000 { |
| 101 | pinctrl-names = "default"; |
| 102 | pinctrl-0 = <&pinctrl_i2c1_default>; |
| 103 | status = "okay"; |
| 104 | }; |
| 105 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame^] | 106 | pioA: pinctrl@fc038000 { |
| 107 | pinctrl_i2c0_default: i2c0_default { |
| 108 | pinmux = <PIN_PD21__TWD0>, |
| 109 | <PIN_PD22__TWCK0>; |
| 110 | bias-disable; |
| 111 | }; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 112 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame^] | 113 | pinctrl_i2c1_default: i2c1_default { |
| 114 | pinmux = <PIN_PD4__TWD1>, |
| 115 | <PIN_PD5__TWCK1>; |
| 116 | bias-disable; |
| 117 | }; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 118 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame^] | 119 | pinctrl_macb0_phy_irq: macb0_phy_irq { |
| 120 | pinmux = <PIN_PD31__GPIO>; |
| 121 | bias-disable; |
| 122 | }; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 123 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame^] | 124 | pinctrl_macb0_rmii: macb0_rmii { |
| 125 | pinmux = <PIN_PD9__GTXCK>, |
| 126 | <PIN_PD10__GTXEN>, |
| 127 | <PIN_PD11__GRXDV>, |
| 128 | <PIN_PD12__GRXER>, |
| 129 | <PIN_PD13__GRX0>, |
| 130 | <PIN_PD14__GRX1>, |
| 131 | <PIN_PD15__GTX0>, |
| 132 | <PIN_PD16__GTX1>, |
| 133 | <PIN_PD17__GMDC>, |
| 134 | <PIN_PD18__GMDIO>; |
| 135 | bias-disable; |
| 136 | }; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 137 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame^] | 138 | pinctrl_qspi1_sck_cs_default: qspi1_sck_cs_default { |
| 139 | pinmux = <PIN_PB5__QSPI1_SCK>, |
| 140 | <PIN_PB6__QSPI1_CS>; |
| 141 | bias-disable; |
| 142 | u-boot,dm-pre-reloc; |
| 143 | }; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 144 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame^] | 145 | pinctrl_qspi1_dat_default: qspi1_dat_default { |
| 146 | pinmux = <PIN_PB7__QSPI1_IO0>, |
| 147 | <PIN_PB8__QSPI1_IO1>, |
| 148 | <PIN_PB9__QSPI1_IO2>, |
| 149 | <PIN_PB10__QSPI1_IO3>; |
| 150 | bias-pull-up; |
| 151 | u-boot,dm-pre-reloc; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 152 | }; |
| 153 | }; |
| 154 | }; |
| 155 | }; |
| 156 | }; |