Re: [linux-sunxi] backlight lcd crash [ Pine64 ]

2020-01-08 Thread Vasily Khoruzhick
The issue is that sun4i_pwm_apply() calls sun4i_pwm_calculate() which calls clk_get_rate() while holding a spinlock and clk_get_rate() may sleep. It's a bug in pwm-sun4i driver. On Wed, Jan 8, 2020 at 4:19 PM @lex wrote: > > I am doing some experiments with LCD7" with the kernel 5.4.8 and

[linux-sunxi] Re: [PATCH v9 0/6] Add support for H6 PWM

2020-01-08 Thread Thierry Reding
On Sun, Nov 24, 2019 at 06:29:02PM +0100, Clément Péron wrote: > Hi, > > This is a rework of Jernej's previous work[1] taking account all the > previous remarks. > > Bindings is still strict but probe in the driver are now optionnals. > > If someone could confirm that the PWM is not broken, as

[linux-sunxi] Re: [PATCH 1/2] arm64: dts: sun50i: H6: Add SPI controllers nodes and pinmuxes

2020-01-08 Thread Andre Przywara
On Wed, 8 Jan 2020 12:34:48 +0100 Emmanuel Vadot wrote: Hi Emmanuel, > On Wed, 8 Jan 2020 10:10:05 + > Andre Przywara wrote: > > > The Allwinner H6 SoC contains two SPI controllers similar to the H3/A64, > > but with the added capability of 3-wire and 4-wire operation modes. > > For now

Re: [linux-sunxi] [PATCH 1/2] arm64: dts: sun50i: H6: Add SPI controllers nodes and pinmuxes

2020-01-08 Thread Clément Péron
Hi Andre, On Wed, 8 Jan 2020 at 11:10, Andre Przywara wrote: > > The Allwinner H6 SoC contains two SPI controllers similar to the H3/A64, > but with the added capability of 3-wire and 4-wire operation modes. > For now the driver does not support those, but the SPI registers are > fully

[linux-sunxi] Re: [PATCH v9 0/6] Add support for H6 PWM

2020-01-08 Thread Clément Péron
Hi Uwe, Thierry, On Sun, 24 Nov 2019 at 18:29, Clément Péron wrote: > > Hi, > > This is a rework of Jernej's previous work[1] taking account all the > previous remarks. Is this series ok for you? FYI the device-tree bindings is merged in sunxi-next. Thanks, Clement > > Bindings is still

[linux-sunxi] [PATCH 2/2] arm64: dts: allwinner: h6: Pine H64: Add SPI flash node

2020-01-08 Thread Andre Przywara
The Pine H64 board comes with SPI flash soldered on the board, connected to the SPI0 pins (so it can also boot from there). Add the required DT node to make the flash accessible from Linux. Signed-off-by: Andre Przywara --- .../arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 13 +

[linux-sunxi] [PATCH 1/2] arm64: dts: sun50i: H6: Add SPI controllers nodes and pinmuxes

2020-01-08 Thread Andre Przywara
The Allwinner H6 SoC contains two SPI controllers similar to the H3/A64, but with the added capability of 3-wire and 4-wire operation modes. For now the driver does not support those, but the SPI registers are fully backwards-compatible, just adding bits and registers which were formerly reserved.

[linux-sunxi] [PATCH 0/2] arm64: dts: sun50i: H6: Enable SPI flash

2020-01-08 Thread Andre Przywara
Even though the SPI controller in the Allwinner H6 SoC is more advanced than in the previous generations (it supports 3-wire and 4-wire mode), the register set stayed backwards-compatible. So we can use the existing driver to use the "normal" SPI mode, for instance to access the SPI flash soldered