[PATCH 2/2] ARM: meson: remove COMMON_CLK_AMLOGIC selection

2019-01-28 Thread Jerome Brunet
Selecting COMMON_CLK_AMLOGIC is not required as it is already selected by the SoC clock controller driver Signed-off-by: Jerome Brunet --- arch/arm/mach-meson/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-meson/Kconfig b/arch/arm/mach-meson/Kconfig index b16831697183

[PATCH 0/2] ARM: meson: do not select COMMON_CLK_AMLOGIC

2019-01-28 Thread Jerome Brunet
to remove it. [0]: https://lkml.kernel.org/r/20190128180430.28689-1-jbru...@baylibre.com Jerome Brunet (2): arm64: meson: remove COMMON_CLK_AMLOGIC selection ARM: meson: remove COMMON_CLK_AMLOGIC selection arch/arm/mach-meson/Kconfig | 1 - arch/arm64/Kconfig.platforms | 1 - 2 files changed, 2

[PATCH v2 0/2] reset: meson: add g12a SoC support

2019-01-28 Thread Jerome Brunet
This patchset adds new dt-bindings for the reset lines of amlogic g12a SoC and the related compatible in the driver. Changes since v1 [0]: * Correct patch 2 commit message. [0]: https://lkml.kernel.org/r/20190128141330.21927-1-jbru...@baylibre.com Jerome Brunet (2): dt-bindings: reset: meson

[PATCH v2 1/2] dt-bindings: reset: meson: add g12a bindings

2019-01-28 Thread Jerome Brunet
Add device tree bindings for the reset controller of g12a SoC family. Acked-by: Neil Armstrong Signed-off-by: Jerome Brunet --- .../bindings/reset/amlogic,meson-reset.txt| 7 +- .../reset/amlogic,meson-g12a-reset.h | 134 ++ 2 files changed, 139 insertions(+), 2

[PATCH v2 2/2] reset: meson: add g12a compatible string

2019-01-28 Thread Jerome Brunet
Add a compatible for the new g12a SoC family. Tested-by: Neil Armstrong Signed-off-by: Jerome Brunet --- drivers/reset/reset-meson.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index 5242e0679df7..a8f6549b3af4 100644

[PATCH 12/14] clk: meson: clkc must die

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-aoclk.c | 1 - drivers/clk/meson/axg.c | 1 - drivers/clk/meson/clkc-audio.h | 3 ++- drivers/clk/meson/clkc.h| 17 - drivers/clk/meson/gxbb-aoclk.c | 1 - drivers/clk/meson/gxbb.c| 1

[PATCH 07/14] clk: meson: take the mpll driver out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 1 + drivers/clk/meson/clk-mpll.c | 12 +++- drivers/clk/meson/clk-mpll.h | 30 ++ drivers/clk/meson/clkc.h | 14 -- drivers/clk/meson/gxbb.c | 1 + drivers/clk/meson

[PATCH 09/14] clk: meson: take vid-pll-div out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/clkc.h| 6 -- drivers/clk/meson/gxbb.c| 1 + drivers/clk/meson/vid-pll-div.c | 10 +- drivers/clk/meson/vid-pll-div.h | 20 4 files changed, 30 insertions(+), 7 deletions(-) create mode 100644

[PATCH 05/14] clk: meson: move parm out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/clkc.h | 34 + drivers/clk/meson/parm.h | 46 2 files changed, 47 insertions(+), 33 deletions(-) create mode 100644 drivers/clk/meson/parm.h diff --git a/drivers/clk/meson

[PATCH 02/14] clk: meson: use CONFIG_ARCH_MESON to enter meson clk directory

2019-01-28 Thread Jerome Brunet
Use CONFIG_ARCH_MESON to let make enter the meson clock directory. As part of a rework, CONFIG_COMMON_CLK_AMLOGIC is about to be removed. Signed-off-by: Jerome Brunet --- drivers/clk/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/Makefile b/drivers/clk

[PATCH 06/14] clk: meson: take the pll driver out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 1 + drivers/clk/meson/clk-pll.c | 13 +++ drivers/clk/meson/clk-pll.h | 43 + drivers/clk/meson/clkc.h| 30 -- drivers/clk/meson/gxbb.c| 1 + drivers/clk

[PATCH 01/14] clk: export some clk_hw function symbols for module drivers

2019-01-28 Thread Jerome Brunet
clk-provider.h provides clk_hw_is_prepared(), clk_hw_is_enabled() and clk_hw_is_prepared() but these symbols are not exported for the modules which prevents a clock driver using them to be compiled as a module. Export them to fix the problem. Signed-off-by: Jerome Brunet --- drivers/clk/clk.c

