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

2020-07-01 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 V3: - ONLY include __setup_param() build for built-in, module build no need

[PATCH V4 4/5] clk: imx8m: Support module build

2020-07-01 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 --- Changes since V3: - add module author/description, and merge all i.MX8M SoCs patch into one patch. --

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

2020-07-01 Thread Anson Huang
Change configuration to "tristate", use device_initcall() instead of builtin_platform_driver(), add module author, description and license to support building i.MX8QXP clock drivers as module. Signed-off-by: Anson Huang --- Changes since V3: - use device_initcall()

[PATCH V4 1/5] clk: composite: Export clk_hw_register_composite()

2020-07-01 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 V4 0/5] Support building i.MX8 SoCs clock driver as module

2020-07-01 Thread Anson Huang
i.MX8QXP clock driver, then export is no needed for common scu/lpcg clock driver. Anson Huang (5): clk: composite: Export clk_hw_register_composite() clk: imx: Add clock configuration for ARMv7 platforms clk: imx: Support building i.MX common clock driver as module clk: imx8m

[PATCH V4 2/5] clk: imx: Add clock configuration for ARMv7 platforms

2020-07-01 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 --- Changes since V3: - Add clock configuration for each ARMv7. --- drivers/clk/imx

RE: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for module build

2020-07-01 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for > module build > > On Wed, Jul 1, 2020 at 12:02 PM Anson Huang > wrote: > > > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro > > > for module build On W

RE: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for module build

2020-07-01 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for > module build > > On Wed, Jul 1, 2020 at 11:27 AM Anson Huang > wrote: > > > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro > > > for module build > >

RE: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as module

2020-07-01 Thread Anson Huang
Hi, Arnd > Subject: RE: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as > module > > Hi, Arnd > > > Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU clock > > driver as module > > > > On Wed, Jul 1, 2020 at 9:19 AM Anson Huang

RE: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as module

2020-07-01 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as > module > > On Wed, Jul 1, 2020 at 9:19 AM Anson Huang > wrote: > > > Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU clock > > > driver as module On Tue, Ju

RE: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for module build

2020-07-01 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for > module build > > On Wed, Jul 1, 2020 at 7:14 AM Anson Huang > wrote: > > > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro > > > for module build On Mon, Ju

RE: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as module

2020-07-01 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as > module > > On Tue, Jun 30, 2020 at 5:16 AM Anson Huang > wrote: > > > > Hi, Arnd > > > > > > > Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU

RE: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for module build

2020-06-30 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for > module build > > On Mon, Jun 29, 2020 at 1:40 PM Anson Huang > wrote: > > > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro > > > for module build > &g

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

2020-06-29 Thread Anson Huang
> Subject: RE: [PATCH V2 3/9] clk: imx: Support building SCU clock driver as > module > > > From: Arnd Bergmann > > Sent: Monday, June 29, 2020 4:20 PM > > > > 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 A

RE: [PATCH 2/3] arm64: defconfig: Select CONFIG_RESET_IMX7 by default

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH 2/3] arm64: defconfig: Select CONFIG_RESET_IMX7 by > default > > On Mon, Jun 29, 2020 at 2:09 PM Anson Huang > wrote: > > > > > > It sounds like your patch 1/3 is not ready to be merged then. > > > > > > Please m

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

2020-06-29 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 --- Changes since V1: - use module build by default. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64

RE: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as module

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as > module > > On Mon, Jun 29, 2020 at 4:52 PM Anson Huang > wrote: > > > Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU clock > > > driver as module On Mon, Ju

RE: [PATCH V3 03/10] ARM: imx: Select MXC_CLK for each SoC

2020-06-29 Thread Anson Huang
> Subject: RE: [PATCH V3 03/10] ARM: imx: Select MXC_CLK for each SoC > > > From: Anson Huang > > Sent: Monday, June 29, 2020 1:54 PM > > > > i.MX common clock drivers may support module build, so it is NOT > > selected by default, for ARCH_MXC ARMv7 platf

RE: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for module build

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for > module build > > On Mon, Jun 29, 2020 at 8:06 AM Anson Huang > wrote: > > > > Keep __setup_param() to use same parameters for both built in and > > built as module, it can make

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

