Antoine Tenart | 55d3de5 | 2014-03-18 15:32:47 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 Antoine Ténart <antoine.tenart@free-electrons.com> |
| 3 | * |
Antoine Tenart | 9098a16 | 2015-04-27 21:39:46 +0200 | [diff] [blame] | 4 | * This file is dual-licensed: you can use it either under the terms |
| 5 | * of the GPL or the X11 license, at your option. Note that this dual |
| 6 | * licensing only applies to this file, and not this project as a |
| 7 | * whole. |
| 8 | * |
| 9 | * a) This file is licensed under the terms of the GNU General Public |
| 10 | * License version 2. This program is licensed "as is" without any |
| 11 | * warranty of any kind, whether express or implied. |
| 12 | * |
| 13 | * Or, alternatively, |
| 14 | * |
| 15 | * b) Permission is hereby granted, free of charge, to any person |
| 16 | * obtaining a copy of this software and associated documentation |
| 17 | * files (the "Software"), to deal in the Software without |
| 18 | * restriction, including without limitation the rights to use, |
| 19 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 20 | * sell copies of the Software, and to permit persons to whom the |
| 21 | * Software is furnished to do so, subject to the following |
| 22 | * conditions: |
| 23 | * |
| 24 | * The above copyright notice and this permission notice shall be |
| 25 | * included in all copies or substantial portions of the Software. |
| 26 | * |
| 27 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 28 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 29 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 30 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 31 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 32 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 33 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 34 | * OTHER DEALINGS IN THE SOFTWARE. |
Antoine Tenart | 55d3de5 | 2014-03-18 15:32:47 +0100 | [diff] [blame] | 35 | */ |
| 36 | |
| 37 | /dts-v1/; |
Antoine Tenart | fe35493 | 2014-11-17 14:35:45 +0100 | [diff] [blame] | 38 | |
| 39 | #include <dt-bindings/gpio/gpio.h> |
Antoine Tenart | 55d3de5 | 2014-03-18 15:32:47 +0100 | [diff] [blame] | 40 | #include "berlin2q.dtsi" |
| 41 | |
| 42 | / { |
| 43 | model = "Marvell BG2-Q DMP"; |
| 44 | compatible = "marvell,berlin2q-dmp", "marvell,berlin2q", "marvell,berlin"; |
| 45 | |
| 46 | memory { |
| 47 | device_type = "memory"; |
| 48 | reg = <0x00000000 0x80000000>; |
| 49 | }; |
| 50 | |
| 51 | choosen { |
| 52 | bootargs = "console=ttyS0,115200 earlyprintk"; |
| 53 | }; |
Antoine Tenart | fe35493 | 2014-11-17 14:35:45 +0100 | [diff] [blame] | 54 | |
| 55 | regulators { |
| 56 | compatible = "simple-bus"; |
| 57 | #address-cells = <1>; |
| 58 | #size-cells = <0>; |
| 59 | |
| 60 | reg_usb0_vbus: regulator@0 { |
| 61 | compatible = "regulator-fixed"; |
| 62 | regulator-name = "usb0_vbus"; |
| 63 | regulator-min-microvolt = <5000000>; |
| 64 | regulator-max-microvolt = <5000000>; |
| 65 | gpio = <&portb 8 GPIO_ACTIVE_HIGH>; |
| 66 | enable-active-high; |
| 67 | }; |
| 68 | |
| 69 | reg_usb1_vbus: regulator@1 { |
| 70 | compatible = "regulator-fixed"; |
| 71 | regulator-name = "usb1_vbus"; |
| 72 | regulator-min-microvolt = <5000000>; |
| 73 | regulator-max-microvolt = <5000000>; |
| 74 | gpio = <&portb 10 GPIO_ACTIVE_HIGH>; |
| 75 | enable-active-high; |
| 76 | }; |
| 77 | |
| 78 | reg_usb2_vbus: regulator@2 { |
| 79 | compatible = "regulator-fixed"; |
| 80 | regulator-name = "usb2_vbus"; |
| 81 | regulator-min-microvolt = <5000000>; |
| 82 | regulator-max-microvolt = <5000000>; |
| 83 | gpio = <&portb 12 GPIO_ACTIVE_HIGH>; |
| 84 | enable-active-high; |
| 85 | }; |
| 86 | }; |
Antoine Tenart | 55d3de5 | 2014-03-18 15:32:47 +0100 | [diff] [blame] | 87 | }; |
| 88 | |
Antoine Tenart | 3047086 | 2014-05-19 22:04:33 +0200 | [diff] [blame] | 89 | &sdhci1 { |
| 90 | broken-cd; |
| 91 | sdhci,wp-inverted; |
| 92 | status = "okay"; |
| 93 | }; |
| 94 | |
| 95 | &sdhci2 { |
Jisheng Zhang | 5adba7c | 2014-12-31 16:57:51 +0800 | [diff] [blame] | 96 | broken-cd; |
| 97 | bus-width = <8>; |
Antoine Tenart | 3047086 | 2014-05-19 22:04:33 +0200 | [diff] [blame] | 98 | non-removable; |
| 99 | status = "okay"; |
| 100 | }; |
| 101 | |
Antoine Ténart | fbcdc07 | 2014-06-03 09:33:10 +0200 | [diff] [blame] | 102 | &i2c0 { |
| 103 | status = "okay"; |
| 104 | }; |
| 105 | |
| 106 | &i2c2 { |
| 107 | status = "okay"; |
| 108 | }; |
| 109 | |
Antoine Tenart | 55d3de5 | 2014-03-18 15:32:47 +0100 | [diff] [blame] | 110 | &uart0 { |
| 111 | status = "okay"; |
| 112 | }; |
Antoine Ténart | 7521519 | 2014-09-30 16:28:16 +0200 | [diff] [blame] | 113 | |
Antoine Tenart | fe35493 | 2014-11-17 14:35:45 +0100 | [diff] [blame] | 114 | &usb_phy0 { |
| 115 | status = "okay"; |
| 116 | }; |
| 117 | |
| 118 | &usb_phy2 { |
| 119 | status = "okay"; |
| 120 | }; |
| 121 | |
| 122 | &usb0 { |
| 123 | vbus-supply = <®_usb0_vbus>; |
| 124 | status = "okay"; |
| 125 | }; |
| 126 | |
| 127 | &usb2 { |
| 128 | vbus-supply = <®_usb2_vbus>; |
| 129 | status = "okay"; |
| 130 | }; |
| 131 | |
Antoine Ténart | 7521519 | 2014-09-30 16:28:16 +0200 | [diff] [blame] | 132 | ð0 { |
| 133 | status = "okay"; |
| 134 | }; |
Antoine Ténart | e00ec0b | 2014-07-30 20:14:01 +0200 | [diff] [blame] | 135 | |
| 136 | &sata0 { |
| 137 | status = "okay"; |
| 138 | }; |
| 139 | |
| 140 | &sata_phy { |
| 141 | status = "okay"; |
| 142 | }; |