[PATCH 13/14] clk: meson: move sclk-div out of clkc-audio

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-audio.c | 2 +- drivers/clk/meson/sclk-div.c | 9 - drivers/clk/meson/{clkc-audio.h => sclk-div.h} | 6 +++--- 3 files changed, 12 insertions(+), 5 deletions(-) rename drivers/clk/meson/{c

[PATCH 11/14] clk: meson: take clk-input out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-audio.c | 1 + drivers/clk/meson/axg.c | 1 + drivers/clk/meson/clk-input.c | 7 ++- drivers/clk/meson/clk-input.h | 19 +++ drivers/clk/meson/clkc.h| 5 - drivers/clk/meson/gxbb.c

[PATCH 14/14] clk: meson: rework and clean drivers dependencies

2019-01-28 Thread Jerome Brunet
. Signed-off-by: Jerome Brunet --- drivers/clk/meson/Kconfig | 82 +++--- drivers/clk/meson/Makefile | 21 ++ 2 files changed, 71 insertions(+), 32 deletions(-) diff --git a/drivers/clk/meson/Kconfig b/drivers/clk/meson/Kconfig index 2479dab09d70..f2e757aea4f1

[PATCH 08/14] clk: meson: merge phase driver and remove from clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/axg-audio.c| 2 + drivers/clk/meson/clk-phase.c| 75 +--- drivers/clk/meson/clk-phase.h| 26 +++ drivers/clk/meson/clk-triphase.c | 68

[PATCH 10/14] clk: meson: take dualdiv out of clkc

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-aoclk.c | 3 +++ drivers/clk/meson/clk-dualdiv.c | 10 +- drivers/clk/meson/clk-dualdiv.h | 33 + drivers/clk/meson/clkc.h| 19 --- drivers/clk/meson/gxbb-aoclk.c | 3

[PATCH 04/14] clk: meson: move MESON_GATE to clk-regmap.h

2019-01-28 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c| 1 + drivers/clk/meson/clk-regmap.c | 5 + drivers/clk/meson/clk-regmap.h | 15 +++ drivers/clk/meson/clkc.h | 15 --- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/drivers

[PATCH 03/14] clk: meson: axg-audio does not require syscon

2019-01-28 Thread Jerome Brunet
The axg audio clock controller uses regmap mmio, not syscon. Fixes: 1cd50181750f ("clk: meson: axg: add the audio clock controller driver") Signed-off-by: Jerome Brunet --- drivers/clk/meson/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson

[PATCH 00/14] clk: meson: rework drivers dependencies

2019-01-28 Thread Jerome Brunet
, Patch 4 to 14 should be squashed, keeping the commit message of patch 14. Jerome Brunet (14): clk: export some clk_hw function symbols for module drivers clk: meson: use CONFIG_ARCH_MESON to enter meson clk directory clk: meson: axg-audio does not require syscon clk: meson: move MESON_GATE

[PATCH 1/2] dt-bindings: reset: meson: add g12a bindings

2019-01-28 Thread Jerome Brunet
Add device tree bindings for the reset controller of g12a SoC family. Signed-off-by: Jerome Brunet --- .../bindings/reset/amlogic,meson-reset.txt| 7 +- .../reset/amlogic,meson-g12a-reset.h | 134 ++ 2 files changed, 139 insertions(+), 2 deletions(-) create mode

[PATCH 2/2] reset: meson: add g12a and generic compatible string

2019-01-28 Thread Jerome Brunet
Add a compatible for the new g12a SoC family. Signed-off-by: Jerome Brunet --- drivers/reset/reset-meson.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index 5242e0679df7..a8f6549b3af4 100644 --- a/drivers/reset/reset-meson.c

[PATCH 0/2] reset: meson: add g12a SoC support

2019-01-28 Thread Jerome Brunet
This patchset adds new dt-bindings for the reset lines of amlogic g12a SoC and the related compatible in the driver. Jerome Brunet (2): dt-bindings: reset: meson: add g12a bindings reset: meson: add g12a and generic compatible string .../bindings/reset/amlogic,meson-reset.txt| 7

Re: [PATCH v9 3/4] clk: meson: add DT documentation for emmc clock controller

2019-01-22 Thread Jerome Brunet
On Tue, 2019-01-08 at 21:50 +0800, Jianxin Pan wrote: > From: Yixun Lan > > Document the MMC sub clock controller driver, the potential consumer > of this driver is MMC or NAND. Also add four clock bindings IDs which > provided by this driver. > > Reviewed-by: Rob Herring > Signed-off-by:

Re: [PATCH v9 4/4] clk: meson: add sub MMC clock controller driver

2019-01-22 Thread Jerome Brunet
--git a/drivers/clk/meson/mmc-clkc.c b/drivers/clk/meson/mmc-clkc.c > new file mode 100644 > index 000..2582a98 > --- /dev/null > +++ b/drivers/clk/meson/mmc-clkc.c > @@ -0,0 +1,304 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Amlogic Meson MMC Sub Clock Co

Re: [PATCH v9 1/4] clk: meson: add one based divider support for sclk divider

2019-01-22 Thread Jerome Brunet
> const char *clk_name, > unsigned long flags); > - > #endif /* __CLKC_H */ > diff --git a/drivers/clk/meson/sclk-div.c b/drivers/clk/meson/sclk-div.c > index bc64019..a6c425b 100644 > --- a/drive

