[PATCH] ARM: milbeaut: Add missing of_node_put()

2020-07-22 Thread Yi Wang
From: Liao Pingfang After finishing using device node got from of_find_compatible_node(), of_node_put() needs to be called. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang --- arch/arm/mach-milbeaut/platsmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-milbeaut

[PATCH] mm, slab: Use kmem_cache_zalloc() instead of kmem_cache_alloc() with flag GFP_ZERO.

2020-06-17 Thread Yi Wang
From: Liao Pingfang Use kmem_cache_zalloc instead of manually calling kmem_cache_alloc with flag GFP_ZERO. Signed-off-by: Liao Pingfang --- include/linux/slab.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index 6d45488..1fa62d

[PATCH] sched: Use kmem_cache_zalloc() instead of kmem_cache_alloc() with flag GFP_ZERO.

2020-06-17 Thread Yi Wang
From: Liao Pingfang Use kmem_cache_zalloc instead of calling kmem_cache_alloc with flag GFP_ZERO. Signed-off-by: Liao Pingfang --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 8f36032..5aac3ca 100644 ---

[RFC PATCH RT] when panic use prink_flush_buffer to dump printk_ringbuffer

2020-06-21 Thread Yi Wang
From: wangyong echo c > proc/sysrq-trigger to trigger system panic, there is no debug information. I think the reason is using printk_kthread_func, since panic will call local_irq_disable to disable interrupts, and then call smp_send_stop to stop other cpus, the printk thread probably is not w

Re: [PATCH v4] usb/mtu3: power down device ip at setup

2018-11-28 Thread Hsin-Yi Wang
Thanks! On Thu, Nov 29, 2018 at 2:26 PM Chunfeng Yun wrote: > > hi Hsin-Yi, > > On Thu, 2018-11-29 at 11:16 +0800, Hsin-Yi, Wang wrote: > > Originally, when dr_mode is USB_DR_MODE_HOST, it didn't power down device > > ip, > > so host ip sleep will fail at ssu

[PATCH] panel-innolux: set display off in innolux_panel_unprepare

2018-12-20 Thread Hsin-Yi, Wang
()), so we need these functions to be called after the switch to cmd mode happens, i.e. in innolux_panel_unprepare. Signed-off-by: Hsin-Yi, Wang --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel

[PATCH 1/1] remoteproc: mediatek: Support multiple reserved memory regions

2024-07-03 Thread Shun-yi Wang
From: "shun-yi.wang" SCP supports multiple reserved memory regions, intended for specific hardwards. Signed-off-by: shun-yi.wang --- drivers/remoteproc/mtk_scp.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/drivers/remoteproc/mtk_scp.c b/driver

[PATCH 0/1] Support multiple reserved memory regions

2024-07-03 Thread Shun-yi Wang
From: "shun-yi.wang" Besides the reserved memory region for SCP, there are additional reserved memory regions for specific hardware use. Currently, only a single memory region is supported. Modifications are made to support multiple memory regions. shun-yi.wang (1): remoteproc: mediatek: supp

[PATCH RFC 0/1] Support CMA regions

2024-07-10 Thread Shun-yi Wang
From: "shun-yi.wang" In order to reserve specific Contiguous Memory Allocator (CMA) regions for hardware use. When the name of the reserved region contains "cma", then a corresponding CMA heap is added. In the DTS (Device Tree Source), we may have several memory regions with different names,

[PATCH RFC 1/1] remoteproc: mediatek: Support reserved CMA regions

2024-07-10 Thread Shun-yi Wang
From: "shun-yi.wang" In order to reserve specific Contiguous Memory Allocator (CMA) regions for hardware use. When the name of the reserved region contains "cma", then a corresponding CMA heap is added. Signed-off-by: shun-yi.wang --- drivers/remoteproc/mtk_scp.c | 38 +

[PATCH v2 0/2] Support multiple reserved memory regions

2024-07-31 Thread Shun-yi Wang
From: "shun-yi.wang" Besides the reserved memory region for SCP, there are additional reserved memory regions for specific hardware use. Currently, only a single memory region is supported. Modifications are made to support multiple memory regions. Changes in v2: - Modify description of memory

[PATCH v2 1/2] dt-bindings: remoteproc: Support multiple reserved memory regions

2024-07-31 Thread Shun-yi Wang
From: "shun-yi.wang" Remove the maximum number of 1 for memory regions. Instead, add some descriptions to ensure the integrity of the documentation. Signed-off-by: shun-yi.wang --- Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 8 ++-- 1 file changed, 6 insertions(+), 2 deleti

[PATCH v2 2/2] remoteproc: mediatek: Support multiple reserved memory regions

