Commit Graph

6227 Commits

Author SHA1 Message Date
codewalkerster 5328163362 ODROID: aml_media: Add disablehpd module_param.
Change-Id: I2fa0889eb7a1e05aa5245e2aceaddb9c161c2709
2025-07-31 17:06:17 +09:00
codewalkerster d49fc72360 ODROID: aml_media: Add voutmode module_param.
set hdmi to dvi output.

Change-Id: I106c061adce7e0422e67132dd3f55c45de4339e1
2025-07-31 17:06:16 +09:00
jianchuan.ping bb88cb53a9 Sync code gape in ref server
Change-Id: I6aa2e1c62c09aa39da4cb58602f77fa720a50a5d
Signed-off-by: jianchuan.ping <jianchuan.ping@amlogic.com>
2025-07-30 09:29:52 +09:00
gongwei.chen 28307764ee pdvfs: need add tt cpu voltage of s6 [1/2]
PD#SWPL-211171

Problem:
need add tt cpu voltage for slt yield

Solution:
add tt2 cpu pdvfs table

Verify:
s6

Change-Id: I9d1b18488976a8192ddb9908ec2db07ca782bb68
Signed-off-by: gongwei.chen <gongwei.chen@amlogic.com>
2025-07-30 09:29:52 +09:00
yidong zhang f1dd7ca58c raman_ai: add raman_ai p0 board support [1/3]
PD#SWPL-211345

Problem:
add s6_s905x5_raman_ai_p0 dts for old hw support.

Solution:
add  s6_s905x5_raman_ai_p0.dts

Verify:
raman_ai old hw

Change-Id: I5babccd56902e8e362aae78bed09b4494530ee48
Signed-off-by: yidong zhang <yidong.zhang@amlogic.com>
2025-07-30 09:29:52 +09:00
yidong zhang 855bd321c7 raman_ai: enable radar wakeup gpio func [3/3]
PD#SWPL-209963

Problem:
enable radar wakeup gpio.

Solution:
radar GPIOA_11 wakeup SOC.

Verify:
raman_ai

Change-Id: Ide60dbb0c71c1d401d3490af9ba2ebb6e2ff49f6
Signed-off-by: yidong zhang <yidong.zhang@amlogic.com>
2025-07-30 09:29:52 +09:00
yidong zhang aaa3074692 raman_ai: bringup raman_ai on new hardware board [1/2]
PD#SWPL-207644

Problem:
new raman_ai board needs bringup

Solution:
bringup new raman_ai board

Verify:
raman_ai

Change-Id: I9a06a7a6760c72703c2510f5d4aa501fe9dddee7
Signed-off-by: yidong zhang <yidong.zhang@amlogic.com>
2025-07-30 09:29:52 +09:00
yidong zhang 6540c62f51 raman_ai: kernel add new board raman_ai support [1/2]
PD#SWPL-205748

Problem:
kernel support new raman_ai board

Solution:
add new board for sei raman_ai

Verify:
Verify by raman_ai

Change-Id: I202114c2b4d895948819e7a57233b7d360e8cab4
Signed-off-by: yidong zhang <yidong.zhang@amlogic.com>
Signed-off-by: gongwei.chen <gongwei.chen@amlogic.com>
2025-07-30 09:29:48 +09:00
chao.zhang be2e410773 regulator: fix cpu pwm regulator config [1/1]
PD#SWPL-218319

Problem:
fix s6 cpu pwm regulator config

Solution:
fix regulator config

Verify:
s6

Change-Id: Ie4eb9a153bf8363de4d5616d48bdbd2fb38f52e6
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2025-07-30 09:29:10 +09:00
Dongjin Kim c2536a76be ODROID-C5: arm64/dts: Add device tree overlay for custom display timings
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie6be96b5cf1685dcd26b596e23cf190e73ed67f1
2025-07-29 10:33:22 +09:00
hang cheng f806a85729 hdmitx: always notify hpd event to clients [1/2]
PD#SWPL-156790
PD#SWPL-156791

Problem:
Hdmitx is a notify server, it should
notify hpd event unconditionally.
For clients which want to know hpd/edid
change of hdmitx side, need to register
notify callback of hdmitx server.
For clients which don't want to know
hpd/edid change of hdmitx side, it
should not register notify callback of
hdmitx server, or it register notify
callback but ignore HPD/EDID info

Solution:
always notify hpd event to clients unconditionally

Verify:
an400

Test:
DRM-TX-80

Change-Id: I074d32c099325412f39e7667088384967532dba3
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2025-07-29 10:33:21 +09:00
xiane 2c13a66d7a ODROID-C5: arm64/configs: Add vu7 configs.
- lt8619c-qc4011, backlight-pwm.