Re: [PATCH 0/2] arm64: dts: meson: g12a: enable pinctrl

2019-01-21 Thread Jerome Brunet
On Thu, 2019-01-17 at 11:31 +0100, Jerome Brunet wrote: > This patchset enables pinctrl on the g12a and adds the necessary > pinctrl settings to the u200 uart > > Kevin, please note that this patchset depends on the: > * dts bus fixup: [0] > * pinctrl region fixes [1

Re: [PATCH 0/3] pinctrl: meson: g12a fixes

2019-01-21 Thread Jerome Brunet
On Mon, 2019-01-21 at 14:53 +0100, Linus Walleij wrote: > On Thu, Jan 17, 2019 at 11:23 AM Jerome Brunet wrote: > > > This patchset fixes the initial pinctrl support added for th g12a SoC > > family, which is mainly around the register regions claimed by the > > drive

Re: [PATCH] arm64: dts: meson: fix g12a buses

2019-01-18 Thread Jerome Brunet
On Sat, 2019-01-19 at 02:09 +0800, Jianxin Pan wrote: > Hi Martin and Jerome, > > On 2019/1/18 5:20, Martin Blumenstingl wrote: > > On Thu, Jan 17, 2019 at 9:39 PM Jerome Brunet > > wrote: > > > On Thu, 2019-01-17 at 21:27 +0100, Martin Blumenstingl wrote: &g

[PATCH v2 4/4] arm64: dts: meson: g12a: add clk measure support

2019-01-18 Thread Jerome Brunet
Add the clock measure device to the g12a SoC family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index bd24de947a5b

[PATCH v2 2/4] soc: amlogic: clk-measure: add axg and g12a support

2019-01-18 Thread Jerome Brunet
Add support for the axg and g12a SoC family in amlogic clk measure Signed-off-by: Jerome Brunet --- drivers/soc/amlogic/meson-clk-measure.c | 194 1 file changed, 194 insertions(+) diff --git a/drivers/soc/amlogic/meson-clk-measure.c b/drivers/soc/amlogic/meson-clk

[PATCH v2 1/4] dt-bindings: amlogic: add new compatible devices to clk_measure

2019-01-18 Thread Jerome Brunet
Add the axg and g12a SoC family compatible to the clock measure bindings Signed-off-by: Jerome Brunet --- Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt b

[PATCH v2 3/4] arm64: dts: meson: axg: add clk measure support

2019-01-18 Thread Jerome Brunet
Add the clock measure device to the axg SoC family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index f044473dc7d0

[PATCH v2 0/4] soc: amlogic: clk-measure: add axg and g12a support

2019-01-18 Thread Jerome Brunet
This patchset adds support for the axg and g12a SoC family in amlogic's clock measure driver and enable it on the related devices Changes since v1 [0]: * re-order node in the g12a.dtsi * change node name [0]: https://lkml.kernel.org/r/20190117164838.8008-1-jbru...@baylibre.com Jerome Brunet (4

Re: [PATCH 3/4] arm64: dts: meson: axg: add clk measure support

2019-01-17 Thread Jerome Brunet
On Thu, 2019-01-17 at 20:57 +0100, Martin Blumenstingl wrote: > Hi Jerome, > > On Thu, Jan 17, 2019 at 5:48 PM Jerome Brunet wrote: > > Add the clock measure device to the axg SoC family > > > > Signed-off-by: Jerome Brunet > > --- > > arch/ar

Re: [PATCH] arm64: dts: meson: fix g12a buses

2019-01-17 Thread Jerome Brunet
On Thu, 2019-01-17 at 23:42 +0100, Martin Blumenstingl wrote: > On Thu, Jan 17, 2019 at 10:45 PM Jerome Brunet wrote: > > On Thu, 2019-01-17 at 22:20 +0100, Martin Blumenstingl wrote: > > > On Thu, Jan 17, 2019 at 9:39 PM Jerome Brunet > > > wrote: > > >

Re: [PATCH] arm64: dts: meson: fix g12a buses

2019-01-17 Thread Jerome Brunet
On Thu, 2019-01-17 at 22:20 +0100, Martin Blumenstingl wrote: > On Thu, Jan 17, 2019 at 9:39 PM Jerome Brunet wrote: > > On Thu, 2019-01-17 at 21:27 +0100, Martin Blumenstingl wrote: > > > OK, but we had incorrect documentation in the past. did you check this > > >

Re: [PATCH] arm64: dts: meson: fix g12a buses

2019-01-17 Thread Jerome Brunet
On Thu, 2019-01-17 at 21:27 +0100, Martin Blumenstingl wrote: > OK, but we had incorrect documentation in the past. did you check this > with someone from Amlogic? > > I'm curious because there seem to be two different approaches here: > 1) hiubus name and offsets are being fixed within this

Re: [PATCH] arm64: dts: meson: fix g12a buses

2019-01-17 Thread Jerome Brunet
On Thu, 2019-01-17 at 21:03 +0100, Martin Blumenstingl wrote: > Hi Jerome, > > On Wed, Jan 16, 2019 at 5:52 PM Jerome Brunet wrote: > [...] > > - aobus: bus@ff80 { > > - compatible = "simple-bus"; > > -

Re: [PATCH 4/4] arm64: dts: meson: g12a: add clk measure support

2019-01-17 Thread Jerome Brunet
On Thu, 2019-01-17 at 17:48 +0100, Jerome Brunet wrote: > Add the clock measure device to the g12a SoC family > > Signed-off-by: Jerome Brunet > --- > arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm6

[PATCH 4/4] arm64: dts: meson: g12a: add clk measure support

2019-01-17 Thread Jerome Brunet
Add the clock measure device to the g12a SoC family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index bd24de947a5b

[PATCH 2/4] soc: amlogic: clk-measure: add axg and g12a support

2019-01-17 Thread Jerome Brunet
Add support for the axg and g12a SoC family in amlogic clk measure Signed-off-by: Jerome Brunet --- drivers/soc/amlogic/meson-clk-measure.c | 194 1 file changed, 194 insertions(+) diff --git a/drivers/soc/amlogic/meson-clk-measure.c b/drivers/soc/amlogic/meson-clk

[PATCH 3/4] arm64: dts: meson: axg: add clk measure support

2019-01-17 Thread Jerome Brunet
Add the clock measure device to the axg SoC family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index 0e0abb1a03e2

[PATCH 1/4] dt-bindings: amlogic: add new compatible devices to clk_measure

2019-01-17 Thread Jerome Brunet
Add the axg and g12a SoC family compatible to the clock measure bindings Signed-off-by: Jerome Brunet --- Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt b

[PATCH 0/4] soc: amlogic: clk-measure: add axg and g12a support

2019-01-17 Thread Jerome Brunet
This patchset adds support for the axg and g12a SoC family in amlogic's clock measure driver and enable it on the related devices Jerome Brunet (4): dt-bindings: amlogic: add new compatible devices to clk_measure soc: amlogic: clk-measure: add axg and g12a support arm64: dts: meson: axg

[PATCH 0/2] arm64: dts: meson: g12a: enable pinctrl

2019-01-17 Thread Jerome Brunet
://lkml.kernel.org/r/20190117102315.1833-1-jbru...@baylibre.com Cheers. Jerome Brunet (2): arm64: dts: meson: g12a: add pinctrl support controllers arm64: dts: meson: g12a: add uart_ao_a pinctrl .../boot/dts/amlogic/meson-g12a-u200.dts | 2 + arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 67

[PATCH 2/2] arm64: dts: meson: g12a: add uart_ao_a pinctrl

2019-01-17 Thread Jerome Brunet
Add the always on UART pinctrl setting to the g12a soc DT and use it for the u200 reference design Signed-off-by: Jerome Brunet --- .../arm64/boot/dts/amlogic/meson-g12a-u200.dts | 2 ++ arch/arm64/boot/dts/amlogic/meson-g12a.dtsi| 18 ++ 2 files changed, 20 insertions

[PATCH 1/2] arm64: dts: meson: g12a: add pinctrl support controllers

2019-01-17 Thread Jerome Brunet
Add the peripheral and always-on pinctrl controllers to the g12a soc. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 49 + 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts

[PATCH 2/3] pinctrl: meson: fix G12A ao pull registers base address

2019-01-17 Thread Jerome Brunet
nd ao pull registers use the same base address, but can be identified by the offset. Fixes: 29ae0952e85f ("pinctrl: meson-g12a: add pinctrl driver support") Signed-off-by: Xingyu Chen Signed-off-by: Jianxin Pan Signed-off-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson.c | 22

[PATCH 1/3] dt-bindings: pinctrl: meson: update register descriptions

2019-01-17 Thread Jerome Brunet
ve to look at this again Fixes: 3cd3c83f6752 ("pinctrl: Add compatibles for Amlogic Meson G12A pin controllers") Signed-off-by: Jerome Brunet --- .../devicetree/bindings/pinctrl/meson,pinctrl.txt | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation

[PATCH 3/3] pinctrl: meson: add optional region for drive strength

2019-01-17 Thread Jerome Brunet
On the G12a, there is a new 'region' to handle the drive-strength. This is optional since the older do not have this. Fixes: 29ae0952e85f ("pinctrl: meson-g12a: add pinctrl driver support") Signed-off-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson.c | 6 ++ drivers/pin

[PATCH 0/3] pinctrl: meson: g12a fixes

2019-01-17 Thread Jerome Brunet
by the bootloader. Enabling the broken pinctrl driver could cause regressions in kernelCI. Having a tag, would allow us to start using pinctrl on this SoC in this cycle, w/o regression. It would be nice :) Jerome Jerome Brunet (2): dt-bindings: pinctrl: meson: update register descriptions

[PATCH] arm64: dts: meson-axg: add efuse device

2019-01-17 Thread Jerome Brunet
Add efuse to the AXG family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index ae336cb34e29..0e0abb1a03e2 100644

[PATCH] arm64: dts: meson: s400: fix emmc maximum rate

2019-01-16 Thread Jerome Brunet
Limiting the HS200 rate on the s400 was just a way to mask that the tuning setting were not correct. This seems to have been fixed with the recent MMC driver update. We can now use HS200 at full speed. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 3 +-- 1

[PATCH] arm64: dts: meson: s400: enable sdr104 on sdio

2019-01-16 Thread Jerome Brunet
The bcm wifi/bt device on SDIO support SDR104 and it seems to work well following the recent mmc driver update, so enable this ultra high speed mode Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH 3/3] clk: meson: ao-clkc: claim clock controller input clocks from DT

