rockchip
This commit is contained in:
438
rk3562/lga-rk3562.dts
Executable file
438
rk3562/lga-rk3562.dts
Executable file
@@ -0,0 +1,438 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
|
||||
*
|
||||
*/
|
||||
|
||||
//#include "../rk3562-evb1-lp4x-v10.dtsi"
|
||||
//#include "../rk3562-android.dtsi"
|
||||
//#include "../rk3562-rk817.dtsi"
|
||||
#include <dt-bindings/gpio/nca9555-gpio.h>
|
||||
|
||||
#include "rk3562-evb-rpdzkj-rk817-pwm.dtsi"
|
||||
#include "../rk3562-linux.dtsi"
|
||||
|
||||
/*** usb ***/
|
||||
#include "rp-usb-rk3562.dtsi"
|
||||
|
||||
/*************************adc key***********************/
|
||||
#include "rp-adc-key.dtsi"
|
||||
|
||||
/* camera */
|
||||
//#include "rp-mipi-camera0-rk3562.dtsi"
|
||||
//#include "rp-mipi-camera1-rk3562.dtsi"
|
||||
#include "rp-mipi-camera-3562-dual-gc8034-ov13855.dtsi"
|
||||
/* ethernet */
|
||||
#include "rp-eth-gmac.dtsi"
|
||||
#include "rp-eth-pcie2gmac-rk3562.dtsi"
|
||||
|
||||
/* wifi/bt */
|
||||
#include "rp-wifi-bt-vs2275s-rk3562.dtsi"
|
||||
|
||||
/***************** SINGLE LCD ****************/
|
||||
#include "pro-rk3562-single-lcd-gpio.dtsi" // gpio config of lcd
|
||||
|
||||
/* MIPI to HDMI */
|
||||
//#include "rp-lcd-mipi2hdmi-lt8912.dtsi"
|
||||
|
||||
/* MIPI DSI */
|
||||
//#include "rp-lcd-mipi-5-720-1280-v2-boxTP.dtsi"
|
||||
//#include "rp-lcd-mipi-5.5-720-1280-v2.dtsi"
|
||||
//#include "rp-lcd-mipi-7-720-1280.dtsi"
|
||||
#include "rp-lcd-mipi-7-1024-600.dtsi"
|
||||
//#include "rp-lcd-mipi-7-1200-1920.dtsi"
|
||||
//#include "rp-lcd-mipi-8-800-1280-v3.dtsi"
|
||||
//#include "rp-lcd-mipi-8-1200-1920.dtsi"
|
||||
//#include "rp-lcd-mipi-10-800-1280-v3.dtsi"
|
||||
//#include "rp-lcd-mipi-10-1200-1920.dtsi"
|
||||
|
||||
/* LVDS DSI */
|
||||
//#include "rp-lcd-lvds-7-1024-600.dtsi"
|
||||
//#include "rp-lcd-lvds-10-1280-800.dtsi"
|
||||
|
||||
/{
|
||||
|
||||
model = "lga-rk3562";
|
||||
compatible = "rpdzkj,lga-rk3562-v10", "rockchip,rk3562";
|
||||
/*
|
||||
fan_gpio_control {
|
||||
compatible = "fan_gpio_control";
|
||||
gpio-pin = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>;
|
||||
temperature-device = "soc-thermal";
|
||||
temp-on = <60000>;
|
||||
time = <10000>;
|
||||
status = "okay";
|
||||
};
|
||||
*/
|
||||
|
||||
vdd_3v3_5v_control: vdd-3v3-5v-control {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_3v3_5v_control";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
enable-active-high;
|
||||
gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; //In the uboot phase fixed.c resolves gpio
|
||||
gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&vdd_control>;
|
||||
};
|
||||
|
||||
rp_power{
|
||||
status = "okay";
|
||||
compatible = "rp_power";
|
||||
rp_not_deep_sleep = <1>;
|
||||
// pinctrl-names = "default";
|
||||
// pinctrl-0 = <&vcc5v0_host_en>;
|
||||
// pinctrl-1 = <&vcc5v0_otg_en>;
|
||||
|
||||
//#define GPIO_FUNCTION_OUTPUT 0
|
||||
//#define GPIO_FUNCTION_INPUT 1
|
||||
//#define GPIO_FUNCTION_IRQ 2
|
||||
//#define GPIO_FUNCTION_FLASH 3
|
||||
//#define GPIO_FUNCTION_OUTPUT_CTRL 4
|
||||
|
||||
|
||||
led { //system led
|
||||
gpio_num = <&nca9555_gpio IO_00 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <3>;
|
||||
};
|
||||
|
||||
vdd_4g {
|
||||
gpio_num = <&nca9555_gpio IO_15 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <4>;
|
||||
};
|
||||
|
||||
usb_pwr {
|
||||
gpio_num = <&nca9555_gpio IO_03 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <4>;
|
||||
};
|
||||
|
||||
hub_rst { //usb hub
|
||||
gpio_num = <&nca9555_gpio IO_02 GPIO_ACTIVE_LOW>;
|
||||
gpio_function = <4>;
|
||||
};
|
||||
|
||||
spk_en { //spk enable
|
||||
gpio_num = <&nca9555_gpio IO_14 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <4>;
|
||||
};
|
||||
|
||||
spk_mute { //spk mute
|
||||
gpio_num = <&nca9555_gpio IO_17 GPIO_ACTIVE_LOW>;
|
||||
gpio_function = <4>;
|
||||
};
|
||||
|
||||
wifi_pwr {
|
||||
gpio_num = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <4>;
|
||||
};
|
||||
|
||||
// WIFI,poweren_gpio = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>;
|
||||
// fan { //fan
|
||||
// gpio_num = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>;
|
||||
// gpio_function = <4>;
|
||||
// };
|
||||
|
||||
};
|
||||
|
||||
rp_gpio{
|
||||
status = "okay";
|
||||
compatible = "rp_gpio";
|
||||
|
||||
nca9555_01 {
|
||||
gpio_num = <&nca9555_gpio IO_01 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
|
||||
nca9555_15 {
|
||||
gpio_num = <&nca9555_gpio IO_15 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
|
||||
nca9555_16 {
|
||||
gpio_num = <&nca9555_gpio IO_16 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
|
||||
nca9555_17 {
|
||||
gpio_num = <&nca9555_gpio IO_17 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
|
||||
nca9555b_00 {
|
||||
gpio_num = <&nca9555b_gpio IO_00 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_01 {
|
||||
gpio_num = <&nca9555b_gpio IO_01 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_02 {
|
||||
gpio_num = <&nca9555b_gpio IO_02 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_03 {
|
||||
gpio_num = <&nca9555b_gpio IO_03 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_04 {
|
||||
gpio_num = <&nca9555b_gpio IO_04 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_05 {
|
||||
gpio_num = <&nca9555b_gpio IO_05 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_06 {
|
||||
gpio_num = <&nca9555b_gpio IO_06 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_07 {
|
||||
gpio_num = <&nca9555b_gpio IO_07 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_10 {
|
||||
gpio_num = <&nca9555b_gpio IO_10 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_11 {
|
||||
gpio_num = <&nca9555b_gpio IO_11 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_12 {
|
||||
gpio_num = <&nca9555b_gpio IO_12 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_13 {
|
||||
gpio_num = <&nca9555b_gpio IO_13 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_14 {
|
||||
gpio_num = <&nca9555b_gpio IO_14 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_15 {
|
||||
gpio_num = <&nca9555b_gpio IO_15 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_16 {
|
||||
gpio_num = <&nca9555b_gpio IO_16 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
nca9555b_17 {
|
||||
gpio_num = <&nca9555b_gpio IO_17 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
/** 24M osc clock to mcp2515 */
|
||||
osc_24m: osc24m {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <24000000>;
|
||||
};
|
||||
|
||||
fiq-debugger {
|
||||
compatible = "rockchip,fiq-debugger";
|
||||
rockchip,serial-id = <0>;
|
||||
rockchip,wake-irq = <0>;
|
||||
/* If enable uart uses irq instead of fiq */
|
||||
rockchip,irq-mode-enable = <1>;
|
||||
rockchip,baudrate = <115200>; /* Only 115200 and 1500000 */
|
||||
interrupts = <GIC_SPI 242 IRQ_TYPE_LEVEL_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart0m0_xfer>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
rtc@51 {
|
||||
status = "okay";
|
||||
compatible = "rtc,hym8563";
|
||||
reg = <0x51>;
|
||||
};
|
||||
|
||||
nca9555: mfd-gpio@20 {
|
||||
compatible = "nca9555";
|
||||
reg = <0x20>;
|
||||
status = "okay";
|
||||
|
||||
nca9555_gpio: gpio-normal@20 {
|
||||
compatible = "nca9555-gpio";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
};
|
||||
nca9555b: mfd-gpio@21 {
|
||||
compatible = "nca9555";
|
||||
reg = <0x21>;
|
||||
status = "okay";
|
||||
|
||||
nca9555b_gpio: gpio-normal@21 {
|
||||
compatible = "nca9555-gpio";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c2m1_xfer>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/*** RS232 ***/
|
||||
&uart2 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart2m1_xfer>;
|
||||
};
|
||||
|
||||
&uart3 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart3m0_xfer>;
|
||||
};
|
||||
|
||||
/*** TTL ***/
|
||||
&uart4 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart4m0_xfer>;
|
||||
};
|
||||
|
||||
&uart5 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart5m1_xfer>;
|
||||
};
|
||||
|
||||
&uart6 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart6m0_xfer>;
|
||||
};
|
||||
|
||||
/* RS485 */
|
||||
&uart7 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart7m0_xfer>;
|
||||
};
|
||||
|
||||
//&rk_headset {
|
||||
// status = "okay";
|
||||
// pinctrl-names = "default";
|
||||
// pinctrl-0 = <&hp_det>;
|
||||
// headset_gpio = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
|
||||
//};
|
||||
|
||||
//&spi0 {
|
||||
// status = "okay";
|
||||
//
|
||||
// spi_dev@0 {
|
||||
// compatible = "rockchip,spidev";
|
||||
// reg = <0>;
|
||||
// spi-max-frequency = <12000000>;
|
||||
// spi-lsb-first;
|
||||
// };
|
||||
//};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
/* rewrite pinctrl, for cs1 used to be gpio */
|
||||
pinctrl-0 = <&spi0m0_csn0 &spi0m0_pins>;
|
||||
|
||||
spi2can: mcp2515@0 {
|
||||
compatible = "microchip,mcp2515";
|
||||
reg = <0>;
|
||||
clocks = <&osc_24m>;
|
||||
interrupt-parent = <&gpio0>;
|
||||
interrupts = <RK_PB7 IRQ_TYPE_LEVEL_LOW>;
|
||||
// vdd-supply = <®5v0>;
|
||||
// xceiver-supply = <®5v0>;
|
||||
gpio-controller;
|
||||
spi-max-frequency = <10000000>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
/******** must be close,if not system no run ******/
|
||||
&dmc {
|
||||
center-supply = <&vdd_logic>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&dfi {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&rk817 {
|
||||
battery {
|
||||
compatible = "rk817,battery";
|
||||
status = "okay";
|
||||
ocv_table = <3300 3337 3374 3411 3447 3485 3524
|
||||
3561 3598 3635 3672 3709 3746 3785
|
||||
3822 3859 3896 3933 3970 4007 4050>;
|
||||
design_capacity = <5000>;
|
||||
design_qmax = <5500>;
|
||||
bat_res = <100>;
|
||||
sleep_enter_current = <300>;
|
||||
sleep_exit_current = <300>;
|
||||
sleep_filter_current = <100>;
|
||||
power_off_thresd = <3300>;
|
||||
zero_algorithm_vol = <3850>;
|
||||
max_soc_offset = <60>;
|
||||
monitor_sec = <5>;
|
||||
sample_res = <10>;
|
||||
virtual_power = <0>; //test mode, 1 to force report 66%
|
||||
|
||||
//rpdzkj add Mandatory configuration under the condition of no battery, the power connected to external DC is 0, and 50% is reported
|
||||
dc_rpdzkj_psy = <1>; //强制配置无电池情况下接外部DC电量为0上报50% 1:enable 0:not
|
||||
|
||||
|
||||
};
|
||||
|
||||
charger {
|
||||
compatible = "rk817,charger";
|
||||
status = "okay";
|
||||
min_input_voltage = <4500>;
|
||||
max_input_current = <3000>;//1500
|
||||
max_chrg_current = <1000>;//2000
|
||||
max_chrg_voltage = <4350>;
|
||||
chrg_term_mode = <0>;
|
||||
chrg_finish_cur = <300>;
|
||||
virtual_power = <0>;
|
||||
dc_det_adc = <0>;
|
||||
// extcon = <&u2phy>; //otg charging
|
||||
gate_function_disable = <1>;
|
||||
|
||||
//power_dc2otg = <1>;
|
||||
//dc_det_gpio = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; //可配置pins 读取dc转3.3V以下电压做dc充电检测脚
|
||||
//rpdzkj add Configure external DC to detect and report charging status
|
||||
rpdzkj_dc_vbus = <1>; //配置外部DC检测上报充电状态 1:enable 0:not
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
power_control{
|
||||
vdd_control: vdd-control {
|
||||
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
};
|
||||
};
|
||||
|
||||
// headphone {
|
||||
// hp_det: hp-det {
|
||||
// rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
|
||||
// };
|
||||
// };
|
||||
};
|
||||
107
rk3562/pro-rk3562-single-lcd-gpio.dtsi
Executable file
107
rk3562/pro-rk3562-single-lcd-gpio.dtsi
Executable file
@@ -0,0 +1,107 @@
|
||||
|
||||
|
||||
/ {
|
||||
backlight: backlight {
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm3 0 25000 0>;
|
||||
brightness-levels = <
|
||||
0 20 20 21 21 22 22 23
|
||||
23 24 24 25 25 26 26 27
|
||||
27 28 28 29 29 30 30 31
|
||||
31 32 32 33 33 34 34 35
|
||||
35 36 36 37 37 38 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>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&pwm3 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
//MIPI DSI
|
||||
&dsi_panel {
|
||||
power-supply = <&vcc3v3_lcd_n>;
|
||||
reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&lcd_rst_gpio>;
|
||||
backlight = <&backlight>;
|
||||
};
|
||||
|
||||
|
||||
// LVDS
|
||||
&lvds_panel {
|
||||
power-supply = <&vcc3v3_lcd_n>;
|
||||
reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&lcd_rst_gpio>;
|
||||
backlight = <&backlight>;
|
||||
};
|
||||
|
||||
// POWER GPIO
|
||||
&vcc3v3_lcd_n {
|
||||
gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
|
||||
enable-active-high;
|
||||
};
|
||||
|
||||
// TP
|
||||
&i2c2 {
|
||||
gt9xx: goodix_ts@5d {
|
||||
/***** tp pin ******/
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&goodix_irq>;
|
||||
goodix_rst_gpio = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
|
||||
goodix_irq_gpio = <&gpio3 RK_PC6 IRQ_TYPE_EDGE_FALLING>;
|
||||
};
|
||||
gt1x: goodix_gt1x@5d {
|
||||
/***** tp pin ******/
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&goodix_irq>;
|
||||
goodix,rst-gpio = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
|
||||
goodix,irq-gpio = <&gpio3 RK_PC6 IRQ_TYPE_EDGE_FALLING>;
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
lcd1 {
|
||||
lcd_rst_gpio: lcd1-rst-gpio {
|
||||
rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
goodix {
|
||||
goodix_irq: goodix-irq {
|
||||
rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
325
rk3562/pro-rk3562.dts
Executable file
325
rk3562/pro-rk3562.dts
Executable file
@@ -0,0 +1,325 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
|
||||
*
|
||||
*/
|
||||
|
||||
//#include "../rk3562-evb1-lp4x-v10.dtsi"
|
||||
//#include "../rk3562-android.dtsi"
|
||||
//#include "../rk3562-rk817.dtsi"
|
||||
#include <dt-bindings/gpio/nca9555-gpio.h>
|
||||
|
||||
#include "rk3562-evb-rpdzkj-rk817-pwm.dtsi"
|
||||
#include "../rk3562-linux.dtsi"
|
||||
|
||||
/*** usb ***/
|
||||
#include "rp-usb-rk3562.dtsi"
|
||||
|
||||
/*************************adc key***********************/
|
||||
#include "rp-adc-key.dtsi"
|
||||
|
||||
/* camera */
|
||||
//#include "rp-mipi-camera0-rk3562.dtsi"
|
||||
//#include "rp-mipi-camera1-rk3562.dtsi"
|
||||
#include "rp-mipi-camera-3562-dual-gc8034-ov13855.dtsi"
|
||||
|
||||
/* ethernet */
|
||||
#include "rp-eth-gmac.dtsi"
|
||||
#include "rp-eth-pcie2gmac-rk3562.dtsi"
|
||||
|
||||
/* wifi/bt */
|
||||
#include "rp-wifi-bt-vs2275s-rk3562.dtsi"
|
||||
|
||||
/***************** SINGLE LCD ****************/
|
||||
#include "pro-rk3562-single-lcd-gpio.dtsi" // gpio config of lcd
|
||||
|
||||
/* MIPI to HDMI */
|
||||
//#include "rp-lcd-mipi2hdmi-lt8912.dtsi"
|
||||
|
||||
/* MIPI DSI */
|
||||
//#include "rp-lcd-mipi-5-720-1280-v2-boxTP.dtsi"
|
||||
//#include "rp-lcd-mipi-5.5-720-1280-v2.dtsi"
|
||||
//#include "rp-lcd-mipi-7-720-1280.dtsi"
|
||||
#include "rp-lcd-mipi-7-1024-600.dtsi"
|
||||
//#include "rp-lcd-mipi-7-1200-1920.dtsi"
|
||||
//#include "rp-lcd-mipi-8-800-1280-v3.dtsi"
|
||||
//#include "rp-lcd-mipi-8-1200-1920.dtsi"
|
||||
//#include "rp-lcd-mipi-10-800-1280-v3.dtsi"
|
||||
//#include "rp-lcd-mipi-10-1200-1920.dtsi"
|
||||
|
||||
/* LVDS DSI */
|
||||
//#include "rp-lcd-lvds-7-1024-600.dtsi"
|
||||
//#include "rp-lcd-lvds-10-1280-800.dtsi"
|
||||
|
||||
/{
|
||||
|
||||
model = "pro-rk3562";
|
||||
compatible = "rpdzkj,pro-rk3562-v10", "rockchip,rk3562";
|
||||
/*
|
||||
fan_gpio_control {
|
||||
compatible = "fan_gpio_control";
|
||||
gpio-pin = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>;
|
||||
temperature-device = "soc-thermal";
|
||||
temp-on = <60000>;
|
||||
time = <10000>;
|
||||
status = "okay";
|
||||
};
|
||||
*/
|
||||
|
||||
vdd_3v3_5v_control: vdd-3v3-5v-control {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_3v3_5v_control";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
enable-active-high;
|
||||
gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; //In the uboot phase fixed.c resolves gpio
|
||||
gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&vdd_control>;
|
||||
};
|
||||
|
||||
rp_power{
|
||||
status = "okay";
|
||||
compatible = "rp_power";
|
||||
rp_not_deep_sleep = <1>;
|
||||
// pinctrl-names = "default";
|
||||
// pinctrl-0 = <&vcc5v0_host_en>;
|
||||
// pinctrl-1 = <&vcc5v0_otg_en>;
|
||||
|
||||
//#define GPIO_FUNCTION_OUTPUT 0
|
||||
//#define GPIO_FUNCTION_INPUT 1
|
||||
//#define GPIO_FUNCTION_IRQ 2
|
||||
//#define GPIO_FUNCTION_FLASH 3
|
||||
//#define GPIO_FUNCTION_OUTPUT_CTRL 4
|
||||
|
||||
|
||||
led { //system led
|
||||
gpio_num = <&nca9555_gpio IO_00 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <3>;
|
||||
};
|
||||
|
||||
vdd_4g {
|
||||
gpio_num = <&nca9555_gpio IO_01 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <4>;
|
||||
};
|
||||
|
||||
usb_pwr {
|
||||
gpio_num = <&nca9555_gpio IO_03 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <4>;
|
||||
};
|
||||
|
||||
hub_rst { //usb hub
|
||||
gpio_num = <&nca9555_gpio IO_02 GPIO_ACTIVE_LOW>;
|
||||
gpio_function = <4>;
|
||||
};
|
||||
|
||||
spk_en { //spk enable
|
||||
gpio_num = <&nca9555_gpio IO_14 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <4>;
|
||||
};
|
||||
|
||||
wifi_pwr {
|
||||
gpio_num = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <4>;
|
||||
};
|
||||
|
||||
// WIFI,poweren_gpio = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>;
|
||||
// fan { //fan
|
||||
// gpio_num = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>;
|
||||
// gpio_function = <4>;
|
||||
// };
|
||||
|
||||
};
|
||||
|
||||
rp_gpio{
|
||||
status = "okay";
|
||||
compatible = "rp_gpio";
|
||||
|
||||
nca9555_15 {
|
||||
gpio_num = <&nca9555_gpio IO_15 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
|
||||
nca9555_16 {
|
||||
gpio_num = <&nca9555_gpio IO_16 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
|
||||
nca9555_17 {
|
||||
gpio_num = <&nca9555_gpio IO_17 GPIO_ACTIVE_HIGH>;
|
||||
gpio_function = <0>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
fiq-debugger {
|
||||
compatible = "rockchip,fiq-debugger";
|
||||
rockchip,serial-id = <0>;
|
||||
rockchip,wake-irq = <0>;
|
||||
/* If enable uart uses irq instead of fiq */
|
||||
rockchip,irq-mode-enable = <1>;
|
||||
rockchip,baudrate = <115200>; /* Only 115200 and 1500000 */
|
||||
interrupts = <GIC_SPI 242 IRQ_TYPE_LEVEL_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart0m0_xfer>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
rtc@51 {
|
||||
status = "okay";
|
||||
compatible = "rtc,hym8563";
|
||||
reg = <0x51>;
|
||||
};
|
||||
|
||||
nca9555: mfd-gpio@20 {
|
||||
compatible = "nca9555";
|
||||
reg = <0x20>;
|
||||
status = "okay";
|
||||
|
||||
nca9555_gpio: gpio-normal@20 {
|
||||
compatible = "nca9555-gpio";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c2m1_xfer>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/*** RS232 ***/
|
||||
&uart2 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart2m1_xfer>;
|
||||
};
|
||||
|
||||
&uart3 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart3m0_xfer>;
|
||||
};
|
||||
|
||||
/*** TTL ***/
|
||||
&uart4 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart4m0_xfer>;
|
||||
};
|
||||
|
||||
&uart5 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart5m1_xfer>;
|
||||
};
|
||||
|
||||
&uart6 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart6m0_xfer>;
|
||||
};
|
||||
|
||||
&uart7 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart7m0_xfer>;
|
||||
};
|
||||
|
||||
&rk_headset {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
headset_gpio = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
pinctrl-0 = <&spi0m0_csn0 &spi0m0_csn1 &spi0m0_pins>;
|
||||
spi_dev@0 {
|
||||
compatible = "rockchip,spidev";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <12000000>;
|
||||
spi-lsb-first;
|
||||
};
|
||||
};
|
||||
|
||||
/******** must be close,if not system no run ******/
|
||||
&dmc {
|
||||
center-supply = <&vdd_logic>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&dfi {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&rk817 {
|
||||
battery {
|
||||
compatible = "rk817,battery";
|
||||
status = "okay";
|
||||
ocv_table = <3300 3337 3374 3411 3447 3485 3524
|
||||
3561 3598 3635 3672 3709 3746 3785
|
||||
3822 3859 3896 3933 3970 4007 4050>;
|
||||
design_capacity = <5000>;
|
||||
design_qmax = <5500>;
|
||||
bat_res = <100>;
|
||||
sleep_enter_current = <300>;
|
||||
sleep_exit_current = <300>;
|
||||
sleep_filter_current = <100>;
|
||||
power_off_thresd = <3300>;
|
||||
zero_algorithm_vol = <3850>;
|
||||
max_soc_offset = <60>;
|
||||
monitor_sec = <5>;
|
||||
sample_res = <10>;
|
||||
virtual_power = <0>; //test mode, 1 to force report 66%
|
||||
|
||||
//rpdzkj add Mandatory configuration under the condition of no battery, the power connected to external DC is 0, and 50% is reported
|
||||
dc_rpdzkj_psy = <1>; //强制配置无电池情况下接外部DC电量为0上报50% 1:enable 0:not
|
||||
|
||||
|
||||
};
|
||||
|
||||
charger {
|
||||
compatible = "rk817,charger";
|
||||
status = "okay";
|
||||
min_input_voltage = <4500>;
|
||||
max_input_current = <3000>;//1500
|
||||
max_chrg_current = <1000>;//2000
|
||||
max_chrg_voltage = <4350>;
|
||||
chrg_term_mode = <0>;
|
||||
chrg_finish_cur = <300>;
|
||||
virtual_power = <0>;
|
||||
dc_det_adc = <0>;
|
||||
// extcon = <&u2phy>; //otg charging
|
||||
gate_function_disable = <1>;
|
||||
|
||||
//power_dc2otg = <1>;
|
||||
//dc_det_gpio = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; //可配置pins 读取dc转3.3V以下电压做dc充电检测脚
|
||||
//rpdzkj add Configure external DC to detect and report charging status
|
||||
rpdzkj_dc_vbus = <1>; //配置外部DC检测上报充电状态 1:enable 0:not
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
power_control{
|
||||
vdd_control: vdd-control {
|
||||
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
};
|
||||
};
|
||||
|
||||
headphone {
|
||||
hp_det: hp-det {
|
||||
rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
};
|
||||
};
|
||||
};
|
||||
687
rk3562/rk3562-evb-rpdzkj-rk817-pwm.dtsi
Executable file
687
rk3562/rk3562-evb-rpdzkj-rk817-pwm.dtsi
Executable file
@@ -0,0 +1,687 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (c) 2022 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 "dt-bindings/usb/pd.h"
|
||||
#include "../rk3562.dtsi"
|
||||
|
||||
/ {
|
||||
rpdzkj:rpdzkj_config {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "0";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "160";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
lvds_panel: panel@0 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
charge-animation {
|
||||
compatible = "rockchip,uboot-charge";
|
||||
rockchip,uboot-charge-on = <0>;
|
||||
rockchip,android-charge-on = <0>;
|
||||
rockchip,uboot-low-power-voltage = <3250>;
|
||||
rockchip,screen-on-voltage = <3300>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
rk817_sound: rk817-sound {
|
||||
status = "okay";
|
||||
compatible = "rockchip,multicodecs-card";
|
||||
rockchip,card-name = "rockchip-rk817";
|
||||
// hp-det-gpio = <&gpio3 RK_PA0 GPIO_ACTIVE_LOW>;
|
||||
rockchip,format = "i2s";
|
||||
rockchip,mclk-fs = <256>;
|
||||
rockchip,cpu = <&sai0>;
|
||||
rockchip,codec = <&rk817_codec>;
|
||||
// pinctrl-names = "default";
|
||||
// pinctrl-0 = <&hp_det>;
|
||||
};
|
||||
rk_headset: rk-headset {
|
||||
compatible = "rockchip_headset";
|
||||
};
|
||||
|
||||
// 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_PB3 GPIO_ACTIVE_LOW>;
|
||||
// };
|
||||
|
||||
vcc_sd: vcc-sd {
|
||||
compatible = "regulator-gpio";
|
||||
enable-active-low;
|
||||
regulator-boot-on;
|
||||
enable-gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&vcc_sd_h>;
|
||||
regulator-name = "vcc_sd";
|
||||
states = <0 0x0
|
||||
3300000 0x1>;
|
||||
};
|
||||
|
||||
vcc_sys: vcc-sys {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_sys";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3800000>;
|
||||
regulator-max-microvolt = <3800000>;
|
||||
};
|
||||
|
||||
vdd_gpu: vdd-gpu {
|
||||
compatible = "pwm-regulator";
|
||||
pwms = <&pwm7 0 5000 1>;
|
||||
regulator-name = "vdd_gpu";
|
||||
regulator-min-microvolt = <800000>;
|
||||
regulator-max-microvolt = <1100000>;
|
||||
regulator-init-microvolt = <900000>;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-settling-time-up-us = <250>;
|
||||
pwm-supply = <&vcc_sys>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
vdd_npu: vdd-npu {
|
||||
compatible = "pwm-regulator";
|
||||
pwms = <&pwm6 0 5000 1>;
|
||||
regulator-name = "vdd_npu";
|
||||
regulator-min-microvolt = <800000>;
|
||||
regulator-max-microvolt = <1100000>;
|
||||
regulator-init-microvolt = <900000>;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-settling-time-up-us = <250>;
|
||||
pwm-supply = <&vcc_sys>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
dc_12v: dc-12v {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "dc_12v";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <12000000>;
|
||||
regulator-max-microvolt = <12000000>;
|
||||
};
|
||||
|
||||
vcc5v_midu: vcc5v-midu {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc5v_midu";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
vin-supply = <&dc_12v>;
|
||||
};
|
||||
|
||||
vcc_3v3: vcc-3v3 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_3v3";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
vin-supply = <&vcc3v3_sys>;
|
||||
};
|
||||
|
||||
vcc3v3_lcd_n: vcc3v3-lcd-n {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc3v3_lcd_n";
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
enable-active-high;
|
||||
vin-supply = <&vcc3v3_sys>;
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
/*
|
||||
wireless-wlan {
|
||||
compatible = "wlan-platdata";
|
||||
rockchip,grf = <&sys_grf>;
|
||||
wifi_chip_type = "ap6255";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&wifi_host_wake_irq>;
|
||||
WIFI,host_wake_irq = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
|
||||
WIFI,poweren_gpio = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
|
||||
WIFI,vbat_gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
wireless-bluetooth {
|
||||
compatible = "bluetooth-platdata";
|
||||
clocks = <&rk817 1>;
|
||||
clock-names = "ext_clock";
|
||||
//wifi-bt-power-toggle;
|
||||
uart_rts_gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default", "rts_gpio";
|
||||
pinctrl-0 = <&uart1m0_rtsn>;
|
||||
pinctrl-1 = <&uart1_gpios>;
|
||||
BT,reset_gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
|
||||
BT,wake_gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
|
||||
BT,wake_host_irq = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
*/
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
cpu-supply = <&vdd_cpu>;
|
||||
};
|
||||
|
||||
//&bus_soc {
|
||||
// rockchip,soc-bus-table = <0 0x00a000a8 0x7001>,
|
||||
// <1 0x00a000a8 0x7c39>,
|
||||
// <2 0x00a000a8 0x7c39>,
|
||||
// <3 0x00a000a8 0x7c39>,
|
||||
// <4 0x00a000a5 0xb007>,
|
||||
// <5 0x00a000a8 0x7034>,
|
||||
// <6 0x00a000a8 0x7034>,
|
||||
// <7 0x00a000a8 0x7034>,
|
||||
// <8 0x00a000a8 0x7001>;
|
||||
//};
|
||||
|
||||
&display_subsystem {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dsi {
|
||||
dsi_panel: panel@0 {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
&gpu {
|
||||
mali-supply = <&vdd_gpu>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
|
||||
rk817: pmic@20 {
|
||||
compatible = "rockchip,rk817";
|
||||
reg = <0x20>;
|
||||
interrupt-parent = <&gpio0>;
|
||||
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
|
||||
|
||||
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";
|
||||
/* 1: rst regs (default in codes), 0: rst the pmic */
|
||||
pmic-reset-func = <0>;
|
||||
vcc1-supply = <&vcc_sys>;
|
||||
vcc2-supply = <&vcc_sys>;
|
||||
vcc3-supply = <&vcc_sys>;
|
||||
vcc4-supply = <&vcc_sys>;
|
||||
vcc5-supply = <&vcc_sys>;
|
||||
vcc6-supply = <&vcc_sys>;
|
||||
vcc7-supply = <&vcc_sys>;
|
||||
vcc8-supply = <&vcc_sys>;
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
vdd_cpu: 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_cpu";
|
||||
regulator-state-mem {
|
||||
regulator-off-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;
|
||||
};
|
||||
};
|
||||
|
||||
vcc3v3_sys: DCDC_REG4 {
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-initial-mode = <0x2>;
|
||||
regulator-name = "vcc3v3_sys";
|
||||
regulator-state-mem {
|
||||
regulator-on-in-suspend;
|
||||
regulator-suspend-microvolt = <3300000>;
|
||||
};
|
||||
};
|
||||
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
};
|
||||
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
vccio_acodec: LDO_REG4 {
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3000000>;
|
||||
regulator-max-microvolt = <3000000>;
|
||||
regulator-name = "vccio_acodec";
|
||||
regulator-state-mem {
|
||||
regulator-off-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;
|
||||
};
|
||||
};
|
||||
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
};
|
||||
|
||||
vcc1v8_dvp: LDO_REG8 {
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-name = "vcc1v8_dvp";
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
vcc2v8_dvp: LDO_REG9 {
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
regulator-name = "vcc2v8_dvp";
|
||||
regulator-state-mem {
|
||||
regulator-off-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;
|
||||
};
|
||||
};
|
||||
|
||||
otg_switch: OTG_SWITCH {
|
||||
regulator-name = "otg_switch";
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/*
|
||||
battery {
|
||||
compatible = "rk817,battery";
|
||||
ocv_table = <3400 3671 3686 3712 3738 3756 3773
|
||||
3787 3802 3819 3840 3868 3916 3959
|
||||
3998 4041 4087 4138 4191 4247 4313>;
|
||||
design_capacity = <5780>;
|
||||
design_qmax = <6358>;
|
||||
bat_res = <100>;
|
||||
sleep_enter_current = <150>;
|
||||
sleep_exit_current = <180>;
|
||||
sleep_filter_current = <100>;
|
||||
power_off_thresd = <3400>;
|
||||
zero_algorithm_vol = <3950>;
|
||||
max_soc_offset = <60>;
|
||||
monitor_sec = <5>;
|
||||
sample_res = <10>;
|
||||
virtual_power = <0>;
|
||||
};
|
||||
|
||||
charger {
|
||||
compatible = "rk817,charger";
|
||||
min_input_voltage = <4500>;
|
||||
max_input_current = <1500>;
|
||||
max_chrg_current = <2000>;
|
||||
max_chrg_voltage = <4350>;
|
||||
chrg_term_mode = <0>;
|
||||
chrg_finish_cur = <300>;
|
||||
virtual_power = <0>;
|
||||
dc_det_adc = <0>;
|
||||
extcon = <&u2phy>;
|
||||
gate_function_disable = <1>;
|
||||
};
|
||||
*/
|
||||
rk817_codec: codec {
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "rockchip,rk817-codec";
|
||||
clocks = <&mclkout_sai0>;
|
||||
clock-names = "mclk";
|
||||
assigned-clocks = <&mclkout_sai0>;
|
||||
assigned-clock-rates = <12288000>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s0m0_mclk>;
|
||||
hp-volume = <20>;
|
||||
spk-volume = <55>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&jpegd {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&jpegd_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&mpp_srv {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
/*
|
||||
sdio-pwrseq {
|
||||
wifi_enable_h: wifi-enable-h {
|
||||
rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
*/
|
||||
vcc_sd {
|
||||
vcc_sd_h: vcc-sd-h {
|
||||
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_down>;
|
||||
};
|
||||
};
|
||||
/*
|
||||
wireless-wlan {
|
||||
wifi_host_wake_irq: wifi-host-wake-irq {
|
||||
rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
|
||||
};
|
||||
};
|
||||
|
||||
wireless-bluetooth {
|
||||
uart1_gpios: uart1-gpios {
|
||||
rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
*/
|
||||
};
|
||||
|
||||
&pwm6 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm7 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rga2 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rga2_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rknpu {
|
||||
rknpu-supply = <&vdd_npu>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rknpu_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkvdec {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkvdec_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkvenc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkvenc_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
&sai0 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s0m0_lrck
|
||||
&i2s0m0_sclk
|
||||
&i2s0m0_sdi0
|
||||
&i2s0m0_sdo0>;
|
||||
};
|
||||
|
||||
&saradc0 {
|
||||
status = "okay";
|
||||
vref-supply = <&vcc_1v8>;
|
||||
};
|
||||
|
||||
&saradc1 {
|
||||
status = "okay";
|
||||
vref-supply = <&vcc_1v8>;
|
||||
};
|
||||
|
||||
&sdhci {
|
||||
bus-width = <8>;
|
||||
no-sdio;
|
||||
no-sd;
|
||||
supports-emmc;
|
||||
non-removable;
|
||||
max-frequency = <200000000>;
|
||||
mmc-hs400-1_8v;
|
||||
mmc-hs400-enhanced-strobe;
|
||||
full-pwr-cycle-in-suspend;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sdmmc0 {
|
||||
max-frequency = <200000000>;
|
||||
no-sdio;
|
||||
no-mmc;
|
||||
bus-width = <4>;
|
||||
cap-mmc-highspeed;
|
||||
cap-sd-highspeed;
|
||||
disable-wp;
|
||||
sd-uhs-sdr104;
|
||||
vmmc-supply = <&vcc_sd>;
|
||||
vqmmc-supply = <&vccio_sd>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
|
||||
status = "okay";
|
||||
};
|
||||
/*
|
||||
&sdmmc1 {
|
||||
max-frequency = <200000000>;
|
||||
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;
|
||||
status = "okay";
|
||||
};
|
||||
*/
|
||||
&tsadc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&vop {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&vop_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
34
rk3562/rp-adc-key.dtsi
Executable file
34
rk3562/rp-adc-key.dtsi
Executable file
@@ -0,0 +1,34 @@
|
||||
|
||||
/ {
|
||||
adc_keys: adc-keys {
|
||||
compatible = "adc-keys";
|
||||
io-channels = <&saradc0 1>;
|
||||
io-channel-names = "buttons";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
poll-interval = <100>;
|
||||
|
||||
vol-up-key {
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
label = "volume up";
|
||||
press-threshold-microvolt = <17000>;
|
||||
};
|
||||
|
||||
vol-down-key {
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
label = "volume down";
|
||||
press-threshold-microvolt = <414000>;
|
||||
};
|
||||
|
||||
menu-key {
|
||||
linux,code = <KEY_MENU>;
|
||||
label = "menu";
|
||||
press-threshold-microvolt = <800000>;
|
||||
};
|
||||
|
||||
back-key {
|
||||
linux,code = <KEY_BACK>;
|
||||
label = "back";
|
||||
press-threshold-microvolt = <1200000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
43
rk3562/rp-audio-rk817.dtsi
Executable file
43
rk3562/rp-audio-rk817.dtsi
Executable file
@@ -0,0 +1,43 @@
|
||||
|
||||
/ {
|
||||
rk817-sound {
|
||||
compatible = "rockchip,multicodecs-card";
|
||||
rockchip,card-name = "rockchip-rk817";
|
||||
// hp-det-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
|
||||
// io-channels = <&saradc 1>;
|
||||
// io-channel-names = "adc-detect";
|
||||
// keyup-threshold-microvolt = <1800000>;
|
||||
// poll-interval = <100>;
|
||||
rockchip,format = "i2s";
|
||||
rockchip,mclk-fs = <256>;
|
||||
rockchip,cpu = <&i2s1_2ch>;
|
||||
rockchip,codec = <&rk817_codec>;
|
||||
// pinctrl-names = "default";
|
||||
// pinctrl-0 = <&hp_det>;
|
||||
// play-pause-key {
|
||||
// label = "playpause";
|
||||
// linux,code = <KEY_PLAYPAUSE>;
|
||||
// press-threshold-microvolt = <2000>;
|
||||
// };
|
||||
};
|
||||
|
||||
rk_headset: rk-headset {
|
||||
compatible = "rockchip_headset";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
headset_gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
&i2s1_2ch {
|
||||
status = "okay";
|
||||
#sound-dai-cells = <0>;
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
headphone {
|
||||
hp_det: hp-det {
|
||||
rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_down>;
|
||||
};
|
||||
};
|
||||
};
|
||||
34
rk3562/rp-eth-gmac.dtsi
Executable file
34
rk3562/rp-eth-gmac.dtsi
Executable file
@@ -0,0 +1,34 @@
|
||||
&gmac0 {
|
||||
/* Use rgmii-rxid mode to disable rx delay inside Soc */
|
||||
phy-mode = "rgmii-rxid";
|
||||
clock_in_out = "input";
|
||||
|
||||
snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
|
||||
snps,reset-active-low;
|
||||
/* Reset time is 20ms, 100ms for rtl8211f */
|
||||
snps,reset-delays-us = <0 10000 100000>;
|
||||
|
||||
tx_delay = <0x1c>;
|
||||
/*rx_delay = <0x3f>;*/
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&rgmiim0_miim
|
||||
&rgmiim0_tx_bus2
|
||||
&rgmiim0_rx_bus2
|
||||
&rgmiim0_rgmii_clk
|
||||
&rgmiim0_rgmii_bus
|
||||
&rgmiim0_clk
|
||||
ðm0_pins>;
|
||||
phy-handle = <&rgmii_phy>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
rgmii_phy: phy@1 {
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
reg = <0x1>;
|
||||
clocks = <&cru CLK_GMAC_ETH_OUT2IO>;
|
||||
assigned-clocks = <&cru CLK_GMAC_ETH_OUT2IO>;
|
||||
assigned-clock-rates = <25000000>;
|
||||
};
|
||||
};
|
||||
23
rk3562/rp-eth-pcie2gmac-rk3562.dtsi
Executable file
23
rk3562/rp-eth-pcie2gmac-rk3562.dtsi
Executable file
@@ -0,0 +1,23 @@
|
||||
/{
|
||||
vcc3v3_pcie20: vcc3v3-pcie20 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc3v3_pcie20";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
enable-active-high;
|
||||
// gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
|
||||
startup-delay-us = <5000>;
|
||||
vin-supply = <&dc_12v>;
|
||||
};
|
||||
};
|
||||
|
||||
&combphy_pu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie2x1 {
|
||||
pinctrl-0 = <&pcie20m0_pins>;
|
||||
reset-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
|
||||
vpcie3v3-supply = <&vcc3v3_pcie20>;
|
||||
status = "okay";
|
||||
};
|
||||
187
rk3562/rp-lcd-lvds-10-1280-800.dtsi
Executable file
187
rk3562/rp-lcd-lvds-10-1280-800.dtsi
Executable file
@@ -0,0 +1,187 @@
|
||||
#include <dt-bindings/display/media-bus-format.h>
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&lvds_panel {
|
||||
status = "okay";
|
||||
compatible = "simple-panel";
|
||||
enable-delay-ms = <20>;
|
||||
prepare-delay-ms = <20>;
|
||||
unprepare-delay-ms = <20>;
|
||||
disable-delay-ms = <20>;
|
||||
bus-format = <MEDIA_BUS_FMT_RGB888_2X12_BE>;
|
||||
width-mm = <217>;
|
||||
height-mm = <136>;
|
||||
|
||||
/*
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
display-timings {
|
||||
native-mode = <&timing0>;
|
||||
|
||||
timing0: timing0 {
|
||||
clock-frequency = <72000000>;
|
||||
hactive = <1280>;
|
||||
vactive = <800>;
|
||||
hback-porch = <138>;
|
||||
hfront-porch = <136>;
|
||||
vback-porch = <10>;
|
||||
vfront-porch = <10>;
|
||||
hsync-len = <20>;
|
||||
vsync-len = <3>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
dual-lvds-even-pixels;
|
||||
panel_in_lvds: endpoint {
|
||||
remote-endpoint = <&lvds_out_panel>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&lvds {
|
||||
status = "okay";
|
||||
ports {
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
|
||||
lvds_out_panel: endpoint {
|
||||
remote-endpoint = <&panel_in_lvds>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "0";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "180";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&lvds_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_lvds {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_lvds>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
>9xx {
|
||||
status = "okay";
|
||||
|
||||
compatible = "goodix,gt9xx";
|
||||
reg = <0x5d>;
|
||||
gtp_resolution_x = <1280>;
|
||||
gtp_resolution_y = <800>;
|
||||
gtp_int_tarigger = <1>;
|
||||
gtp_change_x2y = <0>;
|
||||
gtp_overturn_x = <0>;
|
||||
gtp_overturn_y = <0>;
|
||||
gtp_send_cfg = <1>;
|
||||
gtp_touch_wakeup = <1>;
|
||||
|
||||
/**
|
||||
* goodix_rst_gpio = <>;
|
||||
* goodix_irq_gpio = <>;
|
||||
*
|
||||
* touch panel interrupt and reset pin
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
goodix,cfg-group2 = [
|
||||
5A 00 05 20 03 02 0D 00 01 0A 28
|
||||
0A 50 32 03 05 00 00 00 00 00 00
|
||||
08 00 00 00 00 8C 2E 0E 30 32 34
|
||||
06 00 00 00 82 02 1D 00 01 00 00
|
||||
00 00 00 00 00 00 00 24 60 94 C5
|
||||
02 07 00 00 04 97 27 00 80 30 00
|
||||
6D 3B 00 60 47 00 54 57 00 54 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 00 00 00 00 00 00 00 00
|
||||
00 00 1C 1A 18 16 14 12 10 0E 0C
|
||||
0A 08 06 04 02 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 2A
|
||||
29 28 26 24 22 21 20 1F 1E 1D 1C
|
||||
18 16 14 13 12 10 0F 0C 0A 08 06
|
||||
04 02 00 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 D4 01
|
||||
];
|
||||
goodix,cfg-group3 = [
|
||||
5A 00 05 20 03 02 0D 00 01 0A 28
|
||||
0A 50 32 03 05 00 00 00 00 00 00
|
||||
08 00 00 00 00 8C 2E 0E 30 32 34
|
||||
06 00 00 00 82 02 1D 00 01 00 00
|
||||
00 00 00 00 00 00 00 24 60 94 C5
|
||||
02 07 00 00 04 97 27 00 80 30 00
|
||||
6D 3B 00 60 47 00 54 57 00 54 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 00 00 00 00 00 00 00 00
|
||||
00 00 1C 1A 18 16 14 12 10 0E 0C
|
||||
0A 08 06 04 02 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 2A
|
||||
29 28 26 24 22 21 20 1F 1E 1D 1C
|
||||
18 16 14 13 12 10 0F 0C 0A 08 06
|
||||
04 02 00 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 D4 01
|
||||
];
|
||||
};
|
||||
|
||||
172
rk3562/rp-lcd-lvds-7-1024-600.dtsi
Executable file
172
rk3562/rp-lcd-lvds-7-1024-600.dtsi
Executable file
@@ -0,0 +1,172 @@
|
||||
#include <dt-bindings/display/media-bus-format.h>
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&lvds_panel {
|
||||
status = "okay";
|
||||
compatible = "simple-panel";
|
||||
enable-delay-ms = <20>;
|
||||
prepare-delay-ms = <20>;
|
||||
unprepare-delay-ms = <20>;
|
||||
disable-delay-ms = <20>;
|
||||
bus-format = <MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA>;
|
||||
width-mm = <217>;
|
||||
height-mm = <136>;
|
||||
|
||||
/*
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
display-timings {
|
||||
native-mode = <&timing0>;
|
||||
|
||||
timing0: timing0 {
|
||||
clock-frequency = <45000000>;
|
||||
hactive = <1024>;
|
||||
vactive = <600>;
|
||||
hback-porch = <160>;
|
||||
hfront-porch = <160>;
|
||||
vback-porch = <23>;
|
||||
vfront-porch = <12>;
|
||||
hsync-len = <20>;
|
||||
vsync-len = <3>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
dual-lvds-even-pixels;
|
||||
panel_in_lvds: endpoint {
|
||||
remote-endpoint = <&lvds_out_panel>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&lvds {
|
||||
status = "okay";
|
||||
ports {
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
|
||||
lvds_out_panel: endpoint {
|
||||
remote-endpoint = <&panel_in_lvds>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "0";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "180";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&lvds_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_lvds {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_lvds>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
>9xx {
|
||||
status = "okay";
|
||||
compatible = "goodix,gt9xx";
|
||||
reg = <0x5d>;
|
||||
gtp_resolution_x = <1024>;
|
||||
gtp_resolution_y = <600>;
|
||||
gtp_int_tarigger = <1>;
|
||||
gtp_change_x2y = <0>;
|
||||
gtp_overturn_x = <0>;
|
||||
gtp_overturn_y = <0>;
|
||||
gtp_send_cfg = <1>;
|
||||
gtp_touch_wakeup = <1>;
|
||||
|
||||
/**
|
||||
* goodix_rst_gpio = <>;
|
||||
* goodix_irq_gpio = <>;
|
||||
*
|
||||
* touch panel interrupt and reset pin
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
goodix,cfg-group0 = [
|
||||
5A 00 04 58 02 05 3D 00 01
|
||||
08 32 0F 5A 32 03 05 00 00
|
||||
00 00 02 00 00 18 1A 1E 14
|
||||
87 29 0A 55 57 B5 06 00 00
|
||||
00 20 33 1C 14 01 00 0F 00
|
||||
2B FF 7F 19 46 32 3C 78 94
|
||||
D5 02 08 00 00 04 98 40 00
|
||||
8A 4A 00 80 55 00 77 61 00
|
||||
6F 70 00 6F 00 00 00 00 F0
|
||||
40 30 FF FF 27 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 02 04 06 08 0A
|
||||
0C 0E 10 12 14 FF FF FF FF
|
||||
00 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 02
|
||||
04 06 08 0A 0C 1D 1E 1F 20
|
||||
21 22 24 26 28 29 2A FF FF
|
||||
FF FF FF FF FF FF 00 00 00
|
||||
00 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 6F 01
|
||||
];
|
||||
};
|
||||
|
||||
182
rk3562/rp-lcd-mipi-10-1200-1920.dtsi
Executable file
182
rk3562/rp-lcd-mipi-10-1200-1920.dtsi
Executable file
@@ -0,0 +1,182 @@
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "270";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "320";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "okay";
|
||||
rockchip,lane-rate = <1000>;
|
||||
dsi_panel: panel@0 {
|
||||
status = "okay";
|
||||
compatible = "aoly,sl008pa21y1285-b00","simple-panel-dsi";
|
||||
reg = <0>;
|
||||
// reset-delay-ms = <60>;
|
||||
// init-delay-ms = <60>;
|
||||
enable-delay-ms = <120>;
|
||||
prepare-delay-ms = <120>;
|
||||
// unprepare-delay-ms = <60>;
|
||||
// disable-delay-ms = <60>;
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
/**
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
disp_timings0: display-timings {
|
||||
native-mode = <&dsi_timing0>;
|
||||
dsi_timing0: timing0 {
|
||||
clock-frequency = <130000000>;
|
||||
hactive = <1200>;
|
||||
vactive = <1920>;
|
||||
hback-porch = <30>;
|
||||
hfront-porch = <60>;
|
||||
vback-porch = <16>;
|
||||
vfront-porch = <16>;
|
||||
hsync-len = <10>;
|
||||
vsync-len = <2>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_dsi>;
|
||||
};
|
||||
|
||||
|
||||
>9xx {
|
||||
status = "okay";
|
||||
compatible = "goodix,gt9xx";
|
||||
reg = <0x5d>;
|
||||
gtp_resolution_x = <1200>;
|
||||
gtp_resolution_y = <1920>;
|
||||
gtp_int_tarigger = <1>;
|
||||
gtp_change_x2y = <0>;
|
||||
gtp_overturn_x = <0>;
|
||||
gtp_overturn_y = <0>;
|
||||
gtp_send_cfg = <1>;
|
||||
gtp_touch_wakeup = <1>;
|
||||
|
||||
/**
|
||||
* goodix_rst_gpio = <>;
|
||||
* goodix_irq_gpio = <>;
|
||||
*
|
||||
* touch panel interrupt and reset pin
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
goodix,cfg-group0 = [
|
||||
49 20 03 00 05 0A 35 00 01 06 23 08
|
||||
37 2D 03 05 00 00 00 00 00 00 04 17
|
||||
19 1D 14 90 30 AA 53 55 0C 08 00 00
|
||||
00 01 03 1C 00 00 00 00 00 00 00 00
|
||||
00 00 00 3C 78 94 D0 42 00 08 00 04
|
||||
8E 40 00 85 4A 00 7F 55 00 7B 61 00
|
||||
7A 70 00 7B 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 00 00 00 00 00 00
|
||||
00 00 00 00 19 18 17 16 15 14 11 10
|
||||
0F 0E 0D 0C 09 08 07 06 05 04 01 00
|
||||
FF FF FF FF FF FF FF FF FF FF 00 02
|
||||
04 06 07 08 0A 0C 0D 0E 0F 10 11 12
|
||||
13 14 2A 29 28 27 26 25 24 23 22 21
|
||||
20 1F 1E 1C 1B 19 FF FF FF FF FF FF
|
||||
FF FF FF FF 24 01
|
||||
];
|
||||
goodix,cfg-group2 = [
|
||||
49 20 03 00 05 0A 35 00 01 06 23 08
|
||||
37 2D 03 05 00 00 00 00 00 00 04 17
|
||||
19 1D 14 90 30 AA 53 55 0C 08 00 00
|
||||
00 01 03 1C 00 00 00 00 00 00 00 00
|
||||
00 00 00 3C 78 94 D0 42 00 08 00 04
|
||||
8E 40 00 85 4A 00 7F 55 00 7B 61 00
|
||||
7A 70 00 7B 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 00 00 00 00 00 00
|
||||
00 00 00 00 19 18 17 16 15 14 11 10
|
||||
0F 0E 0D 0C 09 08 07 06 05 04 01 00
|
||||
FF FF FF FF FF FF FF FF FF FF 00 02
|
||||
04 06 07 08 0A 0C 0D 0E 0F 10 11 12
|
||||
13 14 2A 29 28 27 26 25 24 23 22 21
|
||||
20 1F 1E 1C 1B 19 FF FF FF FF FF FF
|
||||
FF FF FF FF 24 01
|
||||
];
|
||||
};
|
||||
173
rk3562/rp-lcd-mipi-10-800-1280-v3.dtsi
Executable file
173
rk3562/rp-lcd-mipi-10-800-1280-v3.dtsi
Executable file
@@ -0,0 +1,173 @@
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "90";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "240";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "okay";
|
||||
//rockchip,lane-rate = <480>;
|
||||
dsi_panel: panel@0 {
|
||||
status = "okay";
|
||||
compatible = "aoly,sl008pa21y1285-b00","simple-panel-dsi";
|
||||
reg = <0>;
|
||||
reset-delay-ms = <60>;
|
||||
init-delay-ms = <60>;
|
||||
enable-delay-ms = <60>;
|
||||
prepare-delay-ms = <60>;
|
||||
unprepare-delay-ms = <60>;
|
||||
disable-delay-ms = <60>;
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
/**
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
panel-init-sequence = [
|
||||
05 78 01 11 //sleep out
|
||||
05 20 01 29 //display on
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 00 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
disp_timings0: display-timings {
|
||||
native-mode = <&dsi_timing0>;
|
||||
dsi_timing0: timing0 {
|
||||
clock-frequency = <82000000>;
|
||||
hactive = <800>;
|
||||
vactive = <1280>;
|
||||
hback-porch = <100>;
|
||||
hfront-porch = <100>;
|
||||
vback-porch = <30>;
|
||||
vfront-porch = <20>;
|
||||
hsync-len = <30>;
|
||||
vsync-len = <2>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_dsi>;
|
||||
};
|
||||
|
||||
|
||||
>9xx {
|
||||
status = "okay";
|
||||
compatible = "goodix,gt9xx";
|
||||
reg = <0x5d>;
|
||||
gtp_resolution_x = <800>;
|
||||
gtp_resolution_y = <1280>;
|
||||
gtp_int_tarigger = <1>;
|
||||
gtp_change_x2y = <0>;
|
||||
gtp_overturn_x = <0>;
|
||||
gtp_overturn_y = <0>;
|
||||
gtp_send_cfg = <1>;
|
||||
gtp_touch_wakeup = <1>;
|
||||
|
||||
/**
|
||||
* goodix_rst_gpio = <>;
|
||||
* goodix_irq_gpio = <>;
|
||||
*
|
||||
* touch panel interrupt and reset pin
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
goodix,cfg-group2 = [
|
||||
49 20 03 00 05 0A 35 00 01 06 23 08
|
||||
37 2D 03 05 00 00 00 00 00 00 04 17
|
||||
19 1D 14 90 30 AA 53 55 0C 08 00 00
|
||||
00 01 03 1C 00 00 00 00 00 00 00 00
|
||||
00 00 00 3C 78 94 D0 42 00 08 00 04
|
||||
8E 40 00 85 4A 00 7F 55 00 7B 61 00
|
||||
7A 70 00 7B 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 00 00 00 00 00 00
|
||||
00 00 00 00 19 18 17 16 15 14 11 10
|
||||
0F 0E 0D 0C 09 08 07 06 05 04 01 00
|
||||
FF FF FF FF FF FF FF FF FF FF 00 02
|
||||
04 06 07 08 0A 0C 0D 0E 0F 10 11 12
|
||||
13 14 2A 29 28 27 26 25 24 23 22 21
|
||||
20 1F 1E 1C 1B 19 FF FF FF FF FF FF
|
||||
FF FF FF FF 24 01
|
||||
];
|
||||
};
|
||||
213
rk3562/rp-lcd-mipi-5-720-1280-v2-boxTP.dtsi
Executable file
213
rk3562/rp-lcd-mipi-5-720-1280-v2-boxTP.dtsi
Executable file
@@ -0,0 +1,213 @@
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "270";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "240";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "okay";
|
||||
// rockchip,lane-rate = <480>;
|
||||
dsi_panel: panel@0 {
|
||||
status = "okay";
|
||||
compatible = "aoly,sl008pa21y1285-b00","simple-panel-dsi";
|
||||
reg = <0>;
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
|
||||
//MIPI_DSI_MODE_VIDEO_SYNC_PULSE)>;
|
||||
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
dsi,lanes = <4>;
|
||||
reset-delay-ms = <20>;
|
||||
init-delay-ms = <20>;
|
||||
enable-delay-ms = <120>;
|
||||
prepare-delay-ms = <120>;
|
||||
|
||||
/**
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
panel-init-sequence = [
|
||||
39 00 04 B9 F1 12 83
|
||||
|
||||
39 00 1C BA 33 81 05 F9 0E 0E 20 00 00 00 00 00 00 00 44 25 00 91 0A 00 00 02 4F D1 00 00 37
|
||||
|
||||
39 00 02 B8 26
|
||||
|
||||
|
||||
39 00 04 BF 02 10 00
|
||||
|
||||
39 00 0B B3 07 0B 1E 1E 03 FF 00 00 00 00
|
||||
|
||||
|
||||
39 00 0A C0 73 73 50 50 00 00 08 70 00
|
||||
|
||||
39 00 02 BC 46
|
||||
|
||||
39 00 02 CC 0B
|
||||
|
||||
39 00 02 B4 80
|
||||
|
||||
39 00 04 B2 C8 12 A0
|
||||
|
||||
39 00 0F E3 07 07 0B 0B 03 0B 00 00 00 00 FF 80 C0 10
|
||||
|
||||
|
||||
39 00 0D C1 53 00 32 32 77 F1 FF FF CC CC 77 77
|
||||
|
||||
39 00 03 B5 09 09
|
||||
|
||||
39 00 03 B6 B7 B7
|
||||
|
||||
39 00 40 E9 C2 10 0A 00 00 81 80 12 30 00 37 86 81 80 37 18 00 05 00 00 00 00 00 05 00 00 00 00 F8 BA 46 02 08 28 88 88 88 88 88 F8 BA 57 13 18 38 88 88 88 88 88 00 00 00 03 00 00 00 00 00 00 00 00 00
|
||||
|
||||
39 00 3E EA 07 12 01 01 02 3C 00 00 00 00 00 00 8F BA 31 75 38 18 88 88 88 88 88 8F BA 20 64 28 08 88 88 88 88 88 23 10 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
|
||||
39 00 23 E0 00 02 04 1A 23 3F 2C 28 05 09 0B 10 11 10 12 12 19 00 02 04 1A 23 3F 2C 28 05 09 0B 10 11 10 12 12 19
|
||||
|
||||
|
||||
05 ff 01 11 ////Sleep Out
|
||||
|
||||
05 32 01 29 ///Display On
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 00 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
disp_timings0: display-timings {
|
||||
native-mode = <&dsi_timing0>;
|
||||
dsi_timing0: timing0 {
|
||||
clock-frequency = <60000000>;
|
||||
hactive = <720>;
|
||||
vactive = <1280>;
|
||||
hback-porch = <45>;
|
||||
hfront-porch = <45>;
|
||||
vback-porch = <16>;
|
||||
vfront-porch = <16>;
|
||||
hsync-len = <10>;
|
||||
vsync-len = <3>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_dsi>;
|
||||
};
|
||||
|
||||
|
||||
>9xx {
|
||||
status = "okay";
|
||||
compatible = "goodix,gt9xx";
|
||||
reg = <0x5d>;
|
||||
gtp_resolution_x = <720>;
|
||||
gtp_resolution_y = <1280>;
|
||||
gtp_int_tarigger = <1>;
|
||||
gtp_change_x2y = <0>;
|
||||
gtp_overturn_x = <0>;
|
||||
gtp_overturn_y = <0>;
|
||||
gtp_send_cfg = <1>;
|
||||
gtp_touch_wakeup = <1>;
|
||||
|
||||
/**
|
||||
* goodix_rst_gpio = <>;
|
||||
* goodix_irq_gpio = <>;
|
||||
*
|
||||
* touch panel interrupt and reset pin
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
goodix,cfg-group0 = [
|
||||
4D D0 02 00 05 05 35 00 01 08 32
|
||||
08 5A 3C 03 05 00 00 00 00 00 00
|
||||
00 18 1A 1E 14 89 29 0A 55 57 B5
|
||||
06 00 00 00 41 22 10 00 01 00 0F
|
||||
00 2A 00 00 19 50 32 3C 78 94 D5
|
||||
02 08 00 00 04 A2 40 00 8F 4A 00
|
||||
80 55 00 73 61 00 67 70 00 67 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 00 00 00 00 00 00 00 00
|
||||
00 00 02 04 06 08 0A 0C 0E 10 12
|
||||
14 FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF 22
|
||||
21 20 1F 1E 1D 1C 18 16 00 02 04
|
||||
06 08 0A 0F 10 12 FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF 8D 01
|
||||
];
|
||||
};
|
||||
162
rk3562/rp-lcd-mipi-5.5-720-1280-v2.dtsi
Executable file
162
rk3562/rp-lcd-mipi-5.5-720-1280-v2.dtsi
Executable file
@@ -0,0 +1,162 @@
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "0";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "240";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "okay";
|
||||
rockchip,lane-rate = <480>;
|
||||
dsi_panel: panel@0 {
|
||||
status = "okay";
|
||||
compatible = "aoly,sl008pa21y1285-b00","simple-panel-dsi";
|
||||
reg = <0>;
|
||||
reset-delay-ms = <20>;
|
||||
init-delay-ms = <20>;
|
||||
enable-delay-ms = <120>;
|
||||
prepare-delay-ms = <120>;
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
MIPI_DSI_MODE_VIDEO_SYNC_PULSE)>;
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
/**
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
panel-init-sequence = [
|
||||
39 00 04 B9 F1 12 83
|
||||
39 00 1C BA 33 81 05 F9 0E 0E 20 00 00 00 00 00 00 00 44 25 00 91 0A 00 00 02 4F D1 00 00 37
|
||||
39 00 05 B8 26 22 20 03
|
||||
39 00 04 BF 02 11 00
|
||||
39 00 0B B3 0C 10 0A 50 03 FF 00 00 00 00
|
||||
39 00 0A C0 73 73 50 50 00 00 08 70 00
|
||||
39 00 02 BC 46
|
||||
39 00 02 CC 0B
|
||||
39 00 02 B4 80
|
||||
39 00 04 B2 C8 12 30
|
||||
39 00 0F E3 07 07 0B 0B 03 0B 00 00 00 00 FF 00 C0 10
|
||||
39 00 0D C1 53 00 1E 1E 77 C1 FF FF AF AF 7F 7F
|
||||
39 00 03 B5 07 07
|
||||
39 00 03 B6 70 70
|
||||
39 00 07 C6 00 00 FF FF 01 FF
|
||||
39 00 40 E9 C2 10 05 04 FE 02 81 12 31 45 3F 83 12 91 3B 2A 08 05 00 00 00 00 08 05 00 00 00 00 FF 02 46 02 48 68 88 88 88 80 88 FF 13 57 13 58 78 88 88 88 81 88 00 00 00 00 00 12 B1 3B 00 00 00 00 00
|
||||
39 00 3E EA 00 1A 00 00 00 00 00 00 00 00 00 00 FF 31 75 31 18 78 88 88 88 85 88 FF 20 64 20 08 68 88 88 88 84 88 20 10 00 00 54 00 00 00 00 00 00 00 C0 00 00 0C 00 00 00 00 30 02 A1 00 00 00 00
|
||||
39 00 23 E0 00 05 07 1A 39 3F 33 2C 06 0B 0D 11 13 12 14 10 1A 00 05 07 1A 39 3F 33 2C 06 0B 0D 11 13 12 14 10 1A
|
||||
05 ff 01 11
|
||||
05 78 01 29
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 00 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
disp_timings0: display-timings {
|
||||
native-mode = <&dsi_timing0>;
|
||||
dsi_timing0: timing0 {
|
||||
clock-frequency = <60000000>;
|
||||
hactive = <720>;
|
||||
vactive = <1280>;
|
||||
hback-porch = <42>;
|
||||
hfront-porch = <44>;
|
||||
vback-porch = <10>;
|
||||
vfront-porch = <14>;
|
||||
hsync-len = <2>;
|
||||
vsync-len = <2>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_dsi>;
|
||||
};
|
||||
|
||||
|
||||
>1x {
|
||||
status = "okay";
|
||||
compatible = "goodix,gt1x";
|
||||
reg = <0x5d>;
|
||||
|
||||
/**
|
||||
* goodix,rst-gpio = <>;
|
||||
* goodix,irq-gpio = <>;
|
||||
*
|
||||
* touch panel interrupt and reset pin
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
};
|
||||
196
rk3562/rp-lcd-mipi-7-1024-600.dtsi
Executable file
196
rk3562/rp-lcd-mipi-7-1024-600.dtsi
Executable file
@@ -0,0 +1,196 @@
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "0";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "160";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "okay";
|
||||
rockchip,lane-rate = <480>;
|
||||
dsi_panel: panel@0 {
|
||||
status = "okay";
|
||||
compatible = "aoly,sl008pa21y1285-b00","simple-panel-dsi";
|
||||
reg = <0>;
|
||||
reset-delay-ms = <60>;
|
||||
enable-delay-ms = <60>;
|
||||
prepare-delay-ms = <60>;
|
||||
unprepare-delay-ms = <60>;
|
||||
disable-delay-ms = <60>;
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
/**
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
panel-init-sequence = [
|
||||
05 78 01 11
|
||||
05 78 01 29
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 00 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
disp_timings0: display-timings {
|
||||
native-mode = <&dsi_timing0>;
|
||||
dsi_timing0: timing0 {
|
||||
clock-frequency = <51000000>;
|
||||
hactive = <1024>;
|
||||
vactive = <600>;
|
||||
hback-porch = <160>;
|
||||
hfront-porch = <136>;
|
||||
vback-porch = <16>;
|
||||
vfront-porch = <16>;
|
||||
hsync-len = <4>;
|
||||
vsync-len = <2>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_dsi>;
|
||||
};
|
||||
|
||||
|
||||
>9xx {
|
||||
status = "okay";
|
||||
compatible = "goodix,gt9xx";
|
||||
reg = <0x5d>;
|
||||
gtp_resolution_x = <1024>;
|
||||
gtp_resolution_y = <600>;
|
||||
gtp_int_tarigger = <1>;
|
||||
gtp_change_x2y = <0>;
|
||||
gtp_overturn_x = <0>;
|
||||
gtp_overturn_y = <0>;
|
||||
gtp_send_cfg = <1>;
|
||||
gtp_touch_wakeup = <1>;
|
||||
|
||||
/**
|
||||
* goodix_rst_gpio = <>;
|
||||
* goodix_irq_gpio = <>;
|
||||
*
|
||||
* touch panel interrupt and reset pin
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
goodix,cfg-group0 = [ //old touch
|
||||
41 00 04 58 02 05 7D 00 01 2F 28
|
||||
0F 50 32 03 05 00 00 00 00 00 00
|
||||
00 18 1A 1E 14 89 0D 0C 2C 2A 0C
|
||||
08 00 00 00 82 03 1D 0A 32 05 0A
|
||||
32 00 00 00 00 00 0B 1E 50 94 E5
|
||||
02 08 00 00 04 A7 21 00 8B 28 00
|
||||
73 31 00 62 3B 00 52 48 00 52 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 00 00 00 00 00 32 50 00
|
||||
00 00 1C 1A 18 16 14 12 10 0E 0C
|
||||
0A 08 06 04 02 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 2A
|
||||
29 28 26 24 22 21 20 1F 1E 1D 18
|
||||
16 14 13 12 10 0F 0C 0A 08 06 FF
|
||||
FF FF FF 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 3B 01
|
||||
];
|
||||
goodix,cfg-group5 = [ //new touch
|
||||
FF 00 04 58 02 05 0D 04 01
|
||||
0A 28 0A 50 32 03 05 00 00
|
||||
00 00 00 00 08 00 00 00 00
|
||||
8B 2B 0E 30 32 0F 0A 00 00
|
||||
00 83 02 1D 00 00 00 00 00
|
||||
03 03 32 00 00 00 24 60 94
|
||||
C0 02 00 00 00 04 93 27 00
|
||||
80 30 00 70 3B 00 65 47 00
|
||||
5C 57 00 5C 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 00 00 00 00 00 00
|
||||
00 00 00 00 1C 1A 18 16 14
|
||||
12 10 0E 0C 0A 08 06 04 02
|
||||
00 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 26 24
|
||||
22 21 20 1F 1E 1D 1C 18 16
|
||||
13 12 10 0F 0C 0A 08 06 04
|
||||
02 00 FF FF FF FF 00 00 00
|
||||
00 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 6A 01
|
||||
];
|
||||
};
|
||||
250
rk3562/rp-lcd-mipi-7-1200-1920.dtsi
Executable file
250
rk3562/rp-lcd-mipi-7-1200-1920.dtsi
Executable file
@@ -0,0 +1,250 @@
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "0";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "320";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "okay";
|
||||
rockchip,lane-rate = <900>;
|
||||
dsi_panel: panel@0 {
|
||||
status = "okay";
|
||||
compatible = "aoly,sl008pa21y1285-b00","simple-panel-dsi";
|
||||
reg = <0>;
|
||||
reset-delay-ms = <60>;
|
||||
enable-delay-ms = <60>;
|
||||
prepare-delay-ms = <60>;
|
||||
unprepare-delay-ms = <60>;
|
||||
disable-delay-ms = <60>;
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
/**
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
panel-init-sequence = [
|
||||
39 00 03 b7 50 00
|
||||
39 00 03 b8 00 00
|
||||
39 10 03 b9 00 00
|
||||
39 10 03 ba 14 42
|
||||
39 10 03 bb 03 00
|
||||
39 60 03 b9 01 00
|
||||
39 10 03 de 03 00
|
||||
39 60 03 c9 02 23
|
||||
|
||||
39 00 02 b0 00
|
||||
39 00 06 14 08 b0 00 22 00
|
||||
39 30 02 b4 0c
|
||||
39 40 03 b6 3a d3
|
||||
39 50 02 51 e6
|
||||
39 30 02 53 2c
|
||||
|
||||
05 78 01 29
|
||||
05 78 01 11
|
||||
|
||||
39 00 03 b7 50 00
|
||||
39 00 03 b8 00 00
|
||||
39 10 03 b9 00 00
|
||||
39 10 03 ba 8c 83
|
||||
39 10 03 bb 03 00
|
||||
39 60 03 b9 01 00
|
||||
39 10 03 c9 02 23
|
||||
39 60 03 ca 01 23
|
||||
39 10 03 cb 10 05
|
||||
39 10 03 cc 05 10
|
||||
39 10 03 d0 00 00
|
||||
|
||||
|
||||
39 10 03 b6 03 00
|
||||
39 10 03 de 03 00
|
||||
39 10 03 d6 05 00
|
||||
39 60 03 b7 4b 02
|
||||
|
||||
05 00 01 2c
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 00 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
disp_timings0: display-timings {
|
||||
native-mode = <&dsi_timing0>;
|
||||
dsi_timing0: timing0 {
|
||||
clock-frequency = <140000000>;
|
||||
hactive = <1200>;
|
||||
vactive = <1900>;
|
||||
hback-porch = <30>;
|
||||
hfront-porch = <60>;
|
||||
vback-porch = <16>;
|
||||
vfront-porch = <16>;
|
||||
hsync-len = <4>;
|
||||
vsync-len = <2>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_dsi>;
|
||||
};
|
||||
|
||||
|
||||
>9xx {
|
||||
status = "okay";
|
||||
compatible = "goodix,gt9xx";
|
||||
reg = <0x5d>;
|
||||
gtp_resolution_x = <1200>;
|
||||
gtp_resolution_y = <1920>;
|
||||
gtp_int_tarigger = <1>;
|
||||
gtp_change_x2y = <0>;
|
||||
gtp_overturn_x = <0>;
|
||||
gtp_overturn_y = <0>;
|
||||
gtp_send_cfg = <1>;
|
||||
gtp_touch_wakeup = <1>;
|
||||
|
||||
/**
|
||||
* goodix_rst_gpio = <>;
|
||||
* goodix_irq_gpio = <>;
|
||||
*
|
||||
* touch panel interrupt and reset pin
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
goodix,cfg-group0 = [ //sensor id 0 for new tp
|
||||
44 B0 04 80 07 05 45 00 02 08 28
|
||||
08 46 32 03 05 00 00 00 00 00 00
|
||||
00 00 00 00 00 8C 2C 0E B0 B2 B2
|
||||
04 00 00 00 20 03 1C 00 01 00 00
|
||||
00 00 00 32 00 00 00 96 D2 94 D5
|
||||
02 00 00 00 04 8D 9B 00 85 A6 00
|
||||
7F B1 00 79 BD 00 73 CB 00 73 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 00 00 00 00 00 00 00 00
|
||||
00 00 02 04 06 08 0A 0C 0E 10 12
|
||||
14 16 18 1A 1C 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 14
|
||||
28 26 24 22 21 20 1F 1E 1D 1C 18
|
||||
16 FF FF FF FF FF 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 34 01
|
||||
];
|
||||
|
||||
|
||||
goodix,cfg-group2 = [ //sensor id 2 for new tp
|
||||
44 B0 04 80 07 05 45 00 02 08 28
|
||||
08 46 32 03 05 00 00 00 00 00 00
|
||||
00 00 00 00 00 8C 2C 0E B0 B2 B2
|
||||
04 00 00 00 20 03 1C 00 01 00 00
|
||||
00 00 00 32 00 00 00 96 D2 94 D5
|
||||
02 00 00 00 04 8D 9B 00 85 A6 00
|
||||
7F B1 00 79 BD 00 73 CB 00 73 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 00 00 00 00 00 00 00 00
|
||||
00 00 02 04 06 08 0A 0C 0E 10 12
|
||||
14 16 18 1A 1C 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 14
|
||||
28 26 24 22 21 20 1F 1E 1D 1C 18
|
||||
16 FF FF FF FF FF 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 34 01
|
||||
];
|
||||
goodix,cfg-group5 = [
|
||||
5C B0 04 80 07 05 45 00 02 08
|
||||
28 08 46 32 03 05 00 00 00 00
|
||||
00 00 00 00 00 00 00 8C 2C 0E
|
||||
22 24 BB 0A 00 00 02 01 03 1C
|
||||
00 01 00 00 00 00 00 32 00 00
|
||||
00 14 46 94 C5 02 00 00 00 04
|
||||
E3 16 00 B4 1D 00 8D 25 00 72
|
||||
30 00 5D 3E 00 5D 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 00 00 00 00 00 00 00 00
|
||||
00 00 02 04 06 08 0A 0C 0E 10
|
||||
12 14 16 18 1A 1C 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 14 28 26 24 22 21 20
|
||||
1F 1E 1D 1C 18 16 FF FF FF FF
|
||||
FF 00 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 B8 01
|
||||
];
|
||||
};
|
||||
430
rk3562/rp-lcd-mipi-7-720-1280.dtsi
Executable file
430
rk3562/rp-lcd-mipi-7-720-1280.dtsi
Executable file
@@ -0,0 +1,430 @@
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "0";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "160";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "okay";
|
||||
rockchip,lane-rate = <480>;
|
||||
dsi_panel: panel@0 {
|
||||
status = "okay";
|
||||
compatible = "aoly,sl008pa21y1285-b00","simple-panel-dsi";
|
||||
reg = <0>;
|
||||
reset-delay-ms = <60>;
|
||||
init-delay-ms = <60>;
|
||||
enable-delay-ms = <120>;
|
||||
prepare-delay-ms = <120>;
|
||||
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
/**
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
panel-init-sequence = [
|
||||
39 00 02 E0 00
|
||||
39 00 02 E1 93
|
||||
39 00 02 E2 65
|
||||
39 00 02 E3 F8
|
||||
39 00 02 80 03
|
||||
39 00 02 E0 04
|
||||
39 00 02 2D 03
|
||||
39 00 02 E0 00
|
||||
39 00 02 70 10
|
||||
39 00 02 71 13
|
||||
39 00 02 72 06
|
||||
39 00 02 75 03
|
||||
|
||||
39 00 02 E0 01
|
||||
// 39 00 02 4A 30
|
||||
39 00 02 00 00
|
||||
39 00 02 01 A0
|
||||
39 00 02 03 00
|
||||
39 00 02 04 A0
|
||||
39 00 02 0A 07
|
||||
39 00 02 0C 74
|
||||
39 00 02 17 00
|
||||
39 00 02 18 D7
|
||||
39 00 02 19 01
|
||||
39 00 02 1A 00
|
||||
39 00 02 1B D7
|
||||
39 00 02 1C 01
|
||||
39 00 02 1F 74
|
||||
39 00 02 20 19
|
||||
39 00 02 21 19
|
||||
39 00 02 22 0E
|
||||
39 00 02 27 43
|
||||
|
||||
39 00 02 37 09
|
||||
39 00 02 38 04
|
||||
39 00 02 39 08
|
||||
39 00 02 3A 18
|
||||
39 00 02 3B 18
|
||||
39 00 02 3C 72
|
||||
39 00 02 3E FF
|
||||
39 00 02 3E FF
|
||||
39 00 02 3F FF
|
||||
39 00 02 40 04
|
||||
39 00 02 41 A0
|
||||
39 00 02 43 08
|
||||
39 00 02 44 07
|
||||
39 00 02 45 30
|
||||
39 00 02 55 01
|
||||
39 00 02 56 01
|
||||
39 00 02 57 65
|
||||
39 00 02 58 0A
|
||||
39 00 02 59 0A
|
||||
39 00 02 5A 28
|
||||
39 00 02 5B 0F
|
||||
|
||||
39 00 02 5D 7C
|
||||
39 00 02 5E 5F
|
||||
39 00 02 5F 4D
|
||||
39 00 02 60 3F
|
||||
39 00 02 61 39
|
||||
39 00 02 62 29
|
||||
39 00 02 63 2B
|
||||
39 00 02 64 12
|
||||
39 00 02 65 28
|
||||
39 00 02 66 24
|
||||
39 00 02 67 22
|
||||
39 00 02 68 3E
|
||||
39 00 02 69 2C
|
||||
39 00 02 6A 33
|
||||
39 00 02 6B 26
|
||||
39 00 02 6C 23
|
||||
39 00 02 6D 18
|
||||
39 00 02 6E 09
|
||||
39 00 02 6F 00
|
||||
39 00 02 70 7C
|
||||
39 00 02 71 5F
|
||||
39 00 02 72 4D
|
||||
39 00 02 73 3F
|
||||
39 00 02 74 39
|
||||
39 00 02 75 29
|
||||
39 00 02 76 2B
|
||||
39 00 02 77 12
|
||||
39 00 02 78 28
|
||||
39 00 02 79 24
|
||||
39 00 02 7A 22
|
||||
39 00 02 7B 3E
|
||||
39 00 02 7C 2C
|
||||
39 00 02 7D 33
|
||||
39 00 02 7E 26
|
||||
39 00 02 7F 23
|
||||
39 00 02 80 18
|
||||
39 00 02 81 09
|
||||
39 00 02 82 00
|
||||
|
||||
39 00 02 E0 02
|
||||
39 00 02 00 37
|
||||
39 00 02 01 17
|
||||
39 00 02 02 0A
|
||||
39 00 02 03 06
|
||||
39 00 02 04 08
|
||||
39 00 02 05 04
|
||||
39 00 02 06 00
|
||||
39 00 02 07 1F
|
||||
39 00 02 08 1F
|
||||
39 00 02 09 1F
|
||||
39 00 02 0A 1F
|
||||
39 00 02 0B 1F
|
||||
39 00 02 0C 1F
|
||||
39 00 02 0D 1F
|
||||
39 00 02 0E 1F
|
||||
39 00 02 0F 1F
|
||||
39 00 02 10 3F
|
||||
39 00 02 11 1F
|
||||
39 00 02 12 1F
|
||||
39 00 02 13 1E
|
||||
39 00 02 14 10
|
||||
39 00 02 15 1F
|
||||
|
||||
39 00 02 16 37
|
||||
39 00 02 17 17
|
||||
39 00 02 18 0B
|
||||
39 00 02 19 07
|
||||
39 00 02 1A 09
|
||||
39 00 02 1B 05
|
||||
39 00 02 1C 01
|
||||
39 00 02 1D 1F
|
||||
39 00 02 1E 1F
|
||||
39 00 02 1F 1F
|
||||
39 00 02 20 1F
|
||||
39 00 02 21 1F
|
||||
39 00 02 22 1F
|
||||
39 00 02 23 1F
|
||||
39 00 02 24 1F
|
||||
39 00 02 25 1F
|
||||
39 00 02 26 1F
|
||||
39 00 02 27 1F
|
||||
39 00 02 28 1F
|
||||
39 00 02 29 1E
|
||||
39 00 02 2A 11
|
||||
39 00 02 2B 1F
|
||||
39 00 02 2C 37
|
||||
39 00 02 2D 17
|
||||
39 00 02 2E 05
|
||||
39 00 02 2F 09
|
||||
39 00 02 30 07
|
||||
39 00 02 31 0B
|
||||
39 00 02 32 11
|
||||
39 00 02 33 1F
|
||||
39 00 02 34 1F
|
||||
39 00 02 35 1F
|
||||
39 00 02 36 1F
|
||||
39 00 02 37 1F
|
||||
39 00 02 38 1F
|
||||
39 00 02 39 1F
|
||||
39 00 02 3A 1F
|
||||
39 00 02 3B 1F
|
||||
39 00 02 3C 3F
|
||||
39 00 02 3D 1F
|
||||
39 00 02 3E 1E
|
||||
39 00 02 3F 1F
|
||||
39 00 02 40 01
|
||||
|
||||
39 00 02 41 1F
|
||||
39 00 02 42 38
|
||||
39 00 02 43 18
|
||||
39 00 02 44 04
|
||||
39 00 02 45 08
|
||||
39 00 02 46 06
|
||||
39 00 02 47 0A
|
||||
39 00 02 48 10
|
||||
39 00 02 49 1F
|
||||
39 00 02 4A 1F
|
||||
39 00 02 4B 1F
|
||||
39 00 02 4C 1F
|
||||
39 00 02 4D 1F
|
||||
39 00 02 4E 1F
|
||||
39 00 02 4F 1F
|
||||
39 00 02 50 1F
|
||||
39 00 02 51 1F
|
||||
39 00 02 52 1F
|
||||
39 00 02 53 1F
|
||||
39 00 02 54 1E
|
||||
39 00 02 55 1F
|
||||
39 00 02 56 00
|
||||
39 00 02 57 1F
|
||||
39 00 02 58 10
|
||||
39 00 02 59 00
|
||||
39 00 02 5A 00
|
||||
39 00 02 5B 10
|
||||
39 00 02 5C 01
|
||||
39 00 02 5D 50
|
||||
39 00 02 5E 01
|
||||
39 00 02 5F 02
|
||||
39 00 02 60 30
|
||||
39 00 02 61 01
|
||||
39 00 02 62 02
|
||||
39 00 02 63 06
|
||||
39 00 02 64 6A
|
||||
39 00 02 65 55
|
||||
39 00 02 66 08
|
||||
39 00 02 67 73
|
||||
39 00 02 68 05
|
||||
39 00 02 69 08
|
||||
39 00 02 6A 6E
|
||||
39 00 02 6B 00
|
||||
39 00 02 6C 00
|
||||
39 00 02 6D 00
|
||||
39 00 02 6E 00
|
||||
39 00 02 6F 88
|
||||
39 00 02 70 00
|
||||
39 00 02 71 00
|
||||
39 00 02 72 06
|
||||
39 00 02 73 7B
|
||||
39 00 02 74 00
|
||||
39 00 02 75 80
|
||||
39 00 02 76 00
|
||||
39 00 02 77 0D
|
||||
39 00 02 78 18
|
||||
39 00 02 79 00
|
||||
39 00 02 7A 00
|
||||
39 00 02 7B 00
|
||||
39 00 02 7C 00
|
||||
39 00 02 7D 03
|
||||
39 00 02 7E 7B
|
||||
39 00 02 E0 04
|
||||
39 00 02 04 01
|
||||
39 00 02 0E 38
|
||||
39 00 02 2B 2B
|
||||
39 00 02 2E 44
|
||||
39 00 02 E0 00
|
||||
39 00 02 E6 02
|
||||
39 00 02 E6 02
|
||||
// 39 00 02 36 00
|
||||
39 C8 02 11 00
|
||||
39 C8 02 29 00
|
||||
|
||||
|
||||
05 78 01 11
|
||||
05 78 01 29
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 78 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
disp_timings0: display-timings {
|
||||
native-mode = <&dsi_timing0>;
|
||||
dsi_timing0: timing0 {
|
||||
clock-frequency = <65000000>;
|
||||
hactive = <720>;
|
||||
vactive = <1280>;
|
||||
hback-porch = <34>;
|
||||
hfront-porch = <34>;
|
||||
vback-porch = <6>;
|
||||
vfront-porch = <20>;
|
||||
hsync-len = <24>;
|
||||
vsync-len = <3>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_dsi>;
|
||||
};
|
||||
|
||||
|
||||
>9xx {
|
||||
status = "okay";
|
||||
compatible = "goodix,gt9xx";
|
||||
reg = <0x5d>;
|
||||
gtp_resolution_x = <720>;
|
||||
gtp_resolution_y = <1280>;
|
||||
gtp_int_tarigger = <1>;
|
||||
gtp_change_x2y = <0>;
|
||||
gtp_overturn_x = <0>;
|
||||
gtp_overturn_y = <0>;
|
||||
gtp_send_cfg = <1>;
|
||||
gtp_touch_wakeup = <1>;
|
||||
|
||||
/**
|
||||
* goodix_rst_gpio = <>;
|
||||
* goodix_irq_gpio = <>;
|
||||
*
|
||||
* touch panel interrupt and reset pin
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
goodix,cfg-group0 = [
|
||||
57 58 02 00 04 05 35 00 01 08 32 0F
|
||||
5A 32 03 05 00 00 00 00 02 00 00 18
|
||||
1A 1E 14 8A 2A 0C 55 57 B5 06 00 00
|
||||
00 20 33 1C 14 01 00 0F 00 2B FF 7F
|
||||
19 46 32 3C 78 94 D5 02 08 00 00 04
|
||||
98 40 00 8A 4A 00 80 55 00 77 61 00
|
||||
6F 70 00 6F 00 00 00 00 F0 40 30 FF
|
||||
FF 27 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 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 FF FF 24 22
|
||||
21 20 1F 1E 1D 1C 18 16 00 02 04 06
|
||||
08 0A 0F 10 12 13 FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF 81 01
|
||||
];
|
||||
goodix,cfg-group2 = [
|
||||
5A 58 02 00 04 05 35 00 01 08
|
||||
32 0F 5A 32 03 05 00 00 00 00
|
||||
02 00 00 18 1A 1E 14 8A 2A 0C
|
||||
55 57 B5 06 00 00 00 20 33 1C
|
||||
14 01 00 0F 00 2B FF 7F 19 46
|
||||
32 3C 78 94 D5 02 08 00 00 04
|
||||
98 40 00 8A 4A 00 80 55 00 77
|
||||
61 00 6F 70 00 6F 00 00 00 00
|
||||
F0 40 30 FF FF 27 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 18 16 14 12 10 0E 0C 0A
|
||||
08 06 04 02 FF FF 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 00 00
|
||||
00 00 00 02 04 06 08 0A 0F 10
|
||||
12 13 24 22 21 20 1F 1E 1D 1C
|
||||
18 16 FF FF FF FF FF FF 00 00
|
||||
00 00 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 5E 01
|
||||
];
|
||||
};
|
||||
193
rk3562/rp-lcd-mipi-8-1200-1920.dtsi
Executable file
193
rk3562/rp-lcd-mipi-8-1200-1920.dtsi
Executable file
@@ -0,0 +1,193 @@
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "90";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "320";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "okay";
|
||||
rockchip,lane-rate = <940>;
|
||||
dsi_panel: panel@0 {
|
||||
status = "okay";
|
||||
compatible = "aoly,sl008pa21y1285-b00","simple-panel-dsi";
|
||||
reg = <0>;
|
||||
reset-delay-ms = <60>;
|
||||
init-delay-ms = <60>;
|
||||
enable-delay-ms = <120>;
|
||||
prepare-delay-ms = <120>;
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
/**
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
panel-init-sequence = [
|
||||
05 78 01 11
|
||||
05 78 01 29
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 78 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
disp_timings0: display-timings {
|
||||
native-mode = <&dsi_timing0>;
|
||||
dsi_timing0: timing0 {
|
||||
clock-frequency = <148000000>;
|
||||
hactive = <1200>;
|
||||
vactive = <1920>;
|
||||
hback-porch = <60>;
|
||||
hfront-porch = <80>;
|
||||
vback-porch = <25>;
|
||||
vfront-porch = <35>;
|
||||
hsync-len = <1>;
|
||||
vsync-len = <1>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_dsi>;
|
||||
};
|
||||
|
||||
|
||||
>9xx {
|
||||
status = "okay";
|
||||
compatible = "goodix,gt9xx";
|
||||
reg = <0x5d>;
|
||||
gtp_resolution_x = <1200>;
|
||||
gtp_resolution_y = <1920>;
|
||||
gtp_int_tarigger = <1>;
|
||||
gtp_change_x2y = <0>;
|
||||
gtp_overturn_x = <0>;
|
||||
gtp_overturn_y = <0>;
|
||||
gtp_send_cfg = <1>;
|
||||
gtp_touch_wakeup = <1>;
|
||||
|
||||
/**
|
||||
* goodix_rst_gpio = <>;
|
||||
* goodix_irq_gpio = <>;
|
||||
*
|
||||
* touch panel interrupt and reset pin
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
goodix,cfg-group0 = [
|
||||
5E B0 04 80 07 05 05 00 01 0F 28 05
|
||||
50 32 03 05 00 00 00 00 00 00 00 00
|
||||
00 00 00 8C 2C 0E 52 54 31 0D 00 00
|
||||
01 80 04 1C 00 00 00 00 00 03 64 32
|
||||
00 00 00 52 66 94 C5 02 07 00 00 04
|
||||
83 53 00 82 57 00 80 5B 00 7F 5F 00
|
||||
7E 63 00 7E 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 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 14 28 26
|
||||
24 22 21 20 1F 1E 1D 1C 18 16 FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF 22 01
|
||||
];
|
||||
|
||||
goodix,cfg-group2 = [
|
||||
00 20 03 00 05 0A 05 00 01 08 28
|
||||
05 50 32 03 05 00 00 00 00 00 00
|
||||
00 00 00 00 00 8C 2C 0E 17 15 31
|
||||
0D 00 00 01 BA 03 1D 00 00 00 00
|
||||
00 03 64 32 00 00 00 0F 41 94 C5
|
||||
02 07 00 00 04 99 11 00 77 17 00
|
||||
5F 1F 00 4C 2A 00 41 38 00 41 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 00 00 00 00 00 00 00 00
|
||||
00 00 1C 1A 18 16 14 12 10 0E 0C
|
||||
0A 08 06 04 02 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 28
|
||||
26 24 22 21 20 1F 1E 1D 1C 18 16
|
||||
00 02 04 06 08 0A 0C 0F 10 12 13
|
||||
14 FF FF 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 FE 01
|
||||
|
||||
];
|
||||
};
|
||||
418
rk3562/rp-lcd-mipi-8-800-1280-v3.dtsi
Executable file
418
rk3562/rp-lcd-mipi-8-800-1280-v3.dtsi
Executable file
@@ -0,0 +1,418 @@
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "90";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "180";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "okay";
|
||||
rockchip,lane-rate = <480>;
|
||||
dsi_panel: panel@0 {
|
||||
status = "okay";
|
||||
compatible = "aoly,sl008pa21y1285-b00","simple-panel-dsi";
|
||||
reg = <0>;
|
||||
reset-delay-ms = <60>;
|
||||
init-delay-ms = <60>;
|
||||
enable-delay-ms = <120>;
|
||||
prepare-delay-ms = <120>;
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
/**
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
panel-init-sequence = [
|
||||
|
||||
39 00 04 FF 98 81 03
|
||||
|
||||
39 00 02 01 00
|
||||
39 00 02 02 00
|
||||
39 00 02 03 57 //54
|
||||
39 00 02 04 D3 //D4
|
||||
39 00 02 05 00
|
||||
39 00 02 06 11
|
||||
39 00 02 07 08 //09
|
||||
39 00 02 08 00
|
||||
39 00 02 09 00
|
||||
39 00 02 0a 3F //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 3F //00
|
||||
39 00 02 10 3F //00
|
||||
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 00
|
||||
39 00 02 35 00
|
||||
39 00 02 36 00
|
||||
39 00 02 37 00
|
||||
39 00 02 38 78
|
||||
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 //GCH/L
|
||||
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 0D //FW_CGOUT_L[1]
|
||||
39 00 02 60 0D //FW_CGOUT_L[2]
|
||||
39 00 02 61 0C //FW_CGOUT_L[3]
|
||||
39 00 02 62 0C //FW_CGOUT_L[4]
|
||||
39 00 02 63 0F //FW_CGOUT_L[5]
|
||||
39 00 02 64 0F //FW_CGOUT_L[6]
|
||||
39 00 02 65 0E //FW_CGOUT_L[7]
|
||||
39 00 02 66 0E //FW_CGOUT_L[8]
|
||||
39 00 02 67 08 //FW_CGOUT_L[9]
|
||||
39 00 02 68 02 //FW_CGOUT_L[10]
|
||||
39 00 02 69 02 //FW_CGOUT_L[11]
|
||||
39 00 02 6a 02 //FW_CGOUT_L[12]
|
||||
39 00 02 6b 02 //FW_CGOUT_L[13]
|
||||
39 00 02 6c 02 //FW_CGOUT_L[14]
|
||||
39 00 02 6d 02 //FW_CGOUT_L[15]
|
||||
39 00 02 6e 02 //FW_CGOUT_L[16]
|
||||
39 00 02 6f 02 //FW_CGOUT_L[17]
|
||||
39 00 02 70 14 //FW_CGOUT_L[18]
|
||||
39 00 02 71 15 //FW_CGOUT_L[19]
|
||||
39 00 02 72 06 //FW_CGOUT_L[20]
|
||||
39 00 02 73 02 //FW_CGOUT_L[21]
|
||||
39 00 02 74 02 //FW_CGOUT_L[22]
|
||||
|
||||
39 00 02 75 0D //BW_CGOUT_L[1]
|
||||
39 00 02 76 0D //BW_CGOUT_L[2]
|
||||
39 00 02 77 0C //BW_CGOUT_L[3]
|
||||
39 00 02 78 0C //BW_CGOUT_L[4]
|
||||
39 00 02 79 0F //BW_CGOUT_L[5]
|
||||
39 00 02 7a 0F //BW_CGOUT_L[6]
|
||||
39 00 02 7b 0E //BW_CGOUT_L[7]
|
||||
39 00 02 7c 0E //BW_CGOUT_L[8]
|
||||
39 00 02 7d 08 //BW_CGOUT_L[9]
|
||||
39 00 02 7e 02 //BW_CGOUT_L[10]
|
||||
39 00 02 7f 02 //BW_CGOUT_L[11]
|
||||
39 00 02 80 02 //BW_CGOUT_L[12]
|
||||
39 00 02 81 02 //BW_CGOUT_L[13]
|
||||
39 00 02 82 02 //BW_CGOUT_L[14]
|
||||
39 00 02 83 02 //BW_CGOUT_L[15]
|
||||
39 00 02 84 02 //BW_CGOUT_L[16]
|
||||
39 00 02 85 02 //BW_CGOUT_L[17]
|
||||
39 00 02 86 14 //BW_CGOUT_L[18]
|
||||
39 00 02 87 15 //BW_CGOUT_L[19]
|
||||
39 00 02 88 06 //BW_CGOUT_L[20]
|
||||
39 00 02 89 02 //BW_CGOUT_L[21]
|
||||
39 00 02 8A 02 //BW_CGOUT_L[22]
|
||||
|
||||
|
||||
|
||||
39 00 04 FF 98 81 04
|
||||
|
||||
39 00 02 6E 3B
|
||||
39 00 02 6F 57
|
||||
39 00 02 3A 24
|
||||
39 00 02 8D 1F
|
||||
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 22 0A
|
||||
39 00 02 31 09
|
||||
39 00 02 35 07
|
||||
39 00 02 53 87
|
||||
39 00 02 55 84
|
||||
39 00 02 50 86
|
||||
39 00 02 51 82
|
||||
39 00 02 60 10
|
||||
39 00 02 62 00
|
||||
|
||||
39 00 02 A0 00
|
||||
39 00 02 A1 12
|
||||
39 00 02 A2 1F
|
||||
39 00 02 A3 12
|
||||
39 00 02 A4 16
|
||||
39 00 02 A5 29
|
||||
39 00 02 A6 1E
|
||||
39 00 02 A7 1F
|
||||
39 00 02 A8 7E
|
||||
39 00 02 A9 1B
|
||||
39 00 02 AA 28
|
||||
39 00 02 AB 6D
|
||||
39 00 02 AC 19
|
||||
39 00 02 AD 18
|
||||
39 00 02 AE 4C
|
||||
39 00 02 AF 1E
|
||||
39 00 02 B0 23
|
||||
39 00 02 B1 52
|
||||
39 00 02 B2 6D
|
||||
39 00 02 B3 3F
|
||||
|
||||
39 00 02 C0 00
|
||||
39 00 02 C1 12
|
||||
39 00 02 C2 20
|
||||
39 00 02 C3 10
|
||||
39 00 02 C4 13
|
||||
39 00 02 C5 27
|
||||
39 00 02 C6 1B
|
||||
39 00 02 C7 1D
|
||||
39 00 02 C8 75
|
||||
39 00 02 C9 1F
|
||||
39 00 02 CA 28
|
||||
39 00 02 CB 68
|
||||
39 00 02 CC 1A
|
||||
39 00 02 CD 18
|
||||
39 00 02 CE 4D
|
||||
39 00 02 CF 25
|
||||
39 00 02 D0 2E
|
||||
39 00 02 D1 53
|
||||
39 00 02 D2 60
|
||||
39 00 02 D3 3F
|
||||
|
||||
39 00 04 FF 98 81 00
|
||||
39 00 02 35 00
|
||||
05 80 01 11
|
||||
05 20 01 29
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 00 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
disp_timings0: display-timings {
|
||||
native-mode = <&dsi_timing0>;
|
||||
dsi_timing0: timing0 {
|
||||
clock-frequency = <76000000>;
|
||||
hactive = <800>;
|
||||
vactive = <1280>;
|
||||
hback-porch = <70>;
|
||||
hfront-porch = <70>;
|
||||
vback-porch = <22>;
|
||||
vfront-porch = <16>;
|
||||
hsync-len = <20>;
|
||||
vsync-len = <6>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_dsi>;
|
||||
};
|
||||
|
||||
|
||||
>9xx {
|
||||
status = "okay";
|
||||
compatible = "goodix,gt9xx";
|
||||
reg = <0x5d>;
|
||||
gtp_resolution_x = <800>;
|
||||
gtp_resolution_y = <1280>;
|
||||
gtp_int_tarigger = <1>;
|
||||
gtp_change_x2y = <0>;
|
||||
gtp_overturn_x = <0>;
|
||||
gtp_overturn_y = <0>;
|
||||
gtp_send_cfg = <1>;
|
||||
gtp_touch_wakeup = <1>;
|
||||
|
||||
/**
|
||||
* goodix_rst_gpio = <>;
|
||||
* goodix_irq_gpio = <>;
|
||||
*
|
||||
* touch panel interrupt and reset pin
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
goodix,cfg-group0 = [
|
||||
45 20 03 00 05 05 35 00 01 C8 1E 0F 50 32
|
||||
03 05 00 00 00 00 00 00 04 18 1A 1E 14 8C
|
||||
2E 0E 1E 20 EB 04 00 00 00 BA 02 2D 00 00
|
||||
00 00 00 03 00 00 00 00 00 0F 2D 94 D5 02
|
||||
07 00 00 04 E6 10 00 BB 14 00 92 1A 00 78
|
||||
20 00 61 28 00 61 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 00 00 00 00 00 00 00 00 00 00
|
||||
1C 1A 18 16 14 12 10 0E 0C 0A 08 06 04 02
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00 00 2A 29 28 26 24 22 21 20 1F 1E 1D 1C
|
||||
18 16 00 02 04 06 08 0A 0C 0F 10 12 13 14
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00 00 CB 01
|
||||
];
|
||||
|
||||
/** jc */
|
||||
goodix,cfg-group2 = [
|
||||
00 20 03 00 05 0A 05 00 01 08 28
|
||||
05 50 32 03 05 00 00 00 00 00 00
|
||||
00 00 00 00 00 8C 2C 0E 17 15 31
|
||||
0D 00 00 01 BA 03 1D 00 00 00 00
|
||||
00 03 64 32 00 00 00 0F 41 94 C5
|
||||
02 07 00 00 04 99 11 00 77 17 00
|
||||
5F 1F 00 4C 2A 00 41 38 00 41 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 00 00 00 00 00 00 00 00
|
||||
00 00 1C 1A 18 16 14 12 10 0E 0C
|
||||
0A 08 06 04 02 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 28
|
||||
26 24 22 21 20 1F 1E 1D 1C 18 16
|
||||
00 02 04 06 08 0A 0C 0F 10 12 13
|
||||
14 FF FF 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 FE 01
|
||||
];
|
||||
|
||||
goodix,cfg-group5 = [
|
||||
00 20 03 00 05 0A 05 00 01 08 28 08
|
||||
50 32 03 05 00 00 00 00 00 00 00 18
|
||||
1A 1E 14 8C 2C 0E 17 15 31 0D 00 00
|
||||
02 9B 04 1D 00 00 00 00 00 03 64 32
|
||||
00 00 00 11 25 94 C5 02 07 00 00 04
|
||||
60 12 00 5D 15 00 57 19 00 54 1D 00
|
||||
4F 22 00 4F 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 00 00 00 00 00 00
|
||||
00 00 00 00 1C 1A 18 16 14 12 10 0E
|
||||
0C 0A 08 06 04 02 00 00 00 00 00 00
|
||||
00 00 00 00 00 00 00 00 00 00 28 26
|
||||
24 22 21 20 1F 1E 1D 1C 18 16 14 13
|
||||
00 02 04 06 08 0A 0C 0F 10 12 FF FF
|
||||
00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00 00 00 00 2F 01
|
||||
];
|
||||
|
||||
};
|
||||
158
rk3562/rp-lcd-mipi2hdmi-lt8912.dtsi
Executable file
158
rk3562/rp-lcd-mipi2hdmi-lt8912.dtsi
Executable file
@@ -0,0 +1,158 @@
|
||||
#define RP_SINGLE_LCD
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "0";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "160";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
|
||||
&dsi {
|
||||
status = "okay";
|
||||
//rockchip,lane-rate = <480>;
|
||||
|
||||
dsi_panel: panel@0 {
|
||||
status = "okay";
|
||||
compatible = "aoly,sl008pa21y1285-b00","simple-panel-dsi";
|
||||
reg = <0>;
|
||||
|
||||
init-delay-ms = <120>;
|
||||
reset-delay-ms = <120>;
|
||||
enable-delay-ms = <120>;
|
||||
prepare-delay-ms = <120>;
|
||||
unprepare-delay-ms = <60>;
|
||||
disable-delay-ms = <60>;
|
||||
// dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
// MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
|
||||
|
||||
// dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
// MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
|
||||
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
MIPI_DSI_MODE_VIDEO_HBP | MIPI_DSI_MODE_LPM |
|
||||
MIPI_DSI_MODE_EOT_PACKET)>;
|
||||
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
/**
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
|
||||
panel-init-sequence = [
|
||||
05 78 01 11
|
||||
05 05 01 29
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 00 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
disp_timings0: display-timings {
|
||||
native-mode = <&dsi_timing0>;
|
||||
dsi_timing0: timing0 {
|
||||
clock-frequency = <148500000>;//140000000
|
||||
hactive = <1920>;
|
||||
vactive = <1080>;
|
||||
hback-porch = <148>;//60
|
||||
hfront-porch = <88>;
|
||||
vback-porch = <36>;//23
|
||||
vfront-porch = <4>;//12
|
||||
hsync-len = <44>;
|
||||
vsync-len = <5>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&dsi_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_dsi>;
|
||||
};
|
||||
|
||||
|
||||
&i2c2 {
|
||||
status = "okay";
|
||||
clock-frequency = <100000>;
|
||||
|
||||
/delete-node/ gt1x@14;
|
||||
lt89121: lt89121@48 {
|
||||
status = "okay";
|
||||
compatible = "lt8912_i2c";
|
||||
reg = <0x48>;
|
||||
// reset-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
306
rk3562/rp-lcd-rgb-7-1024-600.dtsi
Executable file
306
rk3562/rp-lcd-rgb-7-1024-600.dtsi
Executable file
@@ -0,0 +1,306 @@
|
||||
|
||||
/{
|
||||
backlight: backlight {
|
||||
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>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
panel {
|
||||
status = "okay";
|
||||
compatible = "simple-panel";
|
||||
backlight = <&backlight>;
|
||||
|
||||
enable-delay-ms = <20>;
|
||||
prepare-delay-ms = <20>;
|
||||
unprepare-delay-ms = <20>;
|
||||
disable-delay-ms = <20>;
|
||||
//bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
|
||||
bus-format = <MEDIA_BUS_FMT_BGR888_1X24>;
|
||||
|
||||
width-mm = <217>;
|
||||
height-mm = <136>;
|
||||
|
||||
/**
|
||||
* power-supply = <>;
|
||||
* reset-gpios = <>;
|
||||
*
|
||||
* lcd reset pin and power supply
|
||||
* please refer to ***-lcd-gpio.dtsi
|
||||
* that included in main dts.
|
||||
*/
|
||||
power-supply = <&vcc18_lcd_n>;
|
||||
//enable-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
//reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
|
||||
|
||||
display-timings {
|
||||
native-mode = <&timing0>;
|
||||
|
||||
timing0: timing0 {
|
||||
clock-frequency = <51200000>;
|
||||
hactive = <1024>;
|
||||
vactive = <600>;
|
||||
hback-porch = <160>;
|
||||
hfront-porch = <160>;
|
||||
vback-porch = <12>;
|
||||
vfront-porch = <23>;
|
||||
hsync-len = <24>;
|
||||
vsync-len = <3>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
panel_in_rgb: endpoint {
|
||||
remote-endpoint = <&rgb_out_panel>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pwm0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "0";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "160";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS4";
|
||||
primary_device = "RGB";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "false";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
&display_subsystem {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rgb {
|
||||
status = "okay";
|
||||
phys = <&video_phy>;
|
||||
phy-names = "phy";
|
||||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-0 = <&lcdc_m0_rgb_pins>;
|
||||
pinctrl-1 = <&lcdc_m0_sleep_pins>;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
&rgb {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
|
||||
rgb_out_panel: endpoint {
|
||||
remote-endpoint = <&panel_in_rgb>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rgb_in_vopb {
|
||||
status = "okay";
|
||||
|
||||
|
||||
};
|
||||
|
||||
&video_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_rgb {
|
||||
connect = <&vopb_out_rgb>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dsi_in_vopb {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
// TP
|
||||
//&i2c1 {
|
||||
// status = "okay";
|
||||
// clock-frequency = <200000>;
|
||||
//
|
||||
// gt9xx: goodix_ts@5d {
|
||||
// /***** tp pin ******/
|
||||
// pinctrl-names = "default";
|
||||
// pinctrl-0 = <&goodix_irq>;
|
||||
// goodix_rst_gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
|
||||
// goodix_irq_gpio = <&gpio0 RK_PB5 IRQ_TYPE_EDGE_FALLING>;
|
||||
//
|
||||
// status = "okay";
|
||||
// compatible = "goodix,gt9xx";
|
||||
// reg = <0x5d>;
|
||||
// gtp_resolution_x = <1024>;
|
||||
// gtp_resolution_y = <600>;
|
||||
// gtp_int_tarigger = <1>;
|
||||
// gtp_change_x2y = <0>;
|
||||
// gtp_overturn_x = <0>;
|
||||
// gtp_overturn_y = <0>;
|
||||
// gtp_send_cfg = <1>;
|
||||
// gtp_touch_wakeup = <1>;
|
||||
//
|
||||
// /**
|
||||
// * goodix_rst_gpio = <>;
|
||||
// * goodix_irq_gpio = <>;
|
||||
// *
|
||||
// * touch panel interrupt and reset pin
|
||||
// * please refer to ***-lcd-gpio.dtsi
|
||||
// * that included in main dts.
|
||||
// */
|
||||
//
|
||||
// goodix,cfg-group0 = [
|
||||
// 46 00 04 58 02 0A 3D 00 01 08
|
||||
// 28 05 50 32 03 05 00 00 00 00
|
||||
// 00 00 00 18 1A 1E 14 8D 2D 88
|
||||
// 17 15 31 0D 00 00 01 9B 03 1D
|
||||
// 00 00 00 00 00 00 00 00 00 00
|
||||
// 00 1E 5A 94 C5 02 08 00 00 00
|
||||
// 61 21 00 57 29 00 4E 34 00 48
|
||||
// 41 00 43 51 00 43 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 00 00 00 00 00 00 00 00
|
||||
// 00 00 00 01 04 05 06 07 08 09
|
||||
// 0C 0D 0E 0F 10 11 14 15 FF FF
|
||||
// FF FF 00 00 00 00 00 00 00 00
|
||||
// 00 00 00 02 04 06 07 08 0A 0C
|
||||
// 0F 10 11 12 13 19 1B 1C 1E 1F
|
||||
// 20 21 22 23 24 25 26 27 FF FF
|
||||
// FF FF FF FF 00 00 00 00 00 00
|
||||
// 00 00 00 00 FD 01
|
||||
// ];
|
||||
//
|
||||
//
|
||||
// goodix,cfg-group1 = [
|
||||
// 46 00 04 58 02 0A 3D 00 01 08
|
||||
// 28 05 50 32 03 05 00 00 00 00
|
||||
// 00 00 00 18 1A 1E 14 8D 2D 88
|
||||
// 17 15 31 0D 00 00 01 9B 03 1D
|
||||
// 00 00 00 00 00 00 00 00 00 00
|
||||
// 00 1E 5A 94 C5 02 08 00 00 00
|
||||
// 61 21 00 57 29 00 4E 34 00 48
|
||||
// 41 00 43 51 00 43 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 00 00 00 00 00 00 00 00
|
||||
// 00 00 00 01 04 05 06 07 08 09
|
||||
// 0C 0D 0E 0F 10 11 14 15 FF FF
|
||||
// FF FF 00 00 00 00 00 00 00 00
|
||||
// 00 00 00 02 04 06 07 08 0A 0C
|
||||
// 0F 10 11 12 13 19 1B 1C 1E 1F
|
||||
// 20 21 22 23 24 25 26 27 FF FF
|
||||
// FF FF FF FF 00 00 00 00 00 00
|
||||
// 00 00 00 00 FD 01
|
||||
// ];
|
||||
//
|
||||
// goodix,cfg-group3 = [
|
||||
// 46 00 04 58 02 0A 3D 00 01 08
|
||||
// 28 05 50 32 03 05 00 00 00 00
|
||||
// 00 00 00 18 1A 1E 14 8D 2D 88
|
||||
// 17 15 31 0D 00 00 01 9B 03 1D
|
||||
// 00 00 00 00 00 00 00 00 00 00
|
||||
// 00 1E 5A 94 C5 02 08 00 00 00
|
||||
// 61 21 00 57 29 00 4E 34 00 48
|
||||
// 41 00 43 51 00 43 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 00 00 00 00 00 00 00 00
|
||||
// 00 00 00 01 04 05 06 07 08 09
|
||||
// 0C 0D 0E 0F 10 11 14 15 FF FF
|
||||
// FF FF 00 00 00 00 00 00 00 00
|
||||
// 00 00 00 02 04 06 07 08 0A 0C
|
||||
// 0F 10 11 12 13 19 1B 1C 1E 1F
|
||||
// 20 21 22 23 24 25 26 27 FF FF
|
||||
// FF FF FF FF 00 00 00 00 00 00
|
||||
// 00 00 00 00 FD 01
|
||||
// ];
|
||||
// };
|
||||
//};
|
||||
//
|
||||
//
|
||||
//&pinctrl {
|
||||
// goodix {
|
||||
// goodix_irq: goodix-irq {
|
||||
// rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
// };
|
||||
// };
|
||||
//};
|
||||
|
||||
415
rk3562/rp-mipi-camera-3562-dual-gc8034-ov13855.dtsi
Normal file
415
rk3562/rp-mipi-camera-3562-dual-gc8034-ov13855.dtsi
Normal file
@@ -0,0 +1,415 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (c) 2023 Rockchip Electronics Co., Ltd.
|
||||
*
|
||||
*/
|
||||
|
||||
/// {
|
||||
// vcc_mipicsi0: vcc-mipicsi0-regulator {
|
||||
// compatible = "regulator-fixed";
|
||||
// gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
|
||||
// pinctrl-names = "default";
|
||||
// pinctrl-0 = <&mipicsi0_pwr>;
|
||||
// regulator-name = "vcc_mipicsi0";
|
||||
// enable-active-high;
|
||||
// regulator-always-on;
|
||||
// regulator-boot-on;
|
||||
// };
|
||||
//
|
||||
// vcc_mipicsi1: vcc-mipicsi1-regulator {
|
||||
// compatible = "regulator-fixed";
|
||||
// gpio = <&gpio3 RK_PC7 GPIO_ACTIVE_HIGH>;
|
||||
// pinctrl-names = "default";
|
||||
// pinctrl-0 = <&mipicsi1_pwr>;
|
||||
// regulator-name = "vcc_mipicsi1";
|
||||
// enable-active-high;
|
||||
// regulator-always-on;
|
||||
// regulator-boot-on;
|
||||
// };
|
||||
//};
|
||||
|
||||
&csi2_dphy0 {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi_in_ov13855_0: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&ov13855_out0>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
mipi_in_gc8034_0: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&gc8034_out0>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
csidphy0_out: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&mipi0_csi2_input>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&csi2_dphy3 {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
mipi_in_ov13855_1: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&ov13855_out1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
mipi_in_gc8034_1: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&gc8034_out1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
csidphy3_out: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&mipi2_csi2_input>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
status = "okay";
|
||||
|
||||
// dw9763_0: dw9763_0@c {
|
||||
// compatible = "dongwoon,dw9763";
|
||||
// status = "okay";
|
||||
// reg = <0x0c>;
|
||||
// rockchip,vcm-max-current = <120>;
|
||||
// rockchip,vcm-start-current = <20>;
|
||||
// rockchip,vcm-rated-current = <90>;
|
||||
// rockchip,vcm-step-mode = <3>;
|
||||
// rockchip,vcm-t-src = <0x20>;
|
||||
// rockchip,vcm-t-div = <1>;
|
||||
// rockchip,camera-module-index = <0>;
|
||||
// rockchip,camera-module-facing = "back";
|
||||
// };
|
||||
|
||||
vm149c_0: vm149c_0@0c {
|
||||
compatible = "silicon touch,vm149c";
|
||||
status = "okay";
|
||||
reg = <0x0c>;
|
||||
rockchip,vcm-start-current = <20>; // 马达的启动电流
|
||||
rockchip,vcm-rated-current = <100>; // 马达的额定电流
|
||||
rockchip,vcm-step-mode = <13>; // 马达驱动 ic 的电流输出模式
|
||||
rockchip,camera-module-index = <0>; // 模组编号
|
||||
rockchip,camera-module-facing = "back"; // 模组朝向,有"back"和"front"
|
||||
};
|
||||
|
||||
|
||||
ov13855_0: ov13855_0@36 {
|
||||
compatible = "ovti,ov13855";
|
||||
status = "okay";
|
||||
reg = <0x36>;
|
||||
clocks = <&cru CLK_CAM0_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&camm0_clk0_out>;
|
||||
pwdn-gpios = <&nca9555_gpio IO_05 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&nca9555_gpio IO_04 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "KYT-10203-v1";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
// lens-focus = <&dw9763_0>;
|
||||
port {
|
||||
ov13855_out0: endpoint {
|
||||
remote-endpoint = <&mipi_in_ov13855_0>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
gc8034: gc8034@37 {
|
||||
compatible = "galaxycore,gc8034";
|
||||
reg = <0x37>;
|
||||
clocks = <&cru CLK_CAM0_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&camm0_clk0_out>;
|
||||
pwdn-gpios = <&nca9555_gpio IO_05 GPIO_ACTIVE_LOW>;
|
||||
reset-gpios = <&nca9555_gpio IO_04 GPIO_ACTIVE_LOW>;
|
||||
// dvdd-supply = <&vcc_mipicsi0>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "RK-CMK-8M-2-v1";
|
||||
rockchip,camera-module-lens-name = "CK8401";
|
||||
lens-focus = <&vm149c_0>;
|
||||
// lens-focus = <&dw9714>;
|
||||
port {
|
||||
gc8034_out0: endpoint {
|
||||
remote-endpoint = <&mipi_in_gc8034_0>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c5 {
|
||||
status = "okay";
|
||||
vm149c_1: vm149c_1@0c {
|
||||
compatible = "silicon touch,vm149c";
|
||||
status = "okay";
|
||||
reg = <0x0c>;
|
||||
rockchip,vcm-start-current = <20>; // 马达的启动电流
|
||||
rockchip,vcm-rated-current = <100>; // 马达的额定电流
|
||||
rockchip,vcm-step-mode = <13>; // 马达驱动 ic 的电流输出模式
|
||||
rockchip,camera-module-index = <1>; // 模组编号
|
||||
rockchip,camera-module-facing = "front"; // 模组朝向,有"back"和"front"
|
||||
};
|
||||
|
||||
// dw9763_1: dw9763_1@c {
|
||||
// compatible = "dongwoon,dw9763";
|
||||
// status = "okay";
|
||||
// reg = <0x0c>;
|
||||
// rockchip,vcm-max-current = <120>;
|
||||
// rockchip,vcm-start-current = <20>;
|
||||
// rockchip,vcm-rated-current = <90>;
|
||||
// rockchip,vcm-step-mode = <3>;
|
||||
// rockchip,vcm-t-src = <0x20>;
|
||||
// rockchip,vcm-t-div = <1>;
|
||||
// rockchip,camera-module-index = <1>;
|
||||
// rockchip,camera-module-facing = "front";
|
||||
// };
|
||||
|
||||
|
||||
ov13855_1: ov13855_1@36 {
|
||||
compatible = "ovti,ov13855";
|
||||
status = "okay";
|
||||
reg = <0x36>;
|
||||
clocks = <&cru CLK_CAM2_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam_clk2_out>;
|
||||
pwdn-gpios = <&nca9555_gpio IO_11 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&nca9555_gpio IO_10 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "front";
|
||||
rockchip,camera-module-name = "KYT-10203-v1";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
//lens-focus = <&dw9763_1>;
|
||||
port {
|
||||
ov13855_out1: endpoint {
|
||||
remote-endpoint = <&mipi_in_ov13855_1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
gc8034_1: gc8034_1@37 {
|
||||
compatible = "galaxycore,gc8034";
|
||||
reg = <0x37>;
|
||||
clocks = <&cru CLK_CAM2_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam_clk2_out>;
|
||||
pwdn-gpios = <&nca9555_gpio IO_11 GPIO_ACTIVE_LOW>;
|
||||
reset-gpios = <&nca9555_gpio IO_10 GPIO_ACTIVE_LOW>;
|
||||
// dvdd-supply = <&vcc_mipicsi1>;
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "front";
|
||||
rockchip,camera-module-name = "RK-CMK-8M-2-v1";
|
||||
rockchip,camera-module-lens-name = "CK8401";
|
||||
lens-focus = <&vm149c_1>;
|
||||
port {
|
||||
gc8034_out1: endpoint {
|
||||
remote-endpoint = <&mipi_in_gc8034_1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&csi2_dphy0_hw {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&csi2_dphy1_hw {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&mipi0_csi2 {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi0_csi2_input: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&csidphy0_out>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi0_csi2_output: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&cif_mipi_in0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mipi2_csi2 {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi2_csi2_input: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&csidphy3_out>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi2_csi2_output: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&cif_mipi_in1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
cif_mipi_in0: endpoint {
|
||||
remote-endpoint = <&mipi0_csi2_output>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds2 {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
cif_mipi_in1: endpoint {
|
||||
remote-endpoint = <&mipi2_csi2_output>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds_sditf {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
mipi_lvds_sditf: endpoint {
|
||||
remote-endpoint = <&isp_vir0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds2_sditf {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
mipi_lvds2_sditf: endpoint {
|
||||
remote-endpoint = <&isp_vir1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_vir0 {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
isp_vir0: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&mipi_lvds_sditf>;
|
||||
};
|
||||
isp_vir1: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&mipi_lvds2_sditf>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
//&pinctrl {
|
||||
// cam {
|
||||
// mipicsi0_pwr: mipicsi0-pwr {
|
||||
// rockchip,pins =
|
||||
// /* camera power en */
|
||||
// <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
// };
|
||||
// mipicsi1_pwr: mipicsi1-pwr {
|
||||
// rockchip,pins =
|
||||
// /* camera1 power en */
|
||||
// <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
// };
|
||||
// };
|
||||
//};
|
||||
//
|
||||
215
rk3562/rp-mipi-camera0-gc2093-imx334-imx415-rk3562.dtsi
Executable file
215
rk3562/rp-mipi-camera0-gc2093-imx334-imx415-rk3562.dtsi
Executable file
@@ -0,0 +1,215 @@
|
||||
|
||||
/ {
|
||||
|
||||
|
||||
vcc_camera: vcc-camera-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_camera";
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
vin-supply = <&vcc1v8_dvp>;
|
||||
};
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
status = "okay";
|
||||
gc2093_0: gc2093_0@37 {
|
||||
compatible = "galaxycore,gc2093";
|
||||
status = "okay";
|
||||
reg = <0x37>;
|
||||
clocks = <&cru CLK_CAM0_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&camm0_clk0_out>;
|
||||
pwdn-gpios = <&nca9555_gpio IO_05 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&nca9555_gpio IO_04 GPIO_ACTIVE_LOW>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "DW-RV2093-V1.0";
|
||||
rockchip,camera-module-lens-name = "JZ-7070AS-A1";
|
||||
port {
|
||||
ucam_0_out0: endpoint {
|
||||
remote-endpoint = <&mipi_in_0_ucam0>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
imx334_0: imx334_0@1a {
|
||||
compatible = "sony,imx334";
|
||||
status = "okay";
|
||||
reg = <0x1a>;
|
||||
clocks = <&cru CLK_CAM0_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
// conflict with csi-ctl-gpios//
|
||||
pwdn-gpios = <&nca9555_gpio IO_05 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&nca9555_gpio IO_04 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&camm0_clk0_out>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "CMK-OT1522-FG3";
|
||||
rockchip,camera-module-lens-name = "CS-P1150-IRC-8M-FAU";
|
||||
|
||||
port {
|
||||
ucam_0_out1: endpoint {
|
||||
remote-endpoint = <&mipi_in_0_ucam1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
imx415_0: imx415_0@1a {
|
||||
compatible = "sony,imx415";
|
||||
status = "okay";
|
||||
reg = <0x1a>;
|
||||
clocks = <&cru CLK_CAM0_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pwdn-gpios = <&nca9555_gpio IO_05 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&nca9555_gpio IO_04 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&camm0_clk0_out>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "CMK-OT1607-FV1";
|
||||
rockchip,camera-module-lens-name = "M12-40IRC-4MP-F16";
|
||||
port {
|
||||
ucam_0_out2: endpoint {
|
||||
remote-endpoint = <&mipi_in_0_ucam2>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&csi2_dphy0_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_0_ucam0: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&ucam_0_out0>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
mipi_in_0_ucam1: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&ucam_0_out1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
|
||||
mipi_in_0_ucam2: endpoint@2 {
|
||||
reg = <2>;
|
||||
remote-endpoint = <&ucam_0_out2>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
csidcphy0_out: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&mipi0_csi2_input>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&mipi0_csi2 {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi0_csi2_input: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&csidcphy0_out>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi0_csi2_output: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&cif_mipi_in0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
cif_mipi_in0: endpoint {
|
||||
remote-endpoint = <&mipi0_csi2_output>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds_sditf {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
mipi_lvds_sditf: endpoint {
|
||||
remote-endpoint = <&isp_vir0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_vir0 {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
isp_vir0: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&mipi_lvds_sditf>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
200
rk3562/rp-mipi-camera0-rk3562.dtsi
Executable file
200
rk3562/rp-mipi-camera0-rk3562.dtsi
Executable file
@@ -0,0 +1,200 @@
|
||||
|
||||
/ {
|
||||
|
||||
|
||||
vcc_camera: vcc-camera-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_camera";
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
vin-supply = <&vcc1v8_dvp>;
|
||||
};
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
status = "okay";
|
||||
|
||||
dw9763_0: dw9763_0@c {
|
||||
compatible = "dongwoon,dw9763";
|
||||
status = "okay";
|
||||
reg = <0x0c>;
|
||||
rockchip,vcm-max-current = <120>;
|
||||
rockchip,vcm-start-current = <20>;
|
||||
rockchip,vcm-rated-current = <90>;
|
||||
rockchip,vcm-step-mode = <3>;
|
||||
rockchip,vcm-t-src = <0x20>;
|
||||
rockchip,vcm-t-div = <1>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
};
|
||||
|
||||
ov13855_0: ov13855_0@36 {
|
||||
compatible = "ovti,ov13855";
|
||||
status = "okay";
|
||||
reg = <0x36>;
|
||||
clocks = <&cru CLK_CAM0_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&camm0_clk0_out>;
|
||||
pwdn-gpios = <&nca9555_gpio IO_05 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&nca9555_gpio IO_04 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "KYT-10203-v1";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
lens-focus = <&dw9763_0>;
|
||||
port {
|
||||
ov13855_out0: endpoint {
|
||||
remote-endpoint = <&mipi_in_ov13855_0>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
gc8034_0: gc8034_0@37 {
|
||||
compatible = "galaxycore,gc8034";
|
||||
status = "okay";
|
||||
reg = <0x37>;
|
||||
clocks = <&cru CLK_CAM0_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&camm0_clk0_out>;
|
||||
pwdn-gpios = <&nca9555_gpio IO_05 GPIO_ACTIVE_LOW>;
|
||||
reset-gpios = <&nca9555_gpio IO_04 GPIO_ACTIVE_LOW>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "RK-CMK-8M-2-v1";
|
||||
rockchip,camera-module-lens-name = "CK8401";
|
||||
port {
|
||||
gc8034_out0: endpoint {
|
||||
remote-endpoint = <&mipi_in_gc8034_0>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&csi2_dphy0_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_gc8034_0: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&gc8034_out0>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
|
||||
mipi_in_ov13855_0: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&ov13855_out0>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
csidcphy0_out: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&mipi0_csi2_input>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&mipi0_csi2 {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi0_csi2_input: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&csidcphy0_out>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi0_csi2_output: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&cif_mipi_in0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
cif_mipi_in0: endpoint {
|
||||
remote-endpoint = <&mipi0_csi2_output>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds_sditf {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
mipi_lvds_sditf: endpoint {
|
||||
remote-endpoint = <&isp_vir0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_vir0 {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
isp_vir0: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&mipi_lvds_sditf>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
200
rk3562/rp-mipi-camera1-gc2093-imx334-imx415-rk3562.dtsi
Executable file
200
rk3562/rp-mipi-camera1-gc2093-imx334-imx415-rk3562.dtsi
Executable file
@@ -0,0 +1,200 @@
|
||||
&i2c5 {
|
||||
status = "okay";
|
||||
gc2093_2: gc2093_2@37 {
|
||||
compatible = "galaxycore,gc2093";
|
||||
status = "okay";
|
||||
reg = <0x37>;
|
||||
clocks = <&cru CLK_CAM2_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam_clk2_out>;
|
||||
pwdn-gpios = <&nca9555_gpio IO_11 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&nca9555_gpio IO_10 GPIO_ACTIVE_LOW>;
|
||||
rockchip,camera-module-index = <2>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "DW-RV2093-V1.0";
|
||||
rockchip,camera-module-lens-name = "JZ-7070AS-A1";
|
||||
port {
|
||||
ucam_2_out0: endpoint {
|
||||
remote-endpoint = <&mipi_in_2_ucam0>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
imx334_1: imx334_1@1a {
|
||||
compatible = "sony,imx334";
|
||||
status = "0kay";
|
||||
reg = <0x1a>;
|
||||
clocks = <&cru CLK_CAM2_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
// conflict with csi-ctl-gpios//
|
||||
pwdn-gpios = <&nca9555_gpio IO_11 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&nca9555_gpio IO_10 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam_clk2_out>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "CMK-OT1522-FG3";
|
||||
rockchip,camera-module-lens-name = "CS-P1150-IRC-8M-FAU";
|
||||
|
||||
port {
|
||||
ucam_1_out1: endpoint {
|
||||
remote-endpoint = <&mipi_in_1_ucam1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
imx415_1: imx415_1@1a {
|
||||
compatible = "sony,imx415";
|
||||
status = "okay";
|
||||
reg = <0x1a>;
|
||||
clocks = <&cru CLK_CAM2_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pwdn-gpios = <&nca9555_gpio IO_11 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&nca9555_gpio IO_10 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam_clk2_out>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "CMK-OT1607-FV1";
|
||||
rockchip,camera-module-lens-name = "M12-40IRC-4MP-F16";
|
||||
port {
|
||||
ucam_1_out2: endpoint {
|
||||
remote-endpoint = <&mipi_in_1_ucam2>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&csi2_dphy1_hw {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&csi2_dphy3 {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi_in_2_ucam0: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&ucam_2_out0>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
mipi_in_1_ucam1: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&ucam_1_out1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
|
||||
mipi_in_1_ucam2: endpoint@2 {
|
||||
reg = <2>;
|
||||
remote-endpoint = <&ucam_1_out2>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
csidcphy2_out: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&mipi2_csi2_input>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&mipi2_csi2 {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi2_csi2_input: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&csidcphy2_out>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi2_csi2_output: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&cif_mipi_in2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds2 {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
cif_mipi_in2: endpoint {
|
||||
remote-endpoint = <&mipi2_csi2_output>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds2_sditf {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
mipi_lvds2_sditf: endpoint {
|
||||
remote-endpoint = <&isp_vir2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_vir2 {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
isp_vir2: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&mipi_lvds2_sditf>;
|
||||
};
|
||||
};
|
||||
};
|
||||
186
rk3562/rp-mipi-camera1-rk3562.dtsi
Executable file
186
rk3562/rp-mipi-camera1-rk3562.dtsi
Executable file
@@ -0,0 +1,186 @@
|
||||
&i2c5 {
|
||||
status = "okay";
|
||||
|
||||
dw9763_1: dw9763_1@c {
|
||||
compatible = "dongwoon,dw9763";
|
||||
status = "okay";
|
||||
reg = <0x0c>;
|
||||
rockchip,vcm-max-current = <120>;
|
||||
rockchip,vcm-start-current = <20>;
|
||||
rockchip,vcm-rated-current = <90>;
|
||||
rockchip,vcm-step-mode = <3>;
|
||||
rockchip,vcm-t-src = <0x20>;
|
||||
rockchip,vcm-t-div = <1>;
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "front";
|
||||
};
|
||||
|
||||
ov13855_1: ov13855_1@36 {
|
||||
compatible = "ovti,ov13855";
|
||||
status = "okay";
|
||||
reg = <0x36>;
|
||||
clocks = <&cru CLK_CAM2_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam_clk2_out>;
|
||||
pwdn-gpios = <&nca9555_gpio IO_11 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&nca9555_gpio IO_10 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "front";
|
||||
rockchip,camera-module-name = "KYT-10203-v1";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
lens-focus = <&dw9763_1>;
|
||||
port {
|
||||
ov13855_out1: endpoint {
|
||||
remote-endpoint = <&mipi_in_ov13855_1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
gc8034_1: gc8034_1@37 {
|
||||
compatible = "galaxycore,gc8034";
|
||||
status = "okay";
|
||||
reg = <0x37>;
|
||||
clocks = <&cru CLK_CAM2_OUT2IO>;
|
||||
clock-names = "xvclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam_clk2_out>;
|
||||
pwdn-gpios = <&nca9555_gpio IO_11 GPIO_ACTIVE_LOW>;
|
||||
reset-gpios = <&nca9555_gpio IO_10 GPIO_ACTIVE_LOW>;
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "front";
|
||||
rockchip,camera-module-name = "RK-CMK-8M-2-v1";
|
||||
rockchip,camera-module-lens-name = "CK8401";
|
||||
port {
|
||||
gc8034_out1: endpoint {
|
||||
remote-endpoint = <&mipi_in_gc8034_1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&csi2_dphy1_hw {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&csi2_dphy3 {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi_in_gc8034_1: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&gc8034_out1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
|
||||
mipi_in_ov13855_1: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&ov13855_out1>;
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
|
||||
};
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
csidcphy2_out: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&mipi2_csi2_input>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&mipi2_csi2 {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi2_csi2_input: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&csidcphy2_out>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mipi2_csi2_output: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&cif_mipi_in2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds2 {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
cif_mipi_in2: endpoint {
|
||||
remote-endpoint = <&mipi2_csi2_output>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds2_sditf {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
mipi_lvds2_sditf: endpoint {
|
||||
remote-endpoint = <&isp_vir2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_vir2 {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
isp_vir2: endpoint@0 {
|
||||
reg = <0>;
|
||||
remote-endpoint = <&mipi_lvds2_sditf>;
|
||||
};
|
||||
};
|
||||
};
|
||||
32
rk3562/rp-usb-rk3562.dtsi
Executable file
32
rk3562/rp-usb-rk3562.dtsi
Executable file
@@ -0,0 +1,32 @@
|
||||
&usb_host0_ehci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_host0_ohci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&u2phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&u2phy_otg {
|
||||
status = "okay";
|
||||
vbus-supply = <&otg_switch>;
|
||||
};
|
||||
|
||||
&usbdrd30 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbdrd_dwc3 {
|
||||
status = "okay";
|
||||
|
||||
dr_mode = "otg";
|
||||
extcon = <&u2phy>;
|
||||
maximum-speed = "high-speed";
|
||||
phys = <&u2phy_otg>;
|
||||
phy-names = "usb2-phy";
|
||||
snps,dis_u2_susphy_quirk;
|
||||
snps,usb2-lpm-disable;
|
||||
};
|
||||
124
rk3562/rp-wifi-bt-vs2275s-rk3562.dtsi
Executable file
124
rk3562/rp-wifi-bt-vs2275s-rk3562.dtsi
Executable file
@@ -0,0 +1,124 @@
|
||||
|
||||
/{
|
||||
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 = <100>;
|
||||
reset-gpios = <&gpio1 RK_PC7 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wireless-wlan {
|
||||
compatible = "wlan-platdata";
|
||||
rockchip,grf = <&sys_grf>;
|
||||
wifi_chip_type = "ap6275s";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&wifi_host_wake_irq>;
|
||||
WIFI,host_wake_irq = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
|
||||
// WIFI,poweren_gpio = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
wireless-bluetooth {
|
||||
compatible = "bluetooth-platdata";
|
||||
clocks = <&rk817 1>;
|
||||
clock-names = "ext_clock";
|
||||
//wifi-bt-power-toggle;
|
||||
uart_rts_gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default", "rts_gpio";
|
||||
pinctrl-0 = <&uart1m0_rtsn>, <&bt_gpio>;
|
||||
pinctrl-1 = <&uart1_gpios>;
|
||||
BT,reset_gpio = <&gpio2 RK_PA1 GPIO_ACTIVE_HIGH>;
|
||||
BT,wake_gpio = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
BT,wake_host_irq = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
bt-sound {
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "dsp_a";
|
||||
simple-audio-card,bitclock-inversion = <1>;
|
||||
simple-audio-card,mclk-fs = <256>;
|
||||
simple-audio-card,name = "rockchip,bt";
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&sai2>;
|
||||
};
|
||||
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&bt_sco 1>;
|
||||
};
|
||||
};
|
||||
|
||||
bt_sco: bt-sco {
|
||||
compatible = "delta,dfbmcs320";
|
||||
#sound-dai-cells = <1>;
|
||||
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;
|
||||
num-slots = <1>;
|
||||
supports-sdio;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
|
||||
sd-uhs-sdr104;
|
||||
status = "okay";
|
||||
// post_power_on_delay_ms = <100>;
|
||||
};
|
||||
|
||||
&uart1 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
|
||||
};
|
||||
|
||||
&sai2 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s2m0_lrck
|
||||
&i2s2m0_sclk
|
||||
&i2s2m0_sdi
|
||||
&i2s2m0_sdo>;
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
wireless-wlan {
|
||||
wifi_host_wake_irq: wifi-host-wake-irq {
|
||||
rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_down>;
|
||||
};
|
||||
wifi_enable_h: wifi-enable-h {
|
||||
rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
wireless-bluetooth {
|
||||
bt_gpio: bt-gpio {
|
||||
rockchip,pins =
|
||||
<2 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>,
|
||||
<3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||
<3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>;
|
||||
};
|
||||
uart1_gpios: uart1-gpios {
|
||||
rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user