linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add gamma lut support for mt8195
@ 2022-08-30  6:39 zheng-yan.chen
  2022-08-30  6:39 ` [PATCH v2 1/3] dt-bindings: mediatek: Add gamma compatible " zheng-yan.chen
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: zheng-yan.chen @ 2022-08-30  6:39 UTC (permalink / raw)
  To: Chun-Kuang Hu, Rob Herring, Krzysztof Kozlowski, Matthias Brugger
  Cc: dri-devel, linux-mediatek, devicetree, linux-kernel,
	linux-arm-kernel, Jason-JH . Lin, Singo Chang,
	Project_Global_Chrome_Upstream_Group, zheng-yan.chen

Since the gamma_set_common() function for previous SoC,
such as  mt8173 and mt8183, is designed for 9bit-to-10bit
conversion.
mt8195 is using 10bit-to-12bit conversion, which is
not compatible with the previous function.

Thus, need to update the function to fit the need of mt8195.

---
Base on series [1]:
[1]: Add driver nodes for MT8195 SoC
- https://patchwork.kernel.org/project/linux-mediatek/list/?series=666741
---

Change in v2:
        1. fix global variable in mtk_disp_gamma.c
        2. update mask calculation and delete not-necessary variables
        3. fix shift-bit problem.
        4. fix commit messages for dt-binding
        5. fix dts gamma label.


zheng-yan.chen (3):
  dt-bindings: mediatek: Add gamma compatible for mt8195
  drm/mediatek: Add gamma lut support for mt8195
  arm64: dts: Modify gamma compatible for mt8195

 .../display/mediatek/mediatek,gamma.yaml      |   3 +-
 arch/arm64/boot/dts/mediatek/mt8195.dtsi      |   2 +-
 drivers/gpu/drm/mediatek/mtk_disp_aal.c       |   2 +-
 drivers/gpu/drm/mediatek/mtk_disp_drv.h       |   3 +-
 drivers/gpu/drm/mediatek/mtk_disp_gamma.c     | 102 +++++++++++++-----
 drivers/gpu/drm/mediatek/mtk_drm_crtc.c       |   5 +-
 drivers/gpu/drm/mediatek/mtk_drm_crtc.h       |   1 -
 drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c   |   1 +
 drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h   |   1 +
 drivers/gpu/drm/mediatek/mtk_drm_drv.c        |   2 +
 10 files changed, 88 insertions(+), 34 deletions(-)

-- 
2.18.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-09-10 17:07 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-30  6:39 [PATCH v2 0/3] Add gamma lut support for mt8195 zheng-yan.chen
2022-08-30  6:39 ` [PATCH v2 1/3] dt-bindings: mediatek: Add gamma compatible " zheng-yan.chen
2022-08-30  7:48   ` AngeloGioacchino Del Regno
2022-08-30  9:10   ` Krzysztof Kozlowski
2022-08-31  2:27     ` zheng-yan.chen
2022-08-30  6:39 ` [PATCH v2 2/3] drm/mediatek: Add gamma lut support " zheng-yan.chen
2022-08-30  7:47   ` AngeloGioacchino Del Regno
2022-08-30  8:09     ` zheng-yan.chen
2022-08-31  2:56   ` CK Hu
2022-09-10 16:25     ` Jason-JH Lin
2022-08-30  6:39 ` [PATCH v2 3/3] arm64: dts: Modify gamma compatible " zheng-yan.chen
2022-08-30  7:49   ` AngeloGioacchino Del Regno
2022-08-30  9:14     ` Krzysztof Kozlowski
2022-08-31  2:29       ` zheng-yan.chen
2022-08-31  6:04         ` Krzysztof Kozlowski
2022-08-31  7:47           ` AngeloGioacchino Del Regno
2022-08-30  9:13   ` Krzysztof Kozlowski
2022-08-31  2:25     ` zheng-yan.chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).