2019-01-16 Thread Jerome Brunet
Instead of relying on a fixed names for the differents input clocks of the controller, get them through DT. Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-aoclk.c | 22 +++- drivers/clk/meson/gxbb-aoclk.c | 25 -- drivers/clk/meson/meson-aoclk.c

[PATCH 0/3] clk: meson: claim input clocks through DT

2019-01-16 Thread Jerome Brunet
Following the preparation series [0] sent in the last cycle, this patchset adds clock input claim through DT in the gxbb and axg clock controllers [0]: https://lkml.kernel.org/r/20181203171640.12110-1-jbru...@baylibre.com Jerome Brunet (3): clk: meson: gxbb: claim clock controller input clock

[PATCH 1/3] clk: meson: gxbb: claim clock controller input clock from DT

2019-01-16 Thread Jerome Brunet
Instead of relying on a fixed name for the xtal clock, claim the controller input clock trough DT. Signed-off-by: Jerome Brunet --- drivers/clk/meson/gxbb.c | 37 - 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/drivers/clk/meson/gxbb.c b

[PATCH 2/3] clk: meson: axg: claim clock controller input clock from DT

2019-01-16 Thread Jerome Brunet
Instead of relying on a fixed name for the xtal clock, claim the controller input clock trough DT. Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/clk/meson/axg.c b/drivers/clk

