430 lines
10 KiB
Plaintext
430 lines
10 KiB
Plaintext
|
/*
|
||
|
* Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
|
||
|
*
|
||
|
* This file is dual-licensed: you can use it either under the terms
|
||
|
* of the GPL or the X11 license, at your option. Note that this dual
|
||
|
* licensing only applies to this file, and not this project as a
|
||
|
* whole.
|
||
|
*
|
||
|
* a) This file is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU General Public License as
|
||
|
* published by the Free Software Foundation; either version 2 of the
|
||
|
* License, or (at your option) any later version.
|
||
|
*
|
||
|
* This file is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* Or, alternatively,
|
||
|
*
|
||
|
* b) Permission is hereby granted, free of charge, to any person
|
||
|
* obtaining a copy of this software and associated documentation
|
||
|
* files (the "Software"), to deal in the Software without
|
||
|
* restriction, including without limitation the rights to use,
|
||
|
* copy, modify, merge, publish, distribute, sublicense, and/or
|
||
|
* sell copies of the Software, and to permit persons to whom the
|
||
|
* Software is furnished to do so, subject to the following
|
||
|
* conditions:
|
||
|
*
|
||
|
* The above copyright notice and this permission notice shall be
|
||
|
* included in all copies or substantial portions of the Software.
|
||
|
*
|
||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||
|
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||
|
* OTHER DEALINGS IN THE SOFTWARE.
|
||
|
*/
|
||
|
|
||
|
/dts-v1/;
|
||
|
|
||
|
#include "rk322x.dtsi"
|
||
|
#include "rk3229-cpu-opp.dtsi"
|
||
|
#include "rk322x-android.dtsi"
|
||
|
|
||
|
/ {
|
||
|
model = "RK3229 GOOGLE VOICE ASSISTANT SDK Board";
|
||
|
compatible = "rockchip,rk3229-gva-sdk", "rockchip,rk3229";
|
||
|
|
||
|
sdio_pwrseq: sdio-pwrseq {
|
||
|
compatible = "mmc-pwrseq-simple";
|
||
|
clocks = <&rk805 1>;
|
||
|
clock-names = "ext_clock";
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&wifi_enable_h>;
|
||
|
|
||
|
/*
|
||
|
* On the module itself this is one of these (depending
|
||
|
* on the actual card populated):
|
||
|
* - SDIO_RESET_L_WL_REG_ON
|
||
|
* - PDN (power down when low)
|
||
|
*/
|
||
|
reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* GPIO3_B7 */
|
||
|
};
|
||
|
|
||
|
wireless-bluetooth {
|
||
|
compatible = "bluetooth-platdata";
|
||
|
clocks = <&rk805 1>;
|
||
|
clock-names = "ext_clock";
|
||
|
uart_rts_gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
|
||
|
pinctrl-names = "default", "rts_gpio";
|
||
|
pinctrl-0 = <&uart11_rts>;
|
||
|
pinctrl-1 = <&uart11_rts_gpio>;
|
||
|
BT,reset_gpio = <&gpio2 29 GPIO_ACTIVE_HIGH>;
|
||
|
BT,wake_gpio = <&gpio3 27 GPIO_ACTIVE_HIGH>;
|
||
|
BT,wake_host_irq = <&gpio3 26 GPIO_ACTIVE_HIGH>;
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
wireless-wlan {
|
||
|
compatible = "wlan-platdata";
|
||
|
rockchip,grf = <&grf>;
|
||
|
wifi_chip_type = "ap6255";
|
||
|
WIFI,host_wake_irq = <&gpio0 28 GPIO_ACTIVE_HIGH>;
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
gpio_keys {
|
||
|
compatible = "gpio-keys";
|
||
|
#address-cells = <1>;
|
||
|
#size-cells = <0>;
|
||
|
autorepeat;
|
||
|
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&pwr_key &bt_key &mute_key>;
|
||
|
|
||
|
power_key {
|
||
|
label = "GPIO Key Power";
|
||
|
gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
|
||
|
linux,code = <116>;
|
||
|
debounce-interval = <100>;
|
||
|
wakeup-source;
|
||
|
};
|
||
|
|
||
|
bt_key {
|
||
|
label = "Blutooth Key";
|
||
|
gpios = <&gpio3 31 GPIO_ACTIVE_HIGH>;
|
||
|
linux,code = <237>;
|
||
|
debounce-interval = <100>;
|
||
|
};
|
||
|
|
||
|
mute_key {
|
||
|
label = "Mute Key";
|
||
|
gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
|
||
|
linux,code = <113>;
|
||
|
debounce-interval = <100>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
gva_codec: gva-codec {
|
||
|
compatible = "rockchip,gva-codec";
|
||
|
#sound-dai-cells = <0>;
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
gva-sound {
|
||
|
compatible = "simple-audio-card";
|
||
|
simple-audio-card,format = "i2s";
|
||
|
simple-audio-card,name = "rockchip,rk3229-dummy";
|
||
|
simple-audio-card,mclk-fs = <256>;
|
||
|
simple-audio-card,cpu {
|
||
|
sound-dai = <&i2s1>;
|
||
|
};
|
||
|
simple-audio-card,codec {
|
||
|
sound-dai = <&gva_codec>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vcc_otg_vbus: otg-vbus-regulator {
|
||
|
compatible = "regulator-fixed";
|
||
|
gpio = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&otg_vbus_drv>;
|
||
|
regulator-name = "vcc_otg_vbus";
|
||
|
regulator-min-microvolt = <5000000>;
|
||
|
regulator-max-microvolt = <5000000>;
|
||
|
enable-active-high;
|
||
|
};
|
||
|
|
||
|
xin32k: xin32k {
|
||
|
compatible = "fixed-clock";
|
||
|
clock-frequency = <32768>;
|
||
|
clock-output-names = "xin32k";
|
||
|
#clock-cells = <0>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&firmware_android {
|
||
|
compatible = "android,firmware";
|
||
|
fstab {
|
||
|
compatible = "android,fstab";
|
||
|
system {
|
||
|
compatible = "android,system";
|
||
|
dev = "/dev/block/by-name/system";
|
||
|
type = "ext4";
|
||
|
mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
|
||
|
fsmgr_flags = "wait,verify";
|
||
|
};
|
||
|
vendor {
|
||
|
compatible = "android,vendor";
|
||
|
dev = "/dev/block/by-name/vendor";
|
||
|
type = "ext4";
|
||
|
mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
|
||
|
fsmgr_flags = "wait,verify";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&gpu {
|
||
|
status = "okay";
|
||
|
mali-supply = <&vdd_logic>;
|
||
|
};
|
||
|
|
||
|
&nandc {
|
||
|
status = "disabled";
|
||
|
};
|
||
|
|
||
|
&emmc {
|
||
|
max-frequency = <125000000>;
|
||
|
cap-mmc-highspeed;
|
||
|
mmc-ddr-1_8v;
|
||
|
non-removable;
|
||
|
no-sdio;
|
||
|
no-sd;
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&i2c0 {
|
||
|
status = "okay";
|
||
|
|
||
|
rk805: rk805@18 {
|
||
|
compatible = "rockchip,rk805";
|
||
|
status = "okay";
|
||
|
reg = <0x18>;
|
||
|
interrupt-parent = <&gpio1>;
|
||
|
interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
|
||
|
spinctrl-names = "default";
|
||
|
pinctrl-0 = <&pmic_int_l>;
|
||
|
rockchip,system-power-controller;
|
||
|
wakeup-source;
|
||
|
gpio-controller;
|
||
|
#gpio-cells = <2>;
|
||
|
#clock-cells = <1>;
|
||
|
clock-output-names = "rk805-clkout1", "rk805-clkout2";
|
||
|
|
||
|
rtc {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
pwrkey {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
gpio {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
regulators {
|
||
|
vdd_arm: DCDC_REG1 {
|
||
|
regulator-name = "vdd_arm";
|
||
|
regulator-min-microvolt = <712500>;
|
||
|
regulator-max-microvolt = <1450000>;
|
||
|
regulator-initial-mode = <0x1>;
|
||
|
regulator-ramp-delay = <12500>;
|
||
|
regulator-boot-on;
|
||
|
regulator-always-on;
|
||
|
regulator-state-mem {
|
||
|
regulator-mode = <0x2>;
|
||
|
regulator-on-in-suspend;
|
||
|
regulator-suspend-microvolt = <950000>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vdd_logic: DCDC_REG2 {
|
||
|
regulator-name = "vdd_logic";
|
||
|
regulator-min-microvolt = <712500>;
|
||
|
regulator-max-microvolt = <1450000>;
|
||
|
regulator-initial-mode = <0x1>;
|
||
|
regulator-ramp-delay = <12500>;
|
||
|
regulator-boot-on;
|
||
|
regulator-always-on;
|
||
|
regulator-state-mem {
|
||
|
regulator-mode = <0x2>;
|
||
|
regulator-on-in-suspend;
|
||
|
regulator-suspend-microvolt = <1000000>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vcc_ddr: DCDC_REG3 {
|
||
|
regulator-name = "vcc_ddr";
|
||
|
regulator-boot-on;
|
||
|
regulator-always-on;
|
||
|
regulator-state-mem {
|
||
|
regulator-mode = <0x2>;
|
||
|
regulator-on-in-suspend;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vcc_io: DCDC_REG4 {
|
||
|
regulator-name = "vcc_io";
|
||
|
regulator-min-microvolt = <3300000>;
|
||
|
regulator-max-microvolt = <3300000>;
|
||
|
regulator-initial-mode = <0x1>;
|
||
|
regulator-boot-on;
|
||
|
regulator-always-on;
|
||
|
regulator-state-mem {
|
||
|
regulator-mode = <0x2>;
|
||
|
regulator-on-in-suspend;
|
||
|
regulator-suspend-microvolt = <3300000>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vcc_18: LDO_REG1 {
|
||
|
regulator-name = "vcc_18";
|
||
|
regulator-min-microvolt = <1800000>;
|
||
|
regulator-max-microvolt = <1800000>;
|
||
|
regulator-boot-on;
|
||
|
regulator-always-on;
|
||
|
regulator-state-mem {
|
||
|
regulator-on-in-suspend;
|
||
|
regulator-suspend-microvolt = <1800000>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vcc_18emmc: LDO_REG2 {
|
||
|
regulator-name = "vcc_18emmc";
|
||
|
regulator-min-microvolt = <1800000>;
|
||
|
regulator-max-microvolt = <1800000>;
|
||
|
regulator-boot-on;
|
||
|
regulator-always-on;
|
||
|
regulator-state-mem {
|
||
|
regulator-on-in-suspend;
|
||
|
regulator-suspend-microvolt = <1800000>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vdd_10: LDO_REG3 {
|
||
|
regulator-name = "vdd_10";
|
||
|
regulator-min-microvolt = <1000000>;
|
||
|
regulator-max-microvolt = <1000000>;
|
||
|
regulator-boot-on;
|
||
|
regulator-always-on;
|
||
|
regulator-state-mem {
|
||
|
regulator-on-in-suspend;
|
||
|
regulator-suspend-microvolt = <1000000>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&i2c1 {
|
||
|
status = "okay";
|
||
|
ts@8 {
|
||
|
compatible = "cypress,cy8c4024";
|
||
|
reg = <0x8>;
|
||
|
interrupt-parent = <&gpio1>;
|
||
|
interrupts = <RK_PA1 IRQ_TYPE_LEVEL_LOW>;
|
||
|
status = "okay";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&i2c2 {
|
||
|
status = "okay";
|
||
|
|
||
|
cw2015@62 {
|
||
|
status = "okay";
|
||
|
compatible = "cw201x";
|
||
|
reg = <0x62>;
|
||
|
bat_config_info = <0x15 0x42 0x60 0x59 0x52 0x58 0x4D 0x48 0x48 0x44 0x44 0x46 0x49 0x48 0x32
|
||
|
0x24 0x20 0x17 0x13 0x0F 0x19 0x3E 0x51 0x45 0x08 0x76 0x0B 0x85 0x0E 0x1C 0x2E 0x3E 0x4D 0x52 0x52
|
||
|
0x57 0x3D 0x1B 0x6A 0x2D 0x25 0x43 0x52 0x87 0x8F 0x91 0x94 0x52 0x82 0x8C 0x92 0x96 0xFF 0x7B 0xBB
|
||
|
0xCB 0x2F 0x7D 0x72 0xA5 0xB5 0xC1 0x46 0xAE>;
|
||
|
monitor_sec = <5>;
|
||
|
virtual_power = <0>;
|
||
|
divider_res1 = <200>;
|
||
|
divider_res2 = <200>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&i2s1 {
|
||
|
status = "okay";
|
||
|
rockchip,i2s-broken-burst-len;
|
||
|
rockchip,playback-channels = <8>;
|
||
|
rockchip,capture-channels = <8>;
|
||
|
rockchip,bclk-fs = <64>;
|
||
|
#sound-dai-cells = <0>;
|
||
|
};
|
||
|
|
||
|
&cpu0 {
|
||
|
cpu-supply = <&vdd_arm>;
|
||
|
};
|
||
|
|
||
|
&io_domains {
|
||
|
status = "okay";
|
||
|
|
||
|
vccio1-supply = <&vcc_io>;
|
||
|
vccio2-supply = <&vcc_18>;
|
||
|
vccio4-supply = <&vcc_io>;
|
||
|
};
|
||
|
|
||
|
&pinctrl {
|
||
|
keys {
|
||
|
pwr_key: pwr-key {
|
||
|
rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
|
||
|
};
|
||
|
|
||
|
bt_key: bt-key {
|
||
|
rockchip,pins = <3 RK_PD7 RK_FUNC_GPIO &pcfg_pull_down>;
|
||
|
};
|
||
|
|
||
|
mute_key: mute-key {
|
||
|
rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_down>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
pmic {
|
||
|
pmic_int_l: pmic-int-l {
|
||
|
rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>; /* gpio1_b4 */
|
||
|
};
|
||
|
};
|
||
|
|
||
|
sdio-pwrseq {
|
||
|
wifi_enable_h: wifi-enable-h {
|
||
|
rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
usb {
|
||
|
otg_vbus_drv: otg-vbus-drv {
|
||
|
rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&sdio {
|
||
|
max-frequency = <150000000>;
|
||
|
mmc-pwrseq = <&sdio_pwrseq>;
|
||
|
num-slots = <1>;
|
||
|
sd-uhs-sdr104;
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&rockchip_suspend {
|
||
|
rockchip,sleep-mode-config = <
|
||
|
(0
|
||
|
|RKPM_CTR_GTCLKS
|
||
|
|RKPM_CTR_IDLESRAM_MD
|
||
|
|RKPM_CTR_PMIC
|
||
|
)
|
||
|
>;
|
||
|
};
|
||
|
|
||
|
&u2phy0_otg {
|
||
|
vbus-supply = <&vcc_otg_vbus>;
|
||
|
};
|