From abb7335fafa7d965000b5dc37e1a22a6a284e775 Mon Sep 17 00:00:00 2001 From: Chaoyi Chen Date: Wed, 31 Jan 2024 09:14:11 +0800 Subject: [PATCH] arm64: dts: rockchip: rk3576-evb: Add test1 evb eink dts Signed-off-by: Chaoyi Chen Change-Id: I7f004ffe57a6de313feaeb4fd1390923f4f8fe94 --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../dts/rockchip/rk3576-test1-v10-eink.dts | 104 ++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-test1-v10-eink.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index aa3d946af4cd..64d005ea21b3 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -238,6 +238,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-evb1-v10.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-evb1-v10-linux.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-evb1-v10-tp2815-ahd2csi.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test1-v10.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test1-v10-eink.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test1-v10-linux.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test2-v10.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test2-v10-linux.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3576-test1-v10-eink.dts b/arch/arm64/boot/dts/rockchip/rk3576-test1-v10-eink.dts new file mode 100644 index 000000000000..8b4955f856ea --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3576-test1-v10-eink.dts @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2024 Rockchip Electronics Co., Ltd. + * + */ + +/dts-v1/; + +#include "rk3576-test1.dtsi" +#include "rk3576-android.dtsi" +#include "rk3576-eink.dtsi" + +/ { + model = "Rockchip RK3576 TEST1 V10 EINK Board"; + compatible = "rockchip,rk3576-test1-v10", "rockchip,rk3576"; +}; + +&ebc_dev { + pmic = <&sy7636a_pmic>; + status = "okay"; + + /* ED103TC2 panel */ + panel,width = <1872>; + panel,height = <1404>; + panel,vir_width = <1872>; + panel,vir_height = <1404>; + panel,sdck = <34000000>; + 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 = <1>; + panel,panel_16bit = <1>; + panel,panel_color = <0>; + panel,width-mm = <157>; + panel,height-mm = <210>; + +#if 0 + /* EC103KH3 panel */ + panel,width = <2480>; + panel,height = <1860>; + panel,vir_width = <2496>; + panel,vir_height = <1944>; + panel,sdck = <60000000>; + panel,lsl = <12>; + panel,lbl = <13>; + panel,ldl = <312>; + panel,lel = <22>; + panel,gdck-sta = <1>; + panel,lgonl = <252>; + panel,fsl = <1>; + panel,fbl = <4>; + panel,fdl = <1944>; + panel,fel = <16>; + panel,mirror = <0>; + panel,panel_16bit = <1>; + panel,panel_color = <1>; + panel,sdoe_mode = <1>; + panel,sdce_width = <1>; + panel,width-mm = <166>; + panel,height-mm = <210>; + panel,disable_logo = <1>; +#endif +}; + +/* + * The pins of gmac0 and ebc are multiplexed + */ +&gmac0 { + status = "disabled"; +}; + +/* + * The pins of pcie1 reset-gpio and sy7636a enable-gpio are conflict + */ +&pcie1 { + status = "disabled"; +}; + +&sy7636a_pmic { + status = "okay"; +}; + +&thermal_zones { + ebcpmic_thermal: ebcpmic-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&sy7636a_pmic>; + + trips { + sy7636a_dummy_trip: sy7636a-dummy-trip { + temperature = <100000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; +};