android13/kernel-5.10/arch/arm/boot/dts/px3se-evb.dts

736 lines
15 KiB
Plaintext

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/dts-v1/;
#include "rk3128.dtsi"
#include <dt-bindings/display/drm_mipi_dsi.h>
#include <dt-bindings/input/input.h>
/ {
model = "Rockchip PX3SE Evaluation Board";
compatible = "rockchip,px3se-evb", "rockchip,rk3128";
chosen {
bootargs = "loglevel=7 root=PARTUUID=614e0000-0000-4b53-8000-1d28000054a9 rootwait";
};
adc-keys {
compatible = "adc-keys";
io-channels = <&saradc 1>;
io-channel-names = "buttons";
poll-interval = <100>;
keyup-threshold-microvolt = <1800000>;
reserved-key {
linux,code = <KEY_RESERVED>;
label = "reserved";
press-threshold-microvolt = <1549000>;
};
home-key {
linux,code = <KEY_HOME>;
label = "home";
press-threshold-microvolt = <1314000>;
};
esc-key {
linux,code = <KEY_ESC>;
label = "esc";
press-threshold-microvolt = <985000>;
};
menu-key {
linux,code = <KEY_MENU>;
label = "menu";
press-threshold-microvolt = <623000>;
};
vol-down-key {
linux,code = <KEY_VOLUMEDOWN>;
label = "volume down";
press-threshold-microvolt = <300000>;
};
vol-up-key {
linux,code = <KEY_VOLUMEUP>;
label = "volume up";
press-threshold-microvolt = <18000>;
};
};
backlight: backlight {
compatible = "pwm-backlight";
brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
245 246 247 248 249 250 251 252 253 254 255>;
default-brightness-level = <128>;
pwms = <&pwm0 0 25000 0>;
status = "okay";
};
fiq-debugger {
compatible = "rockchip,fiq-debugger";
pinctrl-names = "default";
pinctrl-0 = <&uart1_xfer>;
rockchip,serial-id = <1>;
rockchip,wake-irq = <0>;
/* If enable uart uses irq instead of fiq */
rockchip,irq-mode-enable = <0>;
rockchip,baudrate = <115200>; /* Only 115200 and 1500000 */
/* Choose a reserved/no-in-use irq */
interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_LOW>;
status = "okay";
};
sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
/* Use external clock power by VCC_RTC */
pinctrl-names = "default";
pinctrl-0 = <&wifi_pwr>;
/*
* 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 = <&gpio1 3 GPIO_ACTIVE_LOW>;
};
sound-rk312x {
compatible = "simple-audio-card";
status = "disabled";
simple-audio-card,format = "i2s";
simple-audio-card,mclk-fs = <256>;
simple-audio-card,name = "rockchip,rk312x-codec";
simple-audio-card,cpu {
sound-dai = <&i2s_8ch>;
};
simple-audio-card,codec {
sound-dai = <&codec>;
};
};
sound-es8396 {
compatible = "simple-audio-card";
status = "okay";
simple-audio-card,format = "i2s";
simple-audio-card,name = "rockchip,es8396-codec";
simple-audio-card,mclk-fs = <256>;
simple-audio-card,widgets =
"Microphone", "Microphone Jack",
"Line", "Microphone Headset",
"Headphone", "Headphone Jack";
simple-audio-card,routing =
"MIC", "Microphone Jack",
"DMIC", "Microphone Headset",
"Headphone Jack", "LOUTP",
"Headphone Jack", "ROUTN";
simple-audio-card,cpu {
sound-dai = <&i2s_2ch>;
};
simple-audio-card,codec {
sound-dai = <&es8396>;
};
};
usb_control {
compatible = "rockchip,rk3126-usb-control";
otg_drv_gpio = <&gpio2 12 GPIO_ACTIVE_LOW>;
rockchip,remote_wakeup;
rockchip,usb_irq_wakeup;
};
vcc_18: vcc-18 {
compatible = "regulator-fixed";
regulator-name = "vcc_18";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
vin-supply = <&pmic_vcc_18>;
};
/* vcc33_lcd and vcc18_lcd share the same enable pin */
vcc33_lcd: vcc33-lcd {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&lcdc_pwr_en>;
gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-name = "vcc33_lcd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_io>;
};
vcc_cvbs_33: vcc-cvbs-33 {
compatible = "regulator-fixed";
regulator-name= "vcc-cvbs-33";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&pmic_vcc_cvbs_33>;
};
vcc_sys: vcc-sys {
compatible = "regulator-fixed";
regulator-name = "vcc_sys";
regulator-min-microvolt = <4000000>;
regulator-max-microvolt = <4000000>;
regulator-always-on;
};
vcc_io: vcc-io {
compatible = "regulator-fixed";
regulator-name = "vcc_io";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
vin-supply = <&pmic_vcc_io>;
};
vcc_sd: vcc-sd {
compatible = "regulator-fixed";
gpio = <&gpio1 14 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&sdmmc_pwr>;
regulator-name = "vcc_sd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_io>;
};
dvdd_1v8: dvdd-1v8 {
compatible = "regulator-fixed";
regulator-name = "dvdd-1v8";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
vin-supply = <&vcc_18>;
};
dvdd_3v3: dvdd-3v3 {
compatible = "regulator-fixed";
regulator-name = "dvdd-3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_cvbs_33>;
};
wireless-bluetooth {
compatible = "bluetooth-platdata";
keep_bt_power_on;
BT,power_gpio = <&gpio3 21 GPIO_ACTIVE_HIGH>;
BT,wake_gpio = <&gpio3 26 GPIO_ACTIVE_HIGH>;
BT,wake_host_irq = <&gpio3 22 GPIO_ACTIVE_HIGH>;
/* TODO: disabled because it doesn't work */
status = "disabled";
};
wireless-wlan {
compatible = "wlan-platdata";
pinctrl-names = "default";
pinctrl-0 = <&wifi_en>;
wifi_chip_type = "rtl8723ds";
sdio_vref = <1800>; /*1800mv or 3300mv*/
WIFI,host_wake_irq = <&gpio3 23 GPIO_ACTIVE_HIGH>;
/* WIFI power controller by sdio pwrseq */
status = "okay";
};
panel {
compatible = "samsung,lsl070nl01", "simple-panel";
power-supply = <&vcc33_lcd>;
backlight = <&backlight>;
/*
* MEDIA_BUS_FMT_RGB666_1X7X3_SPWG - "jeida-18"
* MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA - "jeida-24"
* MEDIA_BUS_FMT_RGB888_1X7X4_SPWG - "vesa-24"
*/
bus-format = <MEDIA_BUS_FMT_RGB888_1X7X4_SPWG>;
display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <48000000>;
hactive = <1024>;
vactive = <600>;
hback-porch = <90>;
hfront-porch = <90>;
vback-porch = <10>;
vfront-porch = <10>;
hsync-len = <90>;
vsync-len = <10>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
port {
panel_in_lvds: endpoint {
remote-endpoint = <&lvds_out_panel>;
};
};
};
};
&cif_new {
status = "okay";
port {
cif_in: endpoint {
remote-endpoint = <&adv7181_out>;
vsync-active = <0>;
hsync-active = <1>;
};
};
};
&codec {
#sound-dai-cells = <0>;
hp-ctl-gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
spk-ctl-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
spk-mute-delay = <200>;
hp-mute-delay = <100>;
spk_volume = <25>;
hp_volume = <25>;
capture_volume = <26>;
gpio_debug = <1>;
codec_hp_det = <1>;
status = "disabled";
};
&cpu0 {
cpu-supply = <&vdd_arm>;
};
&dfi {
status = "okay";
};
&dmc {
center-supply = <&vdd_log>;
status = "okay";
};
&emmc {
clock-frequency = <50000000>;
clock-freq-min-max = <400000 50000000>;
supports-highspeed;
no-sdio;
no-sd;
bootpart-no-access;
supports-DDR_MODE;
ignore-pm-notify;
keep-power-in-suspend;
//poll-hw-reset
bus-width = <8>;
num-slots = <1>;
pinctrl-names = "default";
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
status = "okay";
};
&display_subsystem {
status = "okay";
};
&lvds {
status = "okay";
ports {
port@1 {
reg = <1>;
lvds_out_panel: endpoint {
remote-endpoint = <&panel_in_lvds>;
};
};
};
};
&gpu {
status = "okay";
mali-supply = <&vdd_log>;
};
&hevc {
status = "okay";
};
&hevc_mmu {
status = "okay";
};
&hdmi {
status = "okay";
};
&i2c0 {
status = "okay";
clock-frequency = <400000>;
rk816: pmic@1a {
compatible = "rockchip,rk816";
status = "okay";
reg = <0x1a>;
clock-output-names = "xin32k", "rk816-clkout2";
interrupt-parent = <&gpio1>;
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&pmic_int_l>;
rockchip,system-power-controller;
wakeup-source;
#clock-cells = <1>;
gpio-controller;
#gpio-cells = <2>;
extcon = <&u2phy>;
vcc1-supply = <&vcc_sys>;
vcc2-supply = <&vcc_sys>;
vcc3-supply = <&vcc_sys>;
vcc4-supply = <&vcc_sys>;
vcc5-supply = <&vcc_io>;
vcc6-supply = <&vcc_sys>;
gpio {
status = "okay";
};
pwrkey {
status = "okay";
};
rtc {
status = "okay";
};
regulators {
vdd_arm: DCDC_REG1{
regulator-name= "vdd-arm";
regulator-min-microvolt = <750000>;
regulator-max-microvolt = <1500000>;
regulator-ramp-delay = <6001>;
regulator-always-on;
regulator-boot-on;
regulator-state-mem {
regulator-on-in-suspend;
regulator-suspend-microvolt = <900000>;
};
};
vdd_log: DCDC_REG2 {
regulator-name= "vdd-logic";
regulator-min-microvolt = <750000>;
regulator-max-microvolt = <1500000>;
regulator-ramp-delay = <6001>;
regulator-always-on;
regulator-boot-on;
regulator-state-mem {
regulator-on-in-suspend;
regulator-suspend-microvolt = <1000000>;
};
};
vcc_ddr: DCDC_REG3 {
regulator-name = "vcc-ddr";
regulator-always-on;
regulator-boot-on;
};
pmic_vcc_io: DCDC_REG4 {
regulator-name = "pmic-vcc-io";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
regulator-boot-on;
regulator-state-mem {
regulator-on-in-suspend;
regulator-suspend-microvolt = <3000000>;
};
};
pmic_vcc18_codec: LDO_REG1 {
regulator-name = "pmic-vcc18-codec";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
regulator-boot-on;
regulator-state-mem {
regulator-off-in-suspend;
};
};
pmic_vcc_18: LDO_REG2 {
regulator-name = "pmic-vcc_18";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
regulator-boot-on;
regulator-state-mem {
regulator-off-in-suspend;
};
};
pmic_vdd_11: LDO_REG3 {
regulator-name = "pmic-vdd-11";
regulator-min-microvolt = <1100000>;
regulator-max-microvolt = <1100000>;
regulator-always-on;
regulator-boot-on;
regulator-state-mem {
regulator-on-in-suspend;
regulator-suspend-microvolt = <1100000>;
};
};
pmic_vcc_cvbs_33: LDO_REG4 {
regulator-name= "pmic-vcc-cvbs-33";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-state-mem {
regulator-off-in-suspend;
};
};
pmic_vcca_33: LDO_REG5 {
regulator-name= "pmic-vcca-33";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
regulator-boot-on;
regulator-state-mem {
regulator-off-in-suspend;
};
};
pmic_vcc_tp_33: LDO_REG6 {
regulator-name= "pmic-vcc-tp-33";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-state-mem {
regulator-on-in-suspend;
regulator-suspend-microvolt = <3300000>;
};
};
};
};
};
&i2c2 {
status = "okay";
clock-frequency = <400000>;
touchscreen: ts@14 {
compatible = "goodix,gt9xx";
reg = <0x14>;
touch-gpio = <&gpio1 8 IRQ_TYPE_LEVEL_LOW>;
reset-gpio = <&gpio0 25 GPIO_ACTIVE_LOW>;
//power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>;
max-x = <1024>;
max-y = <600>;
tp-size = <910>;
tp-supply = <&pmic_vcc_tp_33>;
status = "okay";
};
camera: adv7181@21 {
compatible = "adi,adv7181";
reg = <0x21>;
pinctrl-names = "default";
pinctrl-0 = <&cif_rst>;
dvdd-supply = <&dvdd_1v8>;
dvddio-supply = <&dvdd_3v3>;
reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
status = "okay";
port {
adv7181_out: endpoint {
remote-endpoint = <&cif_in>;
};
};
};
es8396: es8396@11 {
status = "okay";
#sound-dai-cells = <0>;
compatible = "es8396";
reg = <0x11>;
clock-names = "mclk";
clocks = <&cru SCLK_I2S_OUT>;
spk-con-gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
lineout-con-gpio = <&gpio3 20 GPIO_ACTIVE_HIGH>;
};
};
&i2s_2ch {
pinctrl-names = "default";
pinctrl-0 = <&i2s_bus>;
#sound-dai-cells = <0>;
status = "okay";
};
&i2s_8ch {
#sound-dai-cells = <0>;
status = "disabled";
};
&pwm0 {
status = "okay";
};
&saradc {
status = "okay";
vref-supply = <&vcc_io>;
};
&sdio {
cap-mmc-highspeed;
cap-sd-highspeed;
cap-sdio-irq;
clock-frequency = <37500000>;
clock-freq-min-max = <200000 37500000>;
ignore-pm-notify;
keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
no-sd;
no-mmc;
status = "okay";
};
&sdmmc {
clock-frequency = <37500000>;
clock-freq-min-max = <400000 37500000>;
supports-highspeed;
no-sdio;
no-mmc;
broken-cd;
card-detect-delay = <200>;
ignore-pm-notify;
keep-power-in-suspend;
vmmc-supply = <&vcc_sd>;
cd-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
status = "okay";
};
&u2phy {
status = "okay";
u2phy_otg: otg-port {
status = "okay";
};
u2phy_host: host-port {
status = "okay";
};
};
&uart0 {
status = "okay";
};
&uart1 {
/* disable uart1 explicitly since fiq-debugger is on uart1 */
status = "disabled";
};
&usb_host_ehci {
status = "okay";
};
&usb_host_ohci {
status = "okay";
};
&usb_otg {
status = "okay";
};
&vop {
status = "okay";
};
&vop_mmu {
status = "okay";
};
&vpu {
status = "okay";
};
&vpu_combo {
status = "okay";
};
&vpu_mmu {
status = "okay";
};
&pinctrl {
camera {
cif_rst: cif-rst {
rockchip,pins = <3 RK_PB3 RK_FUNC_GPIO &pcfg_pull_default>;
};
};
pmic {
pmic_int_l: pmic-int-l {
rockchip,pins = <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_default>;
};
};
sdmmc {
sdmmc_pwr: sdmmc-pwr {
rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_default>;
};
};
lcdc {
lcdc_pwr_en: lcdc-pwr-en {
rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_default>;
};
};
wifi {
wifi_en: wifi-en {
rockchip,pins = <3 RK_PD3 RK_FUNC_GPIO &pcfg_output_high>;
};
wifi_pwr: wifi-pwr {
rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_default>;
};
};
};