2020-06-29 Thread Anson Huang
> Subject: Re: [PATCH 1/3] reset: imx7: Support module build > > On Mon, Jun 29, 2020 at 12:25 PM Anson Huang > wrote: > > > > Add module device table, module license to support module build. > > > > Signed-off-by: Anson Huang > > --- > >

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

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH 1/3] reset: imx7: Support module build > > On Mon, Jun 29, 2020 at 1:32 PM Anson Huang > wrote: > > > Subject: Re: [PATCH 1/3] reset: imx7: Support module build > > > > > > On Mon, Jun 29, 2020 at 12:45 PM Anson Huang >

RE: [PATCH V3 10/10] clk: imx8qxp: Support module build

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V3 10/10] clk: imx8qxp: Support module build > > On Mon, Jun 29, 2020 at 8:06 AM Anson Huang > wrote: > > > > Support building i.MX8QXP clock driver as module. > > > > Signed-off-by: Anson Huang > > I would just combine

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

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH 1/3] reset: imx7: Support module build > > On Mon, Jun 29, 2020 at 12:45 PM Anson Huang > wrote: > > > Subject: Re: [PATCH 1/3] reset: imx7: Support module build On Mon, > > > Jun 29, 2020 at 12:25 PM Anson Huang wrote: > > &g

RE: [PATCH 3/3] ARM: imx: Select RESET_IMX7 for i.MX7D

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH 3/3] ARM: imx: Select RESET_IMX7 for i.MX7D > > On Mon, Jun 29, 2020 at 12:25 PM Anson Huang > wrote: > > > > i.MX7 reset driver now supports module build, it is no longer built in > > by default, need to select it explicitly for

RE: [PATCH 2/3] arm64: defconfig: Select CONFIG_RESET_IMX7 by default

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH 2/3] arm64: defconfig: Select CONFIG_RESET_IMX7 by > default > > On Mon, Jun 29, 2020 at 1:34 PM Anson Huang > wrote: > > > Subject: Re: [PATCH 2/3] arm64: defconfig: Select CONFIG_RESET_IMX7 > > > by default > > > &g

RE: [PATCH 2/3] arm64: defconfig: Select CONFIG_RESET_IMX7 by default

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH 2/3] arm64: defconfig: Select CONFIG_RESET_IMX7 by > default > > On Mon, Jun 29, 2020 at 12:25 PM Anson Huang > wrote: > > > > i.MX7 reset driver now supports module build, it is no longer built in > > by default, need to select

RE: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as module

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as > module > > On Mon, Jun 29, 2020 at 2:53 PM Anson Huang > wrote: > > > Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU clock > > > driver as module > >

RE: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as module

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as > module > > On Mon, Jun 29, 2020 at 8:06 AM Anson Huang > wrote: > > > --- a/drivers/clk/imx/Makefile > > +++ b/drivers/clk/imx/Makefile > > @@ -21,9 +21,9 @@ obj-$(

RE: [PATCH 3/3] ARM: imx: Select RESET_IMX7 for i.MX7D

2020-06-29 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH 3/3] ARM: imx: Select RESET_IMX7 for i.MX7D > > On Mon, Jun 29, 2020 at 1:36 PM Anson Huang > wrote: > > > Subject: Re: [PATCH 3/3] ARM: imx: Select RESET_IMX7 for i.MX7D > > > > > > On Mon, Jun 29, 2020

[PATCH V3 08/10] clk: imx8mp: Support module build

2020-06-29 Thread Anson Huang
Support building i.MX8MP clock driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/clk/imx/Kconfig | 2 +- drivers/clk/imx/clk-imx8mp.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index 5f537c3

[PATCH V3 02/10] init.h: Fix the __setup_param() macro for module build

2020-06-29 Thread Anson Huang
Keep __setup_param() to use same parameters for both built in and built as module, it can make the drivers which call it easier when the drivers can be built in or built as module. Signed-off-by: Anson Huang --- new patch. --- include/linux/init.h | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH V3 06/10] clk: imx8mm: Support module build

2020-06-29 Thread Anson Huang
Support building i.MX8MM clock driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/clk/imx/Kconfig | 2 +- drivers/clk/imx/clk-imx8mm.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index 678113b

[PATCH V3 10/10] clk: imx8qxp: Support module build

2020-06-29 Thread Anson Huang
Support building i.MX8QXP clock driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/clk/imx/Kconfig| 2 +- drivers/clk/imx/clk-imx8qxp-lpcg.c | 1 + drivers/clk/imx/clk-imx8qxp.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH V3 07/10] clk: imx8mn: Support module build

