Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) 2013 MundoReader S.L.
0004  * Author: Heiko Stuebner <heiko@sntech.de>
0005  */
0006 
0007 /dts-v1/;
0008 #include <dt-bindings/input/input.h>
0009 #include "rk3066a.dtsi"
0010 
0011 / {
0012         model = "bq Curie 2";
0013         compatible = "mundoreader,bq-curie2", "rockchip,rk3066a";
0014 
0015         aliases {
0016                 mmc0 = &mmc0;
0017                 mmc1 = &mmc1;
0018         };
0019 
0020         memory@60000000 {
0021                 device_type = "memory";
0022                 reg = <0x60000000 0x40000000>;
0023         };
0024 
0025         vdd_log: vdd-log {
0026                 compatible = "pwm-regulator";
0027                 pwms = <&pwm3 0 1000>;
0028                 regulator-name = "vdd_log";
0029                 regulator-min-microvolt = <1200000>;
0030                 regulator-max-microvolt = <1200000>;
0031                 regulator-always-on;
0032                 voltage-table = <1000000 100>,
0033                                 <1200000 42>;
0034                 status = "okay";
0035         };
0036 
0037         vcc_sd0: fixed-regulator {
0038                 compatible = "regulator-fixed";
0039                 regulator-name = "sdmmc-supply";
0040                 regulator-min-microvolt = <3000000>;
0041                 regulator-max-microvolt = <3000000>;
0042                 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
0043                 startup-delay-us = <100000>;
0044                 vin-supply = <&vcc_io>;
0045         };
0046 
0047         gpio-keys {
0048                 compatible = "gpio-keys";
0049                 autorepeat;
0050 
0051                 key-power {
0052                         gpios = <&gpio6 RK_PA2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */
0053                         linux,code = <KEY_POWER>;
0054                         label = "GPIO Key Power";
0055                         linux,input-type = <1>;
0056                         wakeup-source;
0057                         debounce-interval = <100>;
0058                 };
0059                 key-volume-down {
0060                         gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */
0061                         linux,code = <KEY_VOLUMEDOWN>;
0062                         label = "GPIO Key Vol-";
0063                         linux,input-type = <1>;
0064                         debounce-interval = <100>;
0065                 };
0066                 /* VOL+ comes somehow thru the ADC */
0067         };
0068 };
0069 
0070 &cpu0 {
0071         cpu-supply = <&vdd_arm>;
0072 };
0073 
0074 &cpu1 {
0075         cpu-supply = <&vdd_arm>;
0076 };
0077 
0078 &i2c1 {
0079         status = "okay";
0080         clock-frequency = <400000>;
0081 
0082         tps: tps@2d {
0083                 reg = <0x2d>;
0084 
0085                 interrupt-parent = <&gpio6>;
0086                 interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
0087 
0088                 vcc5-supply = <&vcc_io>;
0089                 vcc6-supply = <&vcc_io>;
0090 
0091                 regulators {
0092                         vcc_rtc: regulator@0 {
0093                                 regulator-name = "vcc_rtc";
0094                                 regulator-always-on;
0095                         };
0096 
0097                         vcc_io: regulator@1 {
0098                                 regulator-name = "vcc_io";
0099                                 regulator-always-on;
0100                         };
0101 
0102                         vdd_arm: regulator@2 {
0103                                 regulator-name = "vdd_arm";
0104                                 regulator-min-microvolt = <600000>;
0105                                 regulator-max-microvolt = <1500000>;
0106                                 regulator-boot-on;
0107                                 regulator-always-on;
0108                         };
0109 
0110                         vcc_ddr: regulator@3 {
0111                                 regulator-name = "vcc_ddr";
0112                                 regulator-min-microvolt = <600000>;
0113                                 regulator-max-microvolt = <1500000>;
0114                                 regulator-boot-on;
0115                                 regulator-always-on;
0116                         };
0117 
0118                         vcc18_cif: regulator@5 {
0119                                 regulator-name = "vcc18_cif";
0120                                 regulator-always-on;
0121                         };
0122 
0123                         vdd_11: regulator@6 {
0124                                 regulator-name = "vdd_11";
0125                                 regulator-always-on;
0126                         };
0127 
0128                         vcc_25: regulator@7 {
0129                                 regulator-name = "vcc_25";
0130                                 regulator-always-on;
0131                         };
0132 
0133                         vcc_18: regulator@8 {
0134                                 regulator-name = "vcc_18";
0135                                 regulator-always-on;
0136                         };
0137 
0138                         vcc25_hdmi: regulator@9 {
0139                                 regulator-name = "vcc25_hdmi";
0140                                 regulator-always-on;
0141                         };
0142 
0143                         vcca_33: regulator@10 {
0144                                 regulator-name = "vcca_33";
0145                                 regulator-always-on;
0146                         };
0147 
0148                         vcc_tp: regulator@11 {
0149                                 regulator-name = "vcc_tp";
0150                                 regulator-always-on;
0151                         };
0152 
0153                         vcc28_cif: regulator@12 {
0154                                 regulator-name = "vcc28_cif";
0155                                 regulator-always-on;
0156                         };
0157                 };
0158         };
0159 };
0160 
0161 /* must be included after &tps gets defined */
0162 #include "tps65910.dtsi"
0163 
0164 &mmc0 { /* sdmmc */
0165         status = "okay";
0166         pinctrl-names = "default";
0167         pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
0168         vmmc-supply = <&vcc_sd0>;
0169         bus-width = <4>;
0170         cap-mmc-highspeed;
0171         cap-sd-highspeed;
0172         disable-wp;
0173 };
0174 
0175 &mmc1 { /* wifi */
0176         status = "okay";
0177         non-removable;
0178 
0179         pinctrl-names = "default";
0180         pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
0181 
0182         bus-width = <4>;
0183 };
0184 
0185 &pwm3 {
0186         status = "okay";
0187 };
0188 
0189 &uart0 {
0190         status = "okay";
0191 };
0192 
0193 &uart1 {
0194         status = "okay";
0195 };
0196 
0197 &uart2 {
0198         status = "okay";
0199 };
0200 
0201 &uart3 {
0202         status = "okay";
0203 };
0204 
0205 &wdt {
0206         status = "okay";
0207 };