[PATCH] dt-bindings: gpio: Convert vf610 to json-schema

2020-08-04 Thread Anson Huang
Convert the vf610 gpio binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/gpio/gpio-vf610.txt| 63 - .../devicetree/bindings/gpio/gpio-vf610.yaml | 79 ++ 2 files changed, 79 insertions(+), 63

[PATCH] PCI: imx6: Do not output error message when devm_clk_get() failed with -EPROBE_DEFER

2020-08-03 Thread Anson Huang
When devm_clk_get() returns -EPROBE_DEFER, i.MX6 PCI driver should NOT print error message, just return -EPROBE_DEFER is enough. Signed-off-by: Anson Huang --- drivers/pci/controller/dwc/pci-imx6.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) diff

[PATCH] ARM: dts: imx7ulp: Correct gpio ranges

2020-08-03 Thread Anson Huang
Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7ulp.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index 3674396..b7ea37a 100644 --- a/arch/arm/boot/dts/imx7ulp.dtsi +++ b/arch/arm/boot/dts/im

[PATCH] dt-bindings: regulator: Convert pfuze100 to json-schema

2020-08-02 Thread Anson Huang
Convert the pfuze100 regulator binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/regulator/pfuze100.txt | 394 - .../devicetree/bindings/regulator/pfuze100.yaml| 186 ++ 2 files changed, 186 insertions

[PATCH] dt-bindings: memory-controllers: Convert mmdc to json-schema

2020-07-30 Thread Anson Huang
Convert the MMDC memory controller binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../bindings/memory-controllers/fsl/mmdc.txt | 35 .../bindings/memory-controllers/fsl/mmdc.yaml | 49 ++ 2 files changed, 49