2020-06-29 Thread Anson Huang
Support building i.MX8MN clock driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/clk/imx/Kconfig | 2 +- drivers/clk/imx/clk-imx8mn.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index 97d86a3

[PATCH V3 09/10] clk: imx8mq: Support module build

2020-06-29 Thread Anson Huang
Support building i.MX8MQ clock driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/clk/imx/Kconfig | 2 +- drivers/clk/imx/clk-imx8mq.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index 0811bed

[PATCH V3 00/10] Support building i.MX8 SoCs clock driver as module

2020-06-29 Thread Anson Huang
select it to make build pass. Changes since V2: - fix __setup_param() instead of handling module build inside clk driver; - improve makefile format to include each file in separated line; - add linux/export.h where necessary. Anson Huang (10): clk: composite: Export

[PATCH V3 04/10] clk: imx: Support building SCU clock driver as module

2020-06-29 Thread Anson Huang
There are more and more requirements of building SoC specific drivers as modules, add support for building SCU clock driver as module to meet the requirement. Signed-off-by: Anson Huang --- Changes since V2: - use separated line for each file which is included for build

[PATCH V3 03/10] ARM: imx: Select MXC_CLK for each SoC

2020-06-29 Thread Anson Huang
i.MX common clock drivers may support module build, so it is NOT selected by default, for ARCH_MXC ARMv7 platforms, need to select it manually in each SoC to make build pass. Signed-off-by: Anson Huang --- Changes since V2: - manually select the MXC_CLK in each SoC instead of selecting

[PATCH V3 05/10] clk: imx: Support building i.MX common clock driver as module

2020-06-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 --- Changes since V2: - remove __setup_param() change for module build, it is already fix in

[PATCH V3 01/10] clk: composite: Export clk_hw_register_composite()

2020-06-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 --- Changes since V2: - improve the commit message. --- drive

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

2020-06-29 Thread Anson Huang
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 V1: - make it default 'y

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

2020-06-29 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 --- New patch. --- drivers/pci/controller/dwc/Kconfig | 1 + 1 file changed, 1

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

2020-06-29 Thread Anson Huang
Add module device table, module license to support module build. Signed-off-by: Anson Huang --- drivers/reset/Kconfig | 4 ++-- drivers/reset/reset-imx7.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index d9efbfd

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

2020-06-29 Thread Anson Huang
i.MX7 reset driver now supports module build, it is no longer built in by default, need to select it explicitly. 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

[PATCH 3/3] ARM: imx: Select RESET_IMX7 for i.MX7D

2020-06-29 Thread Anson Huang
i.MX7 reset driver now supports module build, it is no longer built in by default, need to select it explicitly for i.MX7D. Signed-off-by: Anson Huang --- arch/arm/mach-imx/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index

[PATCH V3] firmware: imx: Move i.MX SCU soc driver into imx firmware folder

2020-06-25 Thread Anson Huang
SCU soc driver into imx firmware folder and initialized by i.MX SCU firmware driver. Signed-off-by: Anson Huang --- Changes since V2: - remove EXPORT_SYMBOL() of imx_scu_soc_init(). --- arch/arm64/configs/defconfig | 1 - drivers/firmware/imx/Makefile | 2 +- drivers/firmware

RE: [PATCH V2] firmware: imx: Move i.MX SCU soc driver into imx firmware folder

2020-06-25 Thread Anson Huang
Hi, Arnd > Subject: Re: [PATCH V2] firmware: imx: Move i.MX SCU soc driver into imx > firmware folder > > On Thu, Jun 25, 2020 at 2:27 AM Anson Huang > wrote: > > > > The i.MX SCU soc driver depends on SCU firmware driver, so it has to > > use platform dr

[PATCH V2] firmware: imx: Move i.MX SCU soc driver into imx firmware folder

2020-06-24 Thread Anson Huang
SCU soc driver into imx firmware folder and initialized by i.MX SCU firmware driver. Signed-off-by: Anson Huang --- Changes since V1: - move soc driver to imx firmware folder instead of merge it into imx firmware driver. --- arch/arm64/configs/defconfig | 1 - drivers/firmware/imx

RE: [PATCH] firmware: imx: Move i.MX SCU soc driver into SCU firmware driver

