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