Signed-off-by: xiane <sangch.go@gmail.com>
Change-Id: Idafa7880c4714a64294916054977e705134162d2
2025-07-29 10:33:21 +09:00
xiane 3dc947c5d3 ODROID-C5: arm64/configs: Add gpio reset.
Signed-off-by: xiane <sangch.go@gmail.com>
Change-Id: I1356dc3be3075e331aafb46a22eb6f2e83abf9bf
2025-07-29 10:33:21 +09:00
ckkim 0dad1fe525 ODROID-C5:dtbs/dtbo: adjust to vu7c backlight device.
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I403700346cab7070d138cab574c750add6ab0d4e
2025-07-29 10:33:21 +09:00
ckkim 106088002a ODROID-C5:hdmitx:hdmitx BLANK/UNBLANK notify to vu7c.
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: Ideb2e6f33add780cc3bbf6257a17cc5bbecbe0ac
2025-07-29 10:33:21 +09:00
xiane a8a477ea80 ODROID-C5: arm64/configs: Add odroid configs.
Signed-off-by: xiane <sangch.go@gmail.com>
Change-Id: I5e265c0c9af8d7a9dda056b3a396307572bd9c8a
2025-07-29 10:33:21 +09:00
xiane 1f7cc9e0fa ODROID-COMMON: drm/hdmitx: Add modeline target file paths.
Signed-off-by: xiane <sangch.go@gmail.com>
Change-Id: Ie033bec7fe22b37658fc42d6b7d36283e77c689f
2025-07-29 10:33:21 +09:00
Dongjin Kim 553d9e69a2 ODROID-COMMON: drm/hdmitx: fix check if 'display-timings' node exists
This patch is to prevent printing annoying kernel log '...could not find
display-timings node...' when a device tree does not contain the node.

drivers/video/of_display_timing.c:
	struct display_timings *of_get_display_timings(const struct device_node *np)
	{
		...
		timings_np = of_get_child_by_name(np, "display-timings");
		if (!timings_np) {
			pr_err("%pOF: could not find display-timings node\n", np);
			return NULL;
		}
	}

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I2a034e83461f1be6831d8d89e923e376e6fe51ee
2025-07-29 10:33:21 +09:00
Dongjin Kim 4244196368 ODROID-COMMON: drm/hdmitx: set to default display mode
This patch is to set the default display mode within probed display
modes by given kernel parameter as

    aml_drm.displaymode=<MODENAME>[:force]

where, MODENAME is the name of display mode and optionally ':force' can
be added in order to ignore the rest display modes so one display mode
is present in the system.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I8d9fdf8d1f35c415e95a91dbc75a64f9712545ad
2025-07-29 10:33:21 +09:00
Dongjin Kim 60200d7ed1 ODROID-COMMON: drm/hdmitx: add support custom display timing from device tree
Use custom display timing can come from a device tree when it's defined
in the node 'drm_subsystem', for example.

    &drm_subsystem {
        display-timings {
            native-mode = <&timing0>;

            timing0: 1024x768 {
                clock-frequency = <63500000>;
                hactive = <1024>;
                vactive = <768>;
                hfront-porch = <48>;
                hsync-len = <104>;
                hback-porch = <152>;
                vfront-porch = <3>;
                vsync-len = <4>;
                vback-porch = <23>;
                hsync-active = <0>;
                vsync-active = <1>;
            };
        };
    };

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I809c0216566f511bd967d29e3d4e33a404547f4d
2025-07-29 10:33:21 +09:00
Dongjin Kim 3526474ef5 ODROID-COMMON: drm/hdmitx: add support custom display time from kernel command line
This patch is to add HDMI custom video timing and enforce the use of it no
matter whether EDID from the HDMI display is provided or not.