2020-06-24 Thread Anson Huang
Hi, Franck/Arnd > Subject: RE: [PATCH] firmware: imx: Move i.MX SCU soc driver into SCU > firmware driver > > Hello, > > The move of folder is a good idea however I do not feel adding the code of > soc-imx-scu.c to imx-scu.c is the best. > Until now imx-scu.c was focused on exchanging the RPC a

[PATCH] firmware: imx: Move i.MX SCU soc driver into SCU firmware driver

2020-06-24 Thread Anson Huang
SCU soc driver into SCU firmware driver. Signed-off-by: Anson Huang --- arch/arm64/configs/defconfig | 1 - drivers/firmware/imx/imx-scu.c | 127 ++ drivers/soc/imx/Kconfig| 9 --- drivers/soc/imx/Makefile | 1 - drivers/soc/imx/soc-imx-scu.c | 172

[PATCH V6 6/9] pinctrl: imx8mp: Support building as module

2020-06-23 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8MP pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-im

[PATCH V6 2/9] pinctrl: imx: scu: Support i.MX8 SCU SoCs pinctrl driver built as module

2020-06-23 Thread Anson Huang
Export necessary APIs to support i.MX8 SCU SoCs pinctrl driver to be built as module. Signed-off-by: Anson Huang --- Changes since V5: - keep it still built in, ONLY export APIs for SoCs pinctrl driver; --- drivers/pinctrl/freescale/pinctrl-scu.c | 4 1 file changed, 4 insertions

[PATCH V6 1/9] pinctrl: imx: Support i.MX8 SoCs pinctrl driver built as module

2020-06-23 Thread Anson Huang
Export necessary APIs to support i.MX8 SoCs pinctrl driver to be built as module. Signed-off-by: Anson Huang --- Changes since V5: - keep it still built in, ONLY export APIs for SoCs pinctrl driver; --- drivers/pinctrl/freescale/pinctrl-imx.c | 2 ++ 1 file changed, 2 insertions

[PATCH V6 9/9] pinctrl: imx8dxl: Support building as module

2020-06-23 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8DXL pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx

[PATCH V6 7/9] pinctrl: imx8qxp: Support building as module

2020-06-23 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8QXP pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx

[PATCH V6 8/9] pinctrl: imx8qm: Support building as module

2020-06-23 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8QM pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-im

[PATCH V6 4/9] pinctrl: imx8mn: Support building as module

2020-06-23 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8MN pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-im

[PATCH V6 3/9] pinctrl: imx8mm: Support building as module

2020-06-23 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8MM pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-im

[PATCH V6 5/9] pinctrl: imx8mq: Support building as module

2020-06-23 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8MQ pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-im

[PATCH V6 0/9] Support i.MX8 SoCs pinctrl drivers built as module

2020-06-23 Thread Anson Huang
pinctrl driver and i.MX SCU common pinctrl driver as still built-in. Compared to V5, the changes are as below: - Keep i.MX common pinctrl libary built in, ONLY i.MX SoC pinctrl driver support built as module. Anson Huang (9): pinctrl: imx: Support i.MX8 SoCs pinctrl driver built as

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

2020-06-23 Thread Anson Huang
; > Quoting Aisheng Dong (2020-06-22 20:42:19) > > > > > > From: Stephen Boyd > > > > > > Sent: Saturday, June 20, 2020 11:28 AM > > > > > > Subject: RE: [PATCH V2 3/9] clk: imx: Support building SCU > > > > > >

RE: [PATCH] soc: imx-scu: Support module build

2020-06-19 Thread Anson Huang
> Subject: RE: [PATCH] soc: imx-scu: Support module build > > > From: Arnd Bergmann > > Sent: Thursday, June 18, 2020 3:21 PM > > > > On Wed, Jun 17, 2020 at 11:41 AM Anson Huang > > wrote: > > > > > > > > > >

[PATCH V4 3/3] dt-bindings: clock: Correct example in i.MX8QXP LPCG binding

2020-06-17 Thread Anson Huang
dhc' was unexpected) Documentation/devicetree/bindings/clock/imx8qxp-lpcg.example.dt.yaml: mmc@5b01: compatible: ['fsl,imx8qxp-usdhc', 'fsl,imx7d-usdhc'] is too long Signed-off-by: Anson Huang --- New patch, to fix build error when patch #1 is added. --- Documentation/de

[PATCH V4 2/3] dt-bindings: clock: Correct mmc node name in i.MX35 binding

