Chris Packham | 5cb1309 | 2017-01-30 12:20:35 +1300 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree file for DB-DXBC2 board |
| 3 | * |
| 4 | * Copyright (C) 2016 Allied Telesis Labs |
| 5 | * |
| 6 | * Based on armada-xp-db.dts |
| 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 | * |
| 46 | * Note: this Device Tree assumes that the bootloader has remapped the |
| 47 | * internal registers to 0xf1000000 (instead of the default |
| 48 | * 0xd0000000). The 0xf1000000 is the default used by the recent, |
| 49 | * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier |
| 50 | * boards were delivered with an older version of the bootloader that |
| 51 | * left internal registers mapped at 0xd0000000. If you are in this |
| 52 | * situation, you should either update your bootloader (preferred |
| 53 | * solution) or the below Device Tree should be adjusted. |
| 54 | */ |
| 55 | |
| 56 | /dts-v1/; |
| 57 | #include "armada-xp-98dx4251.dtsi" |
| 58 | |
| 59 | / { |
| 60 | model = "Marvell Bobcat2 Evaluation Board"; |
| 61 | compatible = "marvell,db-dxbc2", "marvell,armadaxp-98dx4251", "marvell,armadaxp", "marvell,armada-370-xp"; |
| 62 | |
| 63 | chosen { |
| 64 | bootargs = "console=ttyS0,115200 earlyprintk"; |
| 65 | }; |
| 66 | |
| 67 | memory { |
| 68 | device_type = "memory"; |
| 69 | reg = <0 0x00000000 0 0x20000000>; /* 512 MB */ |
| 70 | }; |
| 71 | |
| 72 | }; |
| 73 | |
| 74 | &devbus_bootcs { |
| 75 | status = "okay"; |
| 76 | |
| 77 | /* Device Bus parameters are required */ |
| 78 | |
| 79 | /* Read parameters */ |
| 80 | devbus,bus-width = <16>; |
| 81 | devbus,turn-off-ps = <60000>; |
| 82 | devbus,badr-skew-ps = <0>; |
| 83 | devbus,acc-first-ps = <124000>; |
| 84 | devbus,acc-next-ps = <248000>; |
| 85 | devbus,rd-setup-ps = <0>; |
| 86 | devbus,rd-hold-ps = <0>; |
| 87 | |
| 88 | /* Write parameters */ |
| 89 | devbus,sync-enable = <0>; |
| 90 | devbus,wr-high-ps = <60000>; |
| 91 | devbus,wr-low-ps = <60000>; |
| 92 | devbus,ale-wr-ps = <60000>; |
| 93 | }; |
| 94 | |
| 95 | &i2c0 { |
| 96 | clock-frequency = <100000>; |
| 97 | status = "okay"; |
| 98 | }; |
| 99 | |
| 100 | &uart0 { |
| 101 | status = "okay"; |
| 102 | }; |
| 103 | |
| 104 | &uart1 { |
| 105 | status = "okay"; |
| 106 | }; |
| 107 | |
| 108 | &nand { |
| 109 | status = "okay"; |
| 110 | num-cs = <1>; |
| 111 | marvell,nand-keep-config; |
| 112 | marvell,nand-enable-arbiter; |
| 113 | nand-on-flash-bbt; |
| 114 | nand-ecc-strength = <4>; |
| 115 | nand-ecc-step-size = <512>; |
| 116 | }; |
| 117 | |
| 118 | &sdio { |
| 119 | pinctrl-0 = <&sdio_pins>; |
| 120 | pinctrl-names = "default"; |
| 121 | status = "okay"; |
| 122 | /* No CD or WP GPIOs */ |
| 123 | broken-cd; |
| 124 | }; |
| 125 | |
| 126 | &spi0 { |
| 127 | status = "okay"; |
| 128 | |
| 129 | spi-flash@0 { |
| 130 | #address-cells = <1>; |
| 131 | #size-cells = <1>; |
| 132 | compatible = "m25p64"; |
| 133 | reg = <0>; /* Chip select 0 */ |
| 134 | spi-max-frequency = <20000000>; |
| 135 | m25p,fast-read; |
| 136 | |
| 137 | partition@u-boot { |
| 138 | reg = <0x00000000 0x00100000>; |
| 139 | label = "u-boot"; |
| 140 | }; |
| 141 | partition@u-boot-env { |
| 142 | reg = <0x00100000 0x00040000>; |
| 143 | label = "u-boot-env"; |
| 144 | }; |
| 145 | partition@unused { |
| 146 | reg = <0x00140000 0x00ec0000>; |
| 147 | label = "unused"; |
| 148 | }; |
| 149 | |
| 150 | }; |
| 151 | }; |