Add PinePhone Pro display support
Subsystems (6)
Javier Martinez Canillas
maintainerPATCH v3 1/4 dt-bindings: display: Add Himax HX8394 panel controller
In reply to Javier Martinez CanillasAdd device tree bindings for panels based on the Himax HX8394 controller, such as the HannStar HSD060BHW4 720x1440 TFT LCD panel that is connected through a MIPI-DSI video interface.
---
Changes in v3:
- Fix example snippet for make dt_binding_check to pass (Krzysztof Kozlowski).
Changes in v2:
- Drop redundant "bindings" in subject (Krzysztof Kozlowski).
- Drop "device tree bindings" in title (Krzysztof Kozlowski).
- Put port next to other "true" properties (Krzysztof Kozlowski).
- Add Krzysztof Kozlowski's Reviewed-by tag.
.../bindings/display/panel/himax,hx8394.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml
Documentation/devicetree/bindings/display/panel/himax,hx8394.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/himax,hx8394.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Himax HX8394 MIPI-DSI LCD panel controller + +maintainers: + - Javier Martinez Canillas <[email protected]> + +description: + Device tree bindings for panels based on the Himax HX8394 controller, + such as the HannStar HSD060BHW4 720x1440 TFT LCD panel connected with + a MIPI-DSI video interface. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # HannStar HSD060BHW4 5.99" 720x1440 TFT LCD panel + - hannstar,hsd060bhw4 + + reg: true + + reset-gpios: true + + backlight: true + + port: true + + vcc-supply: + description: Panel power supply + + iovcc-supply: + description: I/O voltage supply + +required: + - compatible + - reg + - reset-gpios + - backlight + - port + - vcc-supply + - iovcc-supply + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + panel@0 { + compatible = "hannstar,hsd060bhw4"; + reg = <0>; + vcc-supply = <®_2v8_p>; + iovcc-supply = <®_1v8_p>; + reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + + port { + mipi_in_panel: endpoint { + remote-endpoint = <&mipi_out_panel>; + }; + }; + }; + }; + +...
Signature · 1 line
2.38.1
Javier Martinez Canillas
maintainerv3 cover Add PinePhone Pro display support
This series add support for the display present in the PinePhone Pro.
Patch #1 adds a driver for panels using the Himax HX8394 panel controller, such as the HSD060BHW4 720x1440 TFT LCD panel present in the PinePhone Pro.
Patch #2 adds a devicetree binding schema for this driver and patch #3 adds an entry for the driver in the MAINTAINERS file.
Finally patch #4 adds the needed devicetree nodes in the PinePhone Pro DTS, to enable both the display and the touchscreen. This makes the upstream DTS much more usable and will allow for example to enable support for the phone in the Fedora distribution.
I only added myself as the maintainer for the driver because I don't know if Kamil and Ondrej that worked in the driver would be interested. Please let me know folks if you are, and I can add you too in the next revision.
This is a v3 of the patch-set that addresses issues pointed out in v2:
https://lists.freedesktop.org/archives/dri-devel/2022-December/384513.html
The patches were tested on a PinePhone Pro Explorer Edition using a Fedora 37 Workstation image.
Best regards,
Javier
Changes in v3:
- Fix example snippet for make dt_binding_check to pass (Krzysztof Kozlowski).
- Add Sam Ravnborg's reviwed-by tag.
- Move driver patch after one introducing the DT binding (Sam Ravnborg).
Changes in v2:
- Drop redundant "bindings" in subject (Krzysztof Kozlowski).
- Drop "device tree bindings" in title (Krzysztof Kozlowski).
- Put port next to other "true" properties (Krzysztof Kozlowski).
- Add Krzysztof Kozlowski's Reviewed-by tag.
- Add year to driver's copyright notice (Sam Ravnborg)
- Remove unused <video/display_timing.h> header include (Sam Ravnborg).
- Use mipi_dsi_dcs_write_seq() helper and drop custom macro (Sam Ravnborg).
- Drop unnecessary info messages and move useful one to debug (Sam Ravnborg).
- Fix regulator node names (Maya Matuszczyk).
- Drop non-existent "poweroff-in-suspend" property (Maya Matuszczyk).
- Remove unnecessary comments in panel node (Maya Matuszczyk).
Javier Martinez Canillas (2):
dt-bindings: display: Add Himax HX8394 panel controller
MAINTAINERS: Add entry for Himax HX8394 panel controller driver
Kamil Trzciński (1):
drm: panel: Add Himax HX8394 panel controller driver
Ondrej Jirman (1):
arm64: dts: rk3399-pinephone-pro: Add internal display support
.../bindings/display/panel/himax,hx8394.yaml | 74 +++ MAINTAINERS | 7 + .../dts/rockchip/rk3399-pinephone-pro.dts | 123 +++++ drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-himax-hx8394.c | 446 ++++++++++++++++++ 6 files changed, 663 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml create mode 100644 drivers/gpu/drm/panel/panel-himax-hx8394.c
Signature · 1 line
2.38.1
Javier Martinez Canillas
maintainerPATCH v3 4/4 arm64: dts: rk3399-pinephone-pro: Add internal display support
From: Ondrej Jirman <[email protected]>
The phone's display is using Hannstar LCD panel, and Goodix based touchscreen. Support it.
---
(no changes since v2)
Changes in v2:
- Fix regulator node names (Maya Matuszczyk).
- Drop non-existent "poweroff-in-suspend" property (Maya Matuszczyk).
- Remove unnecessary comments in panel node (Maya Matuszczyk).
.../dts/rockchip/rk3399-pinephone-pro.dts | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +123 -0
@@ -29,6 +29,12 @@ chosen { stdout-path = "serial2:1500000n8"; }; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm0 0 1000000 0>; + pwm-delay-us = <10000>; + }; + gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default";
@@ -81,6 +87,32 @@ vcc1v8_codec: vcc1v8-codec-regulator { regulator-max-microvolt = <1800000>; vin-supply = <&vcc3v3_sys>; }; + + /* MIPI DSI panel 1.8v supply */ + vcc1v8_lcd: vcc1v8-lcd-regulator { + compatible = "regulator-fixed"; + enable-active-high; + regulator-name = "vcc1v8_lcd"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc3v3_sys>; + gpio = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&display_pwren1>; + }; + + /* MIPI DSI panel 2.8v supply */ + vcc2v8_lcd: vcc2v8-lcd-regulator { + compatible = "regulator-fixed"; + enable-active-high; + regulator-name = "vcc2v8_lcd"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + vin-supply = <&vcc3v3_sys>; + gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&display_pwren>; + }; }; &cpu_l0 {
@@ -111,6 +143,11 @@ &emmc_phy { status = "okay"; }; +&gpu { + mali-supply = <&vdd_gpu>; + status = "okay"; +}; + &i2c0 { clock-frequency = <400000>; i2c-scl-rising-time-ns = <168>;
@@ -193,6 +230,9 @@ vcc3v0_touch: LDO_REG2 { regulator-name = "vcc3v0_touch"; regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; + regulator-state-mem { + regulator-off-in-suspend; + }; }; vcca1v8_codec: LDO_REG3 {
@@ -326,6 +366,25 @@ opp07 { }; }; +&i2c3 { + i2c-scl-rising-time-ns = <450>; + i2c-scl-falling-time-ns = <15>; + status = "okay"; + + touchscreen@14 { + compatible = "goodix,gt917s"; + reg = <0x14>; + interrupt-parent = <&gpio3>; + interrupts = <RK_PB5 IRQ_TYPE_EDGE_RISING>; + irq-gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>; + AVDD28-supply = <&vcc3v0_touch>; + VDDIO-supply = <&vcc3v0_touch>; + touchscreen-size-x = <720>; + touchscreen-size-y = <1440>; + }; +}; + &io_domains { bt656-supply = <&vcc1v8_dvp>; audio-supply = <&vcca1v8_codec>;
@@ -334,6 +393,40 @@ &io_domains { status = "okay"; }; +&mipi_dsi { + status = "okay"; + clock-master; + + ports { + mipi_out: port@1 { + #address-cells = <0>; + #size-cells = <0>; + reg = <1>; + + mipi_out_panel: endpoint { + remote-endpoint = <&mipi_in_panel>; + }; + }; + }; + + panel@0 { + compatible = "hannstar,hsd060bhw4"; + reg = <0>; + backlight = <&backlight>; + reset-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_LOW>; + vcc-supply = <&vcc2v8_lcd>; + iovcc-supply = <&vcc1v8_lcd>; + pinctrl-names = "default"; + pinctrl-0 = <&display_rst_l>; + + port { + mipi_in_panel: endpoint { + remote-endpoint = <&mipi_out_panel>; + }; + }; + }; +}; + &pmu_io_domains { pmu1830-supply = <&vcc_1v8>; status = "okay";
@@ -360,6 +453,20 @@ vsel2_pin: vsel2-pin { }; }; + dsi { + display_rst_l: display-rst-l { + rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_down>; + }; + + display_pwren: display-pwren { + rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_down>; + }; + + display_pwren1: display-pwren1 { + rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; + sound { vcc1v8_codec_en: vcc1v8-codec-en { rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>;
@@ -367,6 +474,10 @@ vcc1v8_codec_en: vcc1v8-codec-en { }; }; +&pwm0 { + status = "okay"; +}; + &sdmmc { bus-width = <4>; cap-sd-highspeed;
@@ -396,3 +507,15 @@ &tsadc { &uart2 { status = "okay"; }; + +&vopb { + status = "okay"; + assigned-clocks = <&cru DCLK_VOP0_DIV>, <&cru DCLK_VOP0>, + <&cru ACLK_VOP0>, <&cru HCLK_VOP0>; + assigned-clock-rates = <0>, <0>, <400000000>, <100000000>; + assigned-clock-parents = <&cru PLL_CPLL>, <&cru DCLK_VOP0_FRAC>; +}; + +&vopb_mmu { + status = "okay"; +};
Signature · 1 line
2.38.1
Javier Martinez Canillas
maintainerPATCH v3 3/4 MAINTAINERS: Add entry for Himax HX8394 panel controller driver
In reply to Javier Martinez CanillasAdd myself as maintainer for the driver and devicetree bindings schema.
---
(no changes since v1)
MAINTAINERS | 7 +++++++ 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
@@ -6480,6 +6480,13 @@ S: Maintained T: git git://anongit.freedesktop.org/drm/drm-misc F: drivers/gpu/drm/tiny/gm12u320.c +DRM DRIVER FOR HIMAX HX8394 MIPI-DSI LCD panels +M: Javier Martinez Canillas <[email protected]> +S: Maintained +T: git git://anongit.freedesktop.org/drm/drm-misc +F: Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml +F: drivers/gpu/drm/panel/panel-himax-hx8394.c + DRM DRIVER FOR HX8357D PANELS M: Emma Anholt <[email protected]> S: Maintained
Signature · 1 line
2.38.1
Javier Martinez Canillas
maintainerPATCH v3 2/4 drm: panel: Add Himax HX8394 panel controller driver
In reply to Javier Martinez CanillasFrom: Kamil Trzciński <[email protected]>
The driver is for panels based on the Himax HX8394 controller, such as the HannStar HSD060BHW4 720x1440 TFT LCD panel that uses a MIPI-DSI interface.
---
Changes in v3:
- Add Sam Ravnborg's reviwed-by tag.
- Move driver patch after one introducing the DT binding (Sam Ravnborg).
Changes in v2:
- Add year to driver's copyright notice (Sam Ravnborg)
- Remove unused <video/display_timing.h> header include (Sam Ravnborg).
- Use mipi_dsi_dcs_write_seq() helper and drop custom macro (Sam Ravnborg).
- Drop unnecessary info messages and move useful one to debug (Sam Ravnborg).
drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-himax-hx8394.c | 446 +++++++++++++++++++++ 3 files changed, 459 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-himax-hx8394.c
drivers/gpu/drm/panel/Kconfig +12 -0
@@ -154,6 +154,18 @@ config DRM_PANEL_FEIYANG_FY07024DI26A30D Say Y if you want to enable support for panels based on the Feiyang FY07024DI26A30-D MIPI-DSI interface. +config DRM_PANEL_HIMAX_HX8394 + tristate "HIMAX HX8394 MIPI-DSI LCD panels" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y if you want to enable support for panels based on the + Himax HX8394 controller, such as the HannStar HSD060BHW4 + 720x1440 TFT LCD panel that uses a MIPI-DSI interface. + + If M is selected the module will be called panel-himax-hx8394. + config DRM_PANEL_ILITEK_IL9322 tristate "Ilitek ILI9322 320x240 QVGA panels" depends on OF && SPI
drivers/gpu/drm/panel/Makefile +1 -0
@@ -13,6 +13,7 @@ obj-$(CONFIG_DRM_PANEL_EBBG_FT8719) += panel-ebbg-ft8719.o obj-$(CONFIG_DRM_PANEL_ELIDA_KD35T133) += panel-elida-kd35t133.o obj-$(CONFIG_DRM_PANEL_FEIXIN_K101_IM2BA02) += panel-feixin-k101-im2ba02.o obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.o +obj-$(CONFIG_DRM_PANEL_HIMAX_HX8394) += panel-himax-hx8394.o obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9341) += panel-ilitek-ili9341.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o
drivers/gpu/drm/panel/panel-himax-hx8394.c new file +446 -0
446 lines not on this page · raw message
Signature · 1 line
2.38.1
Re: [PATCH v3 3/4] MAINTAINERS: Add entry for Himax HX8394 panel controller driver
In reply to Javier Martinez CanillasQuoted 3 lines · Javier Martinez Canillas
Add myself as maintainer for the driver and devicetree bindings schema.
Signed-off-by Javier Martinez Canillas <[email protected]>
Quoted 27 lines
---
(no changes since v1)
MAINTAINERS | 7 +++++++ 1 file changed, 7 insertions(+)MAINTAINERS +7
-0@@ -6480,6 +6480,13 @@ S: Maintained T: git git://anongit.freedesktop.org/drm/drm-misc F: drivers/gpu/drm/tiny/gm12u320.c +DRM DRIVER FOR HIMAX HX8394 MIPI-DSI LCD panels +M: Javier Martinez Canillas <[email protected]> +S: Maintained +T: git git://anongit.freedesktop.org/drm/drm-misc +F: Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml +F: drivers/gpu/drm/panel/panel-himax-hx8394.c + DRM DRIVER FOR HX8357D PANELS M: Emma Anholt <[email protected]> S: MaintainedSignature · 1 line
2.38.1
Re: [PATCH v3 1/4] dt-bindings: display: Add Himax HX8394 panel controller
In reply to Javier Martinez CanillasQuoted 42 lines · Javier Martinez Canillas
Add device tree bindings for panels based on the Himax HX8394 controller, such as the HannStar HSD060BHW4 720x1440 TFT LCD panel that is connected through a MIPI-DSI video interface.
Signed-off-by Javier Martinez Canillas <[email protected]>Reviewed-by Krzysztof Kozlowski <[email protected]>---
Changes in v3:
- Fix example snippet formake dt_binding_checkto pass (Krzysztof Kozlowski).Changes in v2:
- Drop redundant "bindings" in subject (Krzysztof Kozlowski).
- Drop "device tree bindings" in title (Krzysztof Kozlowski).
- Put port next to other "true" properties (Krzysztof Kozlowski).
- Add Krzysztof Kozlowski's Reviewed-by tag..../bindings/display/panel/himax,hx8394.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/himax,hx8394.yamlDocumentation/devicetree/bindings/display/panel/himax,hx8394.yaml new file +14
-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/himax,hx8394.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Himax HX8394 MIPI-DSI LCD panel controller + +maintainers: + - Javier Martinez Canillas <[email protected]> + +description: + Device tree bindings for panels based on the Himax HX8394 controller, + such as the HannStar HSD060BHW4 720x1440 TFT LCD panel connected with
Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml line 24
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml new file +10
-0+ a MIPI-DSI video interface. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # HannStar HSD060BHW4 5.99" 720x1440 TFT LCD panel + - hannstar,hsd060bhw4
Parent controller can have a compatible where the associated panels will be enum list.
Jagan.
Re: [PATCH v3 1/4] dt-bindings: display: Add Himax HX8394 panel controller
Hello Jagan,
On Tue, Dec 27, 2022 at 7:16 PM Jagan Teki <[email protected]> wrote:
[...]
Quoted 12 lines
Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml line 24
Quoted 8 lines
Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml new file +8
-0+allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # HannStar HSD060BHW4 5.99" 720x1440 TFT LCD panel + - hannstar,hsd060bhw4Parent controller can have a compatible where the associated panels will be enum list.
I'm not sure to follow what you meant. Could you please elaborate?
Best regards,
Javier
Re: [PATCH v3 1/4] dt-bindings: display: Add Himax HX8394 panel controller
Quoted 20 lines · Javier Martinez Canillas
Hello Jagan,
On Tue, Dec 27, 2022 at 7:16 PM Jagan Teki <[email protected]> wrote:
[...]
Quoted 12 lines
Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml line 24
Quoted 8 lines
Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml new file +8
-0+allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # HannStar HSD060BHW4 5.99" 720x1440 TFT LCD panel + - hannstar,hsd060bhw4Parent controller can have a compatible where the associated panels will be enum list.
Quoted 1 line
I'm not sure to follow what you meant. Could you please elaborate?
compatible:
items:
- enum:
- hannstar,hsd060bhw4
- const: himax,hx8394
himax,hx8394 is the actual controller and is denoted as fallback compatible.
Jagan.
Re: [PATCH v3 1/4] dt-bindings: display: Add Himax HX8394 panel controller
Quoted 25 lines · Jagan Teki
Quoted 20 lines · Javier Martinez Canillas
Hello Jagan,
On Tue, Dec 27, 2022 at 7:16 PM Jagan Teki <[email protected]> wrote:
[...]
Quoted 12 lines
Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml line 24
Quoted 8 lines
Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml new file +8
-0+allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # HannStar HSD060BHW4 5.99" 720x1440 TFT LCD panel + - hannstar,hsd060bhw4Parent controller can have a compatible where the associated panels will be enum list.
Quoted 1 line
I'm not sure to follow what you meant. Could you please elaborate?
Quoted 8 lines
compatible:
items:
- enum:
- hannstar,hsd060bhw4
- const: himax,hx8394himax,hx8394 is the actual controller and is denoted as fallback compatible.
I see. Do you have an example of a panel controller that does this? I don't see that much value in doing this since you want the DTS to describe the actual HW and so want the panel I believe.
But also there isn't an of_device_id entry for this fallback controller compatible string. Feel free to propose that as a follow-up if you think it is worth doing so.
Best regards,
Javier
Re: [PATCH v3 2/4] drm: panel: Add Himax HX8394 panel controller driver
In reply to Javier Martinez CanillasQuoted 11 lines · Javier Martinez Canillas
From: Kamil Trzciński <[email protected]>
The driver is for panels based on the Himax HX8394 controller, such as the HannStar HSD060BHW4 720x1440 TFT LCD panel that uses a MIPI-DSI interface.
Signed-off-by Kamil Trzciński <[email protected]>Co-developed-by Ondrej Jirman <[email protected]>Signed-off-by Ondrej Jirman <[email protected]>Co-developed-by Javier Martinez Canillas <[email protected]>Signed-off-by Javier Martinez Canillas <[email protected]>Reviewed-by Sam Ravnborg <[email protected]>
Tested to boot on my Pinephone Pro, thanks for the mainlining!
Re: [PATCH v3 4/4] arm64: dts: rk3399-pinephone-pro: Add internal display support
In reply to Javier Martinez CanillasQuoted 11 lines · Javier Martinez Canillas
From: Ondrej Jirman <[email protected]>
The phone's display is using Hannstar LCD panel, and Goodix based touchscreen. Support it.
Signed-off-by Ondrej Jirman <[email protected]>Co-developed-by Martijn Braam <[email protected]>Signed-off-by Martijn Braam <[email protected]>Co-developed-by Kamil Trzciński <[email protected]>Signed-off-by Kamil Trzciński <[email protected]>Signed-off-by Javier Martinez Canillas <[email protected]>
Display and touchscreen works on my Pinephone Pro, thanks for the mainlining!
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts vcc1v8_codec_en: vcc1v8-codec-en { · line 479
Quoted 7 lines
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +3
-0@@ -367,6 +474,10 @@ vcc1v8_codec_en: vcc1v8-codec-en { }; }; +&pwm0 { + status = "okay"; +};
Please move &pwm0 before &sdio0, to keep this ~alphabetical.
Re: [PATCH v3 1/4] dt-bindings: display: Add Himax HX8394 panel controller
In reply to Javier Martinez CanillasQuoted 33 lines · Javier Martinez Canillas
Quoted 31 lines · Jagan Teki
Quoted 20 lines · Javier Martinez Canillas
Hello Jagan,
On Tue, Dec 27, 2022 at 7:16 PM Jagan Teki <[email protected]> wrote:
[...]
Quoted 12 lines
Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml line 24
Quoted 8 lines
Documentation/devicetree/bindings/display/panel/himax,hx8394.yaml new file +8
-0+allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # HannStar HSD060BHW4 5.99" 720x1440 TFT LCD panel + - hannstar,hsd060bhw4Parent controller can have a compatible where the associated panels will be enum list.
Quoted 1 line
I'm not sure to follow what you meant. Could you please elaborate?
compatible:
items:
- enum:
- hannstar,hsd060bhw4
- const: himax,hx8394
Quoted 6 lines
Quoted 2 lines
himax,hx8394 is the actual controller and is denoted as fallback compatible.
I see. Do you have an example of a panel controller that does this? I don't see that much value in doing this since you want the DTS to describe the actual HW and so want the panel I believe.
Yes, but the Panel needs to be built on top of the display IC so the actual parent here is the display IC and the panel is sub-HW. This is what usually follows, here are some reference bindings.
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/display/panel/jadard,jd9365da-h3.yaml
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/display/panel/ilitek,ili9163.yaml
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/display/panel/ilitek,ili9322.yaml
Jagan.
Re: [PATCH v3 1/4] dt-bindings: display: Add Himax HX8394 panel controller
Hello Jagan,
Quoted 1 line · On Thu, 29 Dec 2022 at 10:54 Jagan Teki <[email protected]> wrote:
[…]
Quoted 10 lines
Quoted 7 lines
Quoted 7 lines
compatible:
items:
- enum:
- hannstar,hsd060bhw4
- const: himax,hx8394himax,hx8394 is the actual controller and is denoted as fallback
compatible.
Quoted 2 lines
Quoted 1 line
Quoted 7 lines
Quoted 3 lines
I see. Do you have an example of a panel controller that does this? I don't see that much value in doing this since you want the DTS to describe the actual HW and so want the panel I believe.
Yes, but the Panel needs to be built on top of the display IC so the actual parent here is the display IC and the panel is sub-HW. This is what usually follows, here are some reference bindings.
I see. Thanks for these references.
I’ll adapt the driver and binding schema then according to this and post a v4.
Best regards,
Javier
Re: [PATCH v3 4/4] arm64: dts: rk3399-pinephone-pro: Add internal display support
In reply to Tom FitzhenryHello Tom,
Quoted 13 lines · On Thu, 29 Dec 2022 at 10:39 Tom Fitzhenry <[email protected]> wrote:
Quoted 11 lines · Javier Martinez Canillas
From: Ondrej Jirman <[email protected]>
The phone's display is using Hannstar LCD panel, and Goodix based touchscreen. Support it.
Signed-off-by Ondrej Jirman <[email protected]>Co-developed-by Martijn Braam <[email protected]>Signed-off-by Martijn Braam <[email protected]>Co-developed-by Kamil Trzciński <[email protected]>Signed-off-by Kamil Trzciński <[email protected]>Signed-off-by Javier Martinez Canillas <[email protected]>
Quoted 5 lines
Tested-by Tom Fitzhenry <[email protected]>Display and touchscreen works on my Pinephone Pro, thanks for the mainlining!
Thanks for testing it!
Quoted 9 lines
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts vcc1v8_codec_en: vcc1v8-codec-en { · line 479
Quoted 7 lines
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +3
-0@@ -367,6 +474,10 @@ vcc1v8_codec_en: vcc1v8-codec-en { }; }; +&pwm0 { + status = "okay"; +};Please move &pwm0 before &sdio0, to keep this ~alphabetical.
Sure. I’ll do that in v4.
Best regards,
Javier