arm64: dts: rockchip: add rk3566-eink.dtsi

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: Idc8b628b33b039d2c485ece50094e3a3b2185e75
This commit is contained in:
Zorro Liu
2020-12-30 15:15:27 +08:00
committed by Tao Huang
parent 18a4299e0b
commit 66c5822355
3 changed files with 150 additions and 158 deletions

View File

@@ -0,0 +1,37 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2020 Rockchip Electronics Co., Ltd.
*/
/ {
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
waveform_reserved: waveform@0x10000000 {
reg = <0x0 0x10000000 0x0 0x100000>;
};
display_reserved: framebuffer@10100000 {
reg = <0x0 0x10100000 0x0 0x2000000>;
};
};
ebc_dev: ebc-dev {
compatible = "rockchip,ebc-dev";
ebc_tcon = <&ebc>;
eink_tcon = <&eink>;
memory-region = <&display_reserved>;
waveform-region = <&waveform_reserved>;
status = "okay";
};
};
&ebc {
status = "okay";
};
&eink {
status = "okay";
};

View File

@@ -6,100 +6,11 @@
#include "rk3566-evb2-lp4x-v10.dtsi"
#include "rk3568-android.dtsi"
#include "rk3566-eink.dtsi"
/ {
model = "Rockchip RK3566 EVB2 LP4X V10 Eink Board";
compatible = "rockchip,rk3566-evb2-lp4x-v10-eink", "rockchip,rk3566";
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
waveform_reserved: waveform@8300000 {
reg = <0x0 0x08300000 0x0 0x100000>;
};
display_reserved: framebuffer@10000000 {
reg = <0x0 0x10000000 0x0 0x2000000>;
};
};
ebc_dev: ebc-dev {
compatible = "rockchip,ebc-dev";
ebc_tcon = <&ebc>;
eink_tcon = <&eink>;
memory-region = <&display_reserved>;
waveform-region = <&waveform_reserved>;
pmic = <&tps65185>;
status = "okay";
#if 0
/* ED097TC2U1 */
panel,width = <1200>;
panel,height = <825>;
panel,sdck = <25000000>;
panel,lsl = <4>;
panel,lbl = <4>;
panel,ldl = <300>;
panel,lel = <36>;
panel,gdck-sta = <18>;
panel,lgonl = <265>;
panel,fsl = <2>;
panel,fbl = <4>;
panel,fdl = <825>;
panel,fel = <24>;
panel,mirror = <0>;
panel,panel_16bit = <0>;
panel,panel_color = <0>;
panel,width-mm = <203>;
panel,height-mm = <140>;
#endif
#if 1
/* ES103TC1 */
panel,width = <1872>;
panel,height = <1404>;
panel,sdck = <33300000>;
panel,lsl = <18>;
panel,lbl = <17>;
panel,ldl = <234>;
panel,lel = <7>;
panel,gdck-sta = <34>;
panel,lgonl = <192>;
panel,fsl = <1>;
panel,fbl = <4>;
panel,fdl = <1404>;
panel,fel = <12>;
panel,mirror = <0>;
panel,panel_16bit = <1>;
panel,panel_color = <0>;
panel,width-mm = <157>;
panel,height-mm = <210>;
panel,direct_mode = <0>;
#endif
#if 0
/* ES133TC1 */
panel,width = <2200>;
panel,height = <1650>;
panel,sdck = <37500000>;
panel,lsl = <4>;
panel,lbl = <8>;
panel,ldl = <275>;
panel,lel = <14>;
panel,gdck-sta = <34>;
panel,lgonl = <217>;
panel,fsl = <1>;
panel,fbl = <4>;
panel,fdl = <1650>;
panel,fel = <6>;
panel,mirror = <0>;
panel,panel_16bit = <1>;
panel,panel_color = <0>;
panel,width-mm = <157>;
panel,height-mm = <210>;
panel,direct_mode = <1>;
#endif
};
};
&backlight {
@@ -135,8 +46,74 @@
status = "okay";
};
&eink {
&ebc_dev {
pmic = <&tps65185>;
status = "okay";
#if 0
/* ED097TC2U1 */
panel,width = <1200>;
panel,height = <825>;
panel,sdck = <25000000>;
panel,lsl = <4>;
panel,lbl = <4>;
panel,ldl = <300>;
panel,lel = <36>;
panel,gdck-sta = <18>;
panel,lgonl = <265>;
panel,fsl = <2>;
panel,fbl = <4>;
panel,fdl = <825>;
panel,fel = <24>;
panel,mirror = <0>;
panel,panel_16bit = <0>;
panel,panel_color = <0>;
panel,width-mm = <203>;
panel,height-mm = <140>;
#endif
#if 1
/* ES103TC1 */
panel,width = <1872>;
panel,height = <1404>;
panel,sdck = <33300000>;
panel,lsl = <18>;
panel,lbl = <17>;
panel,ldl = <234>;
panel,lel = <7>;
panel,gdck-sta = <34>;
panel,lgonl = <192>;
panel,fsl = <1>;
panel,fbl = <4>;
panel,fdl = <1404>;
panel,fel = <12>;
panel,mirror = <0>;
panel,panel_16bit = <1>;
panel,panel_color = <0>;
panel,width-mm = <157>;
panel,height-mm = <210>;
panel,direct_mode = <0>;
#endif
#if 0
/* ES133TC1 */
panel,width = <2200>;
panel,height = <1650>;
panel,sdck = <37500000>;
panel,lsl = <4>;
panel,lbl = <8>;
panel,ldl = <275>;
panel,lel = <14>;
panel,gdck-sta = <34>;
panel,lgonl = <217>;
panel,fsl = <1>;
panel,fbl = <4>;
panel,fdl = <1650>;
panel,fel = <6>;
panel,mirror = <0>;
panel,panel_16bit = <1>;
panel,panel_color = <0>;
panel,width-mm = <157>;
panel,height-mm = <210>;
panel,direct_mode = <1>;
#endif
};
&gmac1 {

View File

@@ -13,77 +13,12 @@
#include <dt-bindings/display/drm_mipi_dsi.h>
#include "rk3566.dtsi"
#include "rk3568-android.dtsi"
#include "rk3566-eink.dtsi"
/ {
model = "Rockchip RK3566 RK817 EINK LP4X Board";
compatible = "rockchip,rk3566-rk817-eink", "rockchip,rk3566";
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
waveform_reserved: waveform@8300000 {
reg = <0x0 0x08300000 0x0 0x100000>;
};
display_reserved: framebuffer@10000000 {
reg = <0x0 0x10000000 0x0 0x2000000>;
};
};
ebc_dev: ebc-dev {
compatible = "rockchip,ebc-dev";
ebc_tcon = <&ebc>;
eink_tcon = <&eink>;
memory-region = <&display_reserved>;
waveform-region = <&waveform_reserved>;
pmic = <&tps65185>;
status = "okay";
#if 0
/* ED097TC2U1 */
panel,width = <1200>;
panel,height = <825>;
panel,sdck = <25000000>;
panel,lsl = <4>;
panel,lbl = <4>;
panel,ldl = <300>;
panel,lel = <36>;
panel,gdck-sta = <18>;
panel,lgonl = <265>;
panel,fsl = <2>;
panel,fbl = <4>;
panel,fdl = <825>;
panel,fel = <24>;
panel,mirror = <0>;
panel,panel_16bit = <0>;
panel,panel_color = <0>;
panel,width-mm = <203>;
panel,height-mm = <140>;
#else
/* ES103TC1 */
panel,width = <1872>;
panel,height = <1404>;
panel,sdck = <33300000>;
panel,lsl = <18>;
panel,lbl = <17>;
panel,ldl = <234>;
panel,lel = <7>;
panel,gdck-sta = <34>;
panel,lgonl = <192>;
panel,fsl = <1>;
panel,fbl = <4>;
panel,fdl = <1404>;
panel,fel = <12>;
panel,mirror = <0>;
panel,panel_16bit = <1>;
panel,panel_color = <0>;
panel,width-mm = <157>;
panel,height-mm = <210>;
panel,direct_mode = <0>;
#endif
};
charge-animation {
compatible = "rockchip,uboot-charge";
rockchip,uboot-charge-on = <1>;
@@ -219,8 +154,51 @@
status = "okay";
};
&eink {
&ebc_dev {
pmic = <&tps65185>;
status = "okay";
#if 0
/* ED097TC2U1 */
panel,width = <1200>;
panel,height = <825>;
panel,sdck = <25000000>;
panel,lsl = <4>;
panel,lbl = <4>;
panel,ldl = <300>;
panel,lel = <36>;
panel,gdck-sta = <18>;
panel,lgonl = <265>;
panel,fsl = <2>;
panel,fbl = <4>;
panel,fdl = <825>;
panel,fel = <24>;
panel,mirror = <0>;
panel,panel_16bit = <0>;
panel,panel_color = <0>;
panel,width-mm = <203>;
panel,height-mm = <140>;
#else
/* ES103TC1 */
panel,width = <1872>;
panel,height = <1404>;
panel,sdck = <33300000>;
panel,lsl = <18>;
panel,lbl = <17>;
panel,ldl = <234>;
panel,lel = <7>;
panel,gdck-sta = <34>;
panel,lgonl = <192>;
panel,fsl = <1>;
panel,fbl = <4>;
panel,fdl = <1404>;
panel,fel = <12>;
panel,mirror = <0>;
panel,panel_16bit = <1>;
panel,panel_color = <0>;
panel,width-mm = <157>;
panel,height-mm = <210>;
panel,direct_mode = <0>;
#endif
};
&cpu0 {