2024-07-31 Thread Shun-yi Wang
From: "shun-yi.wang" SCP supports multiple reserved memory regions, intended for specific hardwards. Signed-off-by: shun-yi.wang --- drivers/remoteproc/mtk_scp.c | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/drivers/remoteproc/mtk_scp.c b/driv

[PATCH] misc: eeprom: at24: check suspend status before disable regulator

2021-04-20 Thread Hsin-Yi Wang
quot;) Signed-off-by: Hsin-Yi Wang Acked-by: Bartosz Golaszewski --- This patch is originally in https://patchwork.kernel.org/project/linux-mediatek/patch/20210414172916.2689361-5-hsi...@chromium.org/ --- drivers/misc/eeprom/at24.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

Re: [PATCH v19 4/6] misc: eeprom: at24: check suspend status before disable regulator

2021-04-20 Thread Hsin-Yi Wang
On Fri, Apr 16, 2021 at 10:09 PM Bartosz Golaszewski wrote: > > On Wed, Apr 14, 2021 at 7:29 PM Hsin-Yi Wang wrote: > > > > cd5676db0574 ("misc: eeprom: at24: support pm_runtime control") disables > > regulator in runtime suspend. If runtime suspend is calle

[PATCH 1/2] drm/mediatek: set panel orientation before drm_dev_register().

2021-04-08 Thread Hsin-Yi Wang
/0x1c0 [4.893879] do_el0_svc_compat+0x28/0x3c [4.897791] el0_svc_compat+0x10/0x1c [4.901441] el0_sync_compat_handler+0xa8/0xcc [4.905873] el0_sync_compat+0x178/0x180 [4.909783] ---[ end trace b4f2db9d9c88610c ]--- Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_dsi

[PATCH 2/2] arm64: dts: mt8183: Add panel rotation

2021-04-08 Thread Hsin-Yi Wang
krane, kakadu, and kodama boards have a default panel rotation. Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi

Re: [PATCH 1/1] arm64: dts: mt8183-kukui: Enable thermal Tboard

2021-04-09 Thread Hsin-Yi Wang
gt; check /sys/class/thermal/thermal_zone*/type > check /sys/class/thermal/thermal_zone*/temp the TEST lines can be removed. > > Signed-off-by: Michael Kao > Signed-off-by: Nicolas Boichat > --- Tested-by: Hsin-Yi Wang This removes following error: [ 10.882325] generic-

[PATCH v4 2/2] drm/bridge: anx7625: disable regulators when power off

2021-02-23 Thread Hsin-Yi Wang
When suspending the driver, anx7625_power_standby() will be called to turn off reset-gpios and enable-gpios. However, power supplies are not disabled. To save power, the driver can get the power supply regulators and turn off them in anx7625_power_standby(). Signed-off-by: Hsin-Yi Wang Reviewed

[PATCH v4 1/2] dt-bindings: drm/bridge: anx7625: Add power supplies

2021-02-23 Thread Hsin-Yi Wang
anx7625 requires 3 power supply regulators. Signed-off-by: Hsin-Yi Wang Reviewed-by: Rob Herring Reviewed-by: Robert Foss --- v3->v4: rebase to drm-misc/for-linux-next --- .../bindings/display/bridge/analogix,anx7625.yaml | 15 +++ 1 file changed, 15 insertions(+) diff --git

Re: [PATCH v4 3/3] drm/bridge: anx7625: add MIPI DPI input feature support

2021-02-24 Thread Hsin-Yi Wang
On Thu, Jan 28, 2021 at 11:10 AM Xin Ji wrote: > > Add MIPI rx DPI input support > > Reported-by: kernel test robot > Signed-off-by: Xin Ji > --- > drivers/gpu/drm/bridge/analogix/anx7625.c | 326 > -- > drivers/gpu/drm/bridge/analogix/anx7625.h | 20 +- > 2 files

Re: [PATCH v4 3/3] drm/bridge: anx7625: add MIPI DPI input feature support

2021-02-24 Thread Hsin-Yi Wang
On Wed, Feb 24, 2021 at 5:55 PM Hsin-Yi Wang wrote: > > On Thu, Jan 28, 2021 at 11:10 AM Xin Ji wrote: > > > > Add MIPI rx DPI input support > > > > Reported-by: kernel test robot > > Signed-off-by: Xin Ji > > --- > >

Re: [v6,1/3] arm64: dts: mt8183: add thermal zone node

2021-02-02 Thread Hsin-Yi Wang
On Fri, Jan 29, 2021 at 6:10 PM Michael Kao wrote: > > From: "michael.kao" > > Add thermal zone node to Mediatek MT8183 dts file. > > Evaluate the thermal zone every 500ms while not cooling > and every 100ms when passive cooling is performed. > > Signed-off-by: Matthias Kaehlcke > Signed-off-by:

[PATCH v5 1/3] OPP: Add function to look up required OPP's for a given OPP

2021-02-03 Thread Hsin-Yi Wang
From: Saravana Kannan Add a function that allows looking up required OPPs given a source OPP table, destination OPP table and the source OPP. Signed-off-by: Saravana Kannan Signed-off-by: Hsin-Yi Wang --- drivers/opp/core.c | 58 ++ include/linux

[PATCH v5 0/3] Add required-opps support to devfreq passive gov

2021-02-03 Thread Hsin-Yi Wang
The devfreq passive governor scales the frequency of a "child" device based on the current frequency of a "parent" device (not parent/child in the sense of device hierarchy). As of today, the passive governor requires one of the following to work correctly: 1. The parent and child device have the s

[PATCH v5 2/3] PM / devfreq: Cache OPP table reference in devfreq

2021-02-03 Thread Hsin-Yi Wang
From: Saravana Kannan The OPP table can be used often in devfreq. Trying to get it each time can be expensive, so cache it in the devfreq struct. Signed-off-by: Saravana Kannan Reviewed-by: Chanwoo Choi Acked-by: MyungJoo Ham Signed-off-by: Hsin-Yi Wang --- drivers/devfreq/devfreq.c | 6

[PATCH v5 3/3] PM / devfreq: Add required OPPs support to passive governor

2021-02-03 Thread Hsin-Yi Wang
f OPPs. Signed-off-by: Saravana Kannan Acked-by: MyungJoo Ham Acked-by: Chanwoo Choi Signed-off-by: Hsin-Yi Wang --- drivers/devfreq/governor_passive.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/drivers/devfreq/governor_passive.c b/

Re: [PATCH v12 6/8] drm/mediatek: enable dither function

2021-01-28 Thread Hsin-Yi Wang
On Fri, Jan 29, 2021 at 9:33 AM CK Hu wrote: > > Hi, Hsin-Yi: > > On Thu, 2021-01-28 at 19:23 +0800, Hsin-Yi Wang wrote: > > From: Yongqiang Niu > > > > for 5 or 6 bpc panel, we need enable dither function > > to improve the display quality > > > >

Re: [PATCH v12 6/8] drm/mediatek: enable dither function

2021-01-28 Thread Hsin-Yi Wang
On Fri, Jan 29, 2021 at 2:30 PM Yongqiang Niu wrote: > > On Fri, 2021-01-29 at 14:24 +0800, Hsin-Yi Wang wrote: > > On Fri, Jan 29, 2021 at 9:33 AM CK Hu wrote: > > > > > > Hi, Hsin-Yi: > > > > > > On Thu, 2021-01-28 at 19:23 +0800,

[PATCH v4 0/8] drm/mediatek: add support for mediatek SOC MT8192

2021-01-28 Thread Hsin-Yi Wang
This series are based on kernel/git/chunkuang.hu/linux.git mediatek-drm-next This series also depends on component support in mmsys[1]: - [v4,06/10] soc: mediatek: mmsys: add component OVL_2L2 - [v4,07/10] soc: mediatek: mmsys: add component POSTMASK - [v4,08/10] soc: mediatek: mmsys: add component

[PATCH v4 2/8] drm/mediatek: add component POSTMASK

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu This patch add component POSTMASK, Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/Makefile| 1 + drivers/gpu/drm/mediatek/mtk_disp_drv.h | 8 + drivers/gpu/drm/mediatek/mtk_disp_postmask.c | 161

[PATCH v4 1/8] drm/mediatek: add component OVL_2L2

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu This patch add component OVL_2L2 Signed-off-by: Yongqiang Niu Reviewed-by: Chun-Kuang Hu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers

[PATCH v4 3/8] drm/mediatek: add component RDMA4

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu This patch add component RDMA4 Signed-off-by: Yongqiang Niu Reviewed-by: Chun-Kuang Hu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers

[PATCH v4 5/8] drm/mediatek: separate ccorr module

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu ccorr ctm matrix bits will be different in mt8192 Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/Makefile | 3 +- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c | 222 drivers/gpu/drm/mediatek

[PATCH v4 8/8] drm/mediatek: add support for mediatek SOC MT8192

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu add support for mediatek SOC MT8192 Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c| 6 +++ drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 20 ++ drivers/gpu/drm/mediatek/mtk_disp_postmask.c | 1

[PATCH v4 4/8] drm/mediatek: enable OVL_LAYER_SMI_ID_EN for multi-layer usecase

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu enable OVL_LAYER_SMI_ID_EN for multi-layer usecase, without this patch, ovl will hang up when more than 1 layer enabled. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 17 + 1 file changed, 17

