[linux-sunxi] [PATCH 2/3] tools: mkimage: Add Allwinner eGON support

2018-12-21 Thread Andre Przywara
So far we used the separate mksunxiboot tool for generating a bootable image for Allwinner SPLs, probably just for historical reasons. Use the mkimage framework to generate a so called eGON image the Allwinner BROM expects. The new image type is called "sunxi_egon", to differentiate it from the

[linux-sunxi] [PATCH 3/3] sunxi: Use mkimage -T sunxi_egon for SPL boot image generation

2018-12-21 Thread Andre Przywara
Switch the SPL boot image generation from using mksunxiboot to the new sunxi_egon format of mkimage. Verified to create identical results for all 144 Allwinner boards. Signed-off-by: Andre Przywara --- scripts/Makefile.spl | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[linux-sunxi] Re: [PATCH v3 3/9] ASoc: sun4i-i2s: Add 20, 24 and 32 bit support

2018-12-21 Thread Chen-Yu Tsai
On Sat, Dec 22, 2018 at 12:48 AM Chen-Yu Tsai wrote: > > On Fri, Dec 21, 2018 at 11:21 PM wrote: > > > > From: Marcus Cooper > > > > Extend the functionality of the driver to include support of 20 and > > 24 bits per sample for the earlier SoCs. > > > > Newer SoCs can also handle 32bit samples.

[linux-sunxi] Re: [PATCH v3 2/9] ASoC: sun4i-i2s: Add regmap field to sign extend sample

2018-12-21 Thread Chen-Yu Tsai
On Fri, Dec 21, 2018 at 11:21 PM wrote: > > From: Marcus Cooper > > On the newer SoCs this is set by default to transfer a 0 after > each sample in each slot. Add the regmap field to configure this > and set it so that it pads the sample with 0s. > > Signed-off-by: Marcus Cooper The code

[linux-sunxi] [PATCH] media: sunxi: cedrus: Fix missing error message context

2018-12-21 Thread megous via linux-sunxi
From: Ondrej Jirman When cedrus_hw_probe is called, v4l2_dev is not yet initialized. Use dev_err instead. Signed-off-by: Ondrej Jirman --- .../staging/media/sunxi/cedrus/cedrus_hw.c| 28 +-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[linux-sunxi] Re: [PATCH v3 4/9] ASoC: sun4i-i2s: Fix offset mask

2018-12-21 Thread Chen-Yu Tsai
On Fri, Dec 21, 2018 at 11:21 PM wrote: > > From: Marcus Cooper > > Also add offset to RX channel select > > Signed-off-by: Marcus Cooper Commit log seems a bit lacking. You could probably explain how you found this, either when comparing datasheet macros, or some actual error manifested and

[linux-sunxi] Re: [PATCH v3 3/9] ASoc: sun4i-i2s: Add 20, 24 and 32 bit support

2018-12-21 Thread Chen-Yu Tsai
On Fri, Dec 21, 2018 at 11:21 PM wrote: > > From: Marcus Cooper > > Extend the functionality of the driver to include support of 20 and > 24 bits per sample for the earlier SoCs. > > Newer SoCs can also handle 32bit samples. > > Signed-off-by: Marcus Cooper > --- > sound/soc/sunxi/sun4i-i2s.c

[linux-sunxi] Re: [PATCH v3 1/9] ASoC: sun4i-i2s: Adjust regmap settings

2018-12-21 Thread Chen-Yu Tsai
On Fri, Dec 21, 2018 at 11:21 PM wrote: > > From: Marcus Cooper > > Bypass the regmap cache when flushing the i2s FIFOs and modify the tables > to reflect this. > > Signed-off-by: Marcus Cooper > --- > sound/soc/sunxi/sun4i-i2s.c | 29 + > 1 file changed, 9

[linux-sunxi] [PATCH v3 5/9] ASoC: sun4i-i2s: Correct divider calculations

2018-12-21 Thread codekipper
From: Marcus Cooper The clock division circuitry is different on the H3 and later SoCs. The division of bclk is now based on pll2. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 82 + 1 file changed, 56 insertions(+), 26 deletions(-) diff

[linux-sunxi] [PATCH v3 7/9] ASoC: sun4i-i2s: Do not divide clocks when slave

2018-12-21 Thread codekipper
From: Marcus Cooper There is no need to set the clock and calculate the division of the audio pll for the bclk and sync signals when they are not required. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 144 +++- 1 file changed, 77

[linux-sunxi] [PATCH v3 2/9] ASoC: sun4i-i2s: Add regmap field to sign extend sample

2018-12-21 Thread codekipper
From: Marcus Cooper On the newer SoCs this is set by default to transfer a 0 after each sample in each slot. Add the regmap field to configure this and set it so that it pads the sample with 0s. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 15 +++ 1 file changed,

[linux-sunxi] [PATCH v3 3/9] ASoc: sun4i-i2s: Add 20, 24 and 32 bit support