The custom video mode must be passed via Linux kernel command line in
the form of this;

    aml_drm.modeline=<NAME>,<PCLK>,<H-TIMING>,<V-TIMING>[,HSYNC][,VSYNC][,SCANMODE]

    where,
          NAME : the video timing name and must not contain 'space'
          PCLK : the pixel clock in MHz
          H-TIMING : the horizontal video timing
                     <h-width>,<h-sync-start>,<h-sync-end>,<h-total>
          V-TIMING : the vertical video timing
                     <v-widtv>,<v-sync-start>,<v-sync-end>,<v-total>

          HSYNC/VSYNC : polarity of H-Sync and V-Sync,
                        * +HSync
                        * -HSync (default)
                        * +VSync
                        * -VSync (default)

          SCANMODE : video scan mode string
                     * Progressive (default)
                     * Interlaced

    HSYNC/VSYNC/SCANMODE are not case sensitive and the default value will
    be applied when omitted

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I68d331becbea63792f933bb190a634d34ce709c3
2025-07-29 10:33:21 +09:00
Dongjin Kim b86685ce47 ODROID-COMMON: drm/hdmitx: Add load video modes from userspace
examples)
    "1024x768_60" 65 1024 1048 1184 1344 768 771 777 806 -HSync -VSync
    "1920x1200_59.88" 193.250 1920 2056 2256 2592 1200 1203 1209 1245 -HSync +VSync

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ia69db7180a59f1780d388433860d31aa71c46ac7
2025-07-29 10:33:21 +09:00
Dongjin Kim 7d0fb12e64 ODROID-COMMON: fix to check NULL before string compare
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ia0fe27b81533a1db2ce7dc7b1b888e638d0a3a4e
2025-07-29 10:33:21 +09:00
nealilia 83fd9cd702 ODROID-C5: Change brightness-levels for vu7c
Signed-off-by: nealilia <neal.kim@hardkernel.com>
Change-Id: I0a1dc3f88d33358bdfffb3662c7ae6a47ba7de29
2025-07-29 10:33:21 +09:00
shinys000114 9d5bc37b03 ODROID-C5: dtbo: fix typo
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I88c757f17086da065a113ea0c5de9a706e9af4c1
2025-07-29 10:33:21 +09:00
nealilia f0f06105e3 ODROID-C5: add display_vu7c
Change-Id: Id83a9cc487748a49d06977d7ee205c0959f473ff
Signed-off-by: nealilia <neal.kim@hardkernel.com>
2025-07-29 10:33:21 +09:00
ckkim 2a343a9a0f ODROID-C5: arm64/dts: improve display to support HDMI hotplug
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: Ib0ad8fabbc64994a26d17b1cd61a72d68aaa4445
Signed-off-by: xiane <sangch.go@gmail.com>
2025-07-29 10:33:21 +09:00
ckkim 014e2231af ODROID-C5: drm/hdmi: improve HDMI Hotplug.
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: Ifc4010de436266245112378dd3d067e263fb6be1
2025-07-29 10:33:21 +09:00
ruofei.zhao 75ad20bec0 hdmitx: sync hdmitx_edid_parse.c from kernel 6.12 to kernel 5.15 [2/2]
PD#SWPL-197049

Problem:
The hdmitx_edid_parse.c of kernel 5.15 and kernel 6.12 need to be the same

Solution:
sync hdmitx_edid_parse.c from kernel 6.12 to kernel 5.15

Verify:
S905Y5-BH201

Test:
DRM-TX-78

Change-Id: I27a6f624df64450111f9a764659985305d13d425
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-07-29 10:33:21 +09:00
ckkim eee9876aeb ODROID-C5: arm64/dts: Add GPIO-based reset controller for usb_hub
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I422b1f534ed5903f6a1cde78ba1e02162061c775
2025-07-22 11:13:57 +09:00
Dongjin Kim 791b25d424 ODROID-C5: arm64/dts: Add device tree overlay for GPIO power button
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Iea47ad849fece66ada3918d89e453e768ee5982d
2025-07-22 11:13:49 +09:00
Dongjin Kim 4edcd07bee ODROID-C5: arm64/dts: add 'gpio_power_button' to get POWER KEY from GPIO
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I9e075c1518b633d0c6c1c0d099daf00ae393092c
2025-07-22 11:13:39 +09:00
Dongjin Kim fa80d97d82 ODROID-C5: arm64/dts: add mailbox to GPIO interrupt controller
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I575f6b698fbaad73a77c43ff3fc0bc22c0242a0d
2025-07-22 11:13:31 +09:00
Dongjin Kim 64e5b64975 ODROID-C5: gpio/irqchip: Add GPIO wakeup feature on suspend/resume
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I5b1292f7af270fadaa75062e3b2ab12b1978495f
2025-07-22 11:13:10 +09:00
Dongjin Kim 0edb28b91f ODROID-C5: net: dwmac-meson8b: Add WOL with external ethernet phy
This patch adds to Wake On Lan with an extern ethernet phy and the wake
up is triggered through a GPIO pin. GPIOH_10 on ODROID-C5 is connected
to #INT of RTL8211F.

The method to enable WOL in generic Linux:
    $ sudo ethtool -s eth0 wol ug
    $ sudo systemctl suspend

The Amlogic's method is:
    $ echo 1 | sudo tee /sys/class/ethernet/wol
    $ sudo systemctl suspend

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I6032f8ff20be83ab1846580c854824014b957470
2025-07-22 11:12:29 +09:00
Zhuo Wang 6d5ea412b1 ethernet: fix suspend issue [1/1]
PD#SWPL-189695

Problem:
wow will crash

Solution:
return when null

Verify:
co-work with sc2 SOCKET board