[PATCH] arm64: dts: meson: fix g12a buses

2019-01-16 Thread Jerome Brunet
periph and hiu bus addresses/size are wrong. cbus, aobus and apb just don't exist in the memory map so remove them. Fixes: 9c8c52f7cb4f ("arm64: dts: meson-g12a: add initial g12a s905d2 SoC DT support") Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a

[PATCH] dt-bindings: reset: meson-axg: fix SPDX license id

2019-01-16 Thread Jerome Brunet
As reported, the SPDX license id is not placed correctly and the variant of the BSD License used should be specified. Fixes: c16292578ffa ("dt-bindings: reset: Add bindings for the Meson-AXG SoC Reset Controller") Reported-by: Thomas Gleixner Signed-off-by: Jerome Brunet -

Re: [PATCH] arm64: defconfig: enable modules for amlogic s400 sound card

2019-01-07 Thread Jerome Brunet
On Wed, 2018-09-12 at 21:49 -0700, Kevin Hilman wrote: > Jerome Brunet writes: > > > Compile the necessary drivers as modules, including codecs, for the > > s400 sound card. > > > > Signed-off-by: Jerome Brunet > > Applied to v4.20/defconfig. Hi Kevin,

Re: [PATCH 0/4] mmc: meson-gx: chained descriptor fixup and improvements

2019-01-02 Thread Jerome Brunet
On Sat, 2018-12-22 at 18:28 +0100, Martin Blumenstingl wrote: > Hi Jerome, > > On Thu, Dec 6, 2018 at 4:18 PM Jerome Brunet wrote: > > The goal of the patchset was mainly to address the following warning: > > > > WARNING: CPU: 0 PID: 0 at /usr/src/kernel/drivers/m

Re: [PATCH 2/2] arm64: dts: meson: libretech-cc: switch eMMC to 1.8v

2019-01-02 Thread Jerome Brunet
On Sat, 2018-12-22 at 18:01 +0100, Martin Blumenstingl wrote: > Hi Jerome, > > On Thu, Dec 20, 2018 at 5:11 PM Jerome Brunet wrote: > > While some 3.3v eMMC 4.0 are available from libretech, the default > > option for the aml-s905x-cc seems to 1.8v 5.0 modules. > nit-pick

