[linux-sunxi] [PATCH] spi: sun4i: update max transfer size reported

2020-07-27 Thread Jonathan Liu
The spi-sun4i driver already has the ability to do large transfers. However, the max transfer size reported is still fifo depth - 1. Update the max transfer size reported to the max value possible. Fixes: 196737912da5 ("spi: sun4i: Allow transfers larger than FIFO size") Signed-off-by

Re: [linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels

2019-03-21 Thread Jonathan Liu
Hi Jagan, On Fri., 22 Mar. 2019 at 4:05 am, Jagan Teki wrote: > On Tue, Mar 19, 2019 at 11:09 AM Jonathan Liu wrote: > > > > Old sunxi kernels fail to boot with ARMV7_LPAE enabled. > > Any idea why? I don't have relevant stuff with to test this. > I don't

[linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels

2019-03-18 Thread Jonathan Liu
Old sunxi kernels fail to boot with ARMV7_LPAE enabled. Signed-off-by: Jonathan Liu --- arch/arm/cpu/armv7/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/Kconfig b/arch/arm/cpu/armv7/Kconfig index 73d57a2aae..cdb7e402b4 100644 --- a/arch/arm/cpu

[linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels

2019-03-18 Thread Jonathan Liu
Old sunxi kernels fail to boot with ARMV7_LPAE enabled. Signed-off-by: Jonathan Liu --- arch/arm/cpu/armv7/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/Kconfig b/arch/arm/cpu/armv7/Kconfig index 73d57a2aae..cdb7e402b4 100644 --- a/arch/arm/cpu

Re: [linux-sunxi] Intermittent U-boot hang on A20 devices after reboot

2018-11-19 Thread Jonathan Liu
Hi Priit, On Mon, 19 Nov 2018 at 19:08, Priit Laes wrote: > > On Sun, Nov 18, 2018 at 06:12:34PM +, Priit Laes wrote: > > On Sat, Nov 17, 2018 at 05:19:38PM +0100, Paul Kocialkowski wrote: > > > Hi, > > > > > > On Fri, 2018-11-16 at 15:07 +, Priit Laes wrote: > > > > On Fri, Nov 16, 2018

Re: [linux-sunxi] [PATCH 5/5] sunxi: doc: Add basic fastboot example

2018-10-23 Thread Jonathan Liu
Hi Priit, On Wed, 24 Oct 2018 at 04:21, Priit Laes wrote: > > From: Priit Laes > > Signed-off-by: Priit Laes > --- > board/sunxi/README.fastboot | 98 ++- > 1 file changed, 98 insertions(+) > create mode 100644 board/sunxi/README.fastboot > > diff --git a/b

[linux-sunxi] [PATCH v3 3/3] drm/sun4i: hdmi: Add missing rate halving check in sun4i_tmds_determine_rate

2018-01-08 Thread Jonathan Liu
sun4i: Add HDMI support") Signed-off-by: Jonathan Liu --- drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c b/drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c index 88eeeaf34638..3ecff

[linux-sunxi] [PATCH v3 1/3] drm/sun4i: hdmi: Check for unset best_parent in sun4i_tmds_determine_rate

2018-01-08 Thread Jonathan Liu
er set. This results in req->rate and req->best_parent_rate being assigned 0. To avoid this, we set best_parent to the first calculated rate if it is unset. The sun4i_tmds_calc_divider function already has a similar check. Fixes: 9c5681011a0c ("drm/sun4i: Add HDMI support") Signed

[linux-sunxi] [PATCH v3 2/3] drm/sun4i: hdmi: Fix incorrect assignment in sun4i_tmds_determine_rate

2018-01-08 Thread Jonathan Liu
best_div is set to i which corresponds to rate halving when it should be set to j which corresponds to the divider. Fixes: 9c5681011a0c ("drm/sun4i: Add HDMI support") Signed-off-by: Jonathan Liu --- drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c | 2 +- 1 file changed, 1 insertion(+),

[linux-sunxi] [PATCH v3 0/3] drm/sun4i: hdmi: Fix sun4i_tmds_determine_rate

2018-01-08 Thread Jonathan Liu
commit message for unset best_parent Changes for v2: - Split into separate patches for each issue - Add details to commit message for reproducing issue Jonathan Liu (3): drm/sun4i: hdmi: Check for unset best_parent in sun4i_tmds_determine_rate drm/sun4i: hdmi: Fix incorrect assignment in

[linux-sunxi] Re: [PATCH v2 1/3] drm/sun4i: hdmi: Check for unset best_parent in sun4i_tmds_determine_rate

2018-01-05 Thread Jonathan Liu
Hi Maxime, On 5 January 2018 at 21:03, Maxime Ripard wrote: > On Fri, Jan 05, 2018 at 09:44:39AM +1100, Jonathan Liu wrote: >> On 5 January 2018 at 06:56, Maxime Ripard >> wrote: >> > On Tue, Dec 26, 2017 at 10:12:25PM +1100, Jonathan Liu wrote: >> >> We sho

[linux-sunxi] Re: [PATCH v2 1/3] drm/sun4i: hdmi: Check for unset best_parent in sun4i_tmds_determine_rate

2018-01-04 Thread Jonathan Liu
Hi Maxime, On 5 January 2018 at 06:56, Maxime Ripard wrote: > On Tue, Dec 26, 2017 at 10:12:25PM +1100, Jonathan Liu wrote: >> We should check if the best match has been set before comparing it. >> >> Fixes: 9c5681011a0c ("drm/sun4i: Add HDMI support")

[linux-sunxi] [PATCH v2 2/3] drm/sun4i: hdmi: Fix incorrect assignment in sun4i_tmds_determine_rate

2017-12-26 Thread Jonathan Liu
best_div is set to i which corresponds to rate halving when it should be set to j which corresponds to the divider. Fixes: 9c5681011a0c ("drm/sun4i: Add HDMI support") Signed-off-by: Jonathan Liu --- drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c | 2 +- 1 file changed, 1 insertion(+),

[linux-sunxi] [PATCH v2 1/3] drm/sun4i: hdmi: Check for unset best_parent in sun4i_tmds_determine_rate

2017-12-26 Thread Jonathan Liu
We should check if the best match has been set before comparing it. Fixes: 9c5681011a0c ("drm/sun4i: Add HDMI support") Signed-off-by: Jonathan Liu --- drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[linux-sunxi] [PATCH v2 0/3] drm/sun4i: hdmi: Fix sun4i_tmds_determine_rate

2017-12-26 Thread Jonathan Liu
separate patches for each issue - Add details to commit message for reproducing issue Jonathan Liu (3): drm/sun4i: hdmi: Check for unset best_parent in sun4i_tmds_determine_rate drm/sun4i: hdmi: Fix incorrect assignment in sun4i_tmds_determine_rate drm/sun4i: hdmi: Add missing rate

[linux-sunxi] [PATCH v2 3/3] drm/sun4i: hdmi: Add missing rate halving check in sun4i_tmds_determine_rate

2017-12-26 Thread Jonathan Liu
sun4i: Add HDMI support") Signed-off-by: Jonathan Liu --- drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c b/drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c index 88eeeaf34638..3ecff

[linux-sunxi] [PATCH] drm/sun4i: hdmi: Fix sun4i_tmds_determine_rate

2017-12-21 Thread Jonathan Liu
x27;t match the requested rate exactly - sets best_div to i which corresponds to rate halving when it should be set to j which corresponds to the divider Fix these issues. Fixes: 9c5681011a0c ("drm/sun4i: Add HDMI support") Signed-off-by: Jonathan Liu --- drivers/gpu/drm/sun4i/sun4i_hdmi_tm

Re: [linux-sunxi] [PATCHv6 12/28] net: Add ability to set MAC address via EEPROM

2017-12-04 Thread Jonathan Liu
Hi Olliver, On 15 May 2017 at 18:02, Olliver Schinagl wrote: > This patch allows Kconfig to enable and set parameters to make it > possible to read the MAC address from an EEPROM. The net core layer then > uses this information to read MAC addresses from this EEPROM. > > Besides the various tunea

[linux-sunxi] [PATCH] drm/sun4i: tcon: Add dithering support for RGB565/RGB666 LCD panels

2017-10-17 Thread Jonathan Liu
Dithering is supported on TCON channel 0 which is used for LCD panels. Signed-off-by: Jonathan Liu --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 37 + drivers/gpu/drm/sun4i/sun4i_tcon.h | 18 +- 2 files changed, 54 insertions(+), 1 deletion

[linux-sunxi] Re: [PATCH v2] usb: musb: sunxi: Explicitly release USB PHY on exit

2017-10-16 Thread Jonathan Liu
On 16 October 2017 at 23:49, Bin Liu wrote: > On Mon, Oct 16, 2017 at 04:13:51PM +1100, Jonathan Liu wrote: >> On 10 October 2017 at 14:22, Bin Liu wrote: >> > On Tue, Oct 10, 2017 at 01:45:25PM +1100, Jonathan Liu wrote: >> >> This fixes a kernel oops wh

[linux-sunxi] Re: [PATCH v2] usb: musb: sunxi: Explicitly release USB PHY on exit

2017-10-15 Thread Jonathan Liu
On 10 October 2017 at 14:22, Bin Liu wrote: > On Tue, Oct 10, 2017 at 01:45:25PM +1100, Jonathan Liu wrote: >> This fixes a kernel oops when unloading the driver due to usb_put_phy >> being called after usb_phy_generic_unregister when the device is >> detached. Calling usb_p

[linux-sunxi] [PATCH v2] usb: musb: sunxi: Explicitly release USB PHY on exit

2017-10-09 Thread Jonathan Liu
el.org # v4.3+ Signed-off-by: Jonathan Liu --- Changes for v2: - Use devm_usb_put_phy instead of usb_put_phy drivers/usb/musb/sunxi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c index c9a09b5bb6e5..dc353e24d53c 100644 --- a/drivers/us

[linux-sunxi] Re: [PATCH] usb: musb: sunxi: Explicitly release USB PHY on exit

2017-10-09 Thread Jonathan Liu
Hi, On 10 October 2017 at 13:14, Bin Liu wrote: > On Tue, Oct 10, 2017 at 08:17:34AM +1100, Jonathan Liu wrote: >> Hi, >> >> On 10 October 2017 at 01:23, Bin Liu wrote: >> > Hi, >> > >> > On Tue, Sep 26, 2017 at 09:39:23PM +1000, Jonathan Liu wrot

[linux-sunxi] Re: [PATCH] usb: musb: sunxi: Explicitly release USB PHY on exit

2017-10-09 Thread Jonathan Liu
Hi, On 10 October 2017 at 01:23, Bin Liu wrote: > Hi, > > On Tue, Sep 26, 2017 at 09:39:23PM +1000, Jonathan Liu wrote: >> This fixes a kernel oops when unloading the driver due to usb_put_phy >> being called after usb_phy_generic_unregister when the device is

[linux-sunxi] [PATCH] usb: musb: Check for host-mode using is_host_active() on reset interrupt

2017-09-27 Thread Jonathan Liu
the driver logic and does not rely on register contents. Cc: sta...@vger.kernel.org # v4.1+ Signed-off-by: Jonathan Liu --- drivers/usb/musb/musb_core.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 02969205

Re: [linux-sunxi] Re: [PATCH v2 1/2] ARM: dts: sun7i: Fix A20-OLinuXino-MICRO dts for LAN8710

2017-09-26 Thread Jonathan Liu
Hi Stefan, On 31 August 2017 at 15:20, Stefan Mavrodiev wrote: > On 08/30/2017 05:37 PM, Maxime Ripard wrote: >> >> Hi, >> >> On Mon, Aug 28, 2017 at 09:32:42AM +0300, Stefan Mavrodiev wrote: >>> >>> From revision J the board uses new phy chip LAN8710. Compared >>> with RTL8201, RA17 pin is TXER

[linux-sunxi] Re: [PATCH] usb: musb: sunxi: Explicitly release USB PHY on exit

2017-09-26 Thread Jonathan Liu
Hi, On 26 September 2017 at 21:39, Jonathan Liu wrote: > This fixes a kernel oops when unloading the driver due to usb_put_phy > being called after usb_phy_generic_unregister when the device is > detached. Calling usb_phy_generic_unregister causes x->dev->driver to > be NULL

[linux-sunxi] [PATCH] usb: musb: sunxi: Explicitly release USB PHY on exit

2017-09-26 Thread Jonathan Liu
icitly managing the lifetime of usb_phy, devm_usb_get_phy is changed to usb_get_phy and we call usb_put_phy in the probe error path. Cc: sta...@vger.kernel.org # v4.3+ Signed-off-by: Jonathan Liu --- drivers/usb/musb/sunxi.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff -

[linux-sunxi] [PATCH] dt-bindings: clock: sunxi-ccu: Add compatibles for sun5i CCU driver

2017-08-07 Thread Jonathan Liu
The bindings were not updated when the sun5i CCU driver was added in commit 5e73761786d6 ("clk: sunxi-ng: Add sun5i CCU driver"). Signed-off-by: Jonathan Liu --- Documentation/devicetree/bindings/clock/sunxi-ccu.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/

[linux-sunxi] Re: [PATCH v6 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-08-02 Thread Jonathan Liu
Hi Priit, On 15 July 2017 at 00:49, Priit Laes wrote: > Introduce a clock controller driver for sun4i A10 and sun7i A20 > series SoCs. > > Signed-off-by: Priit Laes > --- > drivers/clk/sunxi-ng/Kconfig | 13 +- > drivers/clk/sunxi-ng/Makefile |1 +- > drivers/clk/

[linux-sunxi] [PATCH] drm/panel: simple: Fix width and height for Olimex LCD-OLinuXino-4.3TS

2017-07-20 Thread Jonathan Liu
The physical size of the panel is 105.5 (W) x 67.2 (H) x 4.05 (D) mm but the active display area is 95.04 (W) x 53.856 (H) mm. The width and height should be set to the active display area. Signed-off-by: Jonathan Liu --- drivers/gpu/drm/panel/panel-simple.c | 4 ++-- 1 file changed, 2

[linux-sunxi] [PATCH v3] drm/sun4i: Implement drm_driver lastclose to restore fbdev console

2017-07-09 Thread Jonathan Liu
kernel.org Signed-off-by: Jonathan Liu Reviewed-by: Chen-Yu Tsai --- Changes for v3: - Add 'Fixes:' tag - Add CC to stable - Add 'Reviewed-by: Chen-Yu Tsai ' Changes for v2: - Rename sun4i_drm_lastclose to sun4i_drv_lastclose drivers/gpu/drm/sun4i/sun4i_drv.c | 8

[linux-sunxi] Re: [PATCH v2] drm/sun4i: Implement drm_driver lastclose to restore fbdev console

2017-07-09 Thread Jonathan Liu
Hi Maxime, On 10 July 2017 at 16:44, Maxime Ripard wrote: > On Sun, Jul 09, 2017 at 11:11:07PM +0800, Chen-Yu Tsai wrote: >> On Sun, Jul 9, 2017 at 3:59 PM, Jonathan Liu wrote: >> > The drm_driver lastclose callback is called when the last userspace >> >

[linux-sunxi] Re: [PATCH v5 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-07-09 Thread Jonathan Liu
Hi Priit, On 5 July 2017 at 06:04, Priit Laes wrote: > Introduce a clock controller driver for sun4i A10 and sun7i A20 > series SoCs. > > Signed-off-by: Priit Laes > --- > drivers/clk/sunxi-ng/Kconfig | 14 +- > drivers/clk/sunxi-ng/Makefile |1 +- > drivers/clk/s

[linux-sunxi] [PATCH v2] drm/sun4i: Implement drm_driver lastclose to restore fbdev console

2017-07-09 Thread Jonathan Liu
The drm_driver lastclose callback is called when the last userspace DRM client has closed. Call drm_fbdev_cma_restore_mode to restore the fbdev console otherwise the fbdev console will stop working. Signed-off-by: Jonathan Liu --- Changes for v2: - Rename sun4i_drm_lastclose to

[linux-sunxi] [PATCH] drm/sun4i: Implement drm_driver lastclose to restore fbdev console

2017-07-09 Thread Jonathan Liu
The drm_driver lastclose callback is called when the last userspace DRM client has closed. Call drm_fbdev_cma_restore_mode to restore the fbdev console otherwise the fbdev console will stop working. Signed-off-by: Jonathan Liu --- drivers/gpu/drm/sun4i/sun4i_drv.c | 8 1 file changed

[linux-sunxi] [PATCH v8] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-07-02 Thread Jonathan Liu
Exposing the DDC bus as an I2C adapter is more beneficial as it can be used for purposes other than reading the EDID such as modifying the EDID or using the HDMI DDC pins as an I2C bus through the I2C dev interface from userspace (e.g. i2c-tools). Implement this for A10s. Signed-off-by: Jo

[linux-sunxi] Re: [PATCH v5] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-30 Thread Jonathan Liu
Hi Maxime, On 30 June 2017 at 19:58, Jonathan Liu wrote: > Hi Maxime, > > On 30 June 2017 at 19:34, Maxime Ripard > wrote: >> Hi, >> >> On Fri, Jun 30, 2017 at 08:22:13AM +1000, Jonathan Liu wrote: >>> Hi Maxime, >>> >>> On 30 June 2017

[linux-sunxi] Re: [PATCH v5] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-30 Thread Jonathan Liu
Hi Chen-Yu and Maxime, On 30 June 2017 at 13:16, Chen-Yu Tsai wrote: > On Fri, Jun 30, 2017 at 6:22 AM, Jonathan Liu wrote: >> Hi Maxime, >> >> On 30 June 2017 at 01:56, Maxime Ripard >> wrote: >>> On Wed, Jun 28, 2017 at 08:39:33PM +1000, Jonathan Liu

[linux-sunxi] Re: [PATCH v5] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-30 Thread Jonathan Liu
Hi Maxime, On 30 June 2017 at 19:34, Maxime Ripard wrote: > Hi, > > On Fri, Jun 30, 2017 at 08:22:13AM +1000, Jonathan Liu wrote: >> Hi Maxime, >> >> On 30 June 2017 at 01:56, Maxime Ripard >> wrote: >> > On Wed, Jun 28, 2017 at 08:39:33PM +10

[linux-sunxi] Re: [PATCH v5] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-29 Thread Jonathan Liu
Hi Maxime, On 30 June 2017 at 01:56, Maxime Ripard wrote: > On Wed, Jun 28, 2017 at 08:39:33PM +1000, Jonathan Liu wrote: >> >> + u32 int_status; >> >> + u32 fifo_status; >> >> + /* Read needs empty flag unset, write needs full fl

[linux-sunxi] Re: [PATCH v7] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-28 Thread Jonathan Liu
Hi Chen-Yu, On 29 June 2017 at 12:47, Chen-Yu Tsai wrote: > Hi, > > On Wed, Jun 28, 2017 at 6:52 PM, Jonathan Liu wrote: >> The documentation for drm_do_get_edid in drivers/gpu/drm/drm_edid.c states: >> "As in the general case the DDC bus is accessible by the kernel at

[linux-sunxi] [PATCH v7] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-28 Thread Jonathan Liu
Exposing the DDC bus as an I2C adapter is more beneficial as it can be used for purposes other than reading the EDID such as modifying the EDID or using the HDMI DDC pins as an I2C bus through the I2C dev interface from userspace (e.g. i2c-tools). Implement this for A10s. Signed-off-by: Jo

[linux-sunxi] [PATCH v6] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-28 Thread Jonathan Liu
Exposing the DDC bus as an I2C adapter is more beneficial as it can be used for purposes other than reading the EDID such as modifying the EDID or using the HDMI DDC pins as an I2C bus through the I2C dev interface from userspace (e.g. i2c-tools). Implement this for A10s. Signed-off-by: Jo

[linux-sunxi] Re: [PATCH v5] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-28 Thread Jonathan Liu
Hi Maxime, On 28 June 2017 at 19:20, Maxime Ripard wrote: > On Wed, Jun 28, 2017 at 12:36:52AM +1000, Jonathan Liu wrote: >> +#define SUN4I_HDMI_DDC_INT_STATUS_ERROR_MASK ( \ >> + SUN4I_HDMI_DDC_INT_STATUS_ILLEGAL_FIFO_OPERATION | \ >> + SUN4I_HDMI_DDC_INT_STATUS_

[linux-sunxi] [PATCH v5] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-27 Thread Jonathan Liu
Exposing the DDC bus as an I2C adapter is more beneficial as it can be used for purposes other than reading the EDID such as modifying the EDID or using the HDMI DDC pins as an I2C bus through the I2C dev interface from userspace (e.g. i2c-tools). Implement this for A10s. Signed-off-by: Jo

[linux-sunxi] Re: [PATCH v4] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-27 Thread Jonathan Liu
Hi Maxime, On 27 June 2017 at 05:05, Maxime Ripard wrote: > On Sat, Jun 24, 2017 at 04:10:54PM +1000, Jonathan Liu wrote: >> The documentation for drm_do_get_edid in drivers/gpu/drm/drm_edid.c states: >> "As in the general case the DDC bus is accessible by the kernel at the I

[linux-sunxi] [PATCH] ARM: dts: sun4i: Add A10 LCD0 RGB888 pins

2017-06-26 Thread Jonathan Liu
The LCD0 controller on the A10 can do RGB output up to 8 bits per channel. Add the pins for RGB888 output. Signed-off-by: Jonathan Liu --- arch/arm/boot/dts/sun4i-a10.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i

[linux-sunxi] [PATCH v2] ARM: dts: sun7i: Add A20 LCD0 RGB888 pins

2017-06-26 Thread Jonathan Liu
The LCD0 controller on the A20 can do RGB output up to 8 bits per channel. Add the pins for RGB888 output. Signed-off-by: Jonathan Liu --- Changes for v2: - Remove "allwinner," prefix from pins and function arch/arm/boot/dts/sun7i-a20.dtsi | 11 +++ 1 file changed, 11

[linux-sunxi] Re: [PATCH] ARM: dts: sun7i: Add A20 LCD0 RGB888 pins

2017-06-26 Thread Jonathan Liu
Hi Emmanuel, On 26 June 2017 at 22:45, Emmanuel Vadot wrote: > On Mon, 26 Jun 2017 22:42:49 +1000 > Jonathan Liu wrote: > >> The LCD0 controller on the A20 can do RGB output up to 8 bits per >> channel. Add the pins for RGB888 output. >> >> Signed-off-by: Jonat

[linux-sunxi] [PATCH] ARM: dts: sun7i: Add A20 LCD0 RGB888 pins

2017-06-26 Thread Jonathan Liu
The LCD0 controller on the A20 can do RGB output up to 8 bits per channel. Add the pins for RGB888 output. Signed-off-by: Jonathan Liu --- arch/arm/boot/dts/sun7i-a20.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i

Re: [linux-sunxi] [PATCH v4 1/6] clk: sunxi-ng: div: Add support for fixed post-divider

2017-06-26 Thread Jonathan Liu
Hi Priit, On 26 June 2017 at 15:53, Priit Laes wrote: > On Mon, Jun 26, 2017 at 08:05:16AM +1000, Jonathan Liu wrote: >> Hi Priit, >> >> This is showing from clock rate of 171428572 in the output of "cat >> /sys/kernel/debug/clk/clk_summary" for pll-per

Re: [linux-sunxi] [PATCH v4 1/6] clk: sunxi-ng: div: Add support for fixed post-divider

2017-06-25 Thread Jonathan Liu
Hi Priit, This is showing from clock rate of 171428572 in the output of "cat /sys/kernel/debug/clk/clk_summary" for pll-periph-sata. The clock rate should be 1 (100 MHz) when read from the hardware. On 26 June 2017 at 06:45, Priit Laes wrote: > SATA clock on sun4i/sun7i is of type (paren

[linux-sunxi] [PATCH v4] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-23 Thread Jonathan Liu
Exposing the DDC bus as an I2C adapter is more beneficial as it can be used for purposes other than reading the EDID such as modifying the EDID or using the HDMI DDC pins as an I2C bus through the I2C dev interface from userspace (e.g. i2c-tools). Implement this for A10s. Signed-off-by: Jo

[linux-sunxi] Re: [PATCH v3] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-23 Thread Jonathan Liu
Hi Maxime, On 22 June 2017 at 07:26, Maxime Ripard wrote: > On Wed, Jun 21, 2017 at 07:42:47PM +1000, Jonathan Liu wrote: >> >> +static int wait_fifo_flag_unset(struct sun4i_hdmi *hdmi, u32 flag) >> >> +{ >> >> + /* 1 byte takes 9 clock cycles (8 bit

[linux-sunxi] Re: [PATCH v3] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-21 Thread Jonathan Liu
Hi Maxime, On 21 June 2017 at 18:51, Maxime Ripard wrote: > On Thu, Jun 15, 2017 at 01:29:33AM +1000, Jonathan Liu wrote: >> The documentation for drm_do_get_edid in drivers/gpu/drm/drm_edid.c states: >> "As in the general case the DDC bus is accessible by the kernel at the I

[linux-sunxi] Re: [PATCH v2] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-21 Thread Jonathan Liu
Hi Maxime, On 21 June 2017 at 18:41, Maxime Ripard wrote: > On Tue, Jun 13, 2017 at 09:53:31PM +1000, Jonathan Liu wrote: >> >> --- /dev/null >> >> +++ b/drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c >> >> @@ -0,0 +1,163 @@ >> >

[linux-sunxi] [PATCH v3] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-14 Thread Jonathan Liu
Exposing the DDC bus as an I2C adapter is more beneficial as it can be used for purposes other than reading the EDID such as modifying the EDID or using the HDMI DDC pins as an I2C bus through the I2C dev interface from userspace (e.g. i2c-tools). Implement this for A10s. Signed-off-by: Jo

[linux-sunxi] [PATCH] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-14 Thread Jonathan Liu
Exposing the DDC bus as an I2C adapter is more beneficial as it can be used for purposes other than reading the EDID such as modifying the EDID or using the HDMI DDC pins as an I2C bus through the I2C dev interface from userspace (e.g. i2c-tools). Implement this for A10s. Signed-off-by: Jo

[linux-sunxi] Re: [PATCH v2] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-13 Thread Jonathan Liu
Hi Maxime, On 13 June 2017 at 21:15, Maxime Ripard wrote: > On Mon, Jun 12, 2017 at 03:52:35PM +1000, Jonathan Liu wrote: >> The drm_get_edid function should be used instead of drm_do_get_edid by >> exposing the DDC bus as an I2C adapter. Implement this for A10s. >> >&

[linux-sunxi] [PATCH v2] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-11 Thread Jonathan Liu
The drm_get_edid function should be used instead of drm_do_get_edid by exposing the DDC bus as an I2C adapter. Implement this for A10s. Signed-off-by: Jonathan Liu --- Changes for v2: - Rebased against Maxime's sunxi-drm/for-next branch - Fix up error paths in sun4i_hdmi_bind so that th

[linux-sunxi] Re: [PATCH] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-11 Thread Jonathan Liu
Hi Chen-Yu, On 12 June 2017 at 13:28, Chen-Yu Tsai wrote: > On Mon, Jun 12, 2017 at 10:12 AM, Jonathan Liu wrote: >> The drm_get_edid function should be used instead of drm_do_get_edid by >> exposing the DDC bus as an I2C adapter. Implement this for A10s. > > Nice! It is

[linux-sunxi] [PATCH] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-11 Thread Jonathan Liu
The drm_get_edid function should be used instead of drm_do_get_edid by exposing the DDC bus as an I2C adapter. Implement this for A10s. Signed-off-by: Jonathan Liu --- drivers/gpu/drm/sun4i/Makefile | 1 + drivers/gpu/drm/sun4i/sun4i_hdmi.h | 11 ++- drivers/gpu/drm/sun4i

Re: [linux-sunxi] [PATCH v2 1/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-04-22 Thread Jonathan Liu
Hi Priit, On 27 March 2017 at 04:20, Priit Laes wrote: > +static struct ccu_nkmp pll_ve_clk = { > + .enable = BIT(31), > + .n = _SUNXI_CCU_MULT_OFFSET(8, 5, 0), > + .k = _SUNXI_CCU_MULT(4, 2), > + .m = _SUNXI_CCU_DIV(0, 2), >

Re: [linux-sunxi] [PATCH v2 1/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-04-22 Thread Jonathan Liu
Hi Priit, On 27 March 2017 at 04:20, Priit Laes wrote: > Introduce a clock controller driver for sun4i A10 and sun7i A20 > series SoCs. > > Signed-off-by: Priit Laes > --- > drivers/clk/sunxi-ng/Kconfig | 13 +- > drivers/clk/sunxi-ng/Makefile |1 +- > dri

[linux-sunxi] [PATCH] ARM: sun7i: Enable audio codec on A20-OLinuXino-Micro

2017-02-10 Thread Jonathan Liu
The A20-OLinuXino-Micro has 3.5 mm sockets for headphone output and microphone input. Signed-off-by: Jonathan Liu --- arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts

Re: [linux-sunxi] Olimex A20 SOM EVB + DRM + LCD panel, a (someway working) experience..

2016-12-12 Thread Jonathan Liu
Hi Andrea, On 13 December 2016 at 09:15, Andrea Venturi wrote: > > > Il giorno lunedì 12 dicembre 2016 03:20:56 UTC+1, Jonathan Liu ha scritto: >> >> Hi Andrea, >> >> On 11 December 2016 at 22:48, Andrea Venturi >> wrote: >> >>> hello, >

Re: [linux-sunxi] Olimex A20 SOM EVB + DRM + LCD panel, a (someway working) experience..

2016-12-11 Thread Jonathan Liu
Hi Andrea, On 11 December 2016 at 22:48, Andrea Venturi wrote: > hello, > > this mail just to report an experience about using the DRM driver on sun7i > (Olimex A20 SOM EVB). let me start thanking all the guys doing the > "heavylifting" for this feature/driver. > > *TL;DR* i'll be very synthetic

Re: [linux-sunxi] [PATCH v5 3/4] Documentation: devicetree: add vendor prefix for Pine64

2016-10-20 Thread Jonathan Liu
On 21 October 2016 at 05:00, Maxime Ripard wrote: > From: Andre Przywara > > Signed-off-by: Andre Przywara > Acked-by: Rob Herring > Acked-by: Chen-Yu Tsai > [Maxime: Change title prefix to match the usual style] > Signed-off-by: Maxime Ripard > --- > Documentation/devicetree/bindings/vendor

[linux-sunxi] [PATCH] drm/sun4i: rgb: add missing calls to drm_panel_{prepare,unprepare}

2016-08-29 Thread Jonathan Liu
If the enable-gpios property of a simple panel in device tree is set, the GPIO is not toggled on/off because of missing calls to drm_panel_prepare and drm_panel_unprepare. Signed-off-by: Jonathan Liu --- drivers/gpu/drm/sun4i/sun4i_rgb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a

Re: [linux-sunxi] [PATCH 11/19] drm: sun4i: Add composite output

2015-11-01 Thread Jonathan Liu
On 31 October 2015 at 01:20, Maxime Ripard wrote: > Some Allwinner SoCs have an IP called the TV encoder that is used to output > composite and VGA signals. In such a case, we need to use the second TCON > channel. > > Add support for that TV encoder. > > Signed-off-by: Maxime Ripard > --- > dri

[linux-sunxi] [PATCH] ARM: sunxi_defconfig: enable MODULE_UNLOAD

2015-09-20 Thread Jonathan Liu
Loadable module support is enabled so we should allow unloading modules too. This also allows lsmod to show values other than "-2" in the "Used by" column. Signed-off-by: Jonathan Liu --- arch/arm/configs/sunxi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --gi

Re: [linux-sunxi] [PATCH v5 2/7] phy-sun4i-usb: Add extcon support for the otg phy (phy0)

2015-07-31 Thread Jonathan Liu
Hi Hans, On 13/06/2015 10:37 PM, Hans de Goede wrote: The sunxi musb glue needs to know if a host or normal usb cable is plugged in, add extcon support so that the musb glue can monitor the host status. Signed-off-by: Hans de Goede --- Changes in v5: -Split out of the "Add id and vbus detectio

[linux-sunxi] Re: [PATCH u-boot-sunxi] sunxi: use random parts of SID to set ethaddr

2014-06-07 Thread Jonathan Liu
On 27/05/2014 8:54 PM, Jonathan Liu wrote: Signed-off-by: Jonathan Liu --- board/sunxi/board.c| 28 include/configs/sunxi-common.h | 2 ++ 2 files changed, 30 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 6c362a3

[linux-sunxi] [PATCH u-boot-sunxi] sunxi: use random parts of SID to set ethaddr

2014-05-27 Thread Jonathan Liu
Signed-off-by: Jonathan Liu --- board/sunxi/board.c| 28 include/configs/sunxi-common.h | 2 ++ 2 files changed, 30 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 6c362a3..0db46b0 100644 --- a/board/sunxi/board.c +++ b/board

Re: [linux-sunxi] [RFC PATCH u-boot-sunxi] sunxi: use TWI1 for I2C outside of SPL for EEPROM access

2014-05-16 Thread Jonathan Liu
On 17/05/2014 12:01 AM, Hans de Goede wrote: Hi, On 05/16/2014 01:32 PM, Jonathan Liu wrote: This allows accessing the EEPROM on the Olimex A20-OLinuXino-MICRO using the i2c command. Signed-off-by: Jonathan Liu p.s. I don't know what you want this for, but if it is for the purpo

Re: [linux-sunxi] [RFC PATCH u-boot-sunxi] sunxi: use TWI1 for I2C outside of SPL for EEPROM access

2014-05-16 Thread Jonathan Liu
On 17/05/2014 12:01 AM, Hans de Goede wrote: Hi, On 05/16/2014 01:32 PM, Jonathan Liu wrote: This allows accessing the EEPROM on the Olimex A20-OLinuXino-MICRO using the i2c command. Signed-off-by: Jonathan Liu p.s. I don't know what you want this for, but if it is for the purpo

[linux-sunxi] [RFC PATCH u-boot-sunxi] sunxi: use TWI1 for I2C outside of SPL for EEPROM access

2014-05-16 Thread Jonathan Liu
This allows accessing the EEPROM on the Olimex A20-OLinuXino-MICRO using the i2c command. Signed-off-by: Jonathan Liu --- arch/arm/include/asm/arch-sunxi/gpio.h | 2 ++ arch/arm/include/asm/arch-sunxi/i2c.h | 4 board/sunxi/board.c| 6 ++ include/configs/sunxi

[linux-sunxi] Re: [PATCH] i2c-sunxi: use standard mode I2C speed of 100 kbit/s for I2C[1-4]

2014-04-22 Thread Jonathan Liu
On 20 March 2014 23:53, Jonathan Liu wrote: > Standard mode I2C speed is 100 kbit/s and should be used instead of > 200 kbit/s which is non-standard. > > Signed-off-by: Jonathan Liu > --- > arch/arm/plat-sunxi/include/plat/i2c.h | 8 > 1 file changed, 4 inser

[linux-sunxi] [PATCH] i2c-sunxi: use standard mode I2C speed of 100 kbit/s for I2C[1-4]

2014-03-20 Thread Jonathan Liu
Standard mode I2C speed is 100 kbit/s and should be used instead of 200 kbit/s which is non-standard. Signed-off-by: Jonathan Liu --- arch/arm/plat-sunxi/include/plat/i2c.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/plat-sunxi/include/plat/i2c.h b/arch

Re: [linux-sunxi] [PATCH 3.4 v2] sunxi-hdmi: Add 2 pixelclock overrides for 1280x800 hdmi projectors

2014-02-28 Thread Jonathan Liu
actually make close to the real value. This commit adds the preferred EDID mode from 2 hdmi projectors to this table, so that sunxi-hdmi will work properly with these projectors. Reported-by: Jonathan Liu Tested-by: Jonathan Liu Signed-off-by: Hans de Goede --- drivers/video/sunxi/hdmi

[linux-sunxi] Re: [PATCH 3.4 v2] sunxi-hdmi: Add 2 pixelclock overrides for 1280x800 hdmi projectors

2014-02-23 Thread Jonathan Liu
he > real value. > > This commit adds the preferred EDID mode from 2 hdmi projectors to this > table, so that sunxi-hdmi will work properly with these projectors. > > Reported-by: Jonathan Liu > Tested-by: Jonathan Liu > Signed-off-by: Hans de Goede > --- > drivers/vid

[linux-sunxi] Re: [PATCH 3.4] sunxi-hdmi: Add 2 pixelclock overrides for 1280x800 hdmi projectors

2014-02-13 Thread Jonathan Liu
commit adds the preferred EDID mode from 2 hdmi projectors to this table, so that sunxi-hdmi will work properly with these projectors. Reported-by: Jonathan Liu Tested-by: Jonathan Liu Signed-off-by: Hans de Goede --- drivers/video/sunxi/hdmi/hdmi_edid.c | 4 +++- 1 file changed, 3 insertions