[linux-sunxi] [PATCH] ARM: dts: sun4i: Fix incorrect clocks for displays

2018-04-20 Thread Pascal Roeleven
Some displays on SUN4i devices wouldn't properly stay on unless 'clk_ignore_unused' is used. Change the duplicate clocks to the probably intended ones. Signed-off-by: Pascal Roeleven <d...@pascalroeleven.nl> --- arch/arm/boot/dts/sun4i-a10.dtsi | 6 +++--- 1 file changed, 3 insertions

Re: [linux-sunxi] Re: [PATCH] ARM: dts: sun4i: Fix incorrect clocks for displays

2018-04-23 Thread Pascal Roeleven
On 2018-04-23 09:14, Maxime Ripard wrote: On Fri, Apr 20, 2018 at 12:21:12PM +0200, Pascal Roeleven wrote: Some displays on SUN4i devices wouldn't properly stay on unless 'clk_ignore_unused' is used. Change the duplicate clocks to the probably intended ones. Signed-off-by: Pascal Roeleven &l

[linux-sunxi] pwm: sun4i: pwm-backlight not working since 5.6-rc1

2020-03-12 Thread Pascal Roeleven
Hi all, I am working on adding an old A10 device to mainline and noticed an issue when testing on 5.5.8 vs master. Since 5.6-rc1, I can't control the brightness of my LCD backlight anymore. The backlight stays on full brightness instead. I am controlling the brightness value via sysfs for

Re: [linux-sunxi] [PATCH 2/2] ARM: dts: sun4i: Add support for Topwise A721 tablet

2020-03-11 Thread Pascal Roeleven
On 2020-03-10 15:02, Ondřej Jirman wrote: Hello Pascal, On Tue, Mar 10, 2020 at 11:27:24AM +0100, Pascal Roeleven wrote: The Topwise A721/LY-F1 tablet is a tablet sold around 2012 under different brands. The mainboard mentions A721 clearly, so this tablet is best known under this name. Signed

[linux-sunxi] Re: [PATCH 1/2] drm/panel: Add Starry KR070PE2T

2020-03-11 Thread Pascal Roeleven
On 2020-03-10 19:54, Sam Ravnborg wrote: A few things to improve. The binding should be a separate patch. subject - shall start with dt-bindings: Shall be sent to deveicetree mailing list. Hi Sam, Thank you very much for your review. I did consider this. The reason I combined the patches, is

[linux-sunxi] Re: pwm: sun4i: pwm-backlight not working since 5.6-rc1

2020-03-12 Thread Pascal Roeleven
On 2020-03-12 14:29, Uwe Kleine-König wrote: On Thu, Mar 12, 2020 at 01:22:13PM +0100, Pascal Roeleven wrote: Hi all, I am working on adding an old A10 device to mainline and noticed an issue when testing on 5.5.8 vs master. Since 5.6-rc1, I can't control the brightness of my LCD backlight

[linux-sunxi] [PATCH 0/2] Add support for Topwise A721 tablet

2020-03-10 Thread Pascal Roeleven
This series add support for the Topwise A721 tablet and it's display. It is an old tablet (around 2012) but it might be useful as reference as the devicetree is pretty complete. Pascal Roeleven (2): drm/panel: Add Starry KR070PE2T ARM: dts: sun4i: Add support for Topwise A721 tablet

[linux-sunxi] [PATCH 1/2] drm/panel: Add Starry KR070PE2T

2020-03-10 Thread Pascal Roeleven
The KR070PE2T is a 7" panel with a resolution of 800x480. KR070PE2T is the marking present on the ribbon cable. As this panel is probably available under different brands, this marking will catch most devices. Signed-off-by: Pascal Roeleven --- .../display/panel/starry,kr070pe2

[linux-sunxi] [PATCH 2/2] ARM: dts: sun4i: Add support for Topwise A721 tablet

