65 lines
1.3 KiB
Plaintext

/dts-v1/;
/plugin/;
#include <dt-bindings/clock/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>;
};
};
};
};
};