Skip to content

Commit

Permalink
rockchip64-6.14: add dt overlay of lcd panel on hinlink-h88k
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingfate authored and igorpecovnik committed Mar 3, 2025
1 parent d6400cc commit d16287b
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions patch/kernel/archive/rockchip64-6.14/overlay/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
hinlink-h88k-240x135-lcd.dtbo \
rk3308-s0-ext-antenna.dtbo \
[email protected] \
rk3308-bs.dtbo [email protected] \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/clock/rockchip,rk3588-cru.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>

/ {
fragment@0 {
target = <&spi4>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
assigned-clocks = <&cru CLK_SPI4>;
assigned-clock-rates = <200000000>;
num-cs = <1>;
pinctrl-names = "default";
pinctrl-0 = <&spi4_custom_pins &spi4m2_cs0>;
status = "okay";

panel: panel@0 {
compatible = "hinlink-h88k-240x135-lcd", "panel-mipi-dbi-spi";
reg = <0>;

spi-max-frequency = <2000000>;

width-mm = <25>;
height-mm = <15>;

dc-gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>;

write-only;

timing: panel-timing {
hactive = <240>;
vactive = <135>;
hback-porch = <40>;
vback-porch = <52>;

clock-frequency = <0>;
hfront-porch = <0>;
hsync-len = <0>;
vfront-porch = <0>;
vsync-len = <0>;
};
};
};
};
fragment@1 {
target = <&pinctrl>;
__overlay__ {
lcd {
spi4_custom_pins: spi4-custom-pins {
rockchip,pins =
/* spi4_clk_m2 */
<1 RK_PA2 8 &pcfg_pull_up_drv_level_6>,
/* spi4_mosi_m2 */
<1 RK_PA1 8 &pcfg_pull_up_drv_level_6>,
/* spi4_miso_m0 */
<1 RK_PC0 8 &pcfg_pull_up_drv_level_6>;
};
};
};
};
};

0 comments on commit d16287b

Please sign in to comment.