[linux-sunxi] [PATCH v5 04/13] drm/panel: rocktech-jh057n00900: Rename the driver to st7703

2020-06-25 Thread Ondrej Jirman
This rename is done so that the driver matches the name of the display controller and in preparation for adding support for more panels to the driver. This is just a basic file rename, with no code changes. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/Kconfig | 26

[linux-sunxi] [PATCH v5 13/13] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

2020-06-25 Thread Ondrej Jirman
Pinephone has a Goodix GT917S capacitive touchscreen controller on I2C0 bus. Add support for it. Signed-off-by: Ondrej Jirman --- .../dts/allwinner/sun50i-a64-pinephone.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git

[linux-sunxi] [PATCH v5 10/13] drm/panel: st7703: Enter sleep after display off

2020-06-25 Thread Ondrej Jirman
The datasheet suggests to issue sleep in after display off as a part of the panel's shutdown sequence. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH v5 05/13] drm/panel: st7703: Rename functions from jh057n prefix to st7703

2020-06-25 Thread Ondrej Jirman
This is done so that code that's not specific to a particular jh057n panel is named after the controller. Functions specific to the panel are kept named after the panel. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 90 ++- 1 file changed, 46

[linux-sunxi] [PATCH v5 07/13] drm/panel: st7703: Move code specific to jh057n closer together

2020-06-25 Thread Ondrej Jirman
It's better than having it spread around the driver. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c

[linux-sunxi] [PATCH v5 02/13] dt-bindings: panel: Convert rocktech,jh057n00900 to yaml

2020-06-25 Thread Ondrej Jirman
Convert Rocktech MIPI DSI panel driver from txt to yaml bindings. Signed-off-by: Ondrej Jirman --- .../display/panel/rocktech,jh057n00900.txt| 23 --- .../display/panel/rocktech,jh057n00900.yaml | 66 +++ 2 files changed, 66 insertions(+), 23 deletions(-) delete mode

[linux-sunxi] [PATCH v5 00/13] Add support for PinePhone LCD panel

2020-06-25 Thread Ondrej Jirman
This patchset adds support for the LCD panel of PinePhone. I've tested this on PinePhone 1.0 and 1.2. Please take a look. thank you and regards, Ondrej Jirman Changes in v5: - rewritten on top of rocktech-jh057n00900 driver - rocktech-jh057n00900 renamed to st7703 (controller name) -

[linux-sunxi] [PATCH v5 01/13] dt-bindings: vendor-prefixes: Add Xingbangda

2020-06-25 Thread Ondrej Jirman
From: Icenowy Zheng Shenzhen Xingbangda Display Technology Co., Ltd is a company which produces LCD modules. It supplies the LCD panels for the PinePhone. Add the vendor prefix of it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman Acked-by: Rob Herring ---

[linux-sunxi] [PATCH v5 09/13] drm/panel: st7703: Add support for Xingbangda XBD599

2020-06-25 Thread Ondrej Jirman
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel used in PinePhone. Add support for it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 199 +- 1 file changed, 197 insertions(+), 2 deletions(-) diff --git

[linux-sunxi] [PATCH v5 06/13] drm/panel: st7703: Prepare for supporting multiple panels

2020-06-25 Thread Ondrej Jirman
Parametrize the driver so that it can support more panels based on st7703 controller. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 43 +-- 1 file changed, 31 insertions(+), 12 deletions(-) diff --git

[linux-sunxi] [PATCH v5 11/13] drm/panel: st7703: Assert reset prior to powering down the regulators

2020-06-25 Thread Ondrej Jirman
The reset pin is inverted, so if we don't assert reset, the actual gpio will be high and may keep driving the IO port of the panel. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 1 + 1 file changed, 1 insertion(+) diff --git

[linux-sunxi] [PATCH v5 08/13] drm/panel: st7703: Move generic part of init sequence to enable callback

2020-06-25 Thread Ondrej Jirman
Calling sleep out and display on is a controller specific part of the initialization process. Move it out of the panel specific initialization function to the enable callback. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 33 ++- 1 file

[linux-sunxi] [PATCH v5 03/13] dt-bindings: panel: Add compatible for Xingbangda XBD599 panel

2020-06-25 Thread Ondrej Jirman
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. It is based on Sitronix ST7703 LCD controller just like rocktech,jh057n00900. It is used in PinePhone. Add a compatible for it. Signed-off-by: Ondrej Jirman --- .../bindings/display/panel/rocktech,jh057n00900.yaml| 6 +- 1

[linux-sunxi] [PATCH v5 12/13] arm64: dts: sun50i-a64-pinephone: Enable LCD support on PinePhone

2020-06-25 Thread Ondrej Jirman
From: Icenowy Zheng PinePhone uses PWM backlight and a XBD599 LCD panel over DSI for display. Backlight levels curve was optimized by Martijn Braam using a lux meter. Add its device nodes. Signed-off-by: Icenowy Zheng Signed-off-by: Martijn Braam Signed-off-by: Ondrej Jirman ---