From 40bdfbf29d8b2a020cd7044b33e1ec48a0d04f8f Mon Sep 17 00:00:00 2001 From: suipengfei Date: Fri, 16 Jan 2026 08:20:44 +0800 Subject: [PATCH] modify-k3-am62p5-sk.dts --- arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 211 ++++++++++++++++++++++-- 1 file changed, 193 insertions(+), 18 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts index ddcbdee853e6..393d078318e2 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts @@ -10,7 +10,9 @@ #include #include +#include #include +#include #include "k3-am62p5.dtsi" / { @@ -36,7 +38,7 @@ chosen { #address-cells = <2>; #size-cells = <2>; ranges; - + bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait mem=1G"; stdout-path = &main_uart0; framebuffer0: framebuffer@0 { @@ -66,7 +68,12 @@ reserved_memory: reserved-memory { linux,cma { compatible = "shared-dma-pool"; reusable; + /********576 MB********** size = <0x00 0x24000000>; + ************************/ + /*******200MB***********/ + size = <0x00 0xc800000>; + linux,cma-default; }; @@ -109,6 +116,11 @@ secure_ddr: optee@9e800000 { reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */ no-map; }; + + rtos_framebuffer_memory_region: rtos-framebuffer-memory@93500000 { + reg = <0x00 0x93500000 0x00 0x08000000>; + no-map; + }; }; vmain_pd: regulator-0 { @@ -613,7 +625,7 @@ &sdhci0 { &sdhci1 { /* SD/MMC */ - status = "okay"; + status = "disabled"; vmmc-supply = <&vdd_mmc1>; vqmmc-supply = <&vddshv_sdio>; pinctrl-names = "default"; @@ -737,40 +749,61 @@ partitions { bootph-all; partition@0 { - label = "ospi.tiboot3"; + label = "sbl_ospi_linux_stage1.release.hs_fs.tiimage"; reg = <0x00 0x80000>; }; partition@80000 { - label = "ospi.tispl"; - reg = <0x80000 0x200000>; + label = "wkup-r5_stage2.release.appimage.hs_fs"; + reg = <0x80000 0xa00000>; + }; + + partition@100000 { + label = "hsm_a.appimage.hs_fs"; + reg = <0xa80000 0x40000>; + }; + + partition@140000 { + label = "mcu-r5_a.release.appimage.hs_fs"; + reg = <0xac0000 0x200000>; }; - partition@280000 { - label = "ospi.u-boot"; - reg = <0x280000 0x400000>; + partition@340000 { + label = "linux.falcon_a.appimage.hs_fs"; + reg = <0xcc0000 0x1100000>; }; - partition@680000 { - label = "ospi.env"; - reg = <0x680000 0x40000>; + partition@1440000 { + label = "hsm_b.appimage.hs_fs"; + reg = <0x1dc0000 0x40000>; }; - partition@6c0000 { - label = "ospi.env.backup"; - reg = <0x6c0000 0x40000>; + partition@1480000 { + label = "mcu-r5_b.release.appimage.hs_fs"; + reg = <0x1e00000 0x200000>; }; - partition@800000 { - label = "ospi.rootfs"; - reg = <0x800000 0x37c0000>; + partition@1680000 { + label = "linux.falcon_b.appimage.hs_fs"; + reg = <0x2000000 0x1100000>; + }; + + partition@2780000 { + label = "slot_partition"; + reg = <0x3100000 0x40000>; + }; + + partition@27c0000 { + label = "backup1"; + reg = <0x3140000 0xa00000>; }; partition@3fc0000 { - label = "ospi.phypattern"; + label = "ospi_phy_pattern"; reg = <0x3fc0000 0x40000>; bootph-all; }; + }; }; }; @@ -864,6 +897,17 @@ &dss_oldi_io_ctrl { bootph-all; }; +&dss0 { + ti,dss-shared-mode; + ti,dss-shared-mode-vp = "vp1"; + ti,dss-shared-mode-vp-owned = <0>; + ti,dss-shared-mode-common = "common1"; + ti,dss-shared-mode-planes = "vid"; + ti,dss-shared-mode-plane-zorder = <0>; + interrupt-parent = <&gic500>; + interrupts = ; +}; + &dss0 { bootph-all; status = "okay"; @@ -911,3 +955,134 @@ &ecap2 { pinctrl-0 = <&main_ecap2_pins_default>; status = "okay"; }; + + +&{/} { + display { + compatible = "microtips,mf-101hiebcaf0", "panel-simple"; + + /* + * Note that the OLDI TX 0 transmits the odd set of pixels + * while the OLDI TX 1 transmits the even set. This is a + * fixed configuration in the IP integration and is not + * changeable. The properties, "dual-lvds-odd-pixels" and + * "dual-lvds-even-pixels" have been used to merely + * identify if a Dual Link configuration is required. + * Swapping them will cause an error in the dss oldi driver. + */ + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dual-lvds-odd-pixels; + + lcd_in0: endpoint { + remote-endpoint = <&oldi0_dss0_out>; + }; + }; + + port@1 { + reg = <1>; + dual-lvds-even-pixels; + + lcd_in1: endpoint { + remote-endpoint = <&oldi1_dss0_out>; + }; + }; + }; + }; +}; + +&dss0 { + status = "okay"; +}; + +&oldi0_dss0 { + status = "okay"; + ti,companion-oldi = <&oldi1_dss0>; +}; + +&oldi1_dss0 { + status = "okay"; + ti,secondary-oldi; +}; + +&oldi0_dss0_ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + oldi0_dss0_in: endpoint { + remote-endpoint = <&dss0_dpi0_out0>; + }; + }; + + port@1 { + reg = <1>; + + oldi0_dss0_out: endpoint { + remote-endpoint = <&lcd_in0>; + }; + }; +}; + +&oldi1_dss0_ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + oldi1_dss0_in: endpoint { + remote-endpoint = <&dss0_dpi0_out1>; + }; + }; + + port@1 { + reg = <1>; + + oldi1_dss0_out: endpoint { + remote-endpoint = <&lcd_in1>; + }; + }; +}; + +&dss0_ports { + #address-cells = <1>; + #size-cells = <0>; + + /* VP1: Output to OLDI */ + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + dss0_dpi0_out0: endpoint@0 { + reg = <0>; + remote-endpoint = <&oldi0_dss0_in>; + }; + + dss0_dpi0_out1: endpoint@1 { + reg = <1>; + remote-endpoint = <&oldi1_dss0_in>; + }; + }; +}; + +&main_i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@41 { + compatible = "ilitek,ili251x"; + reg = <0x41>; + interrupt-parent = <&exp1>; + interrupts = <0 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&exp2 20 GPIO_ACTIVE_LOW>; + }; +}; + -- 2.34.1