2020-03-10 Thread Pascal Roeleven
The Topwise A721/LY-F1 tablet is a tablet sold around 2012 under different brands. The mainboard mentions A721 clearly, so this tablet is best known under this name. Signed-off-by: Pascal Roeleven --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun4i-a10-topwise

Re: [linux-sunxi] [RFC PATCH 4/4] pwm: sun4i: Delay after writing the period

2020-04-22 Thread Pascal Roeleven
On 2020-04-22 05:43, Samuel Holland wrote: Hello Pascal, On 3/17/20 10:59 AM, Pascal Roeleven wrote: When disabling, ensure the period write is complete before continuing. This fixes an issue on some devices when the write isn't complete before the panel is turned off but the clock gate

[linux-sunxi] [RFC PATCH 4/4] pwm: sun4i: Delay after writing the period

2020-03-17 Thread Pascal Roeleven
When disabling, ensure the period write is complete before continuing. This fixes an issue on some devices when the write isn't complete before the panel is turned off but the clock gate is still on. Signed-off-by: Pascal Roeleven --- drivers/pwm/pwm-sun4i.c | 5 + 1 file changed, 5

[linux-sunxi] [RFC PATCH 3/4] pwm: sun4i: Move delay to function

2020-03-17 Thread Pascal Roeleven
Move the delay to a function so we can reuse it. Signed-off-by: Pascal Roeleven --- drivers/pwm/pwm-sun4i.c | 32 ++-- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/drivers/pwm/pwm-sun4i.c b/drivers/pwm/pwm-sun4i.c index 56942036b..a11d00f96 100644

[linux-sunxi] [RFC PATCH 0/4] pwm: sun4i: Properly turn pwm off and fix stuck output state

2020-03-17 Thread Pascal Roeleven
opinion if any of these changes make sense. After days, this one is a bit blurry for me. Thanks to Uwe for some help with debugging. Pascal. Pascal Roeleven (4): pwm: sun4i: Remove redundant needs_delay pwm: sun4i: Disable pwm before turning off clock gate pwm: sun4i: Move delay to function

[linux-sunxi] [RFC PATCH 2/4] pwm: sun4i: Disable pwm before turning off clock gate

2020-03-17 Thread Pascal Roeleven
The clock gate must stay on when disabling to ensure proper turning off. After one period it will still be disabled anyway. Signed-off-by: Pascal Roeleven --- drivers/pwm/pwm-sun4i.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-sun4i.c b/drivers/pwm

[linux-sunxi] [RFC PATCH 1/4] pwm: sun4i: Remove redundant needs_delay

2020-03-17 Thread Pascal Roeleven
'needs_delay' does now always evaluate to true, so remove all occurrences. Signed-off-by: Pascal Roeleven --- drivers/pwm/pwm-sun4i.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/pwm/pwm-sun4i.c b/drivers/pwm/pwm-sun4i.c index 3e3efa6c7..5c677c563

[linux-sunxi] Re: pwm: sun4i: pwm-backlight not working since 5.6-rc1

2020-03-17 Thread Pascal Roeleven
On 2020-03-17 18:32, Uwe Kleine-König wrote: Hello Pascal, On Mon, Mar 16, 2020 at 08:26:13AM +0100, Uwe Kleine-König wrote: On Thu, Mar 12, 2020 at 04:06:07PM +0100, Pascal Roeleven wrote: > On 2020-03-12 14:29, Uwe Kleine-König wrote: > > On Thu, Mar 12, 2020 at 01:22:13PM +010

[linux-sunxi] Re: [RFC PATCH 0/4] pwm: sun4i: Properly turn pwm off and fix stuck output state

2020-03-17 Thread Pascal Roeleven
On 2020-03-17 17:45, Emil Lenngren wrote: Hi all, Den tis 17 mars 2020 kl 17:00 skrev Pascal Roeleven : Hi all, For the last few days I've been debugging a lot to get pwm working again since recent changes in 5.6-rc1 broke it for me. Testing shows the pwm controller crashes

[linux-sunxi] [PATCH v2 5/5] ARM: dts: sun4i: Add support for Topwise A721 tablet