[PATCH v4 7/8] soc: mediatek: add mtk mutex support for MT8192

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu Add mtk mutex support for MT8192 SoC. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/soc/mediatek/mtk-mutex.c | 35 1 file changed, 35 insertions(+) diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc

[PATCH v4 6/8] drm/mediatek: add matrix bits private data for ccorr

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu matrix bits of mt8183 is 12 matrix bits of mt8192 is 13 Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm

Re: [PATCH v12 6/8] drm/mediatek: enable dither function

2021-01-29 Thread Hsin-Yi Wang
On Fri, Jan 29, 2021 at 3:42 PM Yongqiang Niu wrote: > > On Fri, 2021-01-29 at 14:46 +0800, Hsin-Yi Wang wrote: > > On Fri, Jan 29, 2021 at 2:30 PM Yongqiang Niu > > wrote: > > > > > > On Fri, 2021-01-29 at 14:24 +0800, Hsin-Yi Wang wrote: > > > &

[PATCH] drm/mediatek: enable dither function

2021-01-30 Thread Hsin-Yi Wang
From: Yongqiang Niu Enable dither function to improve the display quality. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- Previous version: https://patchwork.kernel.org/project/linux-mediatek/patch/20210129092209.2584718-7-hsi...@chromium.org/ --- drivers/gpu/drm/mediatek

Re: [PATCH v13 6/8] drm/mediatek: enable dither function

2021-01-30 Thread Hsin-Yi Wang
On Sun, Jan 31, 2021 at 11:40 AM Chun-Kuang Hu wrote: > > Hi, Hsin-Yi: > > Hsin-Yi Wang 於 2021年1月29日 週五 下午5:23寫道: > > > > From: Yongqiang Niu > > > > Enable dither function to improve the display quality for dither > > supported bpc 4, 6, 8. For not sup

Re: [PATCH 1/2] soc: mediatek: pm-domains: Use correct mask for bus_prot_clr

2021-01-31 Thread Hsin-Yi Wang
uses failure when booting > the imgtec gpu. > > Corrected and tested with mt8173 chromebook. > > Signed-off-by: Bilal Wasim Reviewed-by: Hsin-Yi Wang > --- > drivers/soc/mediatek/mtk-pm-domains.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --g

Re: [PATCH 2/2] soc: mediatek: pm-domains: Add domain_supply cap for mfg_async PD

2021-01-31 Thread Hsin-Yi Wang
On Mon, Feb 1, 2021 at 1:45 PM Bilal Wasim wrote: > > The mfg_async power domain in mt8173 is used to power up imgtec > gpu. This domain requires the da9211 regulator to be enabled before > the power domain can be enabled successfully. > > Signed-off-by: Bilal Wasim Reviewe

[PATCH] arm64: dts: mediatek: mt8183: evb: Add domain supply for mfg

2021-02-01 Thread Hsin-Yi Wang
Add domain supply node for mt8183-evb Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts index 3249c959f76fc..edff1e03e6fee

[PATCH v5 0/8] drm/mediatek: add support for mediatek SOC MT8192

2021-02-01 Thread Hsin-Yi Wang
This series are based on kernel/git/chunkuang.hu/linux.git mediatek-drm-next and following patch: ("soc: mediatek: add mtk mutex support for MT8183") https://patchwork.kernel.org/project/linux-mediatek/patch/20210129092209.2584718-8-hsi...@chromium.org/ This series also depends on component suppor

[PATCH v5 1/8] drm/mediatek: add component OVL_2L2

2021-02-01 Thread Hsin-Yi Wang
From: Yongqiang Niu This patch add component OVL_2L2 Signed-off-by: Yongqiang Niu Reviewed-by: Chun-Kuang Hu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers

[PATCH v5 2/8] drm/mediatek: add component POSTMASK

2021-02-01 Thread Hsin-Yi Wang
From: Yongqiang Niu This patch add component POSTMASK. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/Makefile| 1 + drivers/gpu/drm/mediatek/mtk_disp_drv.h | 8 + drivers/gpu/drm/mediatek/mtk_disp_postmask.c | 149

[PATCH v5 5/8] drm/mediatek: Fix ccorr size config

2021-02-01 Thread Hsin-Yi Wang
From: Yongqiang Niu Fix setting to follow hardware datasheet. The original error setting affects mt8192 display. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v5 4/8] drm/mediatek: separate ccorr module

2021-02-01 Thread Hsin-Yi Wang
From: Yongqiang Niu ccorr ctm matrix bits will be different in mt8192 Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/Makefile | 3 +- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c | 216 drivers/gpu/drm/mediatek

[PATCH v5 3/8] drm/mediatek: add component RDMA4

