| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2013 MundoReader S.L. |
| 4 |
* Author: Heiko Stuebner <[email protected]> |
| 5 |
*/ |
| 6 |
|
| 7 |
/dts-v1/; |
| 8 |
#include <dt-bindings/input/input.h> |
| 9 |
#include "rk3066a.dtsi" |
| 10 |
|
| 11 |
/ { |
| 12 |
model = "bq Curie 2"; |
| 13 |
compatible = "mundoreader,bq-curie2", "rockchip,rk3066a"; |
| 14 |
|
| 15 |
aliases { |
| 16 |
mmc0 = &mmc0; |
| 17 |
mmc1 = &mmc1; |
| 18 |
}; |
| 19 |
|
| 20 |
memory@60000000 { |
| 21 |
device_type = "memory"; |
| 22 |
reg = <0x60000000 0x40000000>; |
| 23 |
}; |
| 24 |
|
| 25 |
vdd_log: regulator-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 |
|
| 37 |
vcc_sd0: regulator-fixed { |
| 38 |
compatible = "regulator-fixed"; |
| 39 |
regulator-name = "sdmmc-supply"; |
| 40 |
regulator-min-microvolt = <3000000>; |
| 41 |
regulator-max-microvolt = <3000000>; |
| 42 |
gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>; |
| 43 |
startup-delay-us = <100000>; |
| 44 |
vin-supply = <&vcc_io>; |
| 45 |
}; |
| 46 |
|
| 47 |
gpio-keys { |
| 48 |
compatible = "gpio-keys"; |
| 49 |
autorepeat; |
| 50 |
|
| 51 |
key-power { |
| 52 |
gpios = <&gpio6 RK_PA2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */ |
| 53 |
linux,code = <KEY_POWER>; |
| 54 |
label = "GPIO Key Power"; |
| 55 |
linux,input-type = <1>; |
| 56 |
wakeup-source; |
| 57 |
debounce-interval = <100>; |
| 58 |
}; |
| 59 |
key-volume-down { |
| 60 |
gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */ |
| 61 |
linux,code = <KEY_VOLUMEDOWN>; |
| 62 |
label = "GPIO Key Vol-"; |
| 63 |
linux,input-type = <1>; |
| 64 |
debounce-interval = <100>; |
| 65 |
}; |
| 66 |
/* VOL+ comes somehow thru the ADC */ |
| 67 |
}; |
| 68 |
}; |
| 69 |
|
| 70 |
&cpu0 { |
| 71 |
cpu-supply = <&vdd_arm>; |
| 72 |
}; |
| 73 |
|
| 74 |
&cpu1 { |
| 75 |
cpu-supply = <&vdd_arm>; |
| 76 |
}; |
| 77 |
|
| 78 |
&i2c1 { |
| 79 |
status = "okay"; |
| 80 |
clock-frequency = <400000>; |
| 81 |
|
| 82 |
tps: tps@2d { |
| 83 |
compatible = "ti,tps65910"; |
| 84 |
reg = <0x2d>; |
| 85 |
|
| 86 |
gpio-controller; |
| 87 |
#gpio-cells = <2>; |
| 88 |
|
| 89 |
interrupt-parent = <&gpio6>; |
| 90 |
interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>; |
| 91 |
|
| 92 |
interrupt-controller; |
| 93 |
#interrupt-cells = <2>; |
| 94 |
|
| 95 |
vcc5-supply = <&vcc_io>; |
| 96 |
vcc6-supply = <&vcc_io>; |
| 97 |
|
| 98 |
regulators { |
| 99 |
vcc_rtc: vrtc { |
| 100 |
regulator-name = "vcc_rtc"; |
| 101 |
regulator-always-on; |
| 102 |
}; |
| 103 |
|
| 104 |
vcc_io: vio { |
| 105 |
regulator-name = "vcc_io"; |
| 106 |
regulator-always-on; |
| 107 |
}; |
| 108 |
|
| 109 |
vdd_arm: vdd1 { |
| 110 |
regulator-name = "vdd_arm"; |
| 111 |
regulator-min-microvolt = <600000>; |
| 112 |
regulator-max-microvolt = <1500000>; |
| 113 |
regulator-boot-on; |
| 114 |
regulator-always-on; |
| 115 |
}; |
| 116 |
|
| 117 |
vcc_ddr: vdd2 { |
| 118 |
regulator-name = "vcc_ddr"; |
| 119 |
regulator-min-microvolt = <600000>; |
| 120 |
regulator-max-microvolt = <1500000>; |
| 121 |
regulator-boot-on; |
| 122 |
regulator-always-on; |
| 123 |
}; |
| 124 |
|
| 125 |
vcc18_cif: vdig1 { |
| 126 |
regulator-name = "vcc18_cif"; |
| 127 |
regulator-always-on; |
| 128 |
}; |
| 129 |
|
| 130 |
vdd_11: vdig2 { |
| 131 |
regulator-name = "vdd_11"; |
| 132 |
regulator-always-on; |
| 133 |
}; |
| 134 |
|
| 135 |
vcc_25: vpll { |
| 136 |
regulator-name = "vcc_25"; |
| 137 |
regulator-always-on; |
| 138 |
}; |
| 139 |
|
| 140 |
vcc_18: vdac { |
| 141 |
regulator-name = "vcc_18"; |
| 142 |
regulator-always-on; |
| 143 |
}; |
| 144 |
|
| 145 |
vcc25_hdmi: vaux1 { |
| 146 |
regulator-name = "vcc25_hdmi"; |
| 147 |
regulator-always-on; |
| 148 |
}; |
| 149 |
|
| 150 |
vcca_33: vaux2 { |
| 151 |
regulator-name = "vcca_33"; |
| 152 |
regulator-always-on; |
| 153 |
}; |
| 154 |
|
| 155 |
vcc_tp: vaux33 { |
| 156 |
regulator-name = "vcc_tp"; |
| 157 |
regulator-always-on; |
| 158 |
}; |
| 159 |
|
| 160 |
vcc28_cif: vmmc { |
| 161 |
regulator-name = "vcc28_cif"; |
| 162 |
regulator-always-on; |
| 163 |
}; |
| 164 |
}; |
| 165 |
}; |
| 166 |
}; |
| 167 |
|
| 168 |
&mmc0 { /* sdmmc */ |
| 169 |
status = "okay"; |
| 170 |
pinctrl-names = "default"; |
| 171 |
pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>; |
| 172 |
vmmc-supply = <&vcc_sd0>; |
| 173 |
bus-width = <4>; |
| 174 |
cap-mmc-highspeed; |
| 175 |
cap-sd-highspeed; |
| 176 |
disable-wp; |
| 177 |
}; |
| 178 |
|
| 179 |
&mmc1 { /* wifi */ |
| 180 |
status = "okay"; |
| 181 |
non-removable; |
| 182 |
|
| 183 |
pinctrl-names = "default"; |
| 184 |
pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>; |
| 185 |
|
| 186 |
bus-width = <4>; |
| 187 |
}; |
| 188 |
|
| 189 |
&pwm3 { |
| 190 |
status = "okay"; |
| 191 |
}; |
| 192 |
|
| 193 |
&uart0 { |
| 194 |
status = "okay"; |
| 195 |
}; |
| 196 |
|
| 197 |
&uart1 { |
| 198 |
status = "okay"; |
| 199 |
}; |
| 200 |
|
| 201 |
&uart2 { |
| 202 |
status = "okay"; |
| 203 |
}; |
| 204 |
|
| 205 |
&uart3 { |
| 206 |
status = "okay"; |
| 207 |
}; |
| 208 |
|
| 209 |
&wdt { |
| 210 |
status = "okay"; |
| 211 |
}; |