541 lines
11 KiB
Plaintext
541 lines
11 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
/dts-v1/;
|
|
#include "rk3288-evb.dtsi"
|
|
#include "rk3288-linux.dtsi"
|
|
|
|
/ {
|
|
compatible = "rockchip,rk3288-evb-rk808-linux", "rockchip,rk3288";
|
|
|
|
adc-keys {
|
|
compatible = "adc-keys";
|
|
io-channels = <&saradc 1>;
|
|
io-channel-names = "buttons";
|
|
poll-interval = <100>;
|
|
keyup-threshold-microvolt = <1800000>;
|
|
|
|
button-up {
|
|
label = "Volume Up";
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
press-threshold-microvolt = <18000>;
|
|
};
|
|
|
|
button-down {
|
|
label = "Volume Down";
|
|
linux,code = <KEY_VOLUMEDOWN>;
|
|
press-threshold-microvolt = <300000>;
|
|
};
|
|
|
|
menu {
|
|
label = "Menu";
|
|
linux,code = <KEY_MENU>;
|
|
press-threshold-microvolt = <640000>;
|
|
};
|
|
|
|
esc {
|
|
label = "Esc";
|
|
linux,code = <KEY_ESC>;
|
|
press-threshold-microvolt = <1000000>;
|
|
};
|
|
|
|
home {
|
|
label = "Home";
|
|
linux,code = <KEY_HOME>;
|
|
press-threshold-microvolt = <1300000>;
|
|
};
|
|
};
|
|
|
|
sdio_pwrseq: sdio-pwrseq {
|
|
compatible = "mmc-pwrseq-simple";
|
|
clocks = <&rk808 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 = <&gpio4 28 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wireless-bluetooth {
|
|
clocks = <&rk808 1>;
|
|
clock-names = "ext_clock";
|
|
};
|
|
|
|
/delete-node/ sdmmc-regulator;
|
|
|
|
vcc18_dvp: vcc18-dvp {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc18_dvp";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
regulator-always-on;
|
|
vin-supply = <&vcc_io>;
|
|
};
|
|
|
|
vdd_log: vdd-logic {
|
|
compatible = "pwm-regulator";
|
|
rockchip,pwm_id = <1>;
|
|
rockchip,pwm_voltage = <1100000>;
|
|
pwms = <&pwm1 0 25000 1>;
|
|
regulator-name = "vcc_log";
|
|
regulator-min-microvolt = <860000>;
|
|
regulator-max-microvolt = <1360000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
xin32k: xin32k {
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <32768>;
|
|
clock-output-names = "xin32k";
|
|
#clock-cells = <0>;
|
|
};
|
|
};
|
|
|
|
&backlight {
|
|
enable-gpios = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&bl_en>;
|
|
pwms = <&pwm0 0 1000000 PWM_POLARITY_INVERTED>;
|
|
};
|
|
|
|
&cpu0 {
|
|
cpu0-supply = <&vdd_cpu>;
|
|
};
|
|
|
|
&dfi {
|
|
status = "okay";
|
|
};
|
|
|
|
&dmc {
|
|
center-supply = <&vdd_log>;
|
|
status = "okay";
|
|
};
|
|
|
|
&edp_in_vopb {
|
|
status = "disabled";
|
|
};
|
|
|
|
&edp_in_vopl {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpu {
|
|
status = "okay";
|
|
mali-supply = <&vdd_gpu>;
|
|
};
|
|
|
|
&hdmi {
|
|
pinctrl-0 = <&hdmi_ddc>, <&hdmi_cec_c0>;
|
|
};
|
|
|
|
&i2c0 {
|
|
clock-frequency = <400000>;
|
|
|
|
rk808: pmic@1b {
|
|
compatible = "rockchip,rk808";
|
|
reg = <0x1b>;
|
|
interrupt-parent = <&gpio0>;
|
|
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pmic_int &global_pwroff>;
|
|
rockchip,system-power-controller;
|
|
wakeup-source;
|
|
#clock-cells = <1>;
|
|
clock-output-names = "rk808-clkout1", "rk808-clkout2";
|
|
|
|
vcc1-supply = <&vcc_sys>;
|
|
vcc2-supply = <&vcc_sys>;
|
|
vcc3-supply = <&vcc_sys>;
|
|
vcc4-supply = <&vcc_sys>;
|
|
vcc6-supply = <&vcc_sys>;
|
|
vcc8-supply = <&vcc_io>;
|
|
vcc9-supply = <&vcc_io>;
|
|
vcc12-supply = <&vcc_io>;
|
|
vddio-supply = <&vcc_io>;
|
|
|
|
regulators {
|
|
vdd_cpu: DCDC_REG1 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <750000>;
|
|
regulator-max-microvolt = <1400000>;
|
|
regulator-name = "vdd_arm";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vdd_gpu: DCDC_REG2 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <850000>;
|
|
regulator-max-microvolt = <1250000>;
|
|
regulator-name = "vdd_gpu";
|
|
regulator-ramp-delay = <6000>;
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_ddr: DCDC_REG3 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-name = "vcc_ddr";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_io: DCDC_REG4 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vcc_io";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <3300000>;
|
|
};
|
|
};
|
|
|
|
vcc_tp: LDO_REG1 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vcc_tp";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcca_codec: LDO_REG2 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vcca_codec";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <3300000>;
|
|
};
|
|
};
|
|
|
|
vdd_10: LDO_REG3 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1000000>;
|
|
regulator-max-microvolt = <1000000>;
|
|
regulator-name = "vdd_10";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <1000000>;
|
|
};
|
|
};
|
|
|
|
vcc_wl: LDO_REG4 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc_wl";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
};
|
|
};
|
|
|
|
vccio_sd: LDO_REG5 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vccio_sd";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vdd10_lcd: LDO_REG6 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1000000>;
|
|
regulator-max-microvolt = <1000000>;
|
|
regulator-name = "vdd10_lcd";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_18: LDO_REG7 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc_18";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <1800000>;
|
|
};
|
|
};
|
|
|
|
vcc18_lcd: LDO_REG8 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc18_lcd";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_sd: SWITCH_REG1 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-name = "vcc_sd";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_lcd: SWITCH_REG2 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-name = "vcc_lcd";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
CW2015@62 {
|
|
compatible = "cw201x";
|
|
reg = <0x62>;
|
|
bat_low_gpio = <&gpio0 7 GPIO_ACTIVE_LOW>;
|
|
dc_det_gpio = <&gpio0 8 GPIO_ACTIVE_LOW>;
|
|
chg_ok_gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
|
|
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>;
|
|
is_dc_charge = <1>;
|
|
is_usb_charge = <0>;
|
|
monitor_sec = <5>;
|
|
virtual_power = <0>;
|
|
divider_res1 = <200>;
|
|
divider_res2 = <200>;
|
|
};
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "okay";
|
|
clock-frequency = <400000>;
|
|
|
|
mpu6050@68 {
|
|
compatible = "invensense,mpu6050";
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mpu6050_irq_gpio>;
|
|
reg = <0x68>;
|
|
irq-gpio = <&gpio8 0 IRQ_TYPE_EDGE_RISING>;
|
|
mpu-int_config = <0x10>;
|
|
mpu-level_shifter = <0>;
|
|
mpu-orientation = <0 1 0 1 0 0 0 0 1>;
|
|
orientation-x= <0>;
|
|
orientation-y= <1>;
|
|
orientation-z= <0>;
|
|
support-hw-poweroff = <1>;
|
|
mpu-debug = <1>;
|
|
};
|
|
|
|
ak8963: compass@d{
|
|
compatible = "mpu_ak8963";
|
|
reg = <0x0d>;
|
|
compass-bus = <0>;
|
|
compass-adapt_num = <0>;
|
|
compass-orientation = <1 0 0 0 1 0 0 0 1>;
|
|
orientation-x= <0>;
|
|
orientation-y= <0>;
|
|
orientation-z= <1>;
|
|
compass-debug = <1>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&io_domains {
|
|
status = "okay";
|
|
audio-supply = <&vcc_io>;
|
|
bb-supply = <&vcc_io>;
|
|
dvp-supply = <&vcc18_dvp>;
|
|
flash0-supply = <&vcc_18>;
|
|
flash1-supply = <&vcc_io>;
|
|
gpio30-supply = <&vcc_io>;
|
|
gpio1830 = <&vcc_io>;
|
|
lcdc-supply = <&vcc_lcd>;
|
|
sdcard-supply = <&vccio_sd>;
|
|
wifi-supply = <&vcc_wl>;
|
|
};
|
|
|
|
&i2c3 {
|
|
status = "okay";
|
|
|
|
ov13850: ov13850@10 {
|
|
compatible = "ovti,ov13850";
|
|
reg = <0x10>;
|
|
clocks = <&cru SCLK_VIP_OUT>;
|
|
clock-names = "xvclk";
|
|
/* avdd-supply = <>; */
|
|
/* dvdd-supply = <>; */
|
|
/* dovdd-supply = <>; */
|
|
/* reset-gpios = <>; */
|
|
pinctrl-names = "rockchip,camera_default";
|
|
pinctrl-0 = <&isp_mipi>;
|
|
power-gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
|
reset-gpio = <&gpio7 RK_PC5 GPIO_ACTIVE_HIGH>;
|
|
pwdn-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
|
|
rockchip,camera-module-index = <0>;
|
|
rockchip,camera-module-facing = "back";
|
|
rockchip,camera-module-name = "CMK-CT0116";
|
|
rockchip,camera-module-lens-name = "Largan-50013A1";
|
|
port {
|
|
ov13850_out: endpoint {
|
|
remote-endpoint = <&mipi_in_ucam0>;
|
|
data-lanes = <1 2>;
|
|
};
|
|
};
|
|
};
|
|
|
|
gc8034: gc8034@37 {
|
|
compatible = "galaxycore,gc8034";
|
|
status = "okay";
|
|
reg = <0x37>;
|
|
clocks = <&cru SCLK_VIP_OUT>;
|
|
clock-names = "xvclk";
|
|
pinctrl-names = "rockchip,camera_default";
|
|
pinctrl-0 = <&isp_mipi>;
|
|
power-gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
|
reset-gpios = <&gpio7 RK_PC5 GPIO_ACTIVE_LOW>;
|
|
pwdn-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_LOW>;
|
|
rockchip,camera-module-index = <0>;
|
|
rockchip,camera-module-facing = "back";
|
|
rockchip,camera-module-name = "LH-RK-8034-v1.0";
|
|
rockchip,camera-module-lens-name = "CK8401";
|
|
port {
|
|
gc8034_out: endpoint {
|
|
remote-endpoint = <&mipi_in_gc8034>;
|
|
data-lanes = <1 2 3 4>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&isp_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&mipi_phy_rx0 {
|
|
status = "okay";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
mipi_in_ucam0: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&ov13850_out>;
|
|
data-lanes = <1 2>;
|
|
};
|
|
mipi_in_gc8034: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&gc8034_out>;
|
|
data-lanes = <1 2 3 4>;
|
|
};
|
|
};
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
dphy_rx_out: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&isp_mipi_in>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&rkisp1 {
|
|
status = "okay";
|
|
port {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
isp_mipi_in: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&dphy_rx_out>;
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
&rga {
|
|
status = "okay";
|
|
};
|
|
|
|
&route_edp {
|
|
status = "okay";
|
|
};
|
|
|
|
&route_hdmi {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart2 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&pwm0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm1 {
|
|
pinctrl-names = "active";
|
|
pinctrl-0 = <&pwm1_pin_pull_down>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pinctrl {
|
|
backlight {
|
|
bl_en: bl-en {
|
|
rockchip,pins = <7 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
buttons {
|
|
pwrbtn: pwrbtn {
|
|
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
mpu6050 {
|
|
mpu6050_irq_gpio: mpu6050-irq-gpio {
|
|
rockchip,pins = <8 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|