Klaus Goger | fce152a6 | 2017-12-15 12:44:27 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2013 MundoReader S.L. |
| 4 | * Author: Heiko Stuebner <heiko@sntech.de> |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
Heiko Stuebner | 8b30c89 | 2016-03-31 20:24:29 +0200 | [diff] [blame] | 8 | #include <dt-bindings/input/input.h> |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 9 | #include "rk3066a.dtsi" |
| 10 | |
| 11 | / { |
| 12 | model = "bq Curie 2"; |
Beniamino Galvani | ac4eba8 | 2014-05-06 19:10:11 +0200 | [diff] [blame] | 13 | compatible = "mundoreader,bq-curie2", "rockchip,rk3066a"; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 14 | |
Johan Jonker | d67113c | 2021-05-20 11:18:22 +0200 | [diff] [blame] | 15 | aliases { |
| 16 | mmc0 = &mmc0; |
| 17 | mmc1 = &mmc1; |
| 18 | }; |
| 19 | |
Javier Martinez Canillas | adc9e3a | 2016-09-09 10:01:09 -0400 | [diff] [blame] | 20 | memory@60000000 { |
Heiko Stuebner | 6158e6d | 2015-07-15 20:57:21 +0200 | [diff] [blame] | 21 | device_type = "memory"; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 22 | reg = <0x60000000 0x40000000>; |
| 23 | }; |
| 24 | |
Andy Yan | ac79e0e | 2016-01-15 21:26:18 +0800 | [diff] [blame] | 25 | vdd_log: vdd-log { |
| 26 | compatible = "pwm-regulator"; |
| 27 | pwms = <&pwm3 0 1000>; |
| 28 | regulator-name = "vdd_log"; |
| 29 | regulator-min-microvolt = <1200000>; |
| 30 | regulator-max-microvolt = <1200000>; |
| 31 | regulator-always-on; |
| 32 | voltage-table = <1000000 100>, |
| 33 | <1200000 42>; |
| 34 | status = "okay"; |
| 35 | }; |
| 36 | |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 37 | vcc_sd0: fixed-regulator { |
| 38 | compatible = "regulator-fixed"; |
| 39 | regulator-name = "sdmmc-supply"; |
| 40 | regulator-min-microvolt = <3000000>; |
| 41 | regulator-max-microvolt = <3000000>; |
Andy Yan | e9e79d5 | 2016-10-22 20:54:55 +0800 | [diff] [blame] | 42 | gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 43 | startup-delay-us = <100000>; |
Heiko Stuebner | a953a6c | 2014-06-26 01:33:58 +0200 | [diff] [blame] | 44 | vin-supply = <&vcc_io>; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 45 | }; |
| 46 | |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 47 | gpio-keys { |
| 48 | compatible = "gpio-keys"; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 49 | autorepeat; |
| 50 | |
Heiko Stuebner | 8b30c89 | 2016-03-31 20:24:29 +0200 | [diff] [blame] | 51 | power { |
Andy Yan | e9e79d5 | 2016-10-22 20:54:55 +0800 | [diff] [blame] | 52 | gpios = <&gpio6 RK_PA2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */ |
Heiko Stuebner | 8b30c89 | 2016-03-31 20:24:29 +0200 | [diff] [blame] | 53 | linux,code = <KEY_POWER>; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 54 | label = "GPIO Key Power"; |
| 55 | linux,input-type = <1>; |
Sudeep Holla | 4f66f24 | 2016-02-08 21:55:12 +0000 | [diff] [blame] | 56 | wakeup-source; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 57 | debounce-interval = <100>; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 58 | }; |
Heiko Stuebner | 8b30c89 | 2016-03-31 20:24:29 +0200 | [diff] [blame] | 59 | volume-down { |
Andy Yan | e9e79d5 | 2016-10-22 20:54:55 +0800 | [diff] [blame] | 60 | gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */ |
Heiko Stuebner | 8b30c89 | 2016-03-31 20:24:29 +0200 | [diff] [blame] | 61 | linux,code = <KEY_VOLUMEDOWN>; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 62 | label = "GPIO Key Vol-"; |
| 63 | linux,input-type = <1>; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 64 | debounce-interval = <100>; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 65 | }; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame] | 66 | /* VOL+ comes somehow thru the ADC */ |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 67 | }; |
| 68 | }; |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 69 | |
Heiko Stuebner | 3adb132 | 2014-09-13 00:34:30 +0200 | [diff] [blame] | 70 | &cpu0 { |
Johan Jonker | 20e464c | 2020-08-13 19:24:51 +0200 | [diff] [blame] | 71 | cpu-supply = <&vdd_arm>; |
| 72 | }; |
| 73 | |
| 74 | &cpu1 { |
| 75 | cpu-supply = <&vdd_arm>; |
Heiko Stuebner | 3adb132 | 2014-09-13 00:34:30 +0200 | [diff] [blame] | 76 | }; |
| 77 | |
Heiko Stuebner | a953a6c | 2014-06-26 01:33:58 +0200 | [diff] [blame] | 78 | &i2c1 { |
| 79 | status = "okay"; |
| 80 | clock-frequency = <400000>; |
| 81 | |
| 82 | tps: tps@2d { |
| 83 | reg = <0x2d>; |
| 84 | |
| 85 | interrupt-parent = <&gpio6>; |
Andy Yan | e9e79d5 | 2016-10-22 20:54:55 +0800 | [diff] [blame] | 86 | interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>; |
Heiko Stuebner | a953a6c | 2014-06-26 01:33:58 +0200 | [diff] [blame] | 87 | |
| 88 | vcc5-supply = <&vcc_io>; |
| 89 | vcc6-supply = <&vcc_io>; |
| 90 | |
| 91 | regulators { |
| 92 | vcc_rtc: regulator@0 { |
| 93 | regulator-name = "vcc_rtc"; |
| 94 | regulator-always-on; |
| 95 | }; |
| 96 | |
| 97 | vcc_io: regulator@1 { |
| 98 | regulator-name = "vcc_io"; |
| 99 | regulator-always-on; |
| 100 | }; |
| 101 | |
| 102 | vdd_arm: regulator@2 { |
| 103 | regulator-name = "vdd_arm"; |
| 104 | regulator-min-microvolt = <600000>; |
| 105 | regulator-max-microvolt = <1500000>; |
| 106 | regulator-boot-on; |
| 107 | regulator-always-on; |
| 108 | }; |
| 109 | |
| 110 | vcc_ddr: regulator@3 { |
| 111 | regulator-name = "vcc_ddr"; |
| 112 | regulator-min-microvolt = <600000>; |
| 113 | regulator-max-microvolt = <1500000>; |
| 114 | regulator-boot-on; |
| 115 | regulator-always-on; |
| 116 | }; |
| 117 | |
| 118 | vcc18_cif: regulator@5 { |
| 119 | regulator-name = "vcc18_cif"; |
| 120 | regulator-always-on; |
| 121 | }; |
| 122 | |
| 123 | vdd_11: regulator@6 { |
| 124 | regulator-name = "vdd_11"; |
| 125 | regulator-always-on; |
| 126 | }; |
| 127 | |
| 128 | vcc_25: regulator@7 { |
| 129 | regulator-name = "vcc_25"; |
| 130 | regulator-always-on; |
| 131 | }; |
| 132 | |
| 133 | vcc_18: regulator@8 { |
| 134 | regulator-name = "vcc_18"; |
| 135 | regulator-always-on; |
| 136 | }; |
| 137 | |
| 138 | vcc25_hdmi: regulator@9 { |
| 139 | regulator-name = "vcc25_hdmi"; |
| 140 | regulator-always-on; |
| 141 | }; |
| 142 | |
| 143 | vcca_33: regulator@10 { |
| 144 | regulator-name = "vcca_33"; |
| 145 | regulator-always-on; |
| 146 | }; |
| 147 | |
| 148 | vcc_tp: regulator@11 { |
| 149 | regulator-name = "vcc_tp"; |
| 150 | regulator-always-on; |
| 151 | }; |
| 152 | |
| 153 | vcc28_cif: regulator@12 { |
| 154 | regulator-name = "vcc28_cif"; |
| 155 | regulator-always-on; |
| 156 | }; |
| 157 | }; |
| 158 | }; |
| 159 | }; |
| 160 | |
| 161 | /* must be included after &tps gets defined */ |
| 162 | #include "tps65910.dtsi" |
| 163 | |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 164 | &mmc0 { /* sdmmc */ |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 165 | status = "okay"; |
Heiko Stuebner | 1302d32 | 2014-08-11 19:51:44 +0200 | [diff] [blame] | 166 | pinctrl-names = "default"; |
| 167 | pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>; |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 168 | vmmc-supply = <&vcc_sd0>; |
Jaehoon Chung | 356649a | 2014-08-07 16:38:02 +0900 | [diff] [blame] | 169 | bus-width = <4>; |
Shawn Lin | 1d727ec | 2015-09-12 18:01:39 +0800 | [diff] [blame] | 170 | cap-mmc-highspeed; |
| 171 | cap-sd-highspeed; |
Jaehoon Chung | 356649a | 2014-08-07 16:38:02 +0900 | [diff] [blame] | 172 | disable-wp; |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 173 | }; |
| 174 | |
| 175 | &mmc1 { /* wifi */ |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 176 | status = "okay"; |
| 177 | non-removable; |
| 178 | |
| 179 | pinctrl-names = "default"; |
| 180 | pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>; |
| 181 | |
Jaehoon Chung | 356649a | 2014-08-07 16:38:02 +0900 | [diff] [blame] | 182 | bus-width = <4>; |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 183 | }; |
| 184 | |
Andy Yan | ac79e0e | 2016-01-15 21:26:18 +0800 | [diff] [blame] | 185 | &pwm3 { |
| 186 | status = "okay"; |
| 187 | }; |
| 188 | |
Heiko Stuebner | fcbbf96 | 2014-07-26 23:08:06 +0200 | [diff] [blame] | 189 | &uart0 { |
| 190 | status = "okay"; |
| 191 | }; |
| 192 | |
| 193 | &uart1 { |
| 194 | status = "okay"; |
| 195 | }; |
| 196 | |
| 197 | &uart2 { |
| 198 | status = "okay"; |
| 199 | }; |
| 200 | |
| 201 | &uart3 { |
| 202 | status = "okay"; |
| 203 | }; |
Heiko Stuebner | eb2b9d4 | 2014-07-30 10:16:17 +0200 | [diff] [blame] | 204 | |
| 205 | &wdt { |
| 206 | status = "okay"; |
| 207 | }; |