[v3,00/26] Support display on the BSH SMM S2/PRO boards

Message ID 20261202102716.572884-1-dario.binacchi@amarulasolutions.com
Headers
Series Support display on the BSH SMM S2/PRO boards |

Message

Dario Binacchi Dec. 2, 2026, 10:26 a.m. UTC
This series was created out of the need to support simple-framebuffer
for BSH boards SMM_S2 and SMM_S2PRO. To achieve this goal, it was
necessary to develop additional code and/or drivers for all the required
components (i. e. clock, power domain, video, etc.).

Compared to v2, the panel runs at 60 Hz, as in the changes submitted
for the Linux driver [1], and the DSIM bridge is set up as the Linux
driver does, so that Linux can take over the running display without
a modeset [2].

Tested on the BSH SMM S2 PRO.

[1] https://lore.kernel.org/r/20261202100443.565075-1-dario.binacchi@amarulasolutions.com
[2] https://lore.kernel.org/r/20261122153032.2782768-1-dario.binacchi@amarulasolutions.com

Changes in v3:
- Say in the commit message that the parents are not changed
- New patch
- Set the command allow value and clamp the porches and the sync
  length as the Linux driver does
- Get the PLL input frequency from samsung,pll-clock-frequency
- Set the pixel clock to 63.861 MHz to get a refresh rate of 60 Hz,
  as in the changes submitted for the Linux driver
- Set the video PLL rate to the pixel clock of the panel
- Add "clk: imx: pll14xx: add 63.861 MHz entry for PLL1443x"
- Run the panel at 60 Hz
- Set up the DSIM bridge as the Linux driver does

Changes in v2:
- Add patch, replacing "clk: imx8mn: Mark IMX8MN_SYS_PLL2 and
  IMX8MN_SYS_PLL3 as enabled" with a generic solution
- Reword subject and commit message to describe the change
- Fix the coding style of the new clocks
- Add patch
- Rebase on top of the parent enabling now done by clk_set_parent()
- Read the flags from the private clock
- Add CLK_SET_RATE_UNGATE support
- Treat an error pointer returned by clk_get_parent() as no parent
- Reword subject and commit message
- Fix build error
- Drop i.MX8MP support, already provided by the imx8mp-mediamix driver
- Let the power domain uclass count the domain references
- Check the domains allocation
- Reword subject and commit message
- Look up a device as a bridge before looking it up as a DSI host
- Reword commit message
- Add patch, split from "video: Update mxsfb video drivers for
  iMX8MM/iMX8MN display"
- Add patch, split from "video: Update mxsfb video drivers for
  iMX8MM/iMX8MN display"
- Move the coding style fix and the DE polarity change to separate
  patches
- Bind the DSI host to the DSIM node and drop the
  "samsung,sec-mipi-dsi" compatible
- Fix typo in a comment
- Drop the dsi-host node
- Add commit message
- Drop the custom boot-on properties added to the Linux device tree
- Drop the #if guard around smm_s2_setup_simplefb()
- Fix the style of a comment

Dario Binacchi (10):
  clk: ccf: enable the critical clocks when they are registered
  clk: clk-uclass: fix parent reference counting in clk_set_parent()
  clk: imx: pll14xx: add 63.861 MHz entry for PLL1443x
  video: mxsfb: add missing space after if
  boot: fdt_simplefb: add a debug message
  video: mxsfb: support simple frame-buffer
  video: bridge: samsung: support simple frame-buffer
  imx8mn_bsh_smm_s2/pro: support simple frame-buffer
  imx8mn_bsh_smm_s2/pro: enable simple frame-buffer
  imx8mn_bsh_smm_s2/pro: add splash screen with BSH logo