[PATCH] driver core: silence device link messages unless debugging

2018-12-21 Thread Jerome Brunet
related issues, so dev_dbg() looks more appropriate than dev_info(). Signed-off-by: Jerome Brunet --- drivers/base/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 04bbcd779e11..8d330f921ad7 100644 --- a/drivers/base

[PATCH v2 4/5] clk: meson: gxbb-ao: replace cec-32k with the dual divider

2018-12-21 Thread Jerome Brunet
Replace the cec-32k clock of gxbb-ao with the simpler dual divider driver. The dual divider implements only the dividing part. All the other bits are now exposed using simple elements, such as gates and muxes Signed-off-by: Jerome Brunet --- drivers/clk/meson/Makefile | 2 +- drivers

Re: [PATCH] Revert "clk: fix __clk_init_parent() for single parent clocks"

2018-12-21 Thread Jerome Brunet
On Mon, 2018-12-17 at 17:54 -0800, Stephen Boyd wrote: > Quoting Jerome Brunet (2018-12-07 02:03:19) > > On Thu, 2018-12-06 at 14:08 -0800, Stephen Boyd wrote: > > > Sorry this email is long. > > > > I tried reply the best I could to your use cases > > >

[PATCH v2 1/5] dt-bindings: clk: meson: add ao slow clock path ids

2018-12-21 Thread Jerome Brunet
Add the CLKIDs for the slow clock generation path Reviewed-by: Rob Herring Signed-off-by: Jerome Brunet --- include/dt-bindings/clock/axg-aoclkc.h | 7 ++- include/dt-bindings/clock/gxbb-aoclkc.h | 7 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include/dt

[PATCH v2 5/5] clk: meson: axg-ao: add 32k generation subtree

2018-12-21 Thread Jerome Brunet
Add the clock subtree generating the 32k clock in amlogic axg ao block. Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-aoclk.c | 175 +++--- drivers/clk/meson/axg-aoclk.h | 13 +-- 2 files changed, 163 insertions(+), 25 deletions(-) diff --git a/drivers/clk

[PATCH v2 3/5] clk: meson: add dual divider clock driver

2018-12-21 Thread Jerome Brunet
Add the dual divider driver. This special divider make a weighted average between 2 dividers to reach fractional divider values. Signed-off-by: Jerome Brunet --- drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/clk-dualdiv.c | 130 drivers/clk/meson

[PATCH v2 2/5] clk: meson: clean-up clock registration

2018-12-21 Thread Jerome Brunet
Order, ids and size between the table of regmap clocks and the onecell data table could be different. Set regmap pointer in all the regmap clocks before starting the registration using the onecell data, to make sure we don't get into an incoherent situation. Signed-off-by: Jerome Brunet

[PATCH v2 0/5] clk: meson: axg: add 32k clock generation

2018-12-21 Thread Jerome Brunet
/20181204163257.32085-1-jbru...@baylibre.com [1]: https://lkml.kernel.org/r/20181204165310.20806-1-jbru...@baylibre.com Jerome Brunet (5): dt-bindings: clk: meson: add ao slow clock path ids clk: meson: clean-up clock registration clk: meson: add dual divider clock driver clk: meson: gxbb-ao

[PATCH 1/2] arm64: dts: meson: libretech-cc: set eMMC as removable

2018-12-20 Thread Jerome Brunet
The eMMC on this board is add-on module which is not mandatory. Removing 'non-removable' property should prevent some errors when booting a board w/o an eMMC module present. Fixes: 72fb2c852188 ("ARM64: dts: meson-gxl-s905x-libretech-cc: fixup board definition") Signed-off-by: Jer

[PATCH 0/2] arm64: dts: meson: libretech-cc: emmc update

2018-12-20 Thread Jerome Brunet
This patchset provides a couple of update for the eMMC on the libretech-cc It should remove some error message for those who don't have an eMMC module and improve the performance for those who do have one. Jerome Brunet (2): arm64: dts: meson: libretech-cc: set eMMC as removable arm64: dts

[PATCH 2/2] arm64: dts: meson: libretech-cc: switch eMMC to 1.8v

2018-12-20 Thread Jerome Brunet
While some 3.3v eMMC 4.0 are available from libretech, the default option for the aml-s905x-cc seems to 1.8v 5.0 modules. Signed-off-by: Jerome Brunet --- .../boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts| 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch

[PATCH] ASoC: meson: fix do_div warning in spdifin

2018-12-13 Thread Jerome Brunet
Even if this spdif input driver is only supposed to be used on 64bits platform, there is possible problem with 32bits and do_div, as reported by the kbuild robot. Just fix it. Fixes: 5ce5658375e6 ("ASoC: meson: add axg spdif input") Signed-off-by: Jerome Brunet --- Hi Mark,

Re: [PATCH v2 3/3] spi: meson-axg: add a linear clock divider support