[PATCH V4 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-30 Thread Anson Huang
the recommended sequence can make it more robust. Signed-off-by: Anson Huang --- changes since V3: - wdog timeout should NOT update when setting timeout register failed. --- drivers/watchdog/imx7ulp_wdt.c | 74 ++ 1 file changed, 61 insertions(+), 13

[PATCH V4 2/2] watchdog: imx7ulp: Watchdog should continue running for wait/stop mode

2020-07-30 Thread Anson Huang
When kernel idle, system will enter wait/stop mode, wdog should continue running in this scenario, and the refresh thread can wake up system from wait/stop mode. Signed-off-by: Anson Huang --- no change. --- drivers/watchdog/imx7ulp_wdt.c | 5 - 1 file changed, 4 insertions(+), 1 deletion

RE: [PATCH V3 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-30 Thread Anson Huang
Hi, Guenter > Subject: Re: [PATCH V3 1/2] watchdog: imx7ulp: Strictly follow the sequence > for wdog operations > > On Thu, Jul 30, 2020 at 10:03:10AM +0800, Anson Huang wrote: > > According to reference manual, the i.MX7ULP WDOG's operations except > > refresh shou

RE: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default

2020-07-30 Thread Anson Huang
Hi, Philipp > Subject: Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default > > Hi Anson, > > On Thu, 2020-07-30 at 02:11 +0000, Anson Huang wrote: > > Hi, Philipp/Rob > > > > > Subject: Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default >

[PATCH 2/2] ARM: dts: imx: Change gpmi nand node name to nand-controller

2020-07-30 Thread Anson Huang
Change i.MX SoCs nand node name from "gpmi-nand" to "nand-controller" to be compliant with yaml schema, it requires the nodename to be "nand-controller". Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx23-evk.dts| 2 +- arch/arm/boot/dts/imx23.dtsi

[PATCH 1/2] ARM: dts: imx27: Change nand node name to nand-controller

2020-07-30 Thread Anson Huang
Change i.MX27 nand node name from "nand" to "nand-controller" to be compliant with yaml schema, it requires the nodename to be "nand-controller". Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx27.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 2/2] dt-bindings: mtd: Convert imx nand to json-schema

2020-07-30 Thread Anson Huang
Convert the i.MX nand controller binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/mtd/mxc-nand.txt | 19 -- .../devicetree/bindings/mtd/mxc-nand.yaml | 42 ++ 2 files changed, 42 insertions

[PATCH 1/2] dt-bindings: mtd: Convert gpmi nand to json-schema

2020-07-30 Thread Anson Huang
Convert the gpmi nand controller binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/mtd/gpmi-nand.txt | 75 - .../devicetree/bindings/mtd/gpmi-nand.yaml | 118 + 2 files changed, 118 insertions

RE: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default

2020-07-29 Thread Anson Huang
Hi, Philipp/Rob > Subject: Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default > > On Wed, 2020-07-29 at 09:26 -0600, Rob Herring wrote: > > On Mon, Jul 20, 2020 at 8:26 AM Anson Huang > wrote: > > > i.MX7 reset driver now supports module build and

[PATCH V3 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-29 Thread Anson Huang
the recommended sequence can make it more robust. Signed-off-by: Anson Huang --- changes since V2: - change the wait timeout to 20us according to experiment; - drop WARN_ON when timeout, and check its return value in each caller for unlock wait, no need to handle the return

[PATCH V3 2/2] watchdog: imx7ulp: Watchdog should continue running for wait/stop mode

2020-07-29 Thread Anson Huang
When kernel idle, system will enter wait/stop mode, wdog should continue running in this scenario, and the refresh thread can wake up system from wait/stop mode. Signed-off-by: Anson Huang --- no change. --- drivers/watchdog/imx7ulp_wdt.c | 5 - 1 file changed, 4 insertions(+), 1 deletion

RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-29 Thread Anson Huang
Hi, Guenter > Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence > for wdog operations > > On 7/29/20 8:32 AM, Anson Huang wrote: > > Hi, Guenter > > > > > >> Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follo

[PATCH V9 5/6] clk: imx8m: Support module build

2020-07-29 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8M SoCs clock driver as module. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig | 16 ---

[PATCH V9 6/6] clk: imx8qxp: Support building i.MX8QXP clock driver as module

2020-07-29 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8QXP clock drivers as module. Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 10 ++ drivers/clk/im

[PATCH V9 0/6] Support building i.MX ARMv8 platforms clock driver as module

2020-07-29 Thread Anson Huang
. Anson Huang (6): clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits clk: composite: Export clk_hw_register_composite() clk: imx: Support building i.MX common clock driver as module clk: imx: Add clock configuration for ARMv7 platforms clk: imx8m: Support module

[PATCH V9 2/6] clk: composite: Export clk_hw_register_composite()

2020-07-29 Thread Anson Huang
Export clk_hw_register_composite() to support user built as module. ERROR: modpost: "clk_hw_register_composite" [drivers/clk/imx/mxc-clk.ko] undefined! Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/clk-composite.c | 1 + 1 file changed, 1

[PATCH V9 4/6] clk: imx: Add clock configuration for ARMv7 platforms

2020-07-29 Thread Anson Huang
Add CONFIG_CLK_xxx for i.MX ARMv7 platforms, and use it as build option instead of CONFIG_SOC_xxx, the CONFIG_CLK_xxx will be selected by default according to CONFIG_SOC_xxx. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx

[PATCH V9 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 Thread Anson Huang
while (!(__raw_readl(anatop_base + PLL_ARM) & BM_PLL_ARM_LOCK)) Signed-off-by: Anson Huang Reported-by: kernel test robot --- changes since V8: - explicitly include linux/bits.h. --- drivers/clk/imx/clk-imx6sl.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/d

[PATCH V9 3/6] clk: imx: Support building i.MX common clock driver as module

2020-07-29 Thread Anson Huang
There are more and more requirements of building SoC specific drivers as modules, add support for building i.MX common clock driver as module to meet the requirement. Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 8

RE: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 Thread Anson Huang
Hi, Randy > Subject: Re: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed > 32-bit value by 31 bits > > On 7/29/20 4:51 PM, Anson Huang wrote: > > Hi, Randy > > > > > >> Subject: Re: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shift

[PATCH V8 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 Thread Anson Huang
while (!(__raw_readl(anatop_base + PLL_ARM) & BM_PLL_ARM_LOCK)) Signed-off-by: Anson Huang Reported-by: kernel test robot --- changes since V7: - remove unnecessary linux/bitfield.h include. --- drivers/clk/imx/clk-imx6sl.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-)

[PATCH V8 5/6] clk: imx8m: Support module build

2020-07-29 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8M SoCs clock driver as module. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig | 16 ---

[PATCH V8 3/6] clk: imx: Support building i.MX common clock driver as module

2020-07-29 Thread Anson Huang
There are more and more requirements of building SoC specific drivers as modules, add support for building i.MX common clock driver as module to meet the requirement. Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 8

[PATCH V8 6/6] clk: imx8qxp: Support building i.MX8QXP clock driver as module

2020-07-29 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8QXP clock drivers as module. Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 10 ++ drivers/clk/im

[PATCH V8 4/6] clk: imx: Add clock configuration for ARMv7 platforms

2020-07-29 Thread Anson Huang
Add CONFIG_CLK_xxx for i.MX ARMv7 platforms, and use it as build option instead of CONFIG_SOC_xxx, the CONFIG_CLK_xxx will be selected by default according to CONFIG_SOC_xxx. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx

[PATCH V8 0/6] Support building i.MX ARMv8 platforms clock driver as module

2020-07-29 Thread Anson Huang
#1. Anson Huang (6): clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits clk: composite: Export clk_hw_register_composite() clk: imx: Support building i.MX common clock driver as module clk: imx: Add clock configuration for ARMv7 platforms clk: imx8m: Support

[PATCH V8 2/6] clk: composite: Export clk_hw_register_composite()

2020-07-29 Thread Anson Huang
Export clk_hw_register_composite() to support user built as module. ERROR: modpost: "clk_hw_register_composite" [drivers/clk/imx/mxc-clk.ko] undefined! Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/clk-composite.c | 1 + 1 file changed, 1

RE: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 Thread Anson Huang
Hi, Randy > Subject: Re: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed > 32-bit value by 31 bits > > On 7/29/20 7:48 AM, Anson Huang wrote: > > Use readl_relaxed() instead of __raw_readl(), and use BIT(x) instead > > of (1 << X) to fix below bu

RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-29 Thread Anson Huang
Hi, Guenter > Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence > for wdog operations > > On 7/28/20 7:20 PM, Anson Huang wrote: > > According to reference manual, the i.MX7ULP WDOG's operations should > > follow below sequence: > > &g

RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-29 Thread Anson Huang
Hi, Guenter > Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence > for wdog operations > > On 7/28/20 10:02 PM, Anson Huang wrote: > > Hi, Guenter > > > > > >> Subject: RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follo

[PATCH V7 3/6] clk: imx: Support building i.MX common clock driver as module

2020-07-29 Thread Anson Huang
There are more and more requirements of building SoC specific drivers as modules, add support for building i.MX common clock driver as module to meet the requirement. Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 8

[PATCH V7 5/6] clk: imx8m: Support module build

2020-07-29 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8M SoCs clock driver as module. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig | 16 ---

[PATCH V7 4/6] clk: imx: Add clock configuration for ARMv7 platforms

2020-07-29 Thread Anson Huang
Add CONFIG_CLK_xxx for i.MX ARMv7 platforms, and use it as build option instead of CONFIG_SOC_xxx, the CONFIG_CLK_xxx will be selected by default according to CONFIG_SOC_xxx. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx

[PATCH V7 6/6] clk: imx8qxp: Support building i.MX8QXP clock driver as module

2020-07-29 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8QXP clock drivers as module. Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/imx/Kconfig| 10 ++ drivers/clk/im

[PATCH V7 0/6] Support building i.MX ARMv8 platforms clock driver as module

2020-07-29 Thread Anson Huang
patch of this series. Anson Huang (6): clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits clk: composite: Export clk_hw_register_composite() clk: imx: Support building i.MX common clock driver as module clk: imx: Add clock configuration for ARMv7 platforms clk

[PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits

2020-07-29 Thread Anson Huang
while (!(__raw_readl(anatop_base + PLL_ARM) & BM_PLL_ARM_LOCK)) Signed-off-by: Anson Huang Reported-by: kernel test robot --- Changes since V6: - improve the subject. --- drivers/clk/imx/clk-imx6sl.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/c

[PATCH V7 2/6] clk: composite: Export clk_hw_register_composite()

2020-07-29 Thread Anson Huang
Export clk_hw_register_composite() to support user built as module. ERROR: modpost: "clk_hw_register_composite" [drivers/clk/imx/mxc-clk.ko] undefined! Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- no change. --- drivers/clk/clk-composite.c | 1 + 1 file changed, 1

RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-29 Thread Anson Huang
Hi, Guenter > Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence > for wdog operations > > On 7/28/20 9:50 PM, Anson Huang wrote: > > Hi, Guenter > > > > > >> Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follo

RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Anson Huang
Hi, Guenter > Subject: RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence > for wdog operations > > Hi, Guenter > > > > Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the > > sequence for wdog operations > > >

RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Anson Huang
Hi, Guenter > Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence > for wdog operations > > On 7/28/20 7:20 PM, Anson Huang wrote: > > According to reference manual, the i.MX7ULP WDOG's operations should > > follow below sequence: > > &g

RE: [PATCH 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Anson Huang
Hi, Guenter > Subject: RE: [PATCH 1/2] watchdog: imx7ulp: Strictly follow the sequence for > wdog operations > > Hi, Guenter > > > > Subject: Re: [PATCH 1/2] watchdog: imx7ulp: Strictly follow the > > sequence for wdog operations > > > > On 7/27/20 11

[PATCH V2 2/2] watchdog: imx7ulp: Watchdog should continue running for wait/stop mode

2020-07-28 Thread Anson Huang
When kernel idle, system will enter wait/stop mode, wdog should continue running in this scenario, and the refresh thread can wake up system from wait/stop mode. Signed-off-by: Anson Huang --- no change. --- drivers/watchdog/imx7ulp_wdt.c | 5 - 1 file changed, 4 insertions(+), 1 deletion

[PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Anson Huang
sequence can make it more robust. Signed-off-by: Anson Huang --- Changes since V1: - use readl_poll_timeout_atomic() instead of usleep_ranges() since IRQ is disabled. --- drivers/watchdog/imx7ulp_wdt.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers

RE: [PATCH 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Anson Huang
Hi, Guenter > Subject: Re: [PATCH 1/2] watchdog: imx7ulp: Strictly follow the sequence for > wdog operations > > On 7/27/20 11:42 PM, Anson Huang wrote: > > According to reference manual, the i.MX7ULP WDOG's operations should > > follow below sequence: > > &g

[PATCH 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Anson Huang
sequence can make it more robust. Signed-off-by: Anson Huang --- drivers/watchdog/imx7ulp_wdt.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/watchdog/imx7ulp_wdt.c b/drivers/watchdog/imx7ulp_wdt.c index 7993c8c..b414ecf 100644 --- a/drivers/watchdog

[PATCH 2/2] watchdog: imx7ulp: Watchdog should continue running for wait/stop mode

2020-07-28 Thread Anson Huang
When kernel idle, system will enter wait/stop mode, wdog should continue running in this scenario, and the refresh thread can wake up system from wait/stop mode. Signed-off-by: Anson Huang --- drivers/watchdog/imx7ulp_wdt.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

RE: [PATCH V2 1/4] gpio: mxc: Support module build

2020-07-27 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V2 1/4] gpio: mxc: Support module build > > On Mon, Jul 27, 2020 at 1:21 PM Anson Huang > wrote: > > > Subject: Re: [PATCH V2 1/4] gpio: mxc: Support module build On Mon, > > > Jul 27, 2020 at 10:18 AM Anson Huang wrote: > &

RE: [PATCH V2 1/4] gpio: mxc: Support module build

2020-07-27 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V2 1/4] gpio: mxc: Support module build > > On Mon, Jul 27, 2020 at 10:18 AM Anson Huang > wrote: > > > Subject: Re: [PATCH V2 1/4] gpio: mxc: Support module build > > > > > > On Wed, Jul 22, 2020 at 3:50 AM Anson Huang >

RE: [PATCH V2 1/4] gpio: mxc: Support module build

2020-07-27 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V2 1/4] gpio: mxc: Support module build > > On Wed, Jul 22, 2020 at 3:50 AM Anson Huang > wrote: > > > > Change config to tristate, add module device table, module author, > > description and license to support mod

[tip: timers/core] clocksource/drivers/imx: Add support for i.MX TPM driver with ARM64

2020-07-23 Thread tip-bot2 for Anson Huang
The following commit has been merged into the timers/core branch of tip: Commit-ID: a6d0812a081defd8bef5453c7b69a1cb4735a170 Gitweb: https://git.kernel.org/tip/a6d0812a081defd8bef5453c7b69a1cb4735a170 Author:Anson Huang AuthorDate:Wed, 08 Jul 2020 11:16:07 +08:00

[PATCH V2 3/4] ARM: imx_v6_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-07-21 Thread Anson Huang
i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as built-in manually. Signed-off-by: Anson Huang --- No change. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs

[PATCH V2 4/4] ARM: multi_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-07-21 Thread Anson Huang
i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as built-in manually. Signed-off-by: Anson Huang --- new patch. --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig

[PATCH V2 2/4] arm64: defconfig: Build in CONFIG_GPIO_MXC by default

2020-07-21 Thread Anson Huang
i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as built-in manually. Signed-off-by: Anson Huang --- No change. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 070c7e3..43b2bfd

[PATCH V2 1/4] gpio: mxc: Support module build

2020-07-21 Thread Anson Huang
subsys_initcall(), NOT module_platform_driver(). Signed-off-by: Anson Huang --- Changes since V1: - no code change, just add detail explanation about why this patch does NOT support module unloaded. --- drivers/gpio/Kconfig| 2 +- drivers/gpio/gpio-mxc.c | 6 ++ 2 files changed, 7

[PATCH V3 2/3] arm64: defconfig: Select CONFIG_RESET_IMX7 as module by default

2020-07-20 Thread Anson Huang
i.MX7 reset driver now supports module build, it is no longer enabled by default, need to select it explicitly. Signed-off-by: Anson Huang --- No change. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs

[PATCH V3 1/3] reset: imx7: Support module build

2020-07-20 Thread Anson Huang
Use module_platform_driver(), add module device table, author, description and license to support module build, and CONFIG_RESET_IMX7 is changed to default 'y' ONLY for i.MX7D, other platforms need to select it in defconfig. Signed-off-by: Anson Huang --- Changes since V2: - use

[PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default

2020-07-20 Thread Anson Huang
i.MX7 reset driver now supports module build and it is no longer built in by default, so i.MX PCI driver needs to select it explicitly due to it is NOT supporting loadable module currently. Signed-off-by: Anson Huang --- No change. --- drivers/pci/controller/dwc/Kconfig | 1 + 1 file changed, 1

RE: [PATCH V2 1/3] reset: imx7: Support module build

2020-07-20 Thread Anson Huang
Hi, Philipp > Subject: Re: [PATCH V2 1/3] reset: imx7: Support module build > > On Mon, 2020-06-29 at 23:05 +0800, Anson Huang wrote: > > Add module device table, author, description and license to support > > module build, and CONFIG_RESET_IMX7 is changed to default 'y

RE: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl driver as module

2020-07-17 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl driver as > module > > On Fri, Jul 17, 2020 at 11:24 AM Anson Huang > wrote: > > > Subject: Re: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl > > > driver as module &

RE: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl driver as module

2020-07-17 Thread Anson Huang
Hi, Daniel > Subject: Re: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl driver as > module > > On 7/17/20 2:44 AM, Anson Huang wrote: > > Hi, Daniel > > > > > >> Subject: Re: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl > >&g

RE: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl driver as module

2020-07-16 Thread Anson Huang
Hi, Daniel > Subject: Re: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl driver as > module > > On 7/16/20 6:21 PM, Anson Huang wrote: > > Hi, Daniel > > > > > >> Subject: Re: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl > >> dr

RE: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl driver as module

2020-07-16 Thread Anson Huang
Hi, Daniel > Subject: Re: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl driver as > module > > Hi Anson, > > Few comments inline: > > On 7/16/20 6:06 PM, Anson Huang wrote: > > To support building i.MX SCU pinctrl driver as module, bel

[PATCH 1/2] pinctrl: imx: Support building SCU pinctrl driver as module

2020-07-16 Thread Anson Huang
te; - Add module author, description and license. With above changes, i.MX SCU pinctrl driver can be built as module. Signed-off-by: Anson Huang --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx.c | 8 ++-- drivers/pinctrl/freescale/pi

[PATCH 2/2] pinctrl: imx: Support building i.MX pinctrl driver as module

2020-07-16 Thread Anson Huang
. Signed-off-by: Anson Huang --- drivers/pinctrl/freescale/Kconfig | 3 ++- drivers/pinctrl/freescale/pinctrl-imx.c | 5 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 570355c..922ae4b 100644

RE: [PATCH 1/3] gpio: mxc: Support module build

2020-07-16 Thread Anson Huang
Hi, Linus > Subject: Re: [PATCH 1/3] gpio: mxc: Support module build > > On Wed, Jul 15, 2020 at 4:44 AM Anson Huang > wrote: > > > > Subject: RE: [PATCH 1/3] gpio: mxc: Support module build > > > > > > Hi, Linus > > > > > >

RE: [PATCH 1/3] gpio: mxc: Support module build

2020-07-14 Thread Anson Huang
Hi, Linus > Subject: RE: [PATCH 1/3] gpio: mxc: Support module build > > Hi, Linus > > > Subject: Re: [PATCH 1/3] gpio: mxc: Support module build > > > > On Wed, Jul 8, 2020 at 1:28 AM Anson Huang > > wrote: > > > > > subsys_initcall(gpio

RE: [PATCH 1/3] gpio: mxc: Support module build

2020-07-11 Thread Anson Huang
Hi, Linus > Subject: Re: [PATCH 1/3] gpio: mxc: Support module build > > On Wed, Jul 8, 2020 at 1:28 AM Anson Huang > wrote: > > > subsys_initcall(gpio_mxc_init); > > + > > +MODULE_AUTHOR("Shawn Guo "); > > +MODULE_DESCRIPTION("i.MX GPI

RE: [PATCH 3/3] ARM: imx_v6_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-07-10 Thread Anson Huang
Hi, Andreas > Subject: Re: [PATCH 3/3] ARM: imx_v6_v7_defconfig: Build in > CONFIG_GPIO_MXC by default > > Hi, > > On Wed, 8 Jul 2020 07:25:23 +0800 > Anson Huang wrote: > > > i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as > > b

[PATCH V2 2/2] arm64: imx: Select TPM driver by default

2020-07-07 Thread Anson Huang
Select CLKSRC_IMX_TPM for ARCH_MXC by default. Signed-off-by: Anson Huang --- No change. --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 8dd05b2..c52b7a0 100644 --- a/arch/arm64

[PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64

2020-07-07 Thread Anson Huang
Allows building and compile-testing the i.MX TPM driver for ARM64. Signed-off-by: Anson Huang --- Changes since V1: - select TIMER_OF for CLKSRC_IMX_TPM. --- drivers/clocksource/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b

[PATCH 1/3] gpio: mxc: Support module build

2020-07-07 Thread Anson Huang
Change config to tristate, add module device table, module author, description and license to support module build for i.MX GPIO driver. Signed-off-by: Anson Huang --- drivers/gpio/Kconfig| 2 +- drivers/gpio/gpio-mxc.c | 6 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH 2/3] arm64: defconfig: Build in CONFIG_GPIO_MXC by default

2020-07-07 Thread Anson Huang
i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as built-in manually. Signed-off-by: Anson Huang --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 278e78f..6817d01 100644

[PATCH 3/3] ARM: imx_v6_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-07-07 Thread Anson Huang
i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as built-in manually. Signed-off-by: Anson Huang --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index

[PATCH V6 6/6] clk: imx6sl: Fix build warning reported by kernel test robot

2020-07-06 Thread Anson Huang
while (!(__raw_readl(anatop_base + PLL_ARM) & BM_PLL_ARM_LOCK)) Signed-off-by: Anson Huang Reported-by: kernel test robot --- New patch. --- drivers/clk/imx/clk-imx6sl.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/cl

[PATCH V6 3/6] clk: imx: Add clock configuration for ARMv7 platforms

2020-07-06 Thread Anson Huang
Add CONFIG_CLK_xxx for i.MX ARMv7 platforms, and use it as build option instead of CONFIG_SOC_xxx, the CONFIG_CLK_xxx will be selected by default according to CONFIG_SOC_xxx. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- Changes since V5: - make i.MX6/7 platforms clock driver

[PATCH V6 2/6] clk: imx: Support building i.MX common clock driver as module

2020-07-06 Thread Anson Huang
There are more and more requirements of building SoC specific drivers as modules, add support for building i.MX common clock driver as module to meet the requirement. Signed-off-by: Anson Huang --- No change. --- drivers/clk/imx/Kconfig| 8 ++-- drivers/clk/imx/Makefile

[PATCH V6 1/6] clk: composite: Export clk_hw_register_composite()

2020-07-06 Thread Anson Huang
Export clk_hw_register_composite() to support user built as module. ERROR: modpost: "clk_hw_register_composite" [drivers/clk/imx/mxc-clk.ko] undefined! Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- No change. --- drivers/clk/clk-composite.c | 1 + 1 file changed, 1

[PATCH V6 4/6] clk: imx8m: Support module build

2020-07-06 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8M SoCs clock driver as module. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No change. --- drivers/clk/imx/Kconfig | 16 drivers/clk/imx/clk-imx

[PATCH V6 5/6] clk: imx8qxp: Support building i.MX8QXP clock driver as module

2020-07-06 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8QXP clock drivers as module. Signed-off-by: Anson Huang --- No change. --- drivers/clk/imx/Kconfig| 10 ++ drivers/clk/imx/Makefile | 9 - d

[PATCH V6 0/6] Support building i.MX ARMv8 platforms clock driver as module

2020-07-06 Thread Anson Huang
to fix build warning reported by kernel robot test on i.MX6SL clock driver. Anson Huang (6): clk: composite: Export clk_hw_register_composite() clk: imx: Support building i.MX common clock driver as module clk: imx: Add clock configuration for ARMv7 platforms clk: imx8m: Support

RE: [PATCH V5 0/6] Support building i.MX ARMv7/ARMv8 platforms clock driver as module

2020-07-06 Thread Anson Huang
Hi, Laurent > Subject: Re: [PATCH V5 0/6] Support building i.MX ARMv7/ARMv8 platforms > clock driver as module > > Hi Anson, > > On Thu, Jul 02, 2020 at 11:23:55PM +0800, Anson Huang wrote: > > Nowdays, there are more and more requirements of building SoC specifi

[PATCH V5 5/6] clk: imx8m: Support module build

2020-07-02 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8M SoCs clock driver as module. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- drivers/clk/imx/Kconfig | 16 drivers/clk/imx/clk-imx8mm.c | 4 +++

[PATCH V5 3/6] clk: imx: Support building i.MX common clock driver as module

2020-07-02 Thread Anson Huang
There are more and more requirements of building SoC specific drivers as modules, add support for building i.MX common clock driver as module to meet the requirement. Signed-off-by: Anson Huang --- Changes since V4: - add empty function of imx_register_uart_clocks() for MODULE build

[PATCH V5 4/6] clk: imx: Add clock configuration for ARMv7 platforms

2020-07-02 Thread Anson Huang
Add CONFIG_CLK_xxx for i.MX ARMv7 platforms, and use it as build option instead of CONFIG_SOC_xxx, the CONFIG_CLK_xxx will be selected by default according to CONFIG_SOC_xxx, COMPILE_TEST will be also supported. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- Changes since V4

[PATCH V5 1/6] clk: composite: Export clk_hw_register_composite()

2020-07-02 Thread Anson Huang
Export clk_hw_register_composite() to support user built as module. ERROR: modpost: "clk_hw_register_composite" [drivers/clk/imx/mxc-clk.ko] undefined! Signed-off-by: Anson Huang Reviewed-by: Stephen Boyd --- No change. --- drivers/clk/clk-composite.c | 1 + 1 file changed, 1

[PATCH V5 6/6] clk: imx8qxp: Support building i.MX8QXP clock driver as module

2020-07-02 Thread Anson Huang
Change configuration to "tristate", add module author, description and license to support building i.MX8QXP clock drivers as module. Signed-off-by: Anson Huang --- Changes since V4: - keep using builtin_platform_driver(); - add COMPILE_TEST support. --- drivers/clk/i

[PATCH V5 2/6] clk: imx: Support module build for i.MX5/6/7 and vf610

2020-07-02 Thread Anson Huang
Add module author, description and license to support module build for i.MX5/6/7 and vf610 SoCs. Signed-off-by: Anson Huang --- New patch. --- drivers/clk/imx/clk-imx5.c| 5 + drivers/clk/imx/clk-imx6q.c | 5 + drivers/clk/imx/clk-imx6sl.c | 5 + drivers/clk/imx/clk-imx6sll.c

[PATCH V5 0/6] Support building i.MX ARMv7/ARMv8 platforms clock driver as module

2020-07-02 Thread Anson Huang
build support for ARMv7 platforms, also add COMPILE_TEST for them; - add COMPILE_TEST for ARMv8 platforms; - keep using builtin_platform_driver() for i.MX8QXP clock driver. Anson Huang (6): clk: composite: Export clk_hw_register_composite() clk: imx: Support module build

RE: [PATCH V4 3/5] clk: imx: Support building i.MX common clock driver as module

2020-07-02 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V4 3/5] clk: imx: Support building i.MX common clock > driver as module > > On Thu, Jul 2, 2020 at 8:40 AM Dong Aisheng wrote: > > On Thu, Jul 2, 2020 at 2:11 PM Anson Huang > wrote: > > > > Subject: Re: [PATCH V4 3/5] clk:

RE: [PATCH V4 3/5] clk: imx: Support building i.MX common clock driver as module

2020-07-02 Thread Anson Huang
> Subject: Re: [PATCH V4 3/5] clk: imx: Support building i.MX common clock > driver as module > > On Thu, Jul 2, 2020 at 2:11 PM Anson Huang wrote: > > > > > Subject: Re: [PATCH V4 3/5] clk: imx: Support building i.MX common > > > clock driver as module >

RE: [PATCH V2 3/9] clk: imx: Support building SCU clock driver as module

2020-07-02 Thread Anson Huang
Hi, Arnd/Stephen > Subject: Re: [PATCH V2 3/9] clk: imx: Support building SCU clock driver as > module > > Quoting Arnd Bergmann (2020-06-29 01:19:44) > > On Mon, Jun 29, 2020 at 9:18 AM Dong Aisheng > wrote: > > > On Thu, Jun 25, 2020 at 6:43 AM Stephen Boyd > wrote: > > > > Quoting Aisheng

RE: [PATCH V4 3/5] clk: imx: Support building i.MX common clock driver as module

2020-07-02 Thread Anson Huang
> Subject: Re: [PATCH V4 3/5] clk: imx: Support building i.MX common clock > driver as module > > On Thu, Jul 2, 2020 at 11:26 AM Anson Huang > wrote: > [...] > > > > @@ -143,16 +148,18 @@ void imx_cscmr1_fixup(u32 *val) static int > > > > imx_kee

RE: [PATCH V4 5/5] clk: imx8qxp: Support building i.MX8QXP clock driver as module

2020-07-01 Thread Anson Huang
> Subject: Re: [PATCH V4 5/5] clk: imx8qxp: Support building i.MX8QXP clock > driver as module > > On Thu, Jul 2, 2020 at 11:55 AM Anson Huang > wrote: > [...] > > > > +{ > > > > + return platform_driver_register(_lpcg_clk_dr

RE: [PATCH V4 5/5] clk: imx8qxp: Support building i.MX8QXP clock driver as module

2020-07-01 Thread Anson Huang
> Subject: Re: [PATCH V4 5/5] clk: imx8qxp: Support building i.MX8QXP clock > driver as module > > On Thu, Jul 2, 2020 at 10:20 AM Anson Huang > wrote: > > > > Change configuration to "tristate", use device_initcall() instead of > > builtin_platfo

RE: [PATCH V4 3/5] clk: imx: Support building i.MX common clock driver as module

2020-07-01 Thread Anson Huang
> Subject: Re: [PATCH V4 3/5] clk: imx: Support building i.MX common clock > driver as module > > On Thu, Jul 2, 2020 at 10:19 AM Anson Huang > wrote: > > > > There are more and more requirements of building SoC specific drivers > > as modules, add support for

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