Re: [PATCH] drm/bridge: dw-mipi-dsi: Find the possible DSI devices

2021-10-11 Thread Michael Trimarchi
the panel_or_bridge from host attach and > bridge attach in order to find all possible DSI devices. > Working on linux-next-5.14-rc4 on px30-evb rockchip board. On top of this patch for px30 dsi I need to add: >From a0e0344b4cb4df3d97fac0e27e0aa76a2a191b0e Mon Sep 17 00:00:00 2001

[RFC PATCH] drm/panel: ilitek-ili9881d: add support for Wanchanglong W552946ABA panel

2021-10-14 Thread Michael Trimarchi
W552946ABA is a panel by Wanchanglong. This panel utilizes the Ilitek ILI9881D controller. Add this panel's initialzation sequence and timing to ILI9881D driver. Tested on px30-evb v11 Signed-off-by: Michael Trimarchi --- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c

[PATCH 0/5] Add support for Wanchanglong panel used in px30-evb v11

2021-10-16 Thread Michael Trimarchi
This patch series add support for W552946ABA panel. This panel is used in px30-evb v11. All the patches can be applied on top of drm-fixes branch. The last patch is suppose to fix a race when the panel is built in. Tested on px30 evb Michael Trimarchi (5): dt-bindings: vendor-prefix: add

[PATCH 1/5] dt-bindings: vendor-prefix: add Wanchanglong Electronics Technology

2021-10-16 Thread Michael Trimarchi
Wanchanglong Electronics Technology is a company to provide LCD modules. Signed-off-by: Michael Trimarchi --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation

[PATCH 2/5] drm/panel: ilitek-ili9881d: add support for Wanchanglong W552946ABA panel

2021-10-16 Thread Michael Trimarchi
W552946ABA is a panel by Wanchanglong. This panel utilizes the Ilitek ILI9881D controller. Add this panel's initialzation sequence and timing to ILI9881D driver. Tested on px30-evb v11 Signed-off-by: Michael Trimarchi --- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c

[PATCH 4/5] drm/panel: ilitek-ili9881c: Make gpio-reset optional

2021-10-16 Thread Michael Trimarchi
Depends in how logic is connected to the board the gpio is not stricly required. Signed-off-by: Michael Trimarchi --- .../devicetree/bindings/display/panel/ilitek,ili9881c.yaml | 1 - drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 2 +- 2 files changed, 1 insertion(+), 2

[PATCH 3/5] dt-bindings: ili9881c: add compatible string for Wanchanglong w552946aba

2021-10-16 Thread Michael Trimarchi
It utilizes an Ilitek ILI9881D controller chip, but its compatible with ili9881c so should be added to ilitek,ili9881c file. Add the compatible string for it. Signed-off-by: Michael Trimarchi --- .../devicetree/bindings/display/panel/ilitek,ili9881c.yaml | 1 + 1 file changed, 1

[PATCH 5/5] drm/bridge: dw-mipi-dsi: Fix dsi registration during drm probing

2021-10-16 Thread Michael Trimarchi
The dsi registration is implemented in rockchip platform driver. The attach can be called before the probe is terminated and therefore we need to be sure that corresponding entry during attach is valid Signed-off-by: Michael Trimarchi --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 8

[PATCH] drm/panel: ilitek-ili9881c: Avoid unbalance prepare/unprepare

2021-10-16 Thread Michael Trimarchi
and: [ 9862.183103] drm_panel_unprepare+0x2c/0x4c [ 9862.187695] panel_bridge_post_disable+0x18/0x24 [ 9862.192872] drm_atomic_bridge_chain_post_disable+0x8c/0xd0 [ 9862.199117] disable_outputs+0x120/0x31c Signed-off-by: Michael Trimarchi --- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c

[RFC PATCH] drm/panel: Fix panel removal if mipi_dsi_attach fail

2021-12-06 Thread Michael Trimarchi
If mipi_dsi_attach fail the panel must be removed from panel list because it get be probed back but later for -EPROBE_DEFER. A lot of panels are affect on same issue, fix them all Signed-off-by: Michael Trimarchi --- drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c | 6 +- drivers/gpu

[RFC PATCH 0/4] Add RGB ttl connection on rockchip phy

2022-10-01 Thread Michael Trimarchi
oblem here is the second region I have added is the same of dsi logic. Only one register is needed by the the phy driver Michael Trimarchi (4): phy: add PHY_MODE_TTL phy: rockchip: Add inno_is_valid_phy_mode phy: rockchip: Implement TTY phy mode drm/rockchip: rgb: Add dphy connection to rgb

[RFC PATCH 1/4] phy: add PHY_MODE_TTL

2022-10-01 Thread Michael Trimarchi
There are combo phys out there that can be switched between doing dsi, lvds, and ttl. So add a mode definition for it. Signed-off-by: Michael Trimarchi --- include/linux/phy/phy.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/phy/phy.h b/include/linux/phy

[RFC PATCH 3/4] phy: rockchip: Implement TTY phy mode

2022-10-01 Thread Michael Trimarchi
taken from m1 and m0 where all the two path are enabled. dsi and ttl enable share one register in their register area. Simple implementation is overlap the area where we want access the register Signed-off-by: Michael Trimarchi --- .../phy/rockchip/phy-rockchip-inno-dsidphy.c | 53

[RFC PATCH 2/4] phy: rockchip: Add inno_is_valid_phy_mode

2022-10-01 Thread Michael Trimarchi
The function is used to avoid to enable clock on the hardware if the mode requested is invalid Signed-off-by: Michael Trimarchi --- .../phy/rockchip/phy-rockchip-inno-dsidphy.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/phy/rockchip/phy-rockchip-inno

[RFC PATCH 4/4] drm/rockchip: rgb: Add dphy connection to rgb output

2022-10-01 Thread Michael Trimarchi
lt;&panel_rgb_in>; }; }; &vopb { status = "okay"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&lcdc_rgb_pins>; pinctrl-1 = <&lcdc_sleep_pins>; phys = <&dsi_dphy>;

[RFC PATCH] drm/panel: synaptics-r63353: Fix regulator unbalance

2024-06-24 Thread Michael Trimarchi
The shutdown function can be called when the display is already unprepared. For example during reboot this trigger a kernel backlog. Calling the drm_panel_unprepare, allow us to avoid to trigger the kernel warning Signed-off-by: Michael Trimarchi --- It's not obviovus if shutdown can be dr