2018-12-13 Thread Jerome Brunet
On Thu, 2018-12-13 at 22:37 +0800, Sunny Luo wrote: > Hi Jerome, > > On 2018/12/13 17:28, Jerome Brunet wrote: > > On Thu, 2018-12-13 at 09:55 +0100, Neil Armstrong wrote: > > > > diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig > > > > config S

[PATCH 2/3] arm64: dts: meson-axg: s400: add spdif-dir codec

2018-12-13 Thread Jerome Brunet
Add the SPDIF capture codec to the axg s400 board Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts index

[PATCH 3/3] arm64: dts: meson-axg: s400: add spdifin to the sound card

2018-12-13 Thread Jerome Brunet
Enable spdif input device on the S400 and add it to the card Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson

[PATCH 1/3] arm64: dts: meson-axg: add spdifin

2018-12-13 Thread Jerome Brunet
Add the SPDIF input device of the axg audio subsystem Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index

[PATCH 0/3] arm64: dts: meson-axg: add spdif input

2018-12-13 Thread Jerome Brunet
. [0]: https://lkml.kernel.org/r/20181213120843.876cb1125...@debutante.sirena.org.uk Jerome Brunet (3): arm64: dts: meson-axg: add spdifin arm64: dts: meson-axg: s400: add spdif-dir codec arm64: dts: meson-axg: s400: add spdifin to the sound card .../arm64/boot/dts/amlogic/meson-axg-s400.dts

Re: [PATCH v2 3/3] spi: meson-axg: add a linear clock divider support

2018-12-13 Thread Jerome Brunet
On Thu, 2018-12-13 at 09:55 +0100, Neil Armstrong wrote: > Hi Sunny, > > On 13/12/2018 09:39, Sunny Luo wrote: > > The SPICC controller in Meson-AXG SoC is capable of using > > a linear clock divider to reach a much fine tuned range of clocks, > > while the old controller only use a power of two

Re: [PATCH v2 2/3] spi: meson-axg: enhance output enable feature

2018-12-13 Thread Jerome Brunet
On Thu, 2018-12-13 at 16:39 +0800, Sunny Luo wrote: > The SPICC controller in Meson-AXG is capable of driving the CLK/MOSI/SS > signal lines through the idle state (between two transmission operation), > which avoid the signals floating in unexpected state. > > Signed-off-by: Sunny Luo >

Re: [PATCH RESEND v7 3/4] clk: meson: add sub MMC clock controller driver

2018-12-13 Thread Jerome Brunet
On Thu, 2018-12-13 at 12:55 +0800, Jianxin Pan wrote: > On 2018/12/12 0:59, Jerome Brunet wrote: > > On Tue, 2018-12-11 at 00:04 +0800, Jianxin Pan wrote: > > > From: Yixun Lan > > > > [...] > > > > > > +config COMMON_CLK_MMC_MESON > &g

Re: [PATCH RESEND v7 4/4] clk: meson: add one based divider support for sclk divider

2018-12-11 Thread Jerome Brunet
On Tue, 2018-12-11 at 00:04 +0800, Jianxin Pan wrote: > When CLK_DIVIDER_ONE_BASED flag is set, the sclk divider will be: > one based divider (div = val), and zero value gates the clock > > Signed-off-by: Jianxin Pan > --- > drivers/clk/meson/clkc-audio.h | 1 + > drivers/clk/meson/sclk-div.c

Re: [PATCH RESEND v7 3/4] clk: meson: add sub MMC clock controller driver

2018-12-11 Thread Jerome Brunet
ivers/clk/meson/mmc-clkc.c > @@ -0,0 +1,313 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Amlogic Meson MMC Sub Clock Controller Driver > + * > + * Copyright (c) 2017 Baylibre SAS. > + * Author: Jerome Brunet > + * > + * Copyright (c) 2018 Amlogic, inc. > +

Re: [PATCH RESEND v7 1/4] clk: meson: add emmc sub clock phase delay driver

2018-12-11 Thread Jerome Brunet
+ OR MIT) > +/* > + * Amlogic Meson MMC Sub Clock Controller Driver > + * > + * Copyright (c) 2017 Baylibre SAS. > + * Author: Jerome Brunet > + * > + * Copyright (c) 2018 Amlogic, inc. > + * Author: Yixun Lan > + * Author: Jianxin Pan > + */ > + > +#includ

Re: [PATCH v5 1/2] dt-bindings: clk: meson-g12a: Add G12A EE Clock Bindings

2018-12-11 Thread Jerome Brunet
On Thu, 2018-11-29 at 21:41 +0800, Jian Hu wrote: > Add new clock controller compatible and dt-bingdings headers > for the Everything-Else domain of the g12a SoC > > Signed-off-by: Jian Hu > --- > .../bindings/clock/amlogic,gxbb-clkc.txt | 1 + > include/dt-bindings/clock/g12a-clkc.h