Change-Id: Icafa5161e6ef11f29d872bc97f9abe75d10465a7
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2025-07-22 11:07:21 +09:00
shinys000114 d39c7eaa2a ODROID-C5: tft: Add hktft32 touchscreen support
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I94cd7d73899571e2da3edbdea97145c7320cfb2b
(cherry picked from commit ca09188a37283e52cda99c6ebb6b7f697093d18e)
2025-07-22 11:04:41 +09:00
Huqiang Qin 03b6d9c397 saradc: s6: Fix sampling errors [1/1]
PD#SWPL-177668

Problem:
There is an error in SARADC sampling.

Solution:
Use software to calculate average.

Verify:
S6/BL201 S7D/BM201

Change-Id: I390c39bf2160d6609a2556eb259c6d4d810dc3f2
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
s905x5m_14.0.0_20250707
2025-07-07 11:03:49 +09:00
Huqiang Qin 90150f920d saradc: s6: fix possible sampling bug [1/1]
PD#SWPL-177668

Problem:
Unable to sample the correct voltage.

Solution:
Follow the steps below to use the workaround sampling method
Step1: Delay 50us
Step2: ADC_EN set to 1
Step3: Delay 200us
Step4: Reset analog
Step5: Delay 20us
Step6: Trigger sampling

Verify:
S6/BL201 S7D/BM201

Change-Id: I20a777515d5230627c9b557e2452a656456976d1
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2025-07-02 10:43:11 +09:00
codewalkerster d9270c854f Revert "amfc: update crypto enum value for new mkfs.erofs tools [2/2]"
This reverts commit 4d972b4559.
2025-07-02 09:47:42 +09:00
codewalkerster 628c25dc2e Revert "ANDROID: ODROID-C5: aml_erofs: Avoid symbol fix."
This reverts commit 4baa975840.
2025-06-25 15:38:37 +09:00
codewalkerster 777af337fd ODROID-C5: ANDROID: arm64/configs: Add config for goodix .
Change-Id: I6ac04079e64f86e58687cf4486b3faf7deeae646
2025-06-11 14:45:24 +09:00
codewalkerster 0d9c336ce7 ODROID-C5: Add GOODIX touch for VU12.
Change-Id: Id5cb85af845fb8784d04b1275cc46fefd2dc1eba
2025-06-11 14:45:24 +09:00
codewalkerster ff6ae04648 ODROID-C5: Remove auto_patch.sh.
Change-Id: I8b4a36c995cb29cb52aee66a836cc15ef3da51f2
2025-06-11 14:45:24 +09:00
shinys000114 68a1c57274 ODROID-C5: change gpio line names for REV 1.0 20250313
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I9a5e3ac4e74678d7f9844a6e033c1685ff0d283f
2025-06-11 14:45:24 +09:00
phillip.choi 5c07e80359 ODROID-C5: arm64/dts: Enable vdin1 node
vdin1 node is removed in this commit :
  [fb2690f09 ODROID-C5: arm64/dts: Removed unused nodes.]

However, this node is required to support screen capture using
/dev/video12 node which is related with amlvideo2 driver.

Without this, driver couldn't acquire the memory space to store frame data,
and it returns EBUSY error when VIDIOC_STREAMON is performed by ioctl.

Signed-off-by: phillip.choi <phillip.choi@hardkernel.com>
Change-Id: Ica2e8676e54982f01610505b8d06d0a23eb03db8
2025-06-11 14:45:24 +09:00
xiane 372dac7cd7 squash! ODROID-C5: dtbo: mcp2517fd: Add support mcp2517fd
Change-Id: I435090d6f1e0f2344f7142cee6ed19baf85cdde7
2025-06-11 14:45:24 +09:00
codewalkerster bb5788a207 ODROID-C5: Fix size of heap-fb.
I tried doubling the size of heap-fb
but still had the problem so I increased the size to 3x.

Change-Id: I765c4b674ea9fc29207d451038fcfac99a43b7c8
2025-06-11 14:45:24 +09:00
codewalkerster 65c5950a83 ODROID-C5: Fix to remove messages.
plane0,uhd osd plane is greater than upper limit,return!

Change-Id: I48535a3b55344ae42e6e8052ca6f91b7c04f33ba
2025-06-11 14:45:24 +09:00
codewalkerster e83b493e48 ODROID-C5: Fix size of dmsheap_fb_reserved:heap-fb.
We fixed this properties to make android 4K UI.
ro.surface_flinger.max_graphics_width=3840
ro.surface_flinger.max_graphics_height=2160

It causes an error.
aml_cma_alloc: heap-fb: alloc failed, req-size: 8227 pages, ret: -12

Increasing the size of dmaheap_fb_reserved by 2x will solve error.

Change-Id: I7466795d15afc84f001ac89fbcda89311f2df6f9
2025-06-11 14:45:24 +09:00