| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * at91-sama5d27_som1.dtsi - Device Tree file for SAMA5D27 SoM1 board |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2017, Microchip Technology Inc. |
|---|
| 5 | 6 | * 2017 Cristian Birsan <cristian.birsan@microchip.com> |
|---|
| 6 | 7 | * 2017 Claudiu Beznea <claudiu.beznea@microchip.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This file is dual-licensed: you can use it either under the terms |
|---|
| 9 | | - * of the GPL or the X11 license, at your option. Note that this dual |
|---|
| 10 | | - * licensing only applies to this file, and not this project as a |
|---|
| 11 | | - * whole. |
|---|
| 12 | | - * |
|---|
| 13 | | - * a) This file is free software; you can redistribute it and/or |
|---|
| 14 | | - * modify it under the terms of the GNU General Public License as |
|---|
| 15 | | - * published by the Free Software Foundation; either version 2 of the |
|---|
| 16 | | - * License, or (at your option) any later version. |
|---|
| 17 | | - * |
|---|
| 18 | | - * This file is distributed in the hope that it will be useful, |
|---|
| 19 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 20 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 21 | | - * GNU General Public License for more details. |
|---|
| 22 | | - * |
|---|
| 23 | | - * Or, alternatively, |
|---|
| 24 | | - * |
|---|
| 25 | | - * b) Permission is hereby granted, free of charge, to any person |
|---|
| 26 | | - * obtaining a copy of this software and associated documentation |
|---|
| 27 | | - * files (the "Software"), to deal in the Software without |
|---|
| 28 | | - * restriction, including without limitation the rights to use, |
|---|
| 29 | | - * copy, modify, merge, publish, distribute, sublicense, and/or |
|---|
| 30 | | - * sell copies of the Software, and to permit persons to whom the |
|---|
| 31 | | - * Software is furnished to do so, subject to the following |
|---|
| 32 | | - * conditions: |
|---|
| 33 | | - * |
|---|
| 34 | | - * The above copyright notice and this permission notice shall be |
|---|
| 35 | | - * included in all copies or substantial portions of the Software. |
|---|
| 36 | | - * |
|---|
| 37 | | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|---|
| 38 | | - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|---|
| 39 | | - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|---|
| 40 | | - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|---|
| 41 | | - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|---|
| 42 | | - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|---|
| 43 | | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|---|
| 44 | | - * OTHER DEALINGS IN THE SOFTWARE. |
|---|
| 45 | 8 | */ |
|---|
| 46 | 9 | #include "sama5d2.dtsi" |
|---|
| 47 | 10 | #include "sama5d2-pinfunc.h" |
|---|
| .. | .. |
|---|
| 49 | 12 | / { |
|---|
| 50 | 13 | model = "Atmel SAMA5D27 SoM1"; |
|---|
| 51 | 14 | compatible = "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5"; |
|---|
| 15 | + |
|---|
| 16 | + aliases { |
|---|
| 17 | + i2c0 = &i2c0; |
|---|
| 18 | + }; |
|---|
| 52 | 19 | |
|---|
| 53 | 20 | clocks { |
|---|
| 54 | 21 | slow_xtal { |
|---|
| .. | .. |
|---|
| 61 | 28 | }; |
|---|
| 62 | 29 | |
|---|
| 63 | 30 | ahb { |
|---|
| 31 | + sdmmc0: sdio-host@a0000000 { |
|---|
| 32 | + microchip,sdcal-inverted; |
|---|
| 33 | + }; |
|---|
| 34 | + |
|---|
| 64 | 35 | apb { |
|---|
| 36 | + qspi1: spi@f0024000 { |
|---|
| 37 | + pinctrl-names = "default"; |
|---|
| 38 | + pinctrl-0 = <&pinctrl_qspi1_default>; |
|---|
| 39 | + |
|---|
| 40 | + flash@0 { |
|---|
| 41 | + #address-cells = <1>; |
|---|
| 42 | + #size-cells = <1>; |
|---|
| 43 | + compatible = "jedec,spi-nor"; |
|---|
| 44 | + reg = <0>; |
|---|
| 45 | + spi-max-frequency = <80000000>; |
|---|
| 46 | + spi-tx-bus-width = <4>; |
|---|
| 47 | + spi-rx-bus-width = <4>; |
|---|
| 48 | + m25p,fast-read; |
|---|
| 49 | + |
|---|
| 50 | + at91bootstrap@00000000 { |
|---|
| 51 | + label = "at91bootstrap"; |
|---|
| 52 | + reg = <0x00000000 0x00040000>; |
|---|
| 53 | + }; |
|---|
| 54 | + |
|---|
| 55 | + bootloader@00040000 { |
|---|
| 56 | + label = "bootloader"; |
|---|
| 57 | + reg = <0x00040000 0x000c0000>; |
|---|
| 58 | + }; |
|---|
| 59 | + |
|---|
| 60 | + bootloaderenvred@00100000 { |
|---|
| 61 | + label = "bootloader env redundant"; |
|---|
| 62 | + reg = <0x00100000 0x00040000>; |
|---|
| 63 | + }; |
|---|
| 64 | + |
|---|
| 65 | + bootloaderenv@00140000 { |
|---|
| 66 | + label = "bootloader env"; |
|---|
| 67 | + reg = <0x00140000 0x00040000>; |
|---|
| 68 | + }; |
|---|
| 69 | + |
|---|
| 70 | + dtb@00180000 { |
|---|
| 71 | + label = "device tree"; |
|---|
| 72 | + reg = <0x00180000 0x00080000>; |
|---|
| 73 | + }; |
|---|
| 74 | + |
|---|
| 75 | + kernel@00200000 { |
|---|
| 76 | + label = "kernel"; |
|---|
| 77 | + reg = <0x00200000 0x00600000>; |
|---|
| 78 | + }; |
|---|
| 79 | + }; |
|---|
| 80 | + }; |
|---|
| 81 | + |
|---|
| 65 | 82 | macb0: ethernet@f8008000 { |
|---|
| 66 | 83 | pinctrl-names = "default"; |
|---|
| 67 | 84 | pinctrl-0 = <&pinctrl_macb0_default>; |
|---|
| .. | .. |
|---|
| 76 | 93 | }; |
|---|
| 77 | 94 | }; |
|---|
| 78 | 95 | |
|---|
| 96 | + i2c0: i2c@f8028000 { |
|---|
| 97 | + dmas = <0>, <0>; |
|---|
| 98 | + pinctrl-names = "default"; |
|---|
| 99 | + pinctrl-0 = <&pinctrl_i2c0_default>; |
|---|
| 100 | + status = "okay"; |
|---|
| 101 | + |
|---|
| 102 | + at24@50 { |
|---|
| 103 | + compatible = "24c02"; |
|---|
| 104 | + reg = <0x50>; |
|---|
| 105 | + pagesize = <8>; |
|---|
| 106 | + }; |
|---|
| 107 | + }; |
|---|
| 108 | + |
|---|
| 79 | 109 | pinctrl@fc038000 { |
|---|
| 110 | + pinctrl_i2c0_default: i2c0_default { |
|---|
| 111 | + pinmux = <PIN_PD21__TWD0>, |
|---|
| 112 | + <PIN_PD22__TWCK0>; |
|---|
| 113 | + bias-disable; |
|---|
| 114 | + }; |
|---|
| 115 | + |
|---|
| 116 | + pinctrl_qspi1_default: qspi1_default { |
|---|
| 117 | + sck_cs { |
|---|
| 118 | + pinmux = <PIN_PB5__QSPI1_SCK>, |
|---|
| 119 | + <PIN_PB6__QSPI1_CS>; |
|---|
| 120 | + bias-disable; |
|---|
| 121 | + }; |
|---|
| 122 | + |
|---|
| 123 | + data { |
|---|
| 124 | + pinmux = <PIN_PB7__QSPI1_IO0>, |
|---|
| 125 | + <PIN_PB8__QSPI1_IO1>, |
|---|
| 126 | + <PIN_PB9__QSPI1_IO2>, |
|---|
| 127 | + <PIN_PB10__QSPI1_IO3>; |
|---|
| 128 | + bias-pull-up; |
|---|
| 129 | + }; |
|---|
| 130 | + }; |
|---|
| 80 | 131 | |
|---|
| 81 | 132 | pinctrl_macb0_default: macb0_default { |
|---|
| 82 | 133 | pinmux = <PIN_PD9__GTXCK>, |
|---|