Support Orange Pi 4 LTS
This commit is contained in:
parent
4081224e7d
commit
c598125738
|
|
@ -4,5 +4,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-orangepi-5-pro.dtb
|
|||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-orangepi-5-plus.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-orangepi-cm4.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-orangepi-3b.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-orangepi-4-lts.dtb
|
||||
|
||||
subdir-y := $(dts-dirs) overlay
|
||||
|
|
|
|||
|
|
@ -96,11 +96,20 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
|
|||
rk356x-pwm15-m1.dtbo \
|
||||
rk356x-pwm7.dtbo \
|
||||
rk356x-ov5647-c1.dtbo \
|
||||
rk356x-ov5647-c2.dtbo
|
||||
rk356x-ov5647-c2.dtbo \
|
||||
rk3399-lcd1.dtbo \
|
||||
rk3399-lcd2.dtbo \
|
||||
rk3399-camera1.dtbo \
|
||||
rk3399-camera2.dtbo \
|
||||
rk3399-i2c3.dtbo \
|
||||
rk3399-i2c8.dtbo \
|
||||
rk3399-uart4.dtbo \
|
||||
rk3399-spi1-spidev.dtbo
|
||||
|
||||
scr-$(CONFIG_ARCH_ROCKCHIP) += \
|
||||
rk3588-fixup.scr \
|
||||
rk356x-fixup.scr
|
||||
rk356x-fixup.scr \
|
||||
rk3399-fixup.scr
|
||||
|
||||
dtbotxt-$(CONFIG_ARCH_ROCKCHIP) += \
|
||||
README.rockchip-overlays
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&ov13850>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&vm149c>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&mipi_dphy_rx0>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&rkisp1_0>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@4 {
|
||||
target = <&isp0_mmu>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&ov13850_1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&vm149c_1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&mipi_dphy_tx1rx1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&rkisp1_1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@4 {
|
||||
target = <&isp1_mmu>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&i2c3>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&i2c8>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&dsi>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&afj101_panel>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <>9xx_0>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&dsi_in_vopb>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@4 {
|
||||
target = <&hdmi>;
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@5 {
|
||||
target = <&hdmisound>;
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@6 {
|
||||
target = <&cdn_dp>;
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&dsi1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&afj101_panel1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <>9xx_1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&dsi_in_vopl>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@4 {
|
||||
target = <&hdmi>;
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@5 {
|
||||
target = <&hdmisound>;
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@6 {
|
||||
target = <&cdn_dp>;
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&spi1>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
spidev@0 {
|
||||
compatible = "rockchip,spidev";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <10000000>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&uart4>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -16,9 +16,9 @@
|
|||
mmc2 = &sdio0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "earlycon=uart8250,mmio32,0xff1a0000 console=ttyFIQ0 rw root=PARTUUID=614e0000-0000 rootfstype=ext4 rootwait coherent_pool=1m";
|
||||
};
|
||||
//chosen {
|
||||
// bootargs = "earlycon=uart8250,mmio32,0xff1a0000 console=ttyFIQ0 rw root=PARTUUID=614e0000-0000 rootfstype=ext4 rootwait coherent_pool=1m";
|
||||
//};
|
||||
|
||||
reserved-memory {
|
||||
#address-cells = <2>;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,983 @@
|
|||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include "dt-bindings/usb/pd.h"
|
||||
#include "dt-bindings/pwm/pwm.h"
|
||||
#include "dt-bindings/input/input.h"
|
||||
#include "rk3399.dtsi"
|
||||
#include "rk3399-opp.dtsi"
|
||||
#include "rk3399-linux.dtsi"
|
||||
#include "rk3399-orangepi-lcd.dtsi"
|
||||
#include "rk3399-orangepi-camera.dtsi"
|
||||
|
||||
/ {
|
||||
model = "OrangePi 4 LTS";
|
||||
compatible = "rockchip,rk3399-orangepi-4-lts", "rockchip,rk3399";
|
||||
|
||||
cpuinfo {
|
||||
compatible = "rockchip,cpuinfo";
|
||||
nvmem-cells = <&cpu_id>;
|
||||
nvmem-cell-names = "id";
|
||||
};
|
||||
|
||||
vcc3v3_pcie: vcc3v3-pcie-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pcie_drv>;
|
||||
regulator-name = "vcc3v3_pcie";
|
||||
};
|
||||
|
||||
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 = <100000>;
|
||||
};
|
||||
|
||||
button-down {
|
||||
label = "Volume Down";
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
press-threshold-microvolt = <300000>;
|
||||
};
|
||||
};
|
||||
|
||||
keys: gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
autorepeat;
|
||||
|
||||
power {
|
||||
debounce-interval = <100>;
|
||||
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
|
||||
label = "GPIO Power";
|
||||
linux,code = <KEY_POWER>;
|
||||
linux,input-type = <1>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pwr_btn>;
|
||||
wakeup-source;
|
||||
};
|
||||
};
|
||||
|
||||
clkin_gmac: external-gmac-clock {
|
||||
compatible = "fixed-clock";
|
||||
clock-frequency = <125000000>;
|
||||
clock-output-names = "clkin_gmac";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
/* switched by pmic_sleep */
|
||||
vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc1v8_s3";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vcc_1v8>;
|
||||
};
|
||||
|
||||
vcc3v0_sd: vcc3v0-sd {
|
||||
compatible = "regulator-fixed";
|
||||
enable-active-high;
|
||||
gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sdmmc0_pwr_h>;
|
||||
regulator-always-on;
|
||||
regulator-max-microvolt = <3000000>;
|
||||
regulator-min-microvolt = <3000000>;
|
||||
regulator-name = "vcc3v0_sd";
|
||||
vin-supply = <&vcc3v3_sys>;
|
||||
};
|
||||
|
||||
vcc3v3_sys: vcc3v3-sys {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc3v3_sys";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
vin-supply = <&vcc_sys>;
|
||||
};
|
||||
|
||||
vcc5v0_typec0: vcc5v0-typec0-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
enable-active-high;
|
||||
gpio = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&vcc5v0_typec0_en>;
|
||||
regulator-name = "vcc5v0_typec0";
|
||||
vin-supply = <&vcc_sys>;
|
||||
};
|
||||
|
||||
usb_vbus: usb-vbus {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "usb_vbus";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
vin-supply = <&vcc5v0_sys>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-on-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
usb3_vbus: usb3-vbus {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "usb3_vbus";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
vin-supply = <&vcc5v0_sys>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-on-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vcc_sys: vcc-sys {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_sys";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
};
|
||||
|
||||
vcc5v0_sys: vcc5v0-sys {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc5v0_sys";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
vin-supply = <&vcc_sys>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-on-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vdd_log: vdd-log {
|
||||
compatible = "pwm-regulator";
|
||||
pwms = <&pwm2 0 25000 1>;
|
||||
regulator-name = "vdd_log";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <800000>;
|
||||
regulator-max-microvolt = <1400000>;
|
||||
vin-supply = <&vcc_sys>;
|
||||
};
|
||||
|
||||
pwm_bl: backlight {
|
||||
status = "okay";
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm0 0 25000 0>;
|
||||
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 = <200>;
|
||||
};
|
||||
|
||||
leds: gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 =<&leds_gpio>;
|
||||
|
||||
led@1 {
|
||||
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
|
||||
label = "status_led";
|
||||
linux,default-trigger = "heartbeat";
|
||||
linux,default-trigger-delay-ms = <0>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
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 = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; /* GPIO0_B2 */
|
||||
};
|
||||
|
||||
sprd-wlan {
|
||||
compatible = "sprd,uwe5622-wifi";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
unisoc_uwe_bsp: uwe-bsp {
|
||||
compatible = "unisoc,uwe_bsp";
|
||||
wl-reg-on = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
|
||||
bt-reg-on = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
|
||||
wl-wake-host-gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
|
||||
bt-wake-host-gpio = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
sdio-ext-int-gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
|
||||
//unisoc,btwf-file-name = "/lib/firmware/uwe5621ds/wcnmodem.bin";
|
||||
unisoc,btwf-file-name = "/lib/firmware/wcnmodem.bin";
|
||||
//adma-tx;
|
||||
//adma-rx;
|
||||
data-irq;
|
||||
blksz-512;
|
||||
keep-power-on;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
sprd-mtty {
|
||||
compatible = "sprd,mtty";
|
||||
sprd,name = "ttyBT";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
es8316-sound {
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "i2s";
|
||||
simple-audio-card,name = "rockchip,es8316-codec";
|
||||
simple-audio-card,mclk-fs = <256>;
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&i2s0>;
|
||||
};
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&es8316>;
|
||||
};
|
||||
};
|
||||
|
||||
hdmisound: hdmisound {
|
||||
status = "okay";
|
||||
compatible = "rockchip,hdmi";
|
||||
rockchip,mclk-fs = <128>;
|
||||
rockchip,card-name = "rockchip-hdmi";
|
||||
rockchip,cpu = <&i2s2>;
|
||||
rockchip,codec = <&hdmi>;
|
||||
rockchip,jack-det;
|
||||
};
|
||||
};
|
||||
|
||||
&cpu_l0 {
|
||||
cpu-supply = <&vdd_cpu_l>;
|
||||
};
|
||||
|
||||
&cpu_l1 {
|
||||
cpu-supply = <&vdd_cpu_l>;
|
||||
};
|
||||
|
||||
&cpu_l2 {
|
||||
cpu-supply = <&vdd_cpu_l>;
|
||||
};
|
||||
|
||||
&cpu_l3 {
|
||||
cpu-supply = <&vdd_cpu_l>;
|
||||
};
|
||||
|
||||
&cpu_b0 {
|
||||
cpu-supply = <&vdd_cpu_b>;
|
||||
};
|
||||
|
||||
&cpu_b1 {
|
||||
cpu-supply = <&vdd_cpu_b>;
|
||||
};
|
||||
|
||||
&emmc_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gmac {
|
||||
assigned-clocks = <&cru SCLK_RMII_SRC>;
|
||||
assigned-clock-parents = <&clkin_gmac>;
|
||||
clock_in_out = "input";
|
||||
phy-supply = <&vcc_lan>;
|
||||
phy-mode = "rgmii";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&rgmii_pins>;
|
||||
snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
|
||||
snps,reset-active-low;
|
||||
snps,reset-delays-us = <0 10000 50000>;
|
||||
tx_delay = <0x28>;
|
||||
rx_delay = <0x11>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpu {
|
||||
mali-supply = <&vdd_gpu>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&cdn_dp {
|
||||
status = "disabled";
|
||||
phys = <&tcphy0_dp>;
|
||||
};
|
||||
|
||||
&hdmi {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&hdmi_cec>;
|
||||
ddc-i2c-bus = <&i2c7>;
|
||||
};
|
||||
|
||||
&i2c7_xfer {
|
||||
rockchip,pins =
|
||||
<2 RK_PB0 2 &pcfg_pull_up>,
|
||||
<2 RK_PA7 2 &pcfg_pull_up>;
|
||||
};
|
||||
|
||||
&i2c7 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
clock-frequency = <400000>;
|
||||
i2c-scl-rising-time-ns = <168>;
|
||||
i2c-scl-falling-time-ns = <4>;
|
||||
status = "okay";
|
||||
|
||||
rk808: pmic@1b {
|
||||
compatible = "rockchip,rk808";
|
||||
reg = <0x1b>;
|
||||
interrupt-parent = <&gpio2>;
|
||||
interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>;
|
||||
#clock-cells = <1>;
|
||||
clock-output-names = "xin32k", "rk808-clkout2";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pmic_int_l>;
|
||||
rockchip,system-power-controller;
|
||||
wakeup-source;
|
||||
|
||||
vcc1-supply = <&vcc_sys>;
|
||||
vcc2-supply = <&vcc_sys>;
|
||||
vcc3-supply = <&vcc_sys>;
|
||||
vcc4-supply = <&vcc_sys>;
|
||||
vcc6-supply = <&vcc_sys>;
|
||||
vcc7-supply = <&vcc_sys>;
|
||||
vcc8-supply = <&vcc3v3_sys>;
|
||||
vcc9-supply = <&vcc_sys>;
|
||||
vcc10-supply = <&vcc_sys>;
|
||||
vcc11-supply = <&vcc_sys>;
|
||||
vcc12-supply = <&vcc3v3_sys>;
|
||||
vddio-supply = <&vcc1v8_pmu>;
|
||||
|
||||
regulators {
|
||||
vdd_center: DCDC_REG1 {
|
||||
regulator-name = "vdd_center";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <750000>;
|
||||
regulator-max-microvolt = <1350000>;
|
||||
regulator-ramp-delay = <6001>;
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vdd_cpu_l: DCDC_REG2 {
|
||||
regulator-name = "vdd_cpu_l";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <750000>;
|
||||
regulator-max-microvolt = <1350000>;
|
||||
regulator-ramp-delay = <6001>;
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vcc_ddr: DCDC_REG3 {
|
||||
regulator-name = "vcc_ddr";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-state-mem {
|
||||
regulator-on-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vcc_1v8: DCDC_REG4 {
|
||||
regulator-name = "vcc_1v8";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-state-mem {
|
||||
regulator-on-in-suspend;
|
||||
regulator-suspend-microvolt = <1800000>;
|
||||
};
|
||||
};
|
||||
|
||||
vcc1v8_dvp: LDO_REG1 {
|
||||
regulator-name = "vcc1v8_dvp";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vcc3v0_tp: LDO_REG2 {
|
||||
regulator-name = "vcc3v0_tp";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3000000>;
|
||||
regulator-max-microvolt = <3000000>;
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vcc1v8_pmu: LDO_REG3 {
|
||||
regulator-name = "vcc1v8_pmu";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-state-mem {
|
||||
regulator-on-in-suspend;
|
||||
regulator-suspend-microvolt = <1800000>;
|
||||
};
|
||||
};
|
||||
|
||||
vcc_sdio: LDO_REG4 {
|
||||
regulator-name = "vcc_sdio";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-state-mem {
|
||||
regulator-on-in-suspend;
|
||||
regulator-suspend-microvolt = <3000000>;
|
||||
};
|
||||
};
|
||||
|
||||
vcca3v0_codec: LDO_REG5 {
|
||||
regulator-name = "vcca3v0_codec";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3000000>;
|
||||
regulator-max-microvolt = <3000000>;
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vcc_1v5: LDO_REG6 {
|
||||
regulator-name = "vcc_1v5";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1500000>;
|
||||
regulator-max-microvolt = <1500000>;
|
||||
regulator-state-mem {
|
||||
regulator-on-in-suspend;
|
||||
regulator-suspend-microvolt = <1500000>;
|
||||
};
|
||||
};
|
||||
|
||||
vcca1v8_codec: LDO_REG7 {
|
||||
regulator-name = "vcca1v8_codec";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vcc_3v0: LDO_REG8 {
|
||||
regulator-name = "vcc_3v0";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3000000>;
|
||||
regulator-max-microvolt = <3000000>;
|
||||
regulator-state-mem {
|
||||
regulator-on-in-suspend;
|
||||
regulator-suspend-microvolt = <3000000>;
|
||||
};
|
||||
};
|
||||
|
||||
vcc3v3_s3: vcc_lan: SWITCH_REG1 {
|
||||
regulator-name = "vcc3v3_s3";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vcc3v3_s0: SWITCH_REG2 {
|
||||
regulator-name = "vcc3v3_s0";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
vdd_cpu_b: regulator@40 {
|
||||
compatible = "silergy,syr827";
|
||||
reg = <0x40>;
|
||||
fcs,suspend-voltage-selector = <1>;
|
||||
regulator-name = "vdd_cpu_b";
|
||||
regulator-min-microvolt = <712500>;
|
||||
regulator-max-microvolt = <1500000>;
|
||||
regulator-ramp-delay = <1000>;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
vin-supply = <&vcc_sys>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vdd_gpu: regulator@41 {
|
||||
compatible = "silergy,syr828";
|
||||
reg = <0x41>;
|
||||
fcs,suspend-voltage-selector = <1>;
|
||||
regulator-name = "vdd_gpu";
|
||||
regulator-min-microvolt = <712500>;
|
||||
regulator-max-microvolt = <1500000>;
|
||||
regulator-ramp-delay = <1000>;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
vin-supply = <&vcc_sys>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
status = "okay";
|
||||
i2c-scl-rising-time-ns = <475>;
|
||||
i2c-scl-falling-time-ns = <26>;
|
||||
|
||||
usbc0: fusb302@22 {
|
||||
compatible = "fcs,fusb302";
|
||||
reg = <0x22>;
|
||||
interrupt-parent = <&gpio1>;
|
||||
interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&usbc0_int>;
|
||||
vbus-supply = <&vcc5v0_typec0>;
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
usbc0_role_sw: endpoint@0 {
|
||||
remote-endpoint = <&dwc3_0_role_switch>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
usb_con: connector {
|
||||
compatible = "usb-c-connector";
|
||||
label = "USB-C";
|
||||
data-role = "dual";
|
||||
power-role = "dual";
|
||||
try-power-role = "sink";
|
||||
op-sink-microwatt = <1000000>;
|
||||
sink-pdos =
|
||||
<PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>;
|
||||
source-pdos =
|
||||
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
|
||||
|
||||
displayport = <&cdn_dp>;
|
||||
|
||||
altmodes {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
altmode@0 {
|
||||
reg = <0>;
|
||||
svid = <0xff01>;
|
||||
vdo = <0xffffffff>;
|
||||
};
|
||||
};
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
usbc0_orien_sw: endpoint {
|
||||
remote-endpoint = <&tcphy0_orientation_switch>;
|
||||
};
|
||||
};
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
dp_mode_sw: endpoint {
|
||||
remote-endpoint = <&tcphy_dp_altmode_switch>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2s0 {
|
||||
status = "okay";
|
||||
rockchip,i2s-broken-burst-len;
|
||||
rockchip,playback-channels = <8>;
|
||||
rockchip,capture-channels = <8>;
|
||||
#sound-dai-cells = <0>;
|
||||
};
|
||||
|
||||
&i2s2 {
|
||||
status = "okay";
|
||||
#sound-dai-cells = <0>;
|
||||
};
|
||||
|
||||
&io_domains {
|
||||
status = "okay";
|
||||
|
||||
bt656-supply = <&vcc_1v8>;
|
||||
audio-supply = <&vcca1v8_codec>;
|
||||
sdmmc-supply = <&vcc_sdio>;
|
||||
gpio1830-supply = <&vcc_3v0>;
|
||||
};
|
||||
|
||||
&pmu_io_domains {
|
||||
pmu1830-supply = <&vcc_3v0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
sdio-pwrseq {
|
||||
wifi_enable_h: wifi-enable-h {
|
||||
rockchip,pins = <0 10 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio-leds {
|
||||
leds_gpio: leds-gpio {
|
||||
rockchip,pins = <0 11 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
pcie {
|
||||
pcie_drv: pcie-drv {
|
||||
rockchip,pins =
|
||||
<1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
buttons {
|
||||
pwr_btn: pwr-btn {
|
||||
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
};
|
||||
};
|
||||
|
||||
pmic {
|
||||
pmic_int_l: pmic-int-l {
|
||||
rockchip,pins =
|
||||
<2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
};
|
||||
|
||||
vsel1_pin: vsel1-pin {
|
||||
rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
|
||||
};
|
||||
|
||||
vsel2_pin: vsel2-pin {
|
||||
rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
|
||||
};
|
||||
};
|
||||
|
||||
sd {
|
||||
sdmmc0_pwr_h: sdmmc0-pwr-h {
|
||||
rockchip,pins =
|
||||
<0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
usb-typec {
|
||||
usbc0_int: usbc0-int {
|
||||
rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
};
|
||||
|
||||
vcc5v0_typec0_en: vcc5v0-typec0-en {
|
||||
rockchip,pins =
|
||||
<2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pwm0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm2 {
|
||||
status = "okay";
|
||||
pinctrl-names = "active";
|
||||
pinctrl-0 = <&pwm2_pin_pull_down>;
|
||||
};
|
||||
|
||||
&saradc {
|
||||
vref-supply = <&vcca1v8_s3>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sdio0 {
|
||||
clock-frequency = <150000000>;
|
||||
clock-freq-min-max = <200000 50000000>;
|
||||
supports-sdio;
|
||||
bus-width = <4>;
|
||||
disable-wp;
|
||||
cap-sd-highspeed;
|
||||
cap-sdio-irq;
|
||||
keep-power-in-suspend;
|
||||
mmc-pwrseq = <&sdio_pwrseq>;
|
||||
non-removable;
|
||||
num-slots = <1>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
|
||||
sd-uhs-sdr104;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sdhci {
|
||||
bus-width = <8>;
|
||||
mmc-hs400-1_8v;
|
||||
mmc-hs400-enhanced-strobe;
|
||||
non-removable;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sdmmc {
|
||||
broken-cd;
|
||||
bus-width = <4>;
|
||||
cap-mmc-highspeed;
|
||||
cap-sd-highspeed;
|
||||
clock-frequency = <150000000>;
|
||||
disable-wp;
|
||||
max-frequency = <150000000>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
|
||||
vmmc-supply = <&vcc3v0_sd>;
|
||||
vqmmc-supply = <&vcc_sdio>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&tcphy0 {
|
||||
status = "okay";
|
||||
svid = <0xff01>;
|
||||
orientation-switch;
|
||||
|
||||
port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
tcphy0_orientation_switch: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&usbc0_orien_sw>;
|
||||
};
|
||||
tcphy_dp_altmode_switch: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&dp_mode_sw>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&tcphy1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&tsadc {
|
||||
/* tshut mode 0:CRU 1:GPIO */
|
||||
rockchip,hw-tshut-mode = <1>;
|
||||
/* tshut polarity 0:LOW 1:HIGH */
|
||||
rockchip,hw-tshut-polarity = <1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&u2phy0 {
|
||||
status = "okay";
|
||||
|
||||
u2phy0_otg: otg-port {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
u2phy0_host: host-port {
|
||||
phy-supply = <&usb_vbus>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&u2phy1 {
|
||||
status = "okay";
|
||||
|
||||
u2phy1_otg: otg-port {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
u2phy1_host: host-port {
|
||||
phy-supply = <&usb3_vbus>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart0_xfer &uart0_cts>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_host0_ehci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_host0_ohci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_host1_ehci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_host1_ohci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbdrd3_0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbdrd_dwc3_0 {
|
||||
status = "okay";
|
||||
dr_mode = "otg";
|
||||
usb-role-switch;
|
||||
port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
dwc3_0_role_switch: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&usbc0_role_sw>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&usbdrd3_1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbdrd_dwc3_1 {
|
||||
status = "okay";
|
||||
dr_mode = "host";
|
||||
};
|
||||
|
||||
&vopb {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&vopb_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&vopl {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&vopl_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&hdmi_in_vopb {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dp_in_vopl {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie_phy {
|
||||
status = "okay";
|
||||
assigned-clocks = <&cru SCLK_PCIEPHY_REF>;
|
||||
assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>;
|
||||
assigned-clock-rates = <100000000>;
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
status = "okay";
|
||||
ep-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
|
||||
num-lanes = <4>;
|
||||
max-link-speed = <1>;
|
||||
};
|
||||
|
||||
&display_subsystem {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dp_in_vopl {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
|
||||
es8316: es8316@11 {
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "everest,es8316";
|
||||
reg = <0x11>;
|
||||
clocks = <&cru SCLK_I2S_8CH_OUT>;
|
||||
clock-names = "mclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s_8ch_mclk>;
|
||||
hp-det-gpio = <&gpio4 RK_PD4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,178 @@
|
|||
&i2c1 {
|
||||
status = "okay";
|
||||
|
||||
vm149c_1: vm149c@0c {
|
||||
compatible = "silicon touch,vm149c";
|
||||
status = "disabled";
|
||||
reg = <0x0c>;
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
};
|
||||
|
||||
ov13850_1: ov13850@10 {
|
||||
compatible = "ovti,ov13850";
|
||||
status = "disabled";
|
||||
reg = <0x10>;
|
||||
clocks = <&cru SCLK_CIF_OUT>;
|
||||
clock-names = "xvclk";
|
||||
|
||||
power-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
|
||||
pwdn-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "rockchip,camera_default";
|
||||
pinctrl-0 = <&cif_clkout>;
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "CMK-CT0116";
|
||||
rockchip,camera-module-lens-name = "Largan-50013A1";
|
||||
lens-focus = <&vm149c_1>;
|
||||
|
||||
port {
|
||||
ucam_out1: endpoint {
|
||||
remote-endpoint = <&mipi_in_ucam1>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
status = "okay";
|
||||
|
||||
vm149c: vm149c@0c {
|
||||
compatible = "silicon touch,vm149c";
|
||||
status = "disabled";
|
||||
reg = <0x0c>;
|
||||
rockchip,vcm-start-current = <0>;
|
||||
rockchip,vcm-rated-current = <100>;
|
||||
rockchip,vcm-step-mode = <4>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
};
|
||||
|
||||
ov13850: ov13850@10 {
|
||||
compatible = "ovti,ov13850";
|
||||
status = "disabled";
|
||||
reg = <0x10>;
|
||||
clocks = <&cru SCLK_CIF_OUT>;
|
||||
clock-names = "xvclk";
|
||||
|
||||
power-gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
|
||||
pwdn-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "rockchip,camera_default";
|
||||
pinctrl-0 = <&cif_clkout>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "CMK-CT0116";
|
||||
rockchip,camera-module-lens-name = "Largan-50013A1";
|
||||
lens-focus = <&vm149c>;
|
||||
|
||||
port {
|
||||
ucam_out0: endpoint {
|
||||
remote-endpoint = <&mipi_in_ucam0>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mipi_dphy_rx0 {
|
||||
status = "disabled";
|
||||
|
||||
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 = <&ucam_out0>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
dphy_rx0_out: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&isp0_mipi_in>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mipi_dphy_tx1rx1 {
|
||||
status = "disabled";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi_in_ucam1: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&ucam_out1>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
dphy_tx1rx1_out: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&isp1_mipi_in>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkisp1_0 {
|
||||
status = "disabled";
|
||||
|
||||
port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
isp0_mipi_in: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&dphy_rx0_out>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkisp1_1 {
|
||||
status = "disabled";
|
||||
|
||||
port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
isp1_mipi_in: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&dphy_tx1rx1_out>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&isp0_mmu {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&isp1_mmu {
|
||||
status = "disabled";
|
||||
};
|
||||
|
|
@ -0,0 +1,620 @@
|
|||
&pinctrl {
|
||||
lcd {
|
||||
lcd0_pin: lcd0-pin {
|
||||
rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,
|
||||
<1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
|
||||
lcd1_pin: lcd1-pin {
|
||||
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
|
||||
<4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&dsi {
|
||||
status = "disabled";
|
||||
|
||||
afj101_panel: afj101-panel {
|
||||
compatible = "simple-panel-dsi";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
backlight = <&pwm_bl>;
|
||||
enable-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>;
|
||||
|
||||
reset-delay-ms = <5>;
|
||||
init-delay-ms = <200>;
|
||||
prepare-delay-ms = <15>;
|
||||
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM)>;
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
bus-format = <0x100a>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
panel-init-sequence = [
|
||||
39 00 04 FF 98 81 03
|
||||
|
||||
39 00 02 01 00
|
||||
39 00 02 02 00
|
||||
39 00 02 03 53
|
||||
39 00 02 04 D3
|
||||
39 00 02 05 00
|
||||
39 00 02 06 0D
|
||||
39 00 02 07 08
|
||||
39 00 02 08 00
|
||||
39 00 02 09 00
|
||||
39 00 02 0a 00
|
||||
39 00 02 0b 00
|
||||
39 00 02 0c 00
|
||||
39 00 02 0d 00
|
||||
39 00 02 0e 00
|
||||
39 00 02 0f 28
|
||||
39 00 02 10 28
|
||||
39 00 02 11 00
|
||||
39 00 02 12 00
|
||||
39 00 02 13 00
|
||||
39 00 02 14 00
|
||||
39 00 02 15 00
|
||||
39 00 02 16 00
|
||||
39 00 02 17 00
|
||||
39 00 02 18 00
|
||||
39 00 02 19 00
|
||||
39 00 02 1a 00
|
||||
39 00 02 1b 00
|
||||
39 00 02 1c 00
|
||||
39 00 02 1d 00
|
||||
39 00 02 1e 40
|
||||
39 00 02 1f 80
|
||||
39 00 02 20 06
|
||||
39 00 02 21 01
|
||||
39 00 02 22 00
|
||||
39 00 02 23 00
|
||||
39 00 02 24 00
|
||||
39 00 02 25 00
|
||||
39 00 02 26 00
|
||||
39 00 02 27 00
|
||||
39 00 02 28 33
|
||||
39 00 02 29 33
|
||||
39 00 02 2a 00
|
||||
39 00 02 2b 00
|
||||
39 00 02 2c 00
|
||||
39 00 02 2d 00
|
||||
39 00 02 2e 00
|
||||
39 00 02 2f 00
|
||||
39 00 02 30 00
|
||||
39 00 02 31 00
|
||||
39 00 02 32 00
|
||||
39 00 02 33 00
|
||||
39 00 02 34 03
|
||||
39 00 02 35 00
|
||||
39 00 02 36 00
|
||||
39 00 02 37 00
|
||||
39 00 02 38 96
|
||||
39 00 02 39 00
|
||||
39 00 02 3a 00
|
||||
39 00 02 3b 00
|
||||
39 00 02 3c 00
|
||||
39 00 02 3d 00
|
||||
39 00 02 3e 00
|
||||
39 00 02 3f 00
|
||||
39 00 02 40 00
|
||||
39 00 02 41 00
|
||||
39 00 02 42 00
|
||||
39 00 02 43 00
|
||||
39 00 02 44 00
|
||||
|
||||
39 00 02 50 00
|
||||
39 00 02 51 23
|
||||
39 00 02 52 45
|
||||
39 00 02 53 67
|
||||
39 00 02 54 89
|
||||
39 00 02 55 AB
|
||||
39 00 02 56 01
|
||||
39 00 02 57 23
|
||||
39 00 02 58 45
|
||||
39 00 02 59 67
|
||||
39 00 02 5a 89
|
||||
39 00 02 5b AB
|
||||
39 00 02 5c CD
|
||||
39 00 02 5d EF
|
||||
|
||||
39 00 02 5e 00
|
||||
39 00 02 5f 08
|
||||
39 00 02 60 08
|
||||
39 00 02 61 06
|
||||
39 00 02 62 06
|
||||
39 00 02 63 01
|
||||
39 00 02 64 01
|
||||
39 00 02 65 00
|
||||
39 00 02 66 00
|
||||
39 00 02 67 02
|
||||
39 00 02 68 15
|
||||
39 00 02 69 15
|
||||
39 00 02 6a 14
|
||||
39 00 02 6b 14
|
||||
39 00 02 6c 0D
|
||||
39 00 02 6d 0D
|
||||
39 00 02 6e 0C
|
||||
39 00 02 6f 0C
|
||||
39 00 02 70 0F
|
||||
39 00 02 71 0F
|
||||
39 00 02 72 0E
|
||||
39 00 02 73 0E
|
||||
39 00 02 74 02
|
||||
|
||||
39 00 02 75 08
|
||||
39 00 02 76 08
|
||||
39 00 02 77 06
|
||||
39 00 02 78 06
|
||||
39 00 02 79 01
|
||||
39 00 02 7a 01
|
||||
39 00 02 7b 00
|
||||
39 00 02 7c 00
|
||||
39 00 02 7d 02
|
||||
39 00 02 7e 15
|
||||
39 00 02 7f 15
|
||||
39 00 02 80 14
|
||||
39 00 02 81 14
|
||||
39 00 02 82 0D
|
||||
39 00 02 83 0D
|
||||
39 00 02 84 0C
|
||||
39 00 02 85 0C
|
||||
39 00 02 86 0F
|
||||
39 00 02 87 0F
|
||||
39 00 02 88 0E
|
||||
39 00 02 89 0E
|
||||
39 00 02 8A 02
|
||||
|
||||
39 00 04 FF 98 81 04
|
||||
|
||||
39 00 02 6E 2B
|
||||
39 00 02 6F 37
|
||||
39 00 02 3A A4
|
||||
39 00 02 8D 1A
|
||||
39 00 02 87 BA
|
||||
39 00 02 B2 D1
|
||||
39 00 02 88 0B
|
||||
39 00 02 38 01
|
||||
39 00 02 39 00
|
||||
39 00 02 B5 07
|
||||
39 00 02 31 75
|
||||
39 00 02 3B 98
|
||||
|
||||
39 00 04 FF 98 81 01
|
||||
39 00 02 43 33
|
||||
39 00 02 22 0A
|
||||
39 00 02 31 00
|
||||
39 00 02 53 48
|
||||
39 00 02 55 48
|
||||
39 00 02 50 99
|
||||
39 00 02 51 94
|
||||
39 00 02 60 10
|
||||
39 00 02 62 20
|
||||
|
||||
39 00 02 A0 00
|
||||
39 00 02 A1 00
|
||||
39 00 02 A2 15
|
||||
39 00 02 A3 14
|
||||
39 00 02 A4 1B
|
||||
39 00 02 A5 2F
|
||||
39 00 02 A6 25
|
||||
39 00 02 A7 24
|
||||
39 00 02 A8 80
|
||||
39 00 02 A9 1F
|
||||
39 00 02 AA 2C
|
||||
39 00 02 AB 6C
|
||||
39 00 02 AC 16
|
||||
39 00 02 AD 14
|
||||
39 00 02 AE 4D
|
||||
39 00 02 AF 20
|
||||
39 00 02 B0 29
|
||||
39 00 02 B1 4F
|
||||
39 00 02 B2 5F
|
||||
39 00 02 B3 23
|
||||
|
||||
39 00 02 C0 00
|
||||
39 00 02 C1 2E
|
||||
39 00 02 C2 3B
|
||||
39 00 02 C3 15
|
||||
39 00 02 C4 16
|
||||
39 00 02 C5 28
|
||||
39 00 02 C6 1A
|
||||
39 00 02 C7 1C
|
||||
39 00 02 C8 A7
|
||||
39 00 02 C9 1B
|
||||
39 00 02 CA 28
|
||||
39 00 02 CB 92
|
||||
39 00 02 CC 1F
|
||||
39 00 02 CD 1C
|
||||
39 00 02 CE 4B
|
||||
39 00 02 CF 1F
|
||||
39 00 02 D0 28
|
||||
39 00 02 D1 4E
|
||||
39 00 02 D2 5C
|
||||
39 00 02 D3 23
|
||||
|
||||
39 00 04 FF 98 81 00
|
||||
39 00 02 11 00
|
||||
39 78 02 29 00
|
||||
39 00 02 35 00
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 00 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
display-timings {
|
||||
native-mode = <&afj101_timing>;
|
||||
|
||||
afj101_timing: afj101-timing {
|
||||
clock-frequency = <66000000>;
|
||||
screen-type = <7>;
|
||||
out-face = <0>;
|
||||
hactive = <800>;
|
||||
vactive = <1280>;
|
||||
hback-porch = <20>;
|
||||
hfront-porch = <40>;
|
||||
vback-porch = <12>;
|
||||
vfront-porch = <30>;
|
||||
hsync-len = <5>;
|
||||
vsync-len = <5>;
|
||||
hsync-active = <20>;
|
||||
vsync-active = <4>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <0>;
|
||||
swap-rb = <0>;
|
||||
swap-rg = <0>;
|
||||
swap-gb = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
panel_in_dsi: endpoint {
|
||||
remote-endpoint = <&dsi_out_panel>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
dsi_out_panel: endpoint {
|
||||
remote-endpoint = <&panel_in_dsi>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&dsi1 {
|
||||
status = "disabled";
|
||||
|
||||
afj101_panel1: afj101-panel1 {
|
||||
compatible = "simple-panel-dsi";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
backlight = <&pwm_bl>;
|
||||
enable-gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
|
||||
|
||||
reset-delay-ms = <5>;
|
||||
init-delay-ms = <200>;
|
||||
prepare-delay-ms = <15>;
|
||||
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM)>;
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
bus-format = <0x100a>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
panel-init-sequence = [
|
||||
39 00 04 FF 98 81 03
|
||||
|
||||
39 00 02 01 00
|
||||
39 00 02 02 00
|
||||
39 00 02 03 53
|
||||
39 00 02 04 D3
|
||||
39 00 02 05 00
|
||||
39 00 02 06 0D
|
||||
39 00 02 07 08
|
||||
39 00 02 08 00
|
||||
39 00 02 09 00
|
||||
39 00 02 0a 00
|
||||
39 00 02 0b 00
|
||||
39 00 02 0c 00
|
||||
39 00 02 0d 00
|
||||
39 00 02 0e 00
|
||||
39 00 02 0f 28
|
||||
39 00 02 10 28
|
||||
39 00 02 11 00
|
||||
39 00 02 12 00
|
||||
39 00 02 13 00
|
||||
39 00 02 14 00
|
||||
39 00 02 15 00
|
||||
39 00 02 16 00
|
||||
39 00 02 17 00
|
||||
39 00 02 18 00
|
||||
39 00 02 19 00
|
||||
39 00 02 1a 00
|
||||
39 00 02 1b 00
|
||||
39 00 02 1c 00
|
||||
39 00 02 1d 00
|
||||
39 00 02 1e 40
|
||||
39 00 02 1f 80
|
||||
39 00 02 20 06
|
||||
39 00 02 21 01
|
||||
39 00 02 22 00
|
||||
39 00 02 23 00
|
||||
39 00 02 24 00
|
||||
39 00 02 25 00
|
||||
39 00 02 26 00
|
||||
39 00 02 27 00
|
||||
39 00 02 28 33
|
||||
39 00 02 29 33
|
||||
39 00 02 2a 00
|
||||
39 00 02 2b 00
|
||||
39 00 02 2c 00
|
||||
39 00 02 2d 00
|
||||
39 00 02 2e 00
|
||||
39 00 02 2f 00
|
||||
39 00 02 30 00
|
||||
39 00 02 31 00
|
||||
39 00 02 32 00
|
||||
39 00 02 33 00
|
||||
39 00 02 34 03
|
||||
39 00 02 35 00
|
||||
39 00 02 36 00
|
||||
39 00 02 37 00
|
||||
39 00 02 38 96
|
||||
39 00 02 39 00
|
||||
39 00 02 3a 00
|
||||
39 00 02 3b 00
|
||||
39 00 02 3c 00
|
||||
39 00 02 3d 00
|
||||
39 00 02 3e 00
|
||||
39 00 02 3f 00
|
||||
39 00 02 40 00
|
||||
39 00 02 41 00
|
||||
39 00 02 42 00
|
||||
39 00 02 43 00
|
||||
39 00 02 44 00
|
||||
|
||||
39 00 02 50 00
|
||||
39 00 02 51 23
|
||||
39 00 02 52 45
|
||||
39 00 02 53 67
|
||||
39 00 02 54 89
|
||||
39 00 02 55 AB
|
||||
39 00 02 56 01
|
||||
39 00 02 57 23
|
||||
39 00 02 58 45
|
||||
39 00 02 59 67
|
||||
39 00 02 5a 89
|
||||
39 00 02 5b AB
|
||||
39 00 02 5c CD
|
||||
39 00 02 5d EF
|
||||
|
||||
39 00 02 5e 00
|
||||
39 00 02 5f 08
|
||||
39 00 02 60 08
|
||||
39 00 02 61 06
|
||||
39 00 02 62 06
|
||||
39 00 02 63 01
|
||||
39 00 02 64 01
|
||||
39 00 02 65 00
|
||||
39 00 02 66 00
|
||||
39 00 02 67 02
|
||||
39 00 02 68 15
|
||||
39 00 02 69 15
|
||||
39 00 02 6a 14
|
||||
39 00 02 6b 14
|
||||
39 00 02 6c 0D
|
||||
39 00 02 6d 0D
|
||||
39 00 02 6e 0C
|
||||
39 00 02 6f 0C
|
||||
39 00 02 70 0F
|
||||
39 00 02 71 0F
|
||||
39 00 02 72 0E
|
||||
39 00 02 73 0E
|
||||
39 00 02 74 02
|
||||
|
||||
39 00 02 75 08
|
||||
39 00 02 76 08
|
||||
39 00 02 77 06
|
||||
39 00 02 78 06
|
||||
39 00 02 79 01
|
||||
39 00 02 7a 01
|
||||
39 00 02 7b 00
|
||||
39 00 02 7c 00
|
||||
39 00 02 7d 02
|
||||
39 00 02 7e 15
|
||||
39 00 02 7f 15
|
||||
39 00 02 80 14
|
||||
39 00 02 81 14
|
||||
39 00 02 82 0D
|
||||
39 00 02 83 0D
|
||||
39 00 02 84 0C
|
||||
39 00 02 85 0C
|
||||
39 00 02 86 0F
|
||||
39 00 02 87 0F
|
||||
39 00 02 88 0E
|
||||
39 00 02 89 0E
|
||||
39 00 02 8A 02
|
||||
|
||||
39 00 04 FF 98 81 04
|
||||
|
||||
39 00 02 6E 2B
|
||||
39 00 02 6F 37
|
||||
39 00 02 3A A4
|
||||
39 00 02 8D 1A
|
||||
39 00 02 87 BA
|
||||
39 00 02 B2 D1
|
||||
39 00 02 88 0B
|
||||
39 00 02 38 01
|
||||
39 00 02 39 00
|
||||
39 00 02 B5 07
|
||||
39 00 02 31 75
|
||||
39 00 02 3B 98
|
||||
|
||||
39 00 04 FF 98 81 01
|
||||
39 00 02 43 33
|
||||
39 00 02 22 0A
|
||||
39 00 02 31 00
|
||||
39 00 02 53 48
|
||||
39 00 02 55 48
|
||||
39 00 02 50 99
|
||||
39 00 02 51 94
|
||||
39 00 02 60 10
|
||||
39 00 02 62 20
|
||||
|
||||
39 00 02 A0 00
|
||||
39 00 02 A1 00
|
||||
39 00 02 A2 15
|
||||
39 00 02 A3 14
|
||||
39 00 02 A4 1B
|
||||
39 00 02 A5 2F
|
||||
39 00 02 A6 25
|
||||
39 00 02 A7 24
|
||||
39 00 02 A8 80
|
||||
39 00 02 A9 1F
|
||||
39 00 02 AA 2C
|
||||
39 00 02 AB 6C
|
||||
39 00 02 AC 16
|
||||
39 00 02 AD 14
|
||||
39 00 02 AE 4D
|
||||
39 00 02 AF 20
|
||||
39 00 02 B0 29
|
||||
39 00 02 B1 4F
|
||||
39 00 02 B2 5F
|
||||
39 00 02 B3 23
|
||||
|
||||
39 00 02 C0 00
|
||||
39 00 02 C1 2E
|
||||
39 00 02 C2 3B
|
||||
39 00 02 C3 15
|
||||
39 00 02 C4 16
|
||||
39 00 02 C5 28
|
||||
39 00 02 C6 1A
|
||||
39 00 02 C7 1C
|
||||
39 00 02 C8 A7
|
||||
39 00 02 C9 1B
|
||||
39 00 02 CA 28
|
||||
39 00 02 CB 92
|
||||
39 00 02 CC 1F
|
||||
39 00 02 CD 1C
|
||||
39 00 02 CE 4B
|
||||
39 00 02 CF 1F
|
||||
39 00 02 D0 28
|
||||
39 00 02 D1 4E
|
||||
39 00 02 D2 5C
|
||||
39 00 02 D3 23
|
||||
|
||||
39 00 04 FF 98 81 00
|
||||
39 00 02 11 00
|
||||
39 78 02 29 00
|
||||
39 00 02 35 00
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 00 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
display-timings {
|
||||
native-mode = <&afj101_timing1>;
|
||||
|
||||
afj101_timing1: afj101-timing1 {
|
||||
clock-frequency = <66000000>;
|
||||
screen-type = <7>;
|
||||
out-face = <0>;
|
||||
hactive = <800>;
|
||||
vactive = <1280>;
|
||||
hback-porch = <20>;
|
||||
hfront-porch = <40>;
|
||||
vback-porch = <12>;
|
||||
vfront-porch = <30>;
|
||||
hsync-len = <5>;
|
||||
vsync-len = <5>;
|
||||
hsync-active = <20>;
|
||||
vsync-active = <4>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <0>;
|
||||
swap-rb = <0>;
|
||||
swap-rg = <0>;
|
||||
swap-gb = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
panel_in_dsi1: endpoint {
|
||||
remote-endpoint = <&dsi1_out_panel>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
dsi1_out_panel: endpoint {
|
||||
remote-endpoint = <&panel_in_dsi1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
|
||||
gt9xx_1: touchscreen@14 {
|
||||
compatible = "goodix,gt9271";
|
||||
reg = <0x14>;
|
||||
interrupt-parent = <&gpio4>;
|
||||
interrupts = <RK_PD5 IRQ_TYPE_LEVEL_LOW>;
|
||||
irq-gpios = <&gpio4 RK_PD5 IRQ_TYPE_LEVEL_LOW>;
|
||||
reset-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
|
||||
touchscreen-inverted-x;
|
||||
//touchscreen-inverted-y;
|
||||
touchscreen-swapped-x-y;
|
||||
touchscreen-size-x = <1280>;
|
||||
touchscreen-size-y = <800>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
status = "okay";
|
||||
|
||||
gt9xx_0: touchscreen@14 {
|
||||
compatible = "goodix,gt9271";
|
||||
reg = <0x14>;
|
||||
interrupt-parent = <&gpio4>;
|
||||
interrupts = <RK_PD0 IRQ_TYPE_LEVEL_LOW>;
|
||||
irq-gpios = <&gpio4 RK_PD0 IRQ_TYPE_LEVEL_LOW>;
|
||||
reset-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
|
||||
touchscreen-inverted-x;
|
||||
//touchscreen-inverted-y;
|
||||
touchscreen-swapped-x-y;
|
||||
touchscreen-size-x = <1280>;
|
||||
touchscreen-size-y = <800>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
|
@ -1657,7 +1657,7 @@ void dw_hdmi_phy_i2c_write(struct dw_hdmi *hdmi, unsigned short data,
|
|||
HDMI_PHY_I2CM_DATAO_0_ADDR);
|
||||
hdmi_writeb(hdmi, HDMI_PHY_I2CM_OPERATION_ADDR_WRITE,
|
||||
HDMI_PHY_I2CM_OPERATION_ADDR);
|
||||
hdmi_phy_wait_i2c_done(hdmi, 1000);
|
||||
hdmi_phy_wait_i2c_done(hdmi, 50);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dw_hdmi_phy_i2c_write);
|
||||
|
||||
|
|
@ -1699,7 +1699,7 @@ static int hdmi_phy_i2c_read(struct dw_hdmi *hdmi, unsigned char addr)
|
|||
hdmi_writeb(hdmi, 0, HDMI_PHY_I2CM_DATAI_0_ADDR);
|
||||
hdmi_writeb(hdmi, HDMI_PHY_I2CM_OPERATION_ADDR_READ,
|
||||
HDMI_PHY_I2CM_OPERATION_ADDR);
|
||||
hdmi_phy_wait_i2c_done(hdmi, 1000);
|
||||
hdmi_phy_wait_i2c_done(hdmi, 50);
|
||||
val = hdmi_readb(hdmi, HDMI_PHY_I2CM_DATAI_1_ADDR);
|
||||
val = (val & 0xff) << 8;
|
||||
val += hdmi_readb(hdmi, HDMI_PHY_I2CM_DATAI_0_ADDR) & 0xff;
|
||||
|
|
@ -4005,10 +4005,10 @@ static void dw_hdmi_bridge_atomic_disable(struct drm_bridge *bridge,
|
|||
hdmi->plat_data->dclk_set(hdmi->plat_data->phy_data, false, 0);
|
||||
mutex_unlock(&hdmi->mutex);
|
||||
|
||||
mutex_lock(&hdmi->i2c->lock);
|
||||
//mutex_lock(&hdmi->i2c->lock);
|
||||
if (hdmi->plat_data->set_ddc_io)
|
||||
hdmi->plat_data->set_ddc_io(data, false);
|
||||
mutex_unlock(&hdmi->i2c->lock);
|
||||
//mutex_unlock(&hdmi->i2c->lock);
|
||||
}
|
||||
|
||||
static void dw_hdmi_bridge_atomic_enable(struct drm_bridge *bridge,
|
||||
|
|
|
|||
|
|
@ -645,17 +645,6 @@ static const struct regval ov13850_4224x3136_regs[] = {
|
|||
|
||||
static const struct ov13850_mode supported_modes[] = {
|
||||
{
|
||||
.width = 4224,
|
||||
.height = 3136,
|
||||
.max_fps = {
|
||||
.numerator = 20000,
|
||||
.denominator = 150000,
|
||||
},
|
||||
.exp_def = 0x0600,
|
||||
.hts_def = 0x12c0,
|
||||
.vts_def = 0x0d00,
|
||||
.reg_list = ov13850_4224x3136_regs,
|
||||
},{
|
||||
.width = 2112,
|
||||
.height = 1568,
|
||||
.max_fps = {
|
||||
|
|
@ -666,6 +655,17 @@ static const struct ov13850_mode supported_modes[] = {
|
|||
.hts_def = 0x12c0,
|
||||
.vts_def = 0x0680,
|
||||
.reg_list = ov13850_2112x1568_regs,
|
||||
},{
|
||||
.width = 4224,
|
||||
.height = 3136,
|
||||
.max_fps = {
|
||||
.numerator = 20000,
|
||||
.denominator = 150000,
|
||||
},
|
||||
.exp_def = 0x0600,
|
||||
.hts_def = 0x12c0,
|
||||
.vts_def = 0x0d00,
|
||||
.reg_list = ov13850_4224x3136_regs,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
@ -1664,7 +1664,8 @@ static void __exit sensor_mod_exit(void)
|
|||
i2c_del_driver(&ov13850_i2c_driver);
|
||||
}
|
||||
|
||||
device_initcall_sync(sensor_mod_init);
|
||||
//device_initcall_sync(sensor_mod_init);
|
||||
late_initcall(sensor_mod_init);
|
||||
module_exit(sensor_mod_exit);
|
||||
|
||||
MODULE_DESCRIPTION("OmniVision ov13850 sensor driver");
|
||||
|
|
|
|||
Loading…
Reference in New Issue