2021-02-01 Thread Hsin-Yi Wang
From: Yongqiang Niu This patch add component RDMA4 Signed-off-by: Yongqiang Niu Reviewed-by: Chun-Kuang Hu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers

[PATCH v5 7/8] soc: mediatek: add mtk mutex support for MT8192

2021-02-01 Thread Hsin-Yi Wang
From: Yongqiang Niu Add mtk mutex support for MT8192 SoC. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-mutex.c | 35 1 file changed, 35 insertions(+) diff --git a/drivers/soc/mediatek/mtk-mutex.c b

[PATCH v5 8/8] drm/mediatek: add support for mediatek SOC MT8192

2021-02-01 Thread Hsin-Yi Wang
From: Yongqiang Niu add support for mediatek SOC MT8192 Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c| 6 +++ drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 20 ++ drivers/gpu/drm/mediatek/mtk_disp_postmask.c | 1

[PATCH v5 6/8] drm/mediatek: add matrix_bits private data for ccorr

2021-02-01 Thread Hsin-Yi Wang
From: Yongqiang Niu Add matrix_bits and coeffs_precision to ccorr private data: - matrix bits of mt8183 is 10 - matrix bits of mt8192 is 11 Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c | 34 --- 1 file changed, 24

[PATCH] arm64: dts: mediatek: Add gce client reg for display subcomponents

2021-02-01 Thread Hsin-Yi Wang
Add mediatek,gce-client-reg for ccorr, aal, gamma, dither. Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dt

[PATCH v6 1/8] drm/mediatek: add component OVL_2L2

2021-02-02 Thread Hsin-Yi Wang
From: Yongqiang Niu This patch add component OVL_2L2 Signed-off-by: Yongqiang Niu Reviewed-by: Chun-Kuang Hu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers

[PATCH v6 0/8] drm/mediatek: add support for mediatek SOC MT8192

2021-02-02 Thread Hsin-Yi Wang
This series are based on kernel/git/chunkuang.hu/linux.git mediatek-drm-next and following patch: ("soc: mediatek: add mtk mutex support for MT8183") https://patchwork.kernel.org/project/linux-mediatek/patch/20210129092209.2584718-8-hsi...@chromium.org/ This series also depends on component suppor

[PATCH v6 2/8] drm/mediatek: add component POSTMASK

2021-02-02 Thread Hsin-Yi Wang
From: Yongqiang Niu This patch add component POSTMASK. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 102 ++-- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + 2 files changed, 73 insertions(+), 30 deletions

[PATCH v6 4/8] drm/mediatek: separate ccorr module

2021-02-02 Thread Hsin-Yi Wang
From: Yongqiang Niu ccorr ctm matrix bits will be different in mt8192 Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/Makefile | 3 +- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c | 216 drivers/gpu/drm

[PATCH v6 5/8] drm/mediatek: Fix ccorr size config

2021-02-02 Thread Hsin-Yi Wang
From: Yongqiang Niu Fix setting to follow hardware datasheet. The original error setting affects mt8192 display. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v6 7/8] soc: mediatek: add mtk mutex support for MT8192

2021-02-02 Thread Hsin-Yi Wang
From: Yongqiang Niu Add mtk mutex support for MT8192 SoC. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-mutex.c | 35 1 file changed, 35 insertions(+) diff --git a/drivers/soc/mediatek/mtk-mutex.c b

[PATCH v6 3/8] drm/mediatek: add component RDMA4

2021-02-02 Thread Hsin-Yi Wang
From: Yongqiang Niu This patch add component RDMA4 Signed-off-by: Yongqiang Niu Reviewed-by: Chun-Kuang Hu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers

[PATCH v6 8/8] drm/mediatek: add support for mediatek SOC MT8192

2021-02-02 Thread Hsin-Yi Wang
From: Yongqiang Niu add support for mediatek SOC MT8192 Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c | 6 drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 20 +++ drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 6 drivers

[PATCH v6 6/8] drm/mediatek: add matrix_bits private data for ccorr

2021-02-02 Thread Hsin-Yi Wang
From: Yongqiang Niu Add matrix_bits and coeffs_precision to ccorr private data: - matrix bits of mt8183 is 10 - matrix bits of mt8192 is 11 Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c | 27 ++- 1 file changed, 17

Re: [PATCH v5 3/3] PM / devfreq: Add required OPPs support to passive governor

2021-02-03 Thread Hsin-Yi Wang
On Thu, Feb 4, 2021 at 10:49 AM Viresh Kumar wrote: > > On 03-02-21, 17:24, Hsin-Yi Wang wrote: > > From: Saravana Kannan > > > > Look at the required OPPs of the "parent" device to determine the OPP that > > is required from the slave device managed

Re: [PATCH v5 0/3] Add required-opps support to devfreq passive gov

2021-02-04 Thread Hsin-Yi Wang
On Thu, Feb 4, 2021 at 1:41 PM Viresh Kumar wrote: > > On 03-02-21, 17:23, Hsin-Yi Wang wrote: > > The devfreq passive governor scales the frequency of a "child" device based > > on the current frequency of a "parent" device (not parent/child in the >

[PATCH v6 0/3] Add required-opps support to devfreq passive gov

2021-02-04 Thread Hsin-Yi Wang
The devfreq passive governor scales the frequency of a "child" device based on the current frequency of a "parent" device (not parent/child in the sense of device hierarchy). As of today, the passive governor requires one of the following to work correctly: 1. The parent and child device have the s

[PATCH v6 1/3] OPP: Add function to look up required OPP's for a given OPP

2021-02-04 Thread Hsin-Yi Wang
From: Saravana Kannan Add a function that allows looking up required OPPs given a source OPP table, destination OPP table and the source OPP. Signed-off-by: Saravana Kannan Signed-off-by: Hsin-Yi Wang --- drivers/opp/core.c | 59 ++ include/linux

[PATCH v6 2/3] PM / devfreq: Cache OPP table reference in devfreq

2021-02-04 Thread Hsin-Yi Wang
From: Saravana Kannan The OPP table can be used often in devfreq. Trying to get it each time can be expensive, so cache it in the devfreq struct. Signed-off-by: Saravana Kannan Reviewed-by: Chanwoo Choi Acked-by: MyungJoo Ham Signed-off-by: Hsin-Yi Wang --- drivers/devfreq/devfreq.c | 6

[PATCH v6 3/3] PM / devfreq: Add required OPPs support to passive governor

2021-02-04 Thread Hsin-Yi Wang
f OPPs. Signed-off-by: Saravana Kannan Acked-by: MyungJoo Ham Acked-by: Chanwoo Choi Signed-off-by: Hsin-Yi Wang --- drivers/devfreq/governor_passive.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/drivers/devfreq/governor_passive.c b/

[PATCH v3 0/3] support gce on mt8192 platform

2021-02-04 Thread Hsin-Yi Wang
Change since v2: - add controy_by_sw for mt8192 Change since v1: - move out shift jump patch - remove useless patch Yongqiang Niu (3): dt-binding: gce: add gce header file for mt8192 arm64: dts: mt8192: add gce node mailbox: cmdq: add mt8192 support .../devicetree/bindings/mailbox/mtk-gce

[PATCH v3 1/3] dt-binding: gce: add gce header file for mt8192

2021-02-04 Thread Hsin-Yi Wang
From: Yongqiang Niu Add documentation for the mt8192 gce. Add gce header file defined the gce hardware event, subsys number and constant for mt8192. Signed-off-by: Yongqiang Niu Reviewed-by: Rob Herring Signed-off-by: Hsin-Yi Wang --- .../devicetree/bindings/mailbox/mtk-gce.txt | 7

[PATCH v3 2/3] arm64: dts: mt8192: add gce node

2021-02-04 Thread Hsin-Yi Wang
From: Yongqiang Niu add gce node for mt8192 Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192

[PATCH v3 3/3] mailbox: cmdq: add mt8192 support

2021-02-04 Thread Hsin-Yi Wang
From: Yongqiang Niu add mt8192 support Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/mailbox/mtk-cmdq-mailbox.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index 5665b6ea8119f

Re: [PATCH v11 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-05-31 Thread Hsin-Yi Wang
On Fri, May 15, 2020 at 2:53 PM Xin Ji wrote: > + > +static int anx7625_bridge_attach(struct drm_bridge *bridge) Latest drm_bridge api: int (*attach)(struct drm_bridge *bridge, enum drm_bridge_attach_flags flags); https://elixir.bootlin.com/linux/v5.7-rc7/source/include/drm/drm_bridge.h#L

[PATCH] regulator: da9211: add cache_type

2020-08-12 Thread Hsin-Yi Wang
Add regmap_cache to reduce wakeups events of interrupt if regulator is accessed frequently. This results in saving more power. Suggested-by: Daniel Kurtz Signed-off-by: Hsin-Yi Wang --- drivers/regulator/da9211-regulator.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a

[PATCH] media: mtk-vcodec: set dma max segment size

2020-08-20 Thread Hsin-Yi Wang
+0x380/0x115c [ 75.148356] softirqs last enabled at (0): [] copy_process+0x398/0x115c [ 75.148364] softirqs last disabled at (0): [<>] (null) [ 75.148372] ---[ end trace 588bf529451e3531 ]--- Reported-by: Anand K Mistry Signed-off-by: Hsin-Yi Wang --- d

Re: [PATCH 1/2] soc: mediatek: Add regulator control for MT8192 MFG power domain

2021-01-10 Thread Hsin-Yi Wang
On Mon, Jan 4, 2021 at 10:44 AM Weiyi Lu wrote: > > Add regulator control support and specific power domain name of > MT8192 MFG power domain for regulator lookup. > Also power domain name can fix the debugfs warning. > (e.g. debugfs: Directory 'power-domain' with parent 'pm_genpd' > already prese

Re: [PATCH v2 2/2] arm64: dts: mt8183: Add krane-sku0 board.

2021-01-12 Thread Hsin-Yi Wang
On Wed, Jan 13, 2021 at 11:20 AM Rob Herring wrote: > > On Thu, Jan 07, 2021 at 01:22:06PM +0800, Hsin-Yi Wang wrote: > > Similar to krane-sku176 but using a different panel source. > > > > Signed-off-by: Hsin-Yi Wang > > --- > > Change:

[PATCH v3 1/2] arm64: dts: mt8183: config dsi node

2021-01-12 Thread Hsin-Yi Wang
Config dsi node for mt8183 kukui. Set panel and ports. Several kukui boards share the same panel property and only compatible is different. So compatible will be set in board dts for comparison convenience. Signed-off-by: Hsin-Yi Wang Reviewed-by: Nicolas Boichat --- .../mediatek/mt8183-kukui

[PATCH v3 2/2] arm64: dts: mt8183: Add krane-sku0 board.

2021-01-12 Thread Hsin-Yi Wang
Similar to krane-sku176 but using a different panel source. Signed-off-by: Hsin-Yi Wang --- change: v3: fix yaml --- .../devicetree/bindings/arm/mediatek.yaml | 4 +++- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../dts/mediatek/mt8183-kukui-krane-sku0.dts | 23

[PATCH v4 1/3] arm64: dts: mt8183: config dsi node

2021-01-13 Thread Hsin-Yi Wang
Config dsi node for mt8183 kukui. Set panel and ports. Several kukui boards share the same panel property and only compatible is different. So compatible will be set in board dts for comparison convenience. Signed-off-by: Hsin-Yi Wang Reviewed-by: Nicolas Boichat --- change: v4: add backlight

[PATCH v4 2/3] arm64: dts: mt8183: Add krane-sku0 board.

2021-01-13 Thread Hsin-Yi Wang
Similar to krane-sku176 but using a different panel source. Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- change: v4: split dt-binding to another patch --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../dts/mediatek/mt8183-kukui-krane-sku0.dts | 23

[PATCH v4 3/3] dt-bindings: arm64: dts: mediatek: Add krane sku0

2021-01-13 Thread Hsin-Yi Wang
Krane-sku0 is similar to krane-sku176 but using a different panel source. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b

Re: [PATCH v4, 00/10] soc: mediatek: mmsys: Use function call for setting the routing registers

2021-01-18 Thread Hsin-Yi Wang
ys: Use function call for setting the routing > registers > soc: mediatek: mmsys: add mt8183 function call for setting the routing > registers patch 01 ~ 05: I've tested on a mt8183 device, so Tested-by: Hsin-Yi Wang > soc: mediatek: mmsys: add component OVL_2L2 > soc:

Re: [PATCH] soc: mediatek: pm-domains: Don't print an error if child domain is deferred

2021-01-13 Thread Hsin-Yi Wang
tion so it only prints an error on a real error. > > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > --- > > drivers/soc/mediatek/mtk-pm-domains.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/soc/mediatek/mtk-pm-dom

Re: [PATCH] arm64: dts: mt8183: Add missing power-domain for pwm0 node

2021-01-13 Thread Hsin-Yi Wang
ixes: f15722c0fef0 ("arm64: dts: mt8183: Add pwm and backlight node") > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > --- > > arch/arm64/boot/dts/mediatek/mt8183.dtsi | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/boot/

[PATCH v3 1/2] dt-bindings: drm/bridge: anx7625: Add power supplies

2021-01-14 Thread Hsin-Yi Wang
anx7625 requires 3 power supply regulators. Signed-off-by: Hsin-Yi Wang Reviewed-by: Rob Herring --- .../bindings/display/bridge/analogix,anx7625.yaml | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml b

[PATCH v3 2/2] drm/bridge: anx7625: disable regulators when power off

2021-01-14 Thread Hsin-Yi Wang
When suspending the driver, anx7625_power_standby() will be called to turn off reset-gpios and enable-gpios. However, power supplies are not disabled. To save power, the driver can get the power supply regulators and turn off them in anx7625_power_standby(). Signed-off-by: Hsin-Yi Wang

Re: [PATCH v2 2/2] drm/bridge: anx7625: disable regulators when power off

2020-12-24 Thread Hsin-Yi Wang
On Wed, Dec 9, 2020 at 12:43 PM Hsin-Yi Wang wrote: > > On Mon, Nov 23, 2020 at 11:47 AM Hsin-Yi Wang wrote: > > > > When suspending the driver, anx7625_power_standby() will be called to > > turn off reset-gpios and enable-gpios. However, power supplies are not > >

[PATCH] pinctrl: mediatek: Fix fallback call path

2020-12-28 Thread Hsin-Yi Wang
Some SoCs, eg. mt8183, are using a pinconfig operation bias_set_combo. The fallback path in mtk_pinconf_adv_pull_set() should also try this operation. Fixes: cafe19db7751 ("pinctrl: mediatek: Backward compatible to previous Mediatek's bias-pull usage") Signed-off-by: Hsin-Yi Wan

[PATCH v4 1/4] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-damu

2021-03-18 Thread Hsin-Yi Wang
mt8183-kukui-jacuzzi-damu board also known as ASUS Chromebook Flip CM3, using mediatek mt8183 SoC. Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation

[PATCH v4 4/4] arm64: dts: mt8183: Add kukui-jacuzzi-juniper board

2021-03-18 Thread Hsin-Yi Wang
Juniper is known as Acer Chromebook Spin 311 (CP311-3H). Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mt8183-kukui-jacuzzi-juniper-sku16.dts| 13 + .../mt8183-kukui-jacuzzi-juniper.dtsi | 27 +++ 3 files changed

[PATCH v4 3/4] arm64: dts: mt8183: Add kukui-jacuzzi-damu board

2021-03-18 Thread Hsin-Yi Wang
Damu is known as ASUS Chromebook Flip CM3. Signed-off-by: Hsin-Yi Wang --- v3->v4: none v2->v3: remove unused nodes v1->v2: fix pp3300_panel regulator property --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt8183-kukui-jacuzzi-damu.dts| 31 ++ .../dts

[PATCH v4 2/4] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-juniper

2021-03-18 Thread Hsin-Yi Wang
mt8183-kukui-jacuzzi-juniper board also known as Acer Chromebook Spin 311, using mediatek mt8183 SoC. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml

[PATCH] soc: mediatek: mmsys: Add mt8183 mmsys routing table

2021-03-22 Thread Hsin-Yi Wang
mt8183 has different routing registers than mt8173. Signed-off-by: Hsin-Yi Wang --- This patch is based on series ("soc: mediatek: Prepare MMSYS for DDP routing using tables")[1] and tested with mt8183 krand and mt8183 juniper device. The register value is referenced from [2].

[PATCH v2] arm64: dts: mt8183: Add gce client reg for display subcomponents

2021-03-24 Thread Hsin-Yi Wang
Add mediatek,gce-client-reg for mmsys, ccorr, aal, gamma, dither. Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") Signed-off-by: Hsin-Yi Wang Tested-by: Enric Balletbo i Serra --- v1->v2: Add for mmsys. --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 7 ++

[PATCH] i2c: core: support bus regulator controlling in adapter

2021-03-05 Thread Hsin-Yi Wang
: Hsin-Yi Wang --- This patch is squashed from following patch and tested on mt8183 device which has eeprom at24 client under i2c, so the fix in [2] is also verified. [1] https://patchwork.ozlabs.org/project/linux-i2c/cover/20200519072729.7268-1-bibby.hs...@mediatek.com/ [2] https

[PATCH v2] soc: mediatek: mmsys: Add mt8183 mmsys routing table

2021-03-30 Thread Hsin-Yi Wang
mt8183 has different routing registers than mt8173. Signed-off-by: Hsin-Yi Wang Tested-by: Enric Balletbo i Serra --- v1->v2: Move mt8183 routing table to mt8183-mmsys.h This patch is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git v5.12-next/soc --- driv

Re: [PATCH] drm/mediatek: Add missing MODULE_DEVICE_TABLE()

2021-03-30 Thread Hsin-Yi Wang
rates correct modalias for automatic loading > > when these drivers are compiled as an external module. > > > > Signed-off-by: Boris Brezillon > > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > > A gentle ping for someone to review this pat

[PATCH v3] soc: mediatek: mmsys: Add mt8183 mmsys routing table

2021-03-30 Thread Hsin-Yi Wang
mt8183 has different routing registers than mt8173. Signed-off-by: Hsin-Yi Wang Tested-by: Enric Balletbo i Serra --- v2->v3: Fix comments. v1->v2: Move mt8183 routing table to mt8183-mmsys.h This patch is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git

<    1   2   3   4   5   >