Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013 MundoReader S.L. |
| 3 | * Author: Heiko Stuebner <heiko@sntech.de> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | /dts-v1/; |
| 17 | #include "rk3066a.dtsi" |
| 18 | |
| 19 | / { |
| 20 | model = "bq Curie 2"; |
Beniamino Galvani | ac4eba8 | 2014-05-06 19:10:11 +0200 | [diff] [blame] | 21 | compatible = "mundoreader,bq-curie2", "rockchip,rk3066a"; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 22 | |
| 23 | memory { |
| 24 | reg = <0x60000000 0x40000000>; |
| 25 | }; |
| 26 | |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 27 | vcc_sd0: fixed-regulator { |
| 28 | compatible = "regulator-fixed"; |
| 29 | regulator-name = "sdmmc-supply"; |
| 30 | regulator-min-microvolt = <3000000>; |
| 31 | regulator-max-microvolt = <3000000>; |
| 32 | gpio = <&gpio3 7 GPIO_ACTIVE_LOW>; |
| 33 | startup-delay-us = <100000>; |
Heiko Stuebner | a953a6c | 2014-06-26 01:33:58 +0200 | [diff] [blame] | 34 | vin-supply = <&vcc_io>; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 35 | }; |
| 36 | |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 37 | gpio-keys { |
| 38 | compatible = "gpio-keys"; |
| 39 | #address-cells = <1>; |
| 40 | #size-cells = <0>; |
| 41 | autorepeat; |
| 42 | |
| 43 | button@0 { |
| 44 | gpios = <&gpio6 2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */ |
| 45 | linux,code = <116>; |
| 46 | label = "GPIO Key Power"; |
| 47 | linux,input-type = <1>; |
| 48 | gpio-key,wakeup = <1>; |
| 49 | debounce-interval = <100>; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 50 | }; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 51 | button@1 { |
| 52 | gpios = <&gpio4 21 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */ |
| 53 | linux,code = <104>; |
| 54 | label = "GPIO Key Vol-"; |
| 55 | linux,input-type = <1>; |
| 56 | gpio-key,wakeup = <0>; |
| 57 | debounce-interval = <100>; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 58 | }; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 59 | /* VOL+ comes somehow thru the ADC */ |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 60 | }; |
| 61 | }; |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 62 | |
Heiko Stuebner | a953a6c | 2014-06-26 01:33:58 +0200 | [diff] [blame] | 63 | &i2c1 { |
| 64 | status = "okay"; |
| 65 | clock-frequency = <400000>; |
| 66 | |
| 67 | tps: tps@2d { |
| 68 | reg = <0x2d>; |
| 69 | |
| 70 | interrupt-parent = <&gpio6>; |
| 71 | interrupts = <6 IRQ_TYPE_LEVEL_LOW>; |
| 72 | |
| 73 | vcc5-supply = <&vcc_io>; |
| 74 | vcc6-supply = <&vcc_io>; |
| 75 | |
| 76 | regulators { |
| 77 | vcc_rtc: regulator@0 { |
| 78 | regulator-name = "vcc_rtc"; |
| 79 | regulator-always-on; |
| 80 | }; |
| 81 | |
| 82 | vcc_io: regulator@1 { |
| 83 | regulator-name = "vcc_io"; |
| 84 | regulator-always-on; |
| 85 | }; |
| 86 | |
| 87 | vdd_arm: regulator@2 { |
| 88 | regulator-name = "vdd_arm"; |
| 89 | regulator-min-microvolt = <600000>; |
| 90 | regulator-max-microvolt = <1500000>; |
| 91 | regulator-boot-on; |
| 92 | regulator-always-on; |
| 93 | }; |
| 94 | |
| 95 | vcc_ddr: regulator@3 { |
| 96 | regulator-name = "vcc_ddr"; |
| 97 | regulator-min-microvolt = <600000>; |
| 98 | regulator-max-microvolt = <1500000>; |
| 99 | regulator-boot-on; |
| 100 | regulator-always-on; |
| 101 | }; |
| 102 | |
| 103 | vcc18_cif: regulator@5 { |
| 104 | regulator-name = "vcc18_cif"; |
| 105 | regulator-always-on; |
| 106 | }; |
| 107 | |
| 108 | vdd_11: regulator@6 { |
| 109 | regulator-name = "vdd_11"; |
| 110 | regulator-always-on; |
| 111 | }; |
| 112 | |
| 113 | vcc_25: regulator@7 { |
| 114 | regulator-name = "vcc_25"; |
| 115 | regulator-always-on; |
| 116 | }; |
| 117 | |
| 118 | vcc_18: regulator@8 { |
| 119 | regulator-name = "vcc_18"; |
| 120 | regulator-always-on; |
| 121 | }; |
| 122 | |
| 123 | vcc25_hdmi: regulator@9 { |
| 124 | regulator-name = "vcc25_hdmi"; |
| 125 | regulator-always-on; |
| 126 | }; |
| 127 | |
| 128 | vcca_33: regulator@10 { |
| 129 | regulator-name = "vcca_33"; |
| 130 | regulator-always-on; |
| 131 | }; |
| 132 | |
| 133 | vcc_tp: regulator@11 { |
| 134 | regulator-name = "vcc_tp"; |
| 135 | regulator-always-on; |
| 136 | }; |
| 137 | |
| 138 | vcc28_cif: regulator@12 { |
| 139 | regulator-name = "vcc28_cif"; |
| 140 | regulator-always-on; |
| 141 | }; |
| 142 | }; |
| 143 | }; |
| 144 | }; |
| 145 | |
| 146 | /* must be included after &tps gets defined */ |
| 147 | #include "tps65910.dtsi" |
| 148 | |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 149 | &mmc0 { /* sdmmc */ |
| 150 | num-slots = <1>; |
| 151 | status = "okay"; |
Heiko Stuebner | 1302d32 | 2014-08-11 19:51:44 +0200 | [diff] [blame] | 152 | pinctrl-names = "default"; |
| 153 | pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>; |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 154 | vmmc-supply = <&vcc_sd0>; |
Jaehoon Chung | 356649a | 2014-08-07 16:38:02 +0900 | [diff] [blame] | 155 | bus-width = <4>; |
| 156 | disable-wp; |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 157 | }; |
| 158 | |
| 159 | &mmc1 { /* wifi */ |
| 160 | num-slots = <1>; |
| 161 | status = "okay"; |
| 162 | non-removable; |
| 163 | |
| 164 | pinctrl-names = "default"; |
| 165 | pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>; |
| 166 | |
Jaehoon Chung | 356649a | 2014-08-07 16:38:02 +0900 | [diff] [blame] | 167 | bus-width = <4>; |
| 168 | disable-wp; |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 169 | }; |
| 170 | |
| 171 | &uart0 { |
| 172 | status = "okay"; |
| 173 | }; |
| 174 | |
| 175 | &uart1 { |
| 176 | status = "okay"; |
| 177 | }; |
| 178 | |
| 179 | &uart2 { |
| 180 | status = "okay"; |
| 181 | }; |
| 182 | |
| 183 | &uart3 { |
| 184 | status = "okay"; |
| 185 | }; |
Heiko Stuebner | eb2b9d4 | 2014-07-30 10:16:17 +0200 | [diff] [blame] | 186 | |
| 187 | &wdt { |
| 188 | status = "okay"; |
| 189 | }; |