Add support for the BOE BF068MWM-TD0
Subsystems (5)
Alexander Koskovich
maintainerv3 cover Add support for the BOE BF068MWM-TD0
Add the bindings and driver for the BOE BF068MWM-TD0 panel used in the Nothing Phone (3a).
---
Changes in v3:
- Rebase onto next-20260701
- Keep 'required:' list in same order as properties (Krzysztof)
- Switch to devm_drm_panel_add, devm_mipi_dsi_attach and drop remove callback (Neil)
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Rename binding & driver to DDIC instead of panel assembly (Neil)
- Clean up hardware resources in prepare() on errors (Sashiko AI review)
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Alexander Koskovich (2):
dt-bindings: display: panel: Document Raydium RM69220 DDIC drm/panel: Add driver for Raydium RM69220 DDIC
.../bindings/display/panel/raydium,rm69220.yaml | 74 ++++ MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 15 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm69220.c | 417 +++++++++++++++++++++ 5 files changed, 513 insertions(+)
---
base-commit: 4f441960e691d37c880d2cc004de06bb5b6bd5e4
change-id: 20260603-asteroids-panel-support-d55c929a89a8
Best regards,
Signature · 1 line
Alexander Koskovich <[email protected]>
Alexander Koskovich
maintainerPATCH v3 1/2 dt-bindings: display: panel: Document Raydium RM69220 DDIC
Document the Raydium RM69220 DDIC and the BOE BF068MWM-TD0 6.77" 1080x2392 AMOLED display panel used in the Nothing Phone (3a).
--- .../bindings/display/panel/raydium,rm69220.yaml | 74 ++++++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 79 insertions(+)
Documentation/devicetree/bindings/display/panel/raydium,rm69220.yaml new file +74 -0
@@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/raydium,rm69220.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raydium RM69220 based MIPI-DSI panels + +maintainers: + - Alexander Koskovich <[email protected]> + +description: + The Raydium RM69220 is a generic DSI Panel IC used to control + AMOLED panels. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - enum: + - boe,bf068mwm-td0 + - const: raydium,rm69220 + + reg: + maxItems: 1 + + dvdd-supply: + description: Digital voltage rail + + vci-supply: + description: Analog voltage rail + + vddio-supply: + description: I/O voltage rail + +required: + - compatible + - reg + - dvdd-supply + - vci-supply + - vddio-supply + - reset-gpios + - port + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "boe,bf068mwm-td0", "raydium,rm69220"; + reg = <0>; + + reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>; + dvdd-supply = <&vreg_oled_dvdd_1p8>; + vci-supply = <&vreg_l19b>; + vddio-supply = <&vreg_l9b>; + + port { + panel_in_0: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; + }; + +...
MAINTAINERS +5 -0
@@ -8374,6 +8374,11 @@ S: Maintained F: Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml F: drivers/gpu/drm/panel/panel-raydium-rm67191.c +DRM DRIVER FOR RAYDIUM RM69220 PANELS +M: Alexander Koskovich <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/display/panel/raydium,rm69220.yaml + DRM DRIVER FOR SAMSUNG DB7430 PANELS M: Linus Walleij <[email protected]> S: Maintained
Signature · 1 line
2.53.0
Alexander Koskovich
maintainerPATCH v3 2/2 drm/panel: Add driver for Raydium RM69220 DDIC
In reply to Alexander KoskovichAdd a panel driver for Raydium RM69220 DDIC based displays such as the BOE BF068MWM-TD0 found in the Nothing Phone (3a).
--- MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 15 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm69220.c | 417 ++++++++++++++++++++++++++ 4 files changed, 434 insertions(+)
MAINTAINERS +1 -0
@@ -8378,6 +8378,7 @@ DRM DRIVER FOR RAYDIUM RM69220 PANELS M: Alexander Koskovich <[email protected]> S: Maintained F: Documentation/devicetree/bindings/display/panel/raydium,rm69220.yaml +F: drivers/gpu/drm/panel/panel-raydium-rm69220.c DRM DRIVER FOR SAMSUNG DB7430 PANELS M: Linus Walleij <[email protected]>
drivers/gpu/drm/panel/Kconfig +15 -0
@@ -799,6 +799,21 @@ config DRM_PANEL_RAYDIUM_RM692E5 Say Y here if you want to enable support for Raydium RM692E5-based display panels, such as the one found in the Fairphone 5 smartphone. +config DRM_PANEL_RAYDIUM_RM69220 + tristate "Raydium RM69220-based DSI panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select DRM_DISPLAY_DSC_HELPER + select DRM_DISPLAY_HELPER + help + Say Y here if you want to enable support for Raydium RM69220-based + display panels, such as the BOE BF068MWM-TD0 which can be found in + the Nothing Phone (3a). + + To compile this driver as a module, choose M here: the module + will be called panel-raydium-rm69220. + config DRM_PANEL_RAYDIUM_RM69380 tristate "Raydium RM69380-based DSI panel" depends on GPIOLIB
drivers/gpu/drm/panel/Makefile +1 -0
@@ -79,6 +79,7 @@ obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67191) += panel-raydium-rm67191.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67200) += panel-raydium-rm67200.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM692E5) += panel-raydium-rm692e5.o +obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69220) += panel-raydium-rm69220.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69380) += panel-raydium-rm69380.o obj-$(CONFIG_DRM_PANEL_RENESAS_R61307) += panel-renesas-r61307.o obj-$(CONFIG_DRM_PANEL_RENESAS_R69328) += panel-renesas-r69328.o
drivers/gpu/drm/panel/panel-raydium-rm69220.c new file +417 -0
417 lines not on this page · raw message
Signature · 1 line
2.53.0
[email protected]
AI reviewRe: [PATCH v3 2/2] drm/panel: Add driver for Raydium RM69220 DDIC
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [High] The panel reset GPIO is initialized to a de-asserted state during probe, violating power…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] The panel reset GPIO is initialized to a de-asserted state during probe, violating power sequencing and potentially back-powering the display controller.
- [Medium] The backlight update status function permanently clears the MIPI_DSI_MODE_LPM flag on error.
--
commit ff679a020d6cdcdc5214b83056b055c35077760d
Author: Alexander Koskovich <[email protected]>
drm/panel: Add driver for Raydium RM69220 DDIC
This patch adds a new DRM panel driver for the Raydium RM69220 display driver IC, primarily supporting the BOE BF068MWM-TD0 panel.
Quoted 5 lines
drivers/gpu/drm/panel/panel-raydium-rm69220.c new file +0
-0
[ ... ]
drivers/gpu/drm/panel/panel-raydium-rm69220.c line 316
Quoted 11 lines
drivers/gpu/drm/panel/panel-raydium-rm69220.c new file +11
-0+static int raydium_rm69220_bl_update_status (struct backlight_device *bl) +{ +struct mipi_dsi_device *dsi =bl_get_data (bl); +u16 brightness =backlight_get_brightness (bl); +int ret; + + dsi->mode_flags &= ~MIPI_DSI_MODE_LPM ; + + ret =mipi_dsi_dcs_set_display_brightness_large (dsi, brightness); +if (ret <0 ) +return ret;
[Severity: Medium]
If mipi_dsi_dcs_set_display_brightness_large() fails here, does this return path leave MIPI_DSI_MODE_LPM permanently cleared? It seems this might cause all subsequent DSI commands to be sent in High Speed mode.
Quoted 5 lines
drivers/gpu/drm/panel/panel-raydium-rm69220.c new file +5
-0+ + dsi->mode_flags |=MIPI_DSI_MODE_LPM ; + +return 0 ; +}
[ ... ]
Quoted 5 lines
drivers/gpu/drm/panel/panel-raydium-rm69220.c new file +5
-0+static int raydium_rm69220_probe (struct mipi_dsi_device *dsi) +{ +struct device *dev = &dsi->dev; +struct raydium_rm69220 *ctx; +int ret;
[ ... ]
drivers/gpu/drm/panel/panel-raydium-rm69220.c line 360
Quoted 8 lines
drivers/gpu/drm/panel/panel-raydium-rm69220.c new file +8
-0+ ret =devm_regulator_bulk_get_const (dev, +ARRAY_SIZE (raydium_rm69220_supplies), + raydium_rm69220_supplies, + &ctx->supplies); +if (ret <0 ) +return ret; + + ctx->reset_gpio =devm_gpiod_get (dev,"reset" ,GPIOD_OUT_LOW );
[Severity: High]
Does initializing the reset GPIO to GPIOD_OUT_LOW (logically de-asserted) during probe risk back-powering the display controller? Since the panel's power regulators are not enabled yet, could this drive current through the internal ESD diodes into the unpowered rails?
Quoted 4 lines
drivers/gpu/drm/panel/panel-raydium-rm69220.c new file +4
-0+if (IS_ERR (ctx->reset_gpio)) +return dev_err_probe (dev,PTR_ERR (ctx->reset_gpio), +"Failed to get reset-gpios\n" ); +
[ ... ]
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH v3 2/2] drm/panel: Add driver for Raydium RM69220 DDIC
In reply to Alexander KoskovichHello,
Quoted 1 line · Alexander Koskovich
+#include <
linux/mod_devicetable.h>
Please don't add new users for this header file. Only use those <linux/device-id/*.h> that you actually need.
Thanks
Uwe