2018-12-21 Thread codekipper
From: Marcus Cooper Extend the functionality of the driver to include support of 20 and 24 bits per sample for the earlier SoCs. Newer SoCs can also handle 32bit samples. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 41 ++--- 1 file changed,

[linux-sunxi] [PATCH v3 4/9] ASoC: sun4i-i2s: Fix offset mask

2018-12-21 Thread codekipper
From: Marcus Cooper Also add offset to RX channel select Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index adb988ae9ac5..93a484d7e228 100644 ---

[linux-sunxi] [PATCH v3 6/9] ASoC: sun4i-i2s: Add multi-lane functionality

2018-12-21 Thread codekipper
From: Marcus Cooper The i2s block supports multi-lane i2s output however this functionality is only possible in earlier SoCs where the pins are exposed and for the i2s block used for HDMI audio on the later SoCs. To enable this functionality, an optional property has been added to the bindings.

[linux-sunxi] [PATCH v3 8/9] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2018-12-21 Thread codekipper
From: Marcus Cooper Some codecs require a different amount of a bit clocks per frame than what is calculated by the sample width. Use the tdm slot bindings to provide this mechanism. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 22 -- 1 file changed, 20

[linux-sunxi] [PATCH v3 9/9] ASoC: sun4i-i2s: Add multichannel functionality

2018-12-21 Thread codekipper
From: Marcus Cooper The i2s block can be used to pass PCM data over multiple channels and is sometimes used for the audio side of an HDMI connection. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 121 +++- 1 file changed, 64 insertions(+), 57

[linux-sunxi] [PATCH v3 1/9] ASoC: sun4i-i2s: Adjust regmap settings

2018-12-21 Thread codekipper
From: Marcus Cooper Bypass the regmap cache when flushing the i2s FIFOs and modify the tables to reflect this. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 29 + 1 file changed, 9 insertions(+), 20 deletions(-) diff --git

[linux-sunxi] [PATCH v3 0/9] ASoC: sun4i-i2s: Updates to the driver

2018-12-21 Thread codekipper
From: Marcus Cooper Hi All, here is a patch series to add some improvements to the sun4i-i2s driver found whilst getting slave clocking and hdmi audio working on the newer SoCs. Since the last push there has been some activity getting surround sound working and this is included. The

[linux-sunxi] Re: [PATCH v5 2/6] media: sun6i: Add mod_rate quirk

2018-12-21 Thread Maxime Ripard
On Thu, Dec 20, 2018 at 06:24:34PM +0530, Jagan Teki wrote: > Unfortunately default CSI_SCLK rate cannot work properly to > drive the connected sensor interface, particularly on few > Allwinner SoC's like A64. > > So, add mod_rate quirk via driver data so-that the respective > SoC's which require

Re: [linux-sunxi] Re: [PATCH v2 1/8] mfd: axp20x: name voltage ramping define properly

2018-12-21 Thread Lee Jones
On Fri, 21 Dec 2018, Priit Laes wrote: > On Fri, Dec 21, 2018 at 09:26:58AM +, Lee Jones wrote: > > On Fri, 21 Dec 2018, Priit Laes wrote: > > > > > On Fri, Dec 21, 2018 at 08:39:27AM +, Lee Jones wrote: > > > > On Tue, 11 Dec 2018, Priit Laes wrote: > > > > > > > > > From: Olliver

Re: [linux-sunxi] Re: [PATCH v2 1/8] mfd: axp20x: name voltage ramping define properly

2018-12-21 Thread Priit Laes
On Fri, Dec 21, 2018 at 09:26:58AM +, Lee Jones wrote: > On Fri, 21 Dec 2018, Priit Laes wrote: > > > On Fri, Dec 21, 2018 at 08:39:27AM +, Lee Jones wrote: > > > On Tue, 11 Dec 2018, Priit Laes wrote: > > > > > > > From: Olliver Schinagl > > > > > > > > The current axp20x names the

Re: [linux-sunxi] Re: [PATCH v2 1/8] mfd: axp20x: name voltage ramping define properly

2018-12-21 Thread Lee Jones
On Fri, 21 Dec 2018, Priit Laes wrote: > On Fri, Dec 21, 2018 at 08:39:27AM +, Lee Jones wrote: > > On Tue, 11 Dec 2018, Priit Laes wrote: > > > > > From: Olliver Schinagl > > > > > > The current axp20x names the ramping register 'scal' which probably > > > means scaling. Since the

Re: [linux-sunxi] Re: [PATCH v2 1/8] mfd: axp20x: name voltage ramping define properly

2018-12-21 Thread Priit Laes
On Fri, Dec 21, 2018 at 08:39:27AM +, Lee Jones wrote: > On Tue, 11 Dec 2018, Priit Laes wrote: > > > From: Olliver Schinagl > > > > The current axp20x names the ramping register 'scal' which probably > > means scaling. Since the register really has nothing to do with > > scaling, but