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 { |
| 95 | compatible = "microchip,24aa02e48"; |
| 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 | |
| 106 | pioA: gpio@fc038000 { |
| 107 | pinctrl { |
| 108 | pinctrl_i2c0_default: i2c0_default { |
| 109 | pinmux = <PIN_PD21__TWD0>, |
| 110 | <PIN_PD22__TWCK0>; |
| 111 | bias-disable; |
| 112 | }; |
| 113 | |
| 114 | pinctrl_i2c1_default: i2c1_default { |
| 115 | pinmux = <PIN_PD4__TWD1>, |
| 116 | <PIN_PD5__TWCK1>; |
| 117 | bias-disable; |
| 118 | }; |
| 119 | |
| 120 | pinctrl_macb0_phy_irq: macb0_phy_irq { |
| 121 | pinmux = <PIN_PD31__GPIO>; |
| 122 | bias-disable; |
| 123 | }; |
| 124 | |
| 125 | pinctrl_macb0_rmii: macb0_rmii { |
| 126 | pinmux = <PIN_PD9__GTXCK>, |
| 127 | <PIN_PD10__GTXEN>, |
| 128 | <PIN_PD11__GRXDV>, |
| 129 | <PIN_PD12__GRXER>, |
| 130 | <PIN_PD13__GRX0>, |
| 131 | <PIN_PD14__GRX1>, |
| 132 | <PIN_PD15__GTX0>, |
| 133 | <PIN_PD16__GTX1>, |
| 134 | <PIN_PD17__GMDC>, |
| 135 | <PIN_PD18__GMDIO>; |
| 136 | bias-disable; |
| 137 | }; |
| 138 | |
| 139 | pinctrl_qspi1_sck_cs_default: qspi1_sck_cs_default { |
| 140 | pinmux = <PIN_PB5__QSPI1_SCK>, |
| 141 | <PIN_PB6__QSPI1_CS>; |
| 142 | bias-disable; |
| 143 | u-boot,dm-pre-reloc; |
| 144 | }; |
| 145 | |
| 146 | pinctrl_qspi1_dat_default: qspi1_dat_default { |
| 147 | pinmux = <PIN_PB7__QSPI1_IO0>, |
| 148 | <PIN_PB8__QSPI1_IO1>, |
| 149 | <PIN_PB9__QSPI1_IO2>, |
| 150 | <PIN_PB10__QSPI1_IO3>; |
| 151 | bias-pull-up; |
| 152 | u-boot,dm-pre-reloc; |
| 153 | }; |
| 154 | }; |
| 155 | }; |
| 156 | }; |
| 157 | }; |
| 158 | }; |