Michael Trimarchi (16):
  clk: imx8mn: register the main_axi, noc and gic clocks as critical
  clk: implement CLK_OPS_PARENT_ENABLE and CLK_SET_RATE_UNGATE
  clk: imx8mn: add video clocks support
  power: domain: add i.MX8MM/i.MX8MN display block control driver
  video: Add video link framework
  video: bridge: Add check_timing interface
  video: dsi_host: add disable host interface
  video: mxsfb: set the DE polarity from the display timings
  video: Update mxsfb video drivers for iMX8MM/iMX8MN display
  video: Enable DM_UC_FLAG_SEQ_ALIAS for display and bridge
  phy: dphy: add support to calculate the timing based on hs_clk_rate
  phy: dphy: Correct lpx parameter and its derivatives(ta_{get,go,sure})
  phy: dphy: Correct clk_pre parameter
  video: bridge: Add Samsung DSIM bridge
  video: Add Synaptics R63353 panel driver
  imx8mn_bsh_smm_s2/pro: Enable display on reference design

 .../dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi  |   18 +
 board/bsh/imx8mn_smm_s2/imx8mn_smm_s2.c       |   72 +
 boot/fdt_simplefb.c                           |    2 +
 common/stdio.c                                |    4 +
 configs/imx8mn_bsh_smm_s2_defconfig           |   21 +
 configs/imx8mn_bsh_smm_s2pro_defconfig        |   21 +
 drivers/clk/clk-uclass.c                      |   70 +-
 drivers/clk/clk.c                             |   15 +
 drivers/clk/imx/clk-imx8mn.c                  |  105 ++
 drivers/clk/imx/clk-pll14xx.c                 |    1 +
 drivers/phy/meson-axg-mipi-dphy.c             |    2 +-
 drivers/phy/phy-core-mipi-dphy.c              |   36 +-
 drivers/power/domain/Kconfig                  |    7 +
 drivers/power/domain/Makefile                 |    1 +
 drivers/power/domain/imx8m-blk-ctrl.c         |  355 ++++
 drivers/power/domain/imx8m-power-domain.c     |  166 +-
 drivers/video/Kconfig                         |   14 +
 drivers/video/Makefile                        |    2 +
 drivers/video/bridge/Kconfig                  |   13 +
 drivers/video/bridge/Makefile                 |    1 +
 drivers/video/bridge/samsung-dsi-host.c       | 1570 +++++++++++++++++
 drivers/video/bridge/samsung-dsim.c           |  165 ++
 drivers/video/bridge/samsung-dsim.h           |   20 +
 drivers/video/bridge/video-bridge-uclass.c    |   11 +
 drivers/video/display-uclass.c                |    1 +
 drivers/video/dsi-host-uclass.c               |   10 +
 drivers/video/mxsfb.c                         |  142 +-
 drivers/video/synaptics-r63353.c              |  228 +++
 drivers/video/video_link.c                    |  448 +++++
 include/configs/imx8mn_bsh_smm_s2.h           |    1 +
 include/configs/imx8mn_bsh_smm_s2_common.h    |    4 +
 include/configs/imx8mn_bsh_smm_s2pro.h        |    1 +
 include/dsi_host.h                            |    8 +
 include/linux/clk-provider.h                  |   12 +-
 include/phy-mipi-dphy.h                       |    3 +
 include/video_bridge.h                        |   20 +
 include/video_link.h                          |   19 +
 tools/logos/bsh.bmp                           |  Bin 0 -> 10644 bytes
 38 files changed, 3524 insertions(+), 65 deletions(-)
 create mode 100644 drivers/power/domain/imx8m-blk-ctrl.c
 create mode 100644 drivers/video/bridge/samsung-dsi-host.c
 create mode 100644 drivers/video/bridge/samsung-dsim.c
 create mode 100644 drivers/video/bridge/samsung-dsim.h
 create mode 100644 drivers/video/synaptics-r63353.c
 create mode 100644 drivers/video/video_link.c
 create mode 100644 include/video_link.h
 create mode 100644 tools/logos/bsh.bmp

---
base-commit: c1958b5f6cce03956d309ce422b5d9f819955d4a
branch: display-v3