2020-06-17 Thread Anson Huang
Nodename should be "mmc" instead of "esdhc" in i.MX35 clock binding to avoid below build error: Documentation/devicetree/bindings/clock/imx35-clock.example.dt.yaml: esdhc@53fb4000: $nodename:0: 'esdhc@53fb4000' does not match '^mmc(@.*)?$' Signed-off-by:

[PATCH V4 1/3] dt-bindings: mmc: Convert imx esdhc to json-schema

2020-06-17 Thread Anson Huang
Convert the i.MX ESDHC binding to DT schema format using json-schema Signed-off-by: Anson Huang --- No change. --- .../devicetree/bindings/mmc/fsl-imx-esdhc.txt | 67 --- .../devicetree/bindings/mmc/fsl-imx-esdhc.yaml | 124 + 2 files changed, 124

RE: [PATCH V2 2/9] ARM: imx: Select MXC_CLK for ARCH_MXC

2020-06-17 Thread Anson Huang
> -Original Message- > From: Aisheng Dong > Sent: 2020年6月18日 11:09 > To: Anson Huang ; li...@armlinux.org.uk; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; mturque...@baylibre.com; sb...@kernel.org; > oleksandr.suvo..

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

2020-06-17 Thread Anson Huang
> Subject: RE: [PATCH V5 1/9] pinctrl: imx: Support building SCU pinctrl driver > as > module > > [...] > > > > > > > - * @dev: a pointer back to containing device > > > > > > - * @base: the offset to the controller in virtual memory > > > > > > - */ > > > > > > -struct imx_pinctrl { > > > > >

RE: [PATCH V2 2/9] ARM: imx: Select MXC_CLK for ARCH_MXC

2020-06-17 Thread Anson Huang
> Subject: RE: [PATCH V2 2/9] ARM: imx: Select MXC_CLK for ARCH_MXC > > > From: Anson Huang > > Sent: Tuesday, June 9, 2020 3:32 PM > > > > i.MX common clock drivers may support module build, so it is NOT > > selected by default, for ARCH_MXC ARMv7 platform

RE: [PATCH V2 1/9] clk: composite: Export clk_hw_register_composite()

2020-06-17 Thread Anson Huang
> Subject: RE: [PATCH V2 1/9] clk: composite: Export > clk_hw_register_composite() > > > From: Anson Huang > > Sent: Tuesday, June 9, 2020 3:32 PM > > > > Export clk_hw_register_composite() to support user built as module. > > > > ERROR: modpost:

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

2020-06-17 Thread Anson Huang
> Subject: RE: [PATCH V2 3/9] clk: imx: Support building SCU clock driver as > module > > > From: Anson Huang > > Sent: Tuesday, June 9, 2020 3:32 PM > > > > There are more and more requirements of building SoC specific drivers > > as modules, add support

RE: [PATCH] soc: imx-scu: Support module build

2020-06-17 Thread Anson Huang
> Subject: RE: [PATCH] soc: imx-scu: Support module build > > > > Subject: RE: [PATCH] soc: imx-scu: Support module build > > > > > From: Anson Huang > > > Sent: Wednesday, June 17, 2020 12:54 PM > > > > > > Change the configuration t

RE: [PATCH] soc: imx-scu: Support module build

2020-06-17 Thread Anson Huang
> Subject: RE: [PATCH] soc: imx-scu: Support module build > > > From: Anson Huang > > Sent: Wednesday, June 17, 2020 12:54 PM > > > > Change the configuration type to tristate, add module description, > > author and license to support module build

[PATCH] thermal: imx8mm: Support module autoloading

2020-06-17 Thread Anson Huang
Add a missing MODULE_DEVICE_TABLE entry to support module autoloading. Signed-off-by: Anson Huang --- drivers/thermal/imx8mm_thermal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thermal/imx8mm_thermal.c b/drivers/thermal/imx8mm_thermal.c index e6061e2..f5124f1 100644 --- a

[PATCH] soc: imx-scu: Support module build

2020-06-16 Thread Anson Huang
Change the configuration type to tristate, add module description, author and license to support module build. Signed-off-by: Anson Huang --- drivers/soc/imx/Kconfig | 2 +- drivers/soc/imx/soc-imx-scu.c | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/soc

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

2020-06-16 Thread Anson Huang
> Subject: RE: [PATCH V5 1/9] pinctrl: imx: Support building SCU pinctrl driver > as > module > > > From: Anson Huang > > Sent: Tuesday, June 16, 2020 6:44 PM > > > > > Subject: RE: [PATCH V5 1/9] pinctrl: imx: Support building SCU > > > pi

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

2020-06-16 Thread Anson Huang
> Subject: RE: [PATCH V5 1/9] pinctrl: imx: Support building SCU pinctrl driver > as > module > > > From: Anson Huang > > Sent: Thursday, June 11, 2020 7:35 PM > > > > To support building i.MX SCU pinctrl driver as module, below things > > need t

[PATCH V2 2/2] dt-bindings: input: Convert imx keypad to json-schema

2020-06-15 Thread Anson Huang
Convert the i.MX KEYPAD binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V1: - include matrix-keymap.yaml and "linux,keymap" is unnecessary now, remove it. --- .../devicetree/bindings/input/imx-keypad.txt

[PATCH V2 1/2] dt-bindings: input: Convert matrix-keymap to json-schema

2020-06-15 Thread Anson Huang
Convert the matrix-keymap binding to DT schema format using json-schema Signed-off-by: Anson Huang --- New patch. --- .../devicetree/bindings/input/matrix-keymap.txt| 28 + .../devicetree/bindings/input/matrix-keymap.yaml | 46 ++ 2 files changed, 47

[PATCH V3 1/3] dt-bindings: spi: Convert mxs spi to json-schema

2020-06-15 Thread Anson Huang
Convert the MXS SPI binding to DT schema format using json-schema Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- Changes since V2: - drop "clock-frequency" property's type. --- Documentation/devicetree/bindings/spi/mxs-spi.txt | 26 -- Documenta

[PATCH V3 2/3] dt-bindings: spi: Convert imx cspi to json-schema

2020-06-15 Thread Anson Huang
Convert the i.MX CSPI binding to DT schema format using json-schema, update compatible, remove obsolete properties "fsl,spi-num-chipselects" and update the example based on latest DT file. Signed-off-by: Anson Huang --- Changes since V2: - remove redundant "maxItems&q

[PATCH V3 0/3] Convert mxs/imx spi/cspi/lpspi binding to json-schema

2020-06-15 Thread Anson Huang
l address pandy@nxp.com is no longer valid, so I use mine. Compared to V2, this patch series mainly removes redundant 'maxItems' in 'clocks' and 'clock-names' property, also drop "clock-frequency" property's type. Anson Huang (3): dt-bindings: spi: Co

[PATCH V3 3/3] dt-bindings: spi: Convert imx lpspi to json-schema

2020-06-15 Thread Anson Huang
Convert the i.MX LPSPI binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V2: - remove redundant "maxItems" in "clocks" and "clock-names". --- .../devicetree/bindings/spi/spi-fsl-lpspi.txt | 29 --- .../d

[PATCH V3 1/2] dt-bindings: i2c: Convert mxs i2c to json-schema

2020-06-15 Thread Anson Huang
Convert the MXS I2C binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V2: - remove 'clock-frequency' property's typs and use enum for it, as it ONLY support 100KHz/400KHz. --- Documentation/devicetree/bindings/i2c/i2

[PATCH V3 2/2] dt-bindings: i2c: Convert imx i2c to json-schema

2020-06-15 Thread Anson Huang
Convert the i.MX I2C binding to DT schema format using json-schema, some improvements applied, such as update example based on latest DT file, add more compatible for existing SoCs, and remove unnecessary common property "pinctrl". Signed-off-by: Anson Huang --- Change

RE: [PATCH V2 3/3] dt-bindings: i2c: Convert imx i2c to json-schema

2020-06-15 Thread Anson Huang
Hi, Rob > Subject: Re: [PATCH V2 3/3] dt-bindings: i2c: Convert imx i2c to json-schema > > On Thu, Jun 04, 2020 at 09:49:18AM +0800, Anson Huang wrote: > > Convert the i.MX I2C binding to DT schema format using json-schema, > > some improvements applied, such as update ex

[PATCH V3] dt-bindings: mmc: Convert imx esdhc to json-schema

2020-06-15 Thread Anson Huang
Convert the i.MX ESDHC binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V2: - fix typo of "dealy" to "delay"; - remove unused "Several ranges could be specified." in voltage-ranges which contradic

[PATCH V5 8/9] pinctrl: imx8qm: Support building as module

2020-06-11 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8QM pinctrl driver as module. Signed-off-by: Anson Huang --- Changes since V4: - remove unnecessary change of replacing arch_initcall() with module_platf

[PATCH V5 5/9] pinctrl: imx8mq: Support building as module

2020-06-11 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8MQ pinctrl driver as module. Signed-off-by: Anson Huang --- Changes since V4: - remove unnecessary change of replacing arch_initcall() with module_platf

[PATCH V5 3/9] pinctrl: imx8mm: Support building as module

2020-06-11 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8MM pinctrl driver as module. Signed-off-by: Anson Huang --- Changes since V4: - remove unnecessary change of replacing arch_initcall() with module_platf

[PATCH V5 9/9] pinctrl: imx8dxl: Support building as module

2020-06-11 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8DXL pinctrl driver as module. Signed-off-by: Anson Huang --- Changes since V4: - remove unnecessary change of replacing arch_initcall() with module_platf

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

2020-06-11 Thread Anson Huang
author, description and license should be added. Signed-off-by: Anson Huang --- Changes since V4: - add module author and description. --- drivers/pinctrl/freescale/Kconfig | 3 ++- drivers/pinctrl/freescale/pinctrl-imx.c | 7 +++ 2 files changed, 9 insertions(+), 1 deletion

[PATCH V5 6/9] pinctrl: imx8mp: Support building as module

2020-06-11 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8MP pinctrl driver as module. Signed-off-by: Anson Huang --- Changes since V4: - remove unnecessary change of replacing arch_initcall() with module_platf

[PATCH V5 7/9] pinctrl: imx8qxp: Support building as module

2020-06-11 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8QXP pinctrl driver as module. Signed-off-by: Anson Huang --- Changes since V4: - remove unnecessary change of replacing arch_initcall() with module_platf

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

2020-06-11 Thread Anson Huang
- Add module author, description and license. With above changes, i.MX SCU pinctrl driver can be built as module. Signed-off-by: Anson Huang --- Changes since V4: - add module author and description. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pi

[PATCH V5 4/9] pinctrl: imx8mn: Support building as module

2020-06-11 Thread Anson Huang
Change configuration to "tristate", add module device table, author, description and license to support building i.MX8MN pinctrl driver as module. Signed-off-by: Anson Huang --- Changes since V4: - remove unnecessary change of replacing arch_initcall() with module_platf

[PATCH V5 0/9] Support i.MX8 SoCs pinctrl drivers built as module

2020-06-11 Thread Anson Huang
sequence change for built-in config. - add module author and description to each module. Anson Huang (9): pinctrl: imx: Support building SCU pinctrl driver as module pinctrl: imx: Support building i.MX pinctrl driver as module pinctrl: imx8mm: Support building as module pinctrl: imx8mn

RE: [PATCH V4 4/9] pinctrl: imx8mn: Support building as module

2020-06-11 Thread Anson Huang
Hi, Daniel > Subject: Re: [PATCH V4 4/9] pinctrl: imx8mn: Support building as module > > Maybe this is obvious but I would really like to see an explanation > > of why we are switching from arch_initcall to platform_init. > > Commit message act as documentation  for the reviewers. Yes, I notic

RE: [PATCH V4 0/9] Support i.MX8 SoCs pinctrl drivers built as module

2020-06-11 Thread Anson Huang
Hi, Daniel > Subject: Re: [PATCH V4 0/9] Support i.MX8 SoCs pinctrl drivers built as module > > Hi Anson, > > Patch series mostly looks good to me. I have a comment about adding > > the MODULE_LICENSE. This is a pretty important change. > > > Can you please add this change in a separate patch

RE: [PATCH V3 0/9] Support i.MX8 SoCs pinctrl drivers built as module

2020-06-11 Thread Anson Huang
> Subject: RE: [PATCH V3 0/9] Support i.MX8 SoCs pinctrl drivers built as module > > > > > > Subject: RE: [PATCH V3 0/9] Support i.MX8 SoCs pinctrl drivers built > > as module > > > > > From: Anson Huang > > > Sent: Tuesday, June 9

[PATCH] arm64: dts: imx8mp: Add fallback compatible to ocotp node

2020-06-10 Thread Anson Huang
Add "fsl,imx8mm-ocotp" as fallback compatible of i.MX8MP ocotp to support SoC serial_number read. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/

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