[PATCH 1/4] ASoC: meson: axg-toddr: add support for spdifin backend

2018-12-11 Thread Jerome Brunet
the parity, user, channel status and validity bits. It is better to just provide the whole spdif subframe to the userspace and let the iec958 plugin deal with it. Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-fifo.h | 3 ++- sound/soc/meson/axg-toddr.c | 15 +-- 2 files changed, 7

[PATCH 2/4] ASoC: meson: add axg spdif input DT binding documentation

2018-12-11 Thread Jerome Brunet
Add the DT binding documentation for axg's SPDIF input. Signed-off-by: Jerome Brunet --- .../bindings/sound/amlogic,axg-spdifin.txt| 22 +++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/amlogic,axg-spdifin.txt diff --git

[PATCH 0/4] ASoC: meson: add axg spdif input support

2018-12-11 Thread Jerome Brunet
more eyes on this will help figure this out. Since I authored all Amlogic ASoC drivers (and the related bugs) merged so far, I have added myself as maintainer of them in the last patch of this series. Jerome Brunet (4): ASoC: meson: axg-toddr: add support for spdifin backend ASoC: meson: add axg

[PATCH 3/4] ASoC: meson: add axg spdif input

2018-12-11 Thread Jerome Brunet
Add support for the spdif input decoder of the axg SoC family Signed-off-by: Jerome Brunet --- sound/soc/meson/Kconfig | 9 +- sound/soc/meson/Makefile | 2 + sound/soc/meson/axg-spdifin.c | 521 ++ 3 files changed, 531 insertions(+), 1 deletion

[PATCH 4/4] MAINTAINERS: Add Amlogic sound drivers entry

2018-12-11 Thread Jerome Brunet
Add sound/soc/meson drivers entry for Amlogic audio drivers. Signed-off-by: Jerome Brunet --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7fe120fc25fa..e8e79713a790 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1310,6 +1310,13 @@ F

[PATCH] clk: meson: axg-audio: fix input clock name

2018-12-11 Thread Jerome Brunet
The name of input clock is not aligned with the rest of the tree Because of this, the audio peripheral clocks are orphaned. Fixes: 1222ab89328f ("clk: meson: axg-audio: use the clk input helper function") Signed-off-by: Jerome Brunet --- Neil, Feel free to squash this with commit 12

Re: [PATCH 0/4] mmc: meson-gx: chained descriptor fixup and improvements

2018-12-07 Thread Jerome Brunet
On Thu, 2018-12-06 at 20:14 -0800, Kevin Hilman wrote: > Jerome Brunet writes: > > > The goal of the patchset was mainly to address the following warning: > > > > WARNING: CPU: 0 PID: 0 at /usr/src/kernel/drivers/mmc/host/meson-gx- > > mmc.c:1025 meson_mmc_irq

Re: [PATCH 0/4] mmc: meson-gx: chained descriptor fixup and improvements

2018-12-07 Thread Jerome Brunet
On Thu, 2018-12-06 at 20:14 -0800, Kevin Hilman wrote: > Jerome Brunet writes: > > > The goal of the patchset was mainly to address the following warning: > > > > WARNING: CPU: 0 PID: 0 at /usr/src/kernel/drivers/mmc/host/meson-gx- > > mmc.c:1025 meson_mmc_irq

Re: [PATCH] Revert "clk: fix __clk_init_parent() for single parent clocks"

2018-12-07 Thread Jerome Brunet
ently used. > > Quoting Jerome Brunet (2018-12-05 09:20:09) > > On Tue, 2018-12-04 at 23:54 -0800, Stephen Boyd wrote: > > > Ok. Thanks for the explanation. What do you do to fix this problem in > > > the 'ao_cts_cec' clk implementation? > > > > IMO, there is

Re: [PATCH] Revert "clk: fix __clk_init_parent() for single parent clocks"

2018-12-07 Thread Jerome Brunet
ently used. > > Quoting Jerome Brunet (2018-12-05 09:20:09) > > On Tue, 2018-12-04 at 23:54 -0800, Stephen Boyd wrote: > > > Ok. Thanks for the explanation. What do you do to fix this problem in > > > the 'ao_cts_cec' clk implementation? > > > > IMO, there is

[PATCH 2/4] mmc: meson-gx: remove useless lock

2018-12-06 Thread Jerome Brunet
The spinlock is only used within the irq handler so it does not seem very useful. Signed-off-by: Jerome Brunet --- drivers/mmc/host/meson-gx-mmc.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index fcb5d693c897

[PATCH 2/4] mmc: meson-gx: remove useless lock

2018-12-06 Thread Jerome Brunet
The spinlock is only used within the irq handler so it does not seem very useful. Signed-off-by: Jerome Brunet --- drivers/mmc/host/meson-gx-mmc.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index fcb5d693c897

<    2   3   4   5   6   7   8   9   10   11   >