2020-03-20 Thread Pascal Roeleven
The Topwise A721/LY-F1 tablet is a tablet sold around 2012 under different brands. The mainboard mentions A721 clearly, so this tablet is best known under this name. Signed-off-by: Pascal Roeleven --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun4i-a10-topwise

[linux-sunxi] [PATCH v2 3/5] dt-bindings: vendor-prefixes: Add Topwise

2020-03-20 Thread Pascal Roeleven
Topwise Communication Co,. Ltd. is a company based in Shenzhen. They manufacture all kind of products but seem to be focusing on POS nowadays. Signed-off-by: Pascal Roeleven --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

[linux-sunxi] [PATCH v2 2/5] drm: panel: Add Starry KR070PE2T

2020-03-20 Thread Pascal Roeleven
trial-and-error. The flags seem to be common for these kind of panels as well. Signed-off-by: Pascal Roeleven --- drivers/gpu/drm/panel/panel-simple.c | 29 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/

[linux-sunxi] [PATCH v2 1/5] dt-bindings: panel: Add binding for Starry KR070PE2T

2020-03-20 Thread Pascal Roeleven
Add the devicetree binding for Starry KR070PE2T Signed-off-by: Pascal Roeleven --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree

[linux-sunxi] [PATCH v2 0/5] Add support for Topwise A721 tablet

2020-03-20 Thread Pascal Roeleven
to sunxi.yaml * dt-binding: add Topwise to vendor-prefixes * drm: Add bus_format, bus_flags and connector_type * dts: Use SPDX license identifier instead of boilerplate license text * dts: Remove pinctrl leftovers Pascal Roeleven (5): dt-bindings: panel: Add binding for Starry KR070PE2T drm: panel

Re: [linux-sunxi] Re: [PATCH v2 2/5] drm: panel: Add Starry KR070PE2T

2020-06-29 Thread Pascal Roeleven
, 2020 at 12:21:33PM +0100, Pascal Roeleven wrote: The KR070PE2T is a 7" panel with a resolution of 800x480. KR070PE2T is the marking present on the ribbon cable. As this panel is probably available under different brands, this marking will catch most devices. As I can't find a data

Re: [linux-sunxi] Lima with glxgears Allwinner A64

2020-07-23 Thread Pascal Roeleven
On 2020-07-23 10:49, Faruk KILAVUZ wrote: Hello I am using Armbian_20.05.4_Lime-a64_focal_current_5.4.45_desktop.img.xz and I try run glxgears on Olinuxino-A64 with Lima. When I running glxgears I see 117 frames in 5.0 second = 23.313FPS. Also mouse response so slow on desktop. It is

[linux-sunxi] Re: [PATCH 6/6] pwm: sun4i: don't delay if the PWM is already off

2021-06-10 Thread Pascal Roeleven
On 2021-05-31 06:46, Roman Beranek wrote: > Signed-off-by: Roman Beranek > --- > drivers/pwm/pwm-sun4i.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pwm/pwm-sun4i.c b/drivers/pwm/pwm-sun4i.c > index 6ab06b9749d0..88bd90498d1f 100644 > ---

[linux-sunxi] Re: [PATCH 0/6] pwm: sun4i: only wait 2 cycles prior to disabling

2021-06-08 Thread Pascal Roeleven
On 2021-05-31 21:07, Pascal Roeleven wrote: > On 2021-05-31 06:46, Roman Beranek wrote: >> As Emil Lenngren has previously shown [1], actually only 1-2 cycles of >> the prescaler-divided clock are necessary to pass before the PWM turns >> off, not a full period. >> &g

[linux-sunxi] Re: [PATCH 0/6] pwm: sun4i: only wait 2 cycles prior to disabling

2021-05-31 Thread Pascal Roeleven
On 2021-05-31 06:46, Roman Beranek wrote: > As Emil Lenngren has previously shown [1], actually only 1-2 cycles of > the prescaler-divided clock are necessary to pass before the PWM turns > off, not a full period. > > To avoid having the PWM re-enabled from another thread while asleep, >

