> Am 28.09.2021 um 12:06 schrieb H. Nikolaus Schaller <h...@goldelico.com>: > >>> >>> + >>> + /* RGB output control may be superfluous. */ >>> + if (soc_info->has_rgbc) >>> + regmap_write(priv->map, JZ_REG_LCD_RGBC, >>> + JZ_LCD_RGBC_RGB_FORMAT_ENABLE | >>> + JZ_LCD_RGBC_ODD_RGB | >>> + JZ_LCD_RGBC_EVEN_RGB); >> >> ingenic-drm only supports RGB output right now, so I guess the >> RGB_FORMAT_ENABLE bit needs to be set in patch [2/10], otherwise patch >> [2/10] cannot state that it adds support for the JZ4780, if it doesn't >> actually work. interestingly it works without setting anything in this register. >> >> The other two bits can be dropped, they are already set in >> ingenic_drm_encoder_atomic_mode_set(). > > Ok. Setting it manually doesn't change anything visible: root@letux:~# devmem2 0x13050090 /dev/mem opened. Memory mapped at address 0x77e14000. Value at address 0x13050090 (0x77e14090): 0x0 root@letux:~# devmem2 0x13050090 w 0x80 /dev/mem opened. Memory mapped at address 0x77e38000. Value at address 0x13050090 (0x77e38090): 0x0 Written 0x80; readback 0x80 root@letux:~# Same for 0x130A0090. Maybe this lcdc register is not used at all - at least for HDMI? So I'd suggest to drop this whole patch from v5. BR and thanks, Nikolaus
- Re: [PATCH v4 03/10] dt-bindings: displa... Maxime Ripard
- Re: [PATCH v4 03/10] dt-bindings: di... H. Nikolaus Schaller
- Re: [PATCH v4 03/10] dt-bindings: display: Add i... Rob Herring
- [PATCH v4 05/10] drm/bridge: synopsis: Fix to properl... H. Nikolaus Schaller
- Re: [PATCH v4 05/10] drm/bridge: synopsis: Fix t... Maxime Ripard
- Re: [PATCH v4 05/10] drm/bridge: synopsis: F... H. Nikolaus Schaller
- [PATCH v4 08/10] MIPS: DTS: CI20: Add DT nodes for HD... H. Nikolaus Schaller
- [PATCH v4 10/10] drm/ingenic: add some jz4780 specifi... H. Nikolaus Schaller
- Re: [PATCH v4 10/10] drm/ingenic: add some jz478... Paul Cercueil
- Re: [PATCH v4 10/10] drm/ingenic: add some j... H. Nikolaus Schaller
- Re: [PATCH v4 10/10] drm/ingenic: add so... H. Nikolaus Schaller
- [PATCH v4 09/10] MIPS: defconfig: CI20: configure for... H. Nikolaus Schaller
- [PATCH v4 07/10] MIPS: DTS: jz4780: Account for Synop... H. Nikolaus Schaller
- [PATCH v4 04/10] drm/bridge: synopsis: Add mode_fixup... H. Nikolaus Schaller
- [PATCH v4 06/10] drm/ingenic: Add dw-hdmi driver for ... H. Nikolaus Schaller
- Re: [PATCH v4 06/10] drm/ingenic: Add dw-hdmi dr... Maxime Ripard
- Re: [PATCH v4 06/10] drm/ingenic: Add dw-hdm... H. Nikolaus Schaller
- Re: [PATCH v4 06/10] drm/ingenic: Add dw-hdmi dr... Neil Armstrong
- Re: [PATCH v4 06/10] drm/ingenic: Add dw-hdm... H. Nikolaus Schaller
- Re: [PATCH v4 06/10] drm/ingenic: Add dw-hdmi dr... Paul Cercueil