969 lines
21 KiB
Plaintext
969 lines
21 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
|
|
*
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/pinctrl/rockchip.h>
|
|
#include <dt-bindings/input/rk-input.h>
|
|
#include <dt-bindings/sensor-dev.h>
|
|
#include <dt-bindings/display/drm_mipi_dsi.h>
|
|
#include "rk3566.dtsi"
|
|
#include "rk3568-android.dtsi"
|
|
#include "rk3566-eink.dtsi"
|
|
|
|
/ {
|
|
model = "Rockchip RK3566 RK817 EINK W6 LP4X Board";
|
|
compatible = "rockchip,rk3566-rk817-eink-W6", "rockchip,rk3566";
|
|
|
|
charge-animation {
|
|
compatible = "rockchip,uboot-charge";
|
|
rockchip,uboot-charge-on = <1>;
|
|
rockchip,android-charge-on = <0>;
|
|
rockchip,uboot-low-power-voltage = <3350>;
|
|
rockchip,screen-on-voltage = <3400>;
|
|
rockchip,auto-wakeup-interval = <60>;
|
|
status = "okay";
|
|
};
|
|
|
|
adc_keys: adc-keys {
|
|
status = "disabled";
|
|
compatible = "adc-keys";
|
|
io-channels = <&saradc 0>;
|
|
io-channel-names = "buttons";
|
|
keyup-threshold-microvolt = <1800000>;
|
|
poll-interval = <100>;
|
|
|
|
vol-up-key {
|
|
label = "volume up";
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
press-threshold-microvolt = <1750>;
|
|
};
|
|
};
|
|
|
|
hdmi_sound: hdmi-sound {
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,format = "i2s";
|
|
simple-audio-card,mclk-fs = <128>;
|
|
simple-audio-card,name = "rockchip,hdmi";
|
|
status = "disabled";
|
|
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&i2s0_8ch>;
|
|
};
|
|
simple-audio-card,codec {
|
|
sound-dai = <&hdmi>;
|
|
};
|
|
};
|
|
|
|
leds: gpio-leds {
|
|
compatible = "gpio-leds";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 =<&leds_gpio>;
|
|
|
|
led@1 {
|
|
gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger = "battery-full";
|
|
label = "battery_full";
|
|
retain-state-suspended;
|
|
};
|
|
|
|
led@2 {
|
|
gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger = "battery-charging";
|
|
label = "battery_charging";
|
|
retain-state-suspended;
|
|
};
|
|
};
|
|
|
|
vccsys: vccsys {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc3v8_sys";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3800000>;
|
|
regulator-max-microvolt = <3800000>;
|
|
};
|
|
|
|
vcc_camera: vcc-camera-regulator {
|
|
compatible = "regulator-fixed";
|
|
gpio = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&camera_rst>;
|
|
regulator-name = "vcc_camera";
|
|
enable-active-high;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
vcc_tp: vcc-tp-regulator {
|
|
compatible = "regulator-fixed";
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&vcc_tp_en>;
|
|
regulator-name = "vcc_tp";
|
|
};
|
|
|
|
dummy_codec: dummy-codec {
|
|
compatible = "rockchip,dummy-codec";
|
|
#sound-dai-cells = <0>;
|
|
};
|
|
|
|
mic_sound: mic-sound {
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,name = "rockchip,rk-mic-sound";
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&i2s1_8ch>;
|
|
};
|
|
simple-audio-card,codec {
|
|
sound-dai = <&dummy_codec>;
|
|
};
|
|
};
|
|
|
|
sdio_pwrseq: sdio-pwrseq {
|
|
compatible = "mmc-pwrseq-simple";
|
|
clocks = <&rk817 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)
|
|
*/
|
|
post-power-on-delay-ms = <200>;
|
|
reset-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wireless-wlan {
|
|
compatible = "wlan-platdata";
|
|
rockchip,grf = <&grf>;
|
|
wifi_chip_type = "ap6255";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&wifi_vbat &wifi_host_wake_irq>;
|
|
WIFI,vbat_gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
|
|
WIFI,host_wake_irq = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
};
|
|
|
|
wireless-bluetooth {
|
|
compatible = "bluetooth-platdata";
|
|
clocks = <&rk817 1>;
|
|
clock-names = "ext_clock";
|
|
wifi-bt-power-toggle;
|
|
uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
|
|
pinctrl-names = "default", "rts_gpio";
|
|
pinctrl-0 = <&uart1m0_rtsn>;
|
|
pinctrl-1 = <&uart1_gpios>;
|
|
BT,reset_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
|
BT,wake_gpio = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
|
|
BT,wake_host_irq = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&ebc {
|
|
/* clock rate 1000M/n, (n=1~32) */
|
|
assigned-clocks = <&cru CPLL_333M>, <&cru DCLK_EBC>;
|
|
assigned-clock-rates = <85000000>, <85000000>;
|
|
status = "okay";
|
|
};
|
|
|
|
&ebc_dev {
|
|
pmic = <&tps65185>;
|
|
status = "okay";
|
|
|
|
/* ED060XCD */
|
|
panel,width = <1024>;
|
|
panel,height = <758>;
|
|
panel,vir_width = <1024>;
|
|
panel,vir_height = <758>;
|
|
panel,sdck = <20000000>;
|
|
panel,lsl = <6>;
|
|
panel,lbl = <6>;
|
|
panel,ldl = <256>;
|
|
panel,lel = <38>;
|
|
panel,gdck-sta = <4>;
|
|
panel,lgonl = <262>;
|
|
panel,fsl = <2>;
|
|
panel,fbl = <4>;
|
|
panel,fdl = <758>;
|
|
panel,fel = <5>;
|
|
panel,mirror = <0>;
|
|
panel,panel_16bit = <0>;
|
|
panel,panel_color = <0>;
|
|
panel,width-mm = <90>;
|
|
panel,height-mm = <122>;
|
|
};
|
|
|
|
&cpu0 {
|
|
cpu-supply = <&vdd_cpu>;
|
|
};
|
|
|
|
&csi2_dphy_hw {
|
|
status = "okay";
|
|
};
|
|
|
|
&csi2_dphy0 {
|
|
status = "okay";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
mipi_in_ucam0: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&ov5648_out>;
|
|
data-lanes = <1 2>;
|
|
};
|
|
};
|
|
port@1 {
|
|
reg = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
csidphy0_out: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&isp0_in>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&gpu {
|
|
mali-supply = <&vdd_gpu>;
|
|
status = "okay";
|
|
};
|
|
|
|
&hdmi {
|
|
status = "disabled";
|
|
};
|
|
|
|
&hdmi_in_vp0 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&hdmi_in_vp1 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&hdmi_sound {
|
|
status = "disabled";
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "okay";
|
|
|
|
vdd_cpu: tcs4525@1c {
|
|
compatible = "tcs,tcs4525";
|
|
reg = <0x1c>;
|
|
vin-supply = <&vccsys>;
|
|
regulator-compatible = "fan53555-reg";
|
|
regulator-name = "vdd_cpu";
|
|
regulator-min-microvolt = <712500>;
|
|
regulator-max-microvolt = <1390000>;
|
|
regulator-init-microvolt = <900000>;
|
|
regulator-ramp-delay = <2300>;
|
|
fcs,suspend-voltage-selector = <0>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <1100000>;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
rk817: pmic@20 {
|
|
compatible = "rockchip,rk817";
|
|
reg = <0x20>;
|
|
interrupt-parent = <&gpio0>;
|
|
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
|
|
pinctrl-names = "default";
|
|
// pinctrl-names = "default", "pmic-sleep",
|
|
// "pmic-power-off", "pmic-reset";
|
|
pinctrl-0 = <&pmic_int>;
|
|
// pinctrl-1 = <&soc_slppin_slp>, <&rk817_slppin_slp>;
|
|
// pinctrl-2 = <&soc_slppin_gpio>, <&rk817_slppin_pwrdn>;
|
|
// pinctrl-3 = <&soc_slppin_gpio>, <&rk817_slppin_rst>;
|
|
rockchip,system-power-controller;
|
|
wakeup-source;
|
|
#clock-cells = <1>;
|
|
clock-output-names = "rk808-clkout1", "rk808-clkout2";
|
|
//fb-inner-reg-idxs = <2>;
|
|
/* 1: rst regs (default in codes), 0: rst the pmic */
|
|
pmic-reset-func = <0>;
|
|
/* not save the PMIC_POWER_EN register in uboot */
|
|
not-save-power-en = <1>;
|
|
vcc1-supply = <&vccsys>;
|
|
vcc2-supply = <&vccsys>;
|
|
vcc3-supply = <&vccsys>;
|
|
vcc4-supply = <&vccsys>;
|
|
vcc5-supply = <&vccsys>;
|
|
vcc6-supply = <&vccsys>;
|
|
vcc7-supply = <&vccsys>;
|
|
vcc8-supply = <&vccsys>;
|
|
vcc9-supply = <&dcdc_boost>;
|
|
|
|
pwrkey {
|
|
status = "okay";
|
|
};
|
|
|
|
pinctrl_rk8xx: pinctrl_rk8xx {
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
|
|
rk817_slppin_null: rk817_slppin_null {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun0";
|
|
};
|
|
|
|
rk817_slppin_slp: rk817_slppin_slp {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun1";
|
|
};
|
|
|
|
rk817_slppin_pwrdn: rk817_slppin_pwrdn {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun2";
|
|
};
|
|
|
|
rk817_slppin_rst: rk817_slppin_rst {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun3";
|
|
};
|
|
};
|
|
|
|
regulators {
|
|
vdd_logic: DCDC_REG1 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <500000>;
|
|
regulator-max-microvolt = <1350000>;
|
|
regulator-init-microvolt = <900000>;
|
|
regulator-ramp-delay = <6001>;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-name = "vdd_logic";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
regulator-suspend-microvolt = <900000>;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
vdd_gpu: DCDC_REG2 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <500000>;
|
|
regulator-max-microvolt = <1350000>;
|
|
regulator-init-microvolt = <900000>;
|
|
regulator-ramp-delay = <6001>;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-name = "vdd_gpu";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_ddr: DCDC_REG3 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-name = "vcc_ddr";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_3v3: DCDC_REG4 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-name = "vcc_3v3";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcca1v8_pmu: LDO_REG1 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcca1v8_pmu";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <1800000>;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
vdda_0v9: LDO_REG2 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <900000>;
|
|
regulator-name = "vdda_0v9";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
vdda0v9_pmu: LDO_REG3 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <900000>;
|
|
regulator-name = "vdda0v9_pmu";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <900000>;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
vccio_acodec: LDO_REG4 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vccio_acodec";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
vccio_sd: LDO_REG5 {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vccio_sd";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc3v3_pmu: LDO_REG6 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vcc3v3_pmu";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <3000000>;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_1v8: LDO_REG7 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc_1v8";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc1v8_dvp: LDO_REG8 {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc1v8_dvp";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
sleep_sta_ctl: LDO_REG9 {
|
|
regulator-name = "sleep_sta_ctl";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <3300000>;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
dcdc_boost: BOOST {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <4700000>;
|
|
regulator-max-microvolt = <5400000>;
|
|
regulator-name = "boost";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
|
|
otg_switch: OTG_SWITCH {
|
|
regulator-name = "otg_switch";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
regulator-changeable-in-suspend;
|
|
};
|
|
};
|
|
};
|
|
|
|
battery {
|
|
compatible = "rk817,battery";
|
|
ocv_table = <3400 3513 3578 3687 3734 3752 3763
|
|
3766 3771 3784 3804 3836 3885 3925
|
|
3962 4005 4063 4114 4169 4227 4303>;
|
|
design_capacity = <2250>;
|
|
design_qmax = <2750>;
|
|
bat_res = <100>;
|
|
sleep_enter_current = <150>;
|
|
sleep_exit_current = <180>;
|
|
sleep_filter_current = <100>;
|
|
power_off_thresd = <3450>;
|
|
zero_algorithm_vol = <3850>;
|
|
max_soc_offset = <60>;
|
|
monitor_sec = <5>;
|
|
sample_res = <10>;
|
|
virtual_power = <0>;
|
|
low_power_sleep = <1>;
|
|
};
|
|
|
|
charger {
|
|
compatible = "rk817,charger";
|
|
min_input_voltage = <4500>;
|
|
max_input_current = <1500>;
|
|
max_chrg_current = <2000>;
|
|
max_chrg_voltage = <4300>;
|
|
chrg_term_mode = <0>;
|
|
chrg_finish_cur = <300>;
|
|
virtual_power = <0>;
|
|
dc_det_adc = <0>;
|
|
extcon = <&usb2phy0>;
|
|
gate_function_disable = <1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "okay";
|
|
|
|
ov5648: ov5648@36 {
|
|
status = "okay";
|
|
compatible = "ovti,ov5648";
|
|
reg = <0x36>;
|
|
clocks = <&cru CLK_CAM0_OUT>;
|
|
clock-names = "xvclk";
|
|
/* avdd-supply = <&vcc2v8_dvp>; */
|
|
dovdd-supply = <&vcc1v8_dvp>;
|
|
/* dvdd-supply = <&vcc1v8_dvp>; */
|
|
|
|
power-domains = <&power RK3568_PD_VI>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&cam_clkout0>;
|
|
//reset pin control by hardware,used this pin switch to mipi input
|
|
//1->2LANE(LANE 0&1) FRONT camera, 0->4LANE REAR camera
|
|
//reset-gpios = <&gpio4 RK_PC3 GPIO_ACTIVE_LOW>;
|
|
pwdn-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
|
|
rockchip,camera-module-index = <0>;
|
|
rockchip,camera-module-facing = "back";
|
|
rockchip,camera-module-name = "HS5885-BNSM1018-V01";
|
|
rockchip,camera-module-lens-name = "default";
|
|
port {
|
|
ov5648_out: endpoint {
|
|
remote-endpoint = <&mipi_in_ucam0>;
|
|
data-lanes = <1 2>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c3 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c3m1_xfer>;
|
|
|
|
tps65185: tps65185@68 {
|
|
compatible = "ti,tps65185";
|
|
reg = <0x68>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&tps65185_gpio>;
|
|
int-gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;
|
|
wakeup-gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>;
|
|
vcomctl-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
|
|
powerup-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>;
|
|
poweren-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
};
|
|
|
|
&i2c5 {
|
|
status = "okay";
|
|
|
|
sensor@4c {
|
|
status = "okay";
|
|
compatible = "gs_mma7660";
|
|
reg = <0x4c>;
|
|
type = <SENSOR_TYPE_ACCEL>;
|
|
irq_enable = <0>;
|
|
poll_delay_ms = <30>;
|
|
layout = <6>;
|
|
reprobe_en = <1>;
|
|
};
|
|
|
|
gt9xx: gt9xx@14 {
|
|
compatible = "goodix,gt9xx";
|
|
reg = <0x14>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&tp_gpio>;
|
|
touch-gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
|
|
reset-gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
|
|
touchscreen-size-x = <1024>;
|
|
touchscreen-size-y = <758>;
|
|
max-x = <1024>;
|
|
max-y = <758>;
|
|
tp-size = <9111>;
|
|
tp-supply = <&vcc_tp>;
|
|
wakeup-source;
|
|
touchscreen-key-map = <158>; //KEY_HOMEPAGE=172,KEY_BACK=158,KEY_MENU=139
|
|
goodix,driver-send-cfg = <0>;
|
|
goodix,cfg-group0 =[
|
|
42 00 03 00 04 0A 45 03 22 1F 28 0F 64 3C 03 0F 00 00 00 00 11 00
|
|
08 00 00 00 00 8B 29 0E 71 6F B2 04 00 00 00 39 02 10 00 21 00 00
|
|
00 03 64 32 00 00 00 3C 78 94 D5 02 07 00 00 04 C8 40 00 B1 4A 00
|
|
9E 55 00 8E 61 00 7F 70 00 7F 70 00 00 00 F0 90 3C FF FF 07 00 00
|
|
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00 00 1C 1A 18 16 14 12 10 0E 0C 0A 08 06 04 02 FF FF FF FF FF FF
|
|
FF FF FF FF FF FF FF FF FF FF 00 02 04 06 08 0A 0C 0F 10 12 13 16
|
|
18 1C 1D 1E 1F 20 21 22 FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
|
FF FF FF FF FF FF FF FF F6 01
|
|
];
|
|
};
|
|
|
|
ft5436: focaltech@38 {
|
|
status = "okay";
|
|
compatible = "focaltech,ft5436";
|
|
reg = <0x38>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&tp_gpio>;
|
|
vdd-supply = <&vcc_tp>;
|
|
focaltech,reset-gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
|
|
focaltech,irq-gpio = <&gpio0 RK_PA6 IRQ_TYPE_EDGE_FALLING>;
|
|
focaltech,max-touch-number = <5>;
|
|
focaltech,display-coords = <0 0 1024 758>;
|
|
focaltech,have-key = <1>;
|
|
focaltech,key-number = <1>;
|
|
|
|
focaltech,key-x-coords = <300>;
|
|
focaltech,key-y-coords = <1200>;
|
|
wakeup-source;
|
|
};
|
|
};
|
|
|
|
&i2s0_8ch {
|
|
status = "disabled";
|
|
};
|
|
|
|
&i2s1_8ch {
|
|
status = "okay";
|
|
rockchip,clk-trcm = <1>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2s1m0_sclktx
|
|
&i2s1m0_lrcktx
|
|
&i2s1m0_sdi0
|
|
&i2s1m0_sdo0>;
|
|
};
|
|
|
|
&jpegd {
|
|
status = "okay";
|
|
};
|
|
|
|
&jpegd_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&video_phy0 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&mpp_srv {
|
|
status = "okay";
|
|
};
|
|
|
|
&nandc0 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&pinctrl {
|
|
cam {
|
|
cam_clkout0: cam-clkout0 {
|
|
rockchip,pins =
|
|
/* cam_clkout0 */
|
|
<4 RK_PA7 1 &pcfg_pull_none>;
|
|
};
|
|
|
|
camera_rst: camera-rst {
|
|
rockchip,pins =
|
|
<4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
leds {
|
|
leds_gpio: leds-gpio {
|
|
rockchip,pins =
|
|
<3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>,
|
|
<3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
tps_pmic {
|
|
tps65185_gpio: tps65185-gpio {
|
|
rockchip,pins =
|
|
<4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>,
|
|
<3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>,
|
|
<3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>,
|
|
<3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>,
|
|
<0 RK_PC1 RK_FUNC_GPIO &pcfg_output_high>;
|
|
};
|
|
};
|
|
|
|
tp {
|
|
tp_gpio: tp-gpio {
|
|
rockchip,pins =
|
|
<0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>,
|
|
<0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
pmic {
|
|
pmic_int: pmic_int {
|
|
rockchip,pins =
|
|
<0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
|
|
soc_slppin_gpio: soc_slppin_gpio {
|
|
rockchip,pins =
|
|
<0 RK_PA2 RK_FUNC_GPIO &pcfg_output_low>;
|
|
};
|
|
|
|
soc_slppin_slp: soc_slppin_slp {
|
|
rockchip,pins =
|
|
<0 RK_PA2 1 &pcfg_pull_none>;
|
|
};
|
|
|
|
soc_slppin_rst: soc_slppin_rst {
|
|
rockchip,pins =
|
|
<0 RK_PA2 2 &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
sdio-pwrseq {
|
|
wifi_enable_h: wifi-enable-h {
|
|
rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
vcc-tp {
|
|
vcc_tp_en: vcc-tp-en {
|
|
rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
wireless-wlan {
|
|
wifi_vbat: wifi-vbat {
|
|
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
wifi_host_wake_irq: wifi-host-wake-irq {
|
|
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
};
|
|
};
|
|
|
|
wireless-bluetooth {
|
|
uart1_gpios: uart1-gpios {
|
|
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pmu_io_domains {
|
|
status = "okay";
|
|
pmuio1-supply = <&vcc3v3_pmu>;
|
|
pmuio2-supply = <&vcca1v8_pmu>;
|
|
vccio1-supply = <&vccio_acodec>;
|
|
vccio3-supply = <&vcc_3v3>;
|
|
vccio4-supply = <&vcca1v8_pmu>;
|
|
vccio5-supply = <&vcc_3v3>;
|
|
vccio6-supply = <&vcc_3v3>;
|
|
vccio7-supply = <&vcc1v8_dvp>;
|
|
};
|
|
|
|
&pwm4 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&rk_rga {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkisp {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkisp_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkisp_vir0 {
|
|
status = "okay";
|
|
|
|
port {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
isp0_in: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&csidphy0_out>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&rkvdec {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvdec_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rockchip_suspend {
|
|
status = "okay";
|
|
|
|
rockchip,regulator-off-in-mem-lite =
|
|
<&vdd_cpu>, <&vdd_logic>, <&vdd_gpu>, <&vcc_3v3>, <&vdda_0v9>, <&vcc_1v8>,
|
|
<&vccio_acodec>, <&vccio_sd>, <&vcc1v8_dvp>, <&dcdc_boost>, <&otg_switch>,
|
|
<&sleep_sta_ctl>;
|
|
rockchip,regulator-on-in-mem-lite =
|
|
<&vcc_ddr>, <&vdda0v9_pmu>, <&vcca1v8_pmu>, <&vcc3v3_pmu>;
|
|
|
|
rockchip,regulator-off-in-mem =
|
|
<&vdd_cpu>, <&vdd_logic>, <&vdd_gpu>, <&vcc_3v3>, <&vdda_0v9>, <&vcc_1v8>,
|
|
<&vccio_acodec>, <&vccio_sd>, <&vcc1v8_dvp>, <&dcdc_boost>, <&otg_switch>,
|
|
<&sleep_sta_ctl>;
|
|
rockchip,regulator-on-in-mem =
|
|
<&vcc_ddr>, <&vdda0v9_pmu>, <&vcca1v8_pmu>, <&vcc3v3_pmu>;
|
|
|
|
rockchip,regulator-off-in-mem-ultra =
|
|
<&vdd_logic>, <&vdd_gpu>, <&vcc_ddr>, <&vcc_3v3>, <&vdda_0v9>, <&vcc_1v8>,
|
|
<&vdda0v9_pmu>, <&vcca1v8_pmu>, <&vcc3v3_pmu>, <&vccio_acodec>, <&vccio_sd>,
|
|
<&vcc1v8_dvp>, <&dcdc_boost>, <&otg_switch>;
|
|
rockchip,regulator-on-in-mem-ultra = <&vdd_cpu>, <&sleep_sta_ctl>;
|
|
};
|
|
|
|
&saradc {
|
|
status = "disabled";
|
|
vref-supply = <&vcc_1v8>;
|
|
};
|
|
|
|
&sdhci {
|
|
bus-width = <8>;
|
|
no-sdio;
|
|
no-sd;
|
|
non-removable;
|
|
keep-power-in-suspend;
|
|
max-frequency = <200000000>;
|
|
status = "okay";
|
|
};
|
|
|
|
&sdmmc1 {
|
|
max-frequency = <150000000>;
|
|
no-sd;
|
|
no-mmc;
|
|
bus-width = <4>;
|
|
disable-wp;
|
|
cap-sd-highspeed;
|
|
cap-sdio-irq;
|
|
keep-power-in-suspend;
|
|
mmc-pwrseq = <&sdio_pwrseq>;
|
|
non-removable;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
|
|
sd-uhs-sdr104;
|
|
rockchip,default-sample-phase = <90>;
|
|
status = "okay";
|
|
};
|
|
|
|
&tsadc {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart1 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
|
|
};
|
|
|
|
&u2phy0_otg {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb2phy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd_dwc3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd30 {
|
|
status = "okay";
|
|
};
|
|
|
|
&vdpu {
|
|
status = "okay";
|
|
};
|
|
|
|
&vdpu_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&vepu {
|
|
status = "okay";
|
|
};
|
|
|
|
&vepu_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&vop {
|
|
status = "okay";
|
|
};
|
|
|
|
&vop_mmu {
|
|
status = "okay";
|
|
};
|