[linux-sunxi] Re: [PATCH 0/6] pwm: sun4i: only wait 2 cycles prior to disabling

2021-05-31 Thread Pascal Roeleven
On 2021-05-31 22:01, Emil Lenngren wrote: > You could look at the devmem source code, and in C write a script that > writes to pwm register to disable the pwm, insert a usleep, then > disable the gating. This can be done for various sleep values, then > retrying with same sleep value multiple

[linux-sunxi] [PATCH v5 1/2] dt-bindings: arm: Add Topwise A721

2021-02-24 Thread Pascal Roeleven
Add the bindings for Topwise A721 tablet Signed-off-by: Pascal Roeleven Acked-by: Rob Herring --- 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

[linux-sunxi] [PATCH v5 0/2] Add support for Topwise A721 tablet

2021-02-24 Thread Pascal Roeleven
patches * dt-binding: use yaml instead of txt * dt-binding: add Topwise A721 to sunxi.yaml * dt-binding: add Topwise to vendor-prefixes * drm: Add bus_format, bus_flags and connector_type * dts: Use SPDX license identifier instead of boilerplate license text * dts: Remove pinctrl leftovers Pascal

[linux-sunxi] [PATCH v5 2/2] ARM: dts: sun4i: Add support for Topwise A721 tablet

2021-02-24 Thread Pascal Roeleven
The Topwise A721/LY-F1 tablet is a tablet sold around 2012 under different brands. The mainboard mentions A721 clearly, so this tablet is best known under this name. Signed-off-by: Pascal Roeleven --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun4i-a10-topwise

[linux-sunxi] [PATCH RESEND v3 2/2] ARM: dts: sun4i: Add support for Topwise A721 tablet

2021-02-16 Thread Pascal Roeleven
The Topwise A721/LY-F1 tablet is a tablet sold around 2012 under different brands. The mainboard mentions A721 clearly, so this tablet is best known under this name. Signed-off-by: Pascal Roeleven --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun4i-a10-topwise

[linux-sunxi] [PATCH RESEND v3 0/2] Add support for Topwise A721 tablet

2021-02-16 Thread Pascal Roeleven
to sunxi.yaml * dt-binding: add Topwise to vendor-prefixes * drm: Add bus_format, bus_flags and connector_type * dts: Use SPDX license identifier instead of boilerplate license text * dts: Remove pinctrl leftovers Pascal Roeleven (2): dt-bindings: arm: Add Topwise A721 ARM: dts: sun4i: Add

[linux-sunxi] [PATCH RESEND v3 1/2] dt-bindings: arm: Add Topwise A721

2021-02-16 Thread Pascal Roeleven
Add the bindings for Topwise A721 tablet Signed-off-by: Pascal Roeleven Acked-by: Rob Herring --- 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

[linux-sunxi] [PATCH v4 2/2] ARM: dts: sun4i: Add support for Topwise A721 tablet

2021-02-22 Thread Pascal Roeleven
The Topwise A721/LY-F1 tablet is a tablet sold around 2012 under different brands. The mainboard mentions A721 clearly, so this tablet is best known under this name. Signed-off-by: Pascal Roeleven --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun4i-a10-topwise

[linux-sunxi] [PATCH v4 0/2] Add support for Topwise A721 tablet

2021-02-22 Thread Pascal Roeleven
-binding: add Topwise A721 to sunxi.yaml * dt-binding: add Topwise to vendor-prefixes * drm: Add bus_format, bus_flags and connector_type * dts: Use SPDX license identifier instead of boilerplate license text * dts: Remove pinctrl leftovers Pascal Roeleven (2): dt-bindings: arm: Add Topwise A721 ARM

[linux-sunxi] [PATCH v4 1/2] dt-bindings: arm: Add Topwise A721

2021-02-22 Thread Pascal Roeleven
Add the bindings for Topwise A721 tablet Signed-off-by: Pascal Roeleven Acked-by: Rob Herring --- 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