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