[PATCH] mfd: sun4i-gpadc: Interrupt numbers should start from 1

2020-09-12 Thread Ondrej Jirman
-by: Ondrej Jirman --- include/linux/mfd/sun4i-gpadc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mfd/sun4i-gpadc.h b/include/linux/mfd/sun4i-gpadc.h index ea0ccf33a459..021f820f9d52 100644 --- a/include/linux/mfd/sun4i-gpadc.h +++ b/include/linux/mfd/sun4i

[PATCH v2] drm/sun4i: Fix dsi dcs long write function

2020-08-28 Thread Ondrej Jirman
inner A31 MIPI-DSI controller support") Signed-off-by: Ondrej Jirman Reviewed-by: Jernej Skrabec --- v2: - use ALIGN - add tags drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c b/drivers/gpu

[PATCH] drm/sun4i: Fix dsi dcs long write function

2020-08-28 Thread Ondrej Jirman
It's writing too much data. regmap_bulk_write expects number of register sized chunks to write, not a byte sized length of the bounce buffer. Bounce buffer needs to be padded too, so that regmap_bulk_write will not read past the end of the buffer. Signed-off-by: Ondrej Jirman --- drivers/gpu

[PATCH v5 0/4] Add support for vibrator motor for TBS A711 Tablet

2020-07-30 Thread Ondrej Jirman
-binding to require at least one of enable/supply, dropped ack - Changed driver to bail out if neither supply nor gpio is given Changes in v2: - Added DT ack tag - Add more information to the commit log (re use of LDO for the power) thank you and regards, Ondrej Jirman Ondrej Jirman (4): dt

[PATCH v5 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor

2020-07-30 Thread Ondrej Jirman
CMOS logic output circuitry (typically limited to around 20-35mA, but not specified in this datasheet). Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot

[PATCH v5 2/4] input: gpio-vibra: Allow to use vcc-supply alone to control the vibrator

2020-07-30 Thread Ondrej Jirman
Make enable-gpio optional to allow using this driver with boards that have vibrator connected to a power supply without intermediate gpio based enable circuitry. Also avoid a case where neither regulator nor enable gpio is specified, and bail out in probe in such a case. Signed-off-by: Ondrej

[PATCH v5 4/4] ARM: dts: sun8i-a83t-tbs-a711: Increase voltage on the vibrator

2020-07-30 Thread Ondrej Jirman
Vibrator motor is weak at the current voltage. Increase the voltage. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs

[PATCH v5 1/4] dt-bindings: input: gpio-vibrator: Don't require enable-gpios

2020-07-30 Thread Ondrej Jirman
It is possible to turn the motor on/off just by enabling/disabling the vcc-supply. Change the binding to require either enable-gpios or vcc-supply or both. Signed-off-by: Ondrej Jirman Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/input/gpio-vibrator.yaml | 7 ++- 1 file

[PATCH 0/2] Fix st7703 panel initialization failures

2020-07-16 Thread Ondrej Jirman
. thank you and regards, Ondrej Jirman Ondrej Jirman (2): drm/panel: st7703: Make the sleep exit timing match the spec drm/panel: st7703: Fix the power up sequence of the panel drivers/gpu/drm/panel/panel-sitronix-st7703.c | 29 ++- 1 file changed, 15 insertions(+), 14 deletions

[PATCH 2/2] drm/panel: st7703: Fix the power up sequence of the panel

2020-07-16 Thread Ondrej Jirman
voltage. Use 10-20ms to also give the power supplies some time to reach the required voltage, too. This fixes intermittent panel initialization failures and screen corruption during resume from sleep on PinePhone. Reported-by: Samuel Holland Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel

[PATCH 1/2] drm/panel: st7703: Make the sleep exit timing match the spec

2020-07-16 Thread Ondrej Jirman
between init commands and the sleep exit command is not necessary. (not specified anywhere) Reported-by: Samuel Holland Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel

[PATCH v4 2/4] input: gpio-vibra: Allow to use vcc-supply alone to control the vibrator

2020-07-14 Thread Ondrej Jirman
Make enable-gpio optional to allow using this driver with boards that have vibrator connected to a power supply without intermediate gpio based enable circuitry. Also avoid a case where neither regulator nor enable gpio is specified, and bail out in probe in such a case. Signed-off-by: Ondrej

[PATCH v4 0/4] Add support for vibrator motor for TBS A711 Tablet

2020-07-14 Thread Ondrej Jirman
ack - Changed driver to bail out if neither supply nor gpio is given Changes in v2: - Added DT ack tag - Add more information to the commit log (re use of LDO for the power) thank you and regards, Ondrej Jirman Ondrej Jirman (4): dt-bindings: input: gpio-vibrator: Don't require enable-gpios

[PATCH v4 1/4] dt-bindings: input: gpio-vibrator: Don't require enable-gpios

2020-07-14 Thread Ondrej Jirman
It is possible to turn the motor on/off just by enabling/disabling the vcc-supply. Change the binding to require either enable-gpios or vcc-supply or both. Signed-off-by: Ondrej Jirman Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/input/gpio-vibrator.yaml | 7 ++- 1 file

[PATCH v4 4/4] ARM: dts: sun8i-a83t-tbs-a711: Increase voltage on the vibrator

2020-07-14 Thread Ondrej Jirman
Vibrator motor is weak at the current voltage. Increase the voltage. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs

[PATCH v4 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor

2020-07-14 Thread Ondrej Jirman
CMOS logic output circuitry (typically limited to around 20-35mA, but not specified in this datasheet). Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot

[PATCH] thermal: sun8i: Be loud when probe fails

2020-07-08 Thread Ondrej Jirman
, that SoC can easily overheat under load. Signed-off-by: Ondrej Jirman --- drivers/thermal/sun8i_thermal.c | 55 ++--- 1 file changed, 43 insertions(+), 12 deletions(-) diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c index 74d73be16496

[PATCH 3/3] arm64: dts: sun50i-pinephone: dldo4 must not be >= 1.8V

2020-07-03 Thread Ondrej Jirman
functionality is unaffected by this change. This completely stops the backlight flicker when using bluetooth. Fixes: 91f480d40942 ("arm64: dts: allwinner: Add initial support for Pine64 PinePhone") Signed-off-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 2

[PATCH 2/3] arm64: dts: allwinner: Add support for PinePhone revision 1.2

2020-07-03 Thread Ondrej Jirman
the modem are connected. Also backlight intensity seemingly behaves differently, than on the 1.1 and 1.0 boards, and the PWM duty cycle where backlight starts to work is 10% (as tested on 2 1.2 PinePhones I have access to). Signed-off-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/Makefile

[PATCH 1/3] dt-bindings: arm: sunxi: Add PinePhone 1.2 bindings

2020-07-03 Thread Ondrej Jirman
Document board compatible names for Pine64 PinePhone 1.2. Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm

[PATCH 0/3] Add support for Pine64 PinePhone HW Revision 1.2

2020-07-03 Thread Ondrej Jirman
, and in HDMI/USB bridge and USB power in this revision. Those will be expressed later, when the base dtsi gains support for these things. Please take a look. thank you and regards, Ondrej Jirman Ondrej Jirman (3): dt-bindings: arm: sunxi: Add PinePhone 1.2 bindings arm64: dts: allwinner: Add support

[PATCH] iio: light: stk3310: add chip id for STK3311-X variant

2020-07-03 Thread Ondrej Jirman
From: Icenowy Zheng The STK3311 chip has a variant called STK3311-X, which has a different chip id of 0x12. Add the chip id to the driver. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- drivers/iio/light/stk3310.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers

[PATCH 2/2] dt-binding: display: Allow a single port node on rocktech,jh057n00900

2020-07-03 Thread Ondrej Jirman
The display has one port. Allow it in the binding. Signed-off-by: Ondrej Jirman --- .../devicetree/bindings/display/panel/rocktech,jh057n00900.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml b/Documentation

[PATCH 1/2] dt-bindings: display: Fix example in nwl-dsi.yaml

2020-07-03 Thread Ondrej Jirman
- 'reset-gpios' is a required property Fix it. Signed-off-by: Ondrej Jirman --- .../devicetree/bindings/display/bridge/nwl-dsi.yaml | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml b/Documentation/devicetree

[PATCH 0/2] Fix warnings in display/bridge/nwl-dsi.yaml DT example

2020-07-03 Thread Ondrej Jirman
This patchset fixes warnings in the example in display/bridge/nwl-dsi.yaml revealed during port of display/panel/rocktech,jh057n00900.yaml to yaml. Please take a look. thank you and regards, Ondrej Jirman Ondrej Jirman (2): dt-bindings: display: Fix example in nwl-dsi.yaml dt-binding

[PATCH RFC] leds: Add support for per-LED device triggers

2020-07-02 Thread Ondrej Jirman
private_led to a classdev of the LED the trigger is associated with. Signed-off-by: Ondrej Jirman --- drivers/leds/led-triggers.c | 12 +--- include/linux/leds.h| 3 +++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/leds/led-triggers.c b/drivers/leds/led

[PATCH v3 2/4] input: gpio-vibra: Allow to use vcc-supply alone to control the vibrator

2020-07-02 Thread Ondrej Jirman
Make enable-gpio optional to allow using this driver with boards that have vibrator connected to a power supply without intermediate gpio based enable circuitry. Also avoid a case where neither regulator nor enable gpio is specified, and bail out in probe in such a case. Signed-off-by: Ondrej

[PATCH v3 4/4] ARM: dts: sun8i-a83t-tbs-a711: Increase voltage on the vibrator

2020-07-02 Thread Ondrej Jirman
Vibrator motor is weak at the current voltage. Increase the voltage. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs

[PATCH v3 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor

2020-07-02 Thread Ondrej Jirman
CMOS logic output circuitry (typically limited to around 20-35mA, but not specified in this datasheet). Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot

[PATCH v3 0/4] Add support for vibrator motor for TBS A711 Tablet

2020-07-02 Thread Ondrej Jirman
is given Changes in v2: - Added DT ack tag - Add more information to the commit log (re use of LDO for the power) thank you and regards, Ondrej Jirman Ondrej Jirman (4): dt-bindings: input: gpio-vibrator: Don't require enable-gpios input: gpio-vibra: Allow to use vcc-supply alone to control

[PATCH v3 1/4] dt-bindings: input: gpio-vibrator: Don't require enable-gpios

2020-07-02 Thread Ondrej Jirman
It is possible to turn the motor on/off just by enabling/disabling the vcc-supply. Change the binding to require either enable-gpios or vcc-supply or both. Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/input/gpio-vibrator.yaml | 7 ++- 1 file changed, 6 insertions(+), 1

[PATCH v8 0/2] Add support for PinePhone LCD panel

2020-07-02 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 v8: - Drop goodix,gt911 fallback compatible (Icenowy) - Drop address/size-cells from node (Maxime) - Drop already applied

[PATCH v8 2/2] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

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

[PATCH v8 1/2] arm64: dts: sun50i-a64-pinephone: Enable LCD support on PinePhone

2020-07-02 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 Acked

[PATCH] MAINTAINERS: Update entry for st7703 driver after the rename

2020-07-01 Thread Ondrej Jirman
The driver was renamed, change the path in the MAINTAINERS file. Signed-off-by: Ondrej Jirman --- MAINTAINERS | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5f186a661a9b..f5183eae08df 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v7 00/13] Add support for PinePhone LCD panel

2020-07-01 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 v7: - Removed mode.vrefresh, rebased onto next-20200701 - v6->v7 diff: https://megous.com/dl/tmp/v6-v7.patch Chan

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

2020-07-01 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

[PATCH v7 01/13] dt-bindings: vendor-prefixes: Add Xingbangda

2020-07-01 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 --- Documentation

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

2020-07-01 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

[PATCH v7 10/13] drm/panel: st7703: Enter sleep after display off

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

[PATCH v7 07/13] drm/panel: st7703: Move code specific to jh057n closer together

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

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

2020-07-01 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 Acked

[PATCH v7 05/13] drm/panel: st7703: Rename functions from jh057n prefix to st7703

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 90

[PATCH v7 08/13] drm/panel: st7703: Move generic part of init sequence to enable callback

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 33

[PATCH v7 09/13] drm/panel: st7703: Add support for Xingbangda XBD599

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 199 +- 1 file changed, 197 insertions(

[PATCH v7 13/13] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

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

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

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel

[PATCH v7 06/13] drm/panel: st7703: Prepare for supporting multiple panels

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

[PATCH v7 11/13] drm/panel: st7703: Assert reset prior to powering down the regulators

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v6 01/13] dt-bindings: vendor-prefixes: Add Xingbangda

2020-07-01 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 --- Documentation

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

2020-07-01 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

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

2020-07-01 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

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

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel

[PATCH v6 00/13] Add support for PinePhone LCD panel

2020-07-01 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 v6: - Fixed spacing in yaml - Fixed wrong vccio->iovcc supply name in the bindings doc - I noticed that the origi

[PATCH v6 08/13] drm/panel: st7703: Move generic part of init sequence to enable callback

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 33

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

2020-07-01 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 Acked

[PATCH v6 13/13] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

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

[PATCH v6 07/13] drm/panel: st7703: Move code specific to jh057n closer together

2020-07-01 Thread Ondrej Jirman
It's better than having it spread around the driver. Signed-off-by: Ondrej Jirman Reviewed-by: Linus Walleij --- 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

[PATCH v6 06/13] drm/panel: st7703: Prepare for supporting multiple panels

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

[PATCH v6 09/13] drm/panel: st7703: Add support for Xingbangda XBD599

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 200 +- 1 file changed, 198 insertions(

[PATCH v6 11/13] drm/panel: st7703: Assert reset prior to powering down the regulators

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v6 10/13] drm/panel: st7703: Enter sleep after display off

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

[PATCH v6 05/13] drm/panel: st7703: Rename functions from jh057n prefix to st7703

2020-07-01 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 Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 90

[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 --- Documentation

[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

[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

[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

[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 a/drivers/gpu/drm/panel/panel-sitronix

[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

[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

[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 changed

[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

[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 b/drivers/gpu/drm/panel

[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 a/arch/arm64/boot/dts/allwinner/sun50i-a64

[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 a/drivers/gpu/drm/panel/panel

[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

[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 a/drivers/gpu/drm/panel/panel

[PATCH v4 2/5] dt-bindings: panel: Add binding for Xingbangda XBD599 panel

2020-06-16 Thread Ondrej Jirman
From: Icenowy Zheng Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. It is based on Sitronix ST7703 LCD controller. Add its device tree binding. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman Reviewed-by: Linus Walleij Reviewed-by: Rob Herring --- .../display/

[PATCH v4 1/5] dt-bindings: vendor-prefixes: Add Xingbangda

2020-06-16 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 --- Documentation

[PATCH v4 0/5] Add support for PinePhone LCD panel

2020-06-16 Thread Ondrej Jirman
This patchset adds support for the LCD panel of PinePhone. The first 3 patches are for the panel itself, and the last 2 patches are for enabling it on PinePhone. I've tested this on PinePhone 1.0 and 1.2. Please take a look. thank you and regards, Ondrej Jirman Changes in v4: - use ->t

[PATCH v4 5/5] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

2020-06-16 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 a/arch/arm64/boot/dts/allwinner/sun50i-a64

[PATCH v4 3/5] drm: panel: Add Xingbangda XBD599 panel (ST7703 controller)

2020-06-16 Thread Ondrej Jirman
From: Icenowy Zheng Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI IPS LCD panel made by Xingbangda, which is used on PinePhone final assembled phones. It is based on Sitronix ST7703 LCD controller. Add support for it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- dr

[PATCH v4 4/5] arm64: dts: sun50i-a64-pinephone: Enable LCD support on PinePhone

2020-06-16 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

[PATCH v3 0/5] Add support for PinePhone LCD panel

2020-05-13 Thread Ondrej Jirman
This patchset adds support for the LCD panel of PinePhone. The first 3 patches are for the panel itself, and the last 2 patches are for enabling it on PinePhone. I've tested this on PinePhone 1.0 and 1.2. Please take a look. thank you and regards, Ondrej Jirman Changes in v3: - Panel

[PATCH v3 5/5] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

2020-05-13 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 a/arch/arm64/boot/dts/allwinner/sun50i-a64

[PATCH v3 1/5] dt-bindings: vendor-prefixes: Add Xingbangda

2020-05-13 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 --- Documentation/devicetree/bindings/vendor

[PATCH v3 2/5] dt-bindings: panel: Add binding for Xingbangda XBD599 panel

2020-05-13 Thread Ondrej Jirman
From: Icenowy Zheng Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. It is based on Sitronix ST7703 LCD controller. Add its device tree binding. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- .../display/panel/sitronix,st7703.yaml| 63 +

[PATCH v3 4/5] arm64: dts: sun50i-a64-pinephone: Enable LCD support on PinePhone

2020-05-13 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

[PATCH v3 3/5] drm: panel: Add Xingbangda XBD599 panel (ST7703 controller)

2020-05-13 Thread Ondrej Jirman
From: Icenowy Zheng Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI IPS LCD panel made by Xingbangda, which is used on PinePhone final assembled phones. It is based on Sitronix ST7703 LCD controller. Add support for it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- dr

[PATCH v2 4/4] ARM: dts: sun8i-a83t-tbs-a711: Increase voltage on the vibrator

2020-05-12 Thread Ondrej Jirman
Vibrator motor is weak at the current voltage. Increase the voltage. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs

[PATCH v2 2/4] input: gpio-vibra: Allow to use vcc-supply alone to control the vibrator

2020-05-12 Thread Ondrej Jirman
Make enable-gpio optional to allow using this driver with boards that have vibrator connected to a power supply without intermediate gpio based enable circuitry. Signed-off-by: Ondrej Jirman --- drivers/input/misc/gpio-vibra.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v2 0/4] Add support for vibrator motor for TBS A711 Tablet

2020-05-12 Thread Ondrej Jirman
a power supply itself. There's not additional gpio driven switch on this tablet between the power supply for the motor and the motor. Please take a look. Changes in v2: - Added DT ack tag - Add more information to the commit log (re use of LDO for the power) thank you and regards, Ondrej Jirman

[PATCH v2 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor

2020-05-12 Thread Ondrej Jirman
CMOS logic output circuitry (typically limited to around 20-35mA, but not specified in this datasheet). Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot

[PATCH v2 1/4] dt-bindings: input: gpio-vibrator: Don't require enable-gpios

2020-05-12 Thread Ondrej Jirman
It is possible to turn the motor on/off just by enabling/disabling the vcc-supply. Signed-off-by: Ondrej Jirman Acked-by: Rob Herring --- Documentation/devicetree/bindings/input/gpio-vibrator.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/input/gpio