[PATCH 2/3] clocksource: imx-sysctr: Add of_clk skip option

2019-06-21 Thread Anson . Huang
From: Anson Huang On some i.MX8M platforms, clock driver uses platform driver model and it is NOT ready during timer initialization phase, the clock operations will fail and system counter driver will fail too. As all the i.MX8M platforms' system counter clock are from OSC which is always

[PATCH 1/3] clocksource/drivers/sysctr: Add an optional property

2019-06-21 Thread Anson . Huang
From: Anson Huang This patch adds an optional property "clock-frequency" to pass the system counter frequency value to kernel system counter driver and indicate the driver to skip of_clk operations, this is to support those platforms using platform driver model for clock driver.

[PATCH 2/4] dt-bindings: clock: imx8mm: Add system counter clock

2019-06-21 Thread Anson . Huang
From: Anson Huang Add i.MX8MM system counter clock macro definition. Signed-off-by: Anson Huang --- include/dt-bindings/clock/imx8mm-clock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/imx8mm-clock.h b/include/dt-bindings/clock/imx8mm

[PATCH 3/4] clk: imx8mm: Add system counter to clock tree

2019-06-21 Thread Anson . Huang
From: Anson Huang i.MX8MM timer-imx-sysctr driver needs system counter clock for proper function, add it into clock tree. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk

[PATCH 1/4] arm64: Enable TIMER_IMX_SYS_CTR for ARCH_MXC platforms

2019-06-21 Thread Anson . Huang
From: Anson Huang ARCH_MXC platforms needs system counter as broadcast timer to support cpuidle, enable it by default. Signed-off-by: Anson Huang --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms

[PATCH 4/4] arm64: dts: imx8mm: Add system counter node

2019-06-21 Thread Anson . Huang
From: Anson Huang Add i.MX8MM system counter node to enable timer-imx-sysctr broadcast timer driver. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64

[PATCH] arm64: defconfig: Enable CONFIG_KEYBOARD_SNVS_PWRKEY as module

2019-06-20 Thread Anson . Huang
From: Anson Huang Enable CONFIG_KEYBOARD_SNVS_PWRKEY as module to support i.MX8M series SoCs' power key. 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 29f7768

[PATCH 1/2] clk: imx: Remove __init for imx_register_uart_clocks() API

2019-06-19 Thread Anson . Huang
From: Anson Huang Some of i.MX SoCs' clock driver use platform driver model, and they need to call imx_register_uart_clocks() API, so imx_register_uart_clocks() API should NOT be in .init section. Signed-off-by: Anson Huang --- drivers/clk/imx/clk.c | 6 +++--- 1 file changed, 3 insertions

[PATCH 2/2] clk: imx8mq: Keep uart clocks on during system boot

2019-06-19 Thread Anson . Huang
From: Anson Huang Call imx_register_uart_clocks() API to keep uart clocks enabled when earlyprintk or earlycon is active. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mq.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx

[PATCH V5 3/5] clk: imx: Add API for clk unregister when driver probe fail

2019-06-18 Thread Anson . Huang
From: Anson Huang For i.MX clock drivers probe fail case, clks should be unregistered in the return path, this patch adds a common API for i.MX clock drivers to unregister clocks when fail. Signed-off-by: Anson Huang --- New patch. --- drivers/clk/imx/clk.c | 8 drivers/clk/imx/clk.h

[PATCH V5 4/5] clk: imx: Add support for i.MX8MN clock driver

2019-06-18 Thread Anson . Huang
From: Anson Huang This patch adds i.MX8MN clock driver support. Signed-off-by: Anson Huang --- Changes since V4: - use dev_err instead of pr_err; - unregister clocks when probe failed. --- drivers/clk/imx/Kconfig | 6 + drivers/clk/imx/Makefile | 1 + drivers/clk

[PATCH V5 1/5] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-18 Thread Anson . Huang
From: Anson Huang Add the clock binding doc for i.MX8MN. Signed-off-by: Anson Huang Reviewed-by: Maxime Ripard --- No changes. --- .../devicetree/bindings/clock/imx8mn-clock.yaml| 112 +++ include/dt-bindings/clock/imx8mn-clock.h | 215 + 2 files

[PATCH V5 5/5] arm64: defconfig: Select CONFIG_CLK_IMX8MN by default

2019-06-18 Thread Anson . Huang
From: Anson Huang Enable CONFIG_CLK_IMX8MN to support i.MX8MN clock driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 7a21159..29f7768 100644

[PATCH V5 2/5] clk: imx8mm: Make 1416X/1443X PLL macro definitions common for usage

2019-06-18 Thread Anson . Huang
From: Anson Huang 1416X/1443X PLL are used on i.MX8MM and i.MX8MN and maybe other i.MX8M series SoC later, the macro definitions of these PLLs' initialization should be common for usage. Signed-off-by: Anson Huang --- No changes. --- drivers/clk/imx/clk-imx8mm.c | 17

[PATCH V4 4/4] dt-bindings: arm: imx: Add the soc binding for i.MX8MQ

2019-06-18 Thread Anson . Huang
From: Anson Huang This patch adds the soc & board binding for i.MX8MQ. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- No changes. --- Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH V4 2/4] arm64: dts: freescale: Add i.MX8MN dtsi support

2019-06-18 Thread Anson . Huang
From: Anson Huang The i.MX8M Nano Media Applications Processor is a new SoC of the i.MX8M family, it is a 14nm FinFET product of the growing mScale family targeting the consumer market. It is built in Samsung 14LPP to achieve both high performance and low power consumption and relies

[PATCH V4 3/4] arm64: dts: freescale: Add i.MX8MN DDR4 EVK board support

2019-06-18 Thread Anson . Huang
From: Anson Huang This patch adds basic i.MM8MN DDR4 EVK board support. Signed-off-by: Anson Huang --- No change. --- arch/arm64/boot/dts/freescale/Makefile| 1 + arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 221 ++ 2 files changed, 222 insertions

[PATCH V4 1/4] dt-bindings: arm: imx: Add the soc binding for i.MX8MN

2019-06-18 Thread Anson . Huang
From: Anson Huang This patch adds the soc & board binding for i.MX8MN. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- No change. --- Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings

RE: [PATCH] soc: imx: Add i.MX8MN SoC driver support

2019-06-18 Thread Anson Huang
Hi, Shawn > -Original Message- > From: Shawn Guo > Sent: Tuesday, June 18, 2019 8:59 PM > To: Anson Huang > Cc: s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > Leonard Crestez ; viresh.ku...@linaro.org; > Abel Vesa ; linux-arm-ker...@lists.i

[PATCH V2] soc: imx: Add i.MX8MN SoC driver support

2019-06-18 Thread Anson . Huang
From: Anson Huang This patch adds i.MX8MN SoC driver support: root@imx8mnevk:~# cat /sys/devices/soc0/family Freescale i.MX root@imx8mnevk:~# cat /sys/devices/soc0/machine NXP i.MX8MNano DDR4 EVK board root@imx8mnevk:~# cat /sys/devices/soc0/soc_id i.MX8MN root@imx8mnevk:~# cat /sys/devices

RE: [PATCH V2 2/2] soc: imx8: Use existing of_root directly

2019-06-18 Thread Anson Huang
Hi, Shawn > -Original Message- > From: Shawn Guo > Sent: Tuesday, June 18, 2019 5:15 PM > To: Anson Huang > Cc: s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > Leonard Crestez ; viresh.ku...@linaro.org; > Abel Vesa ; linux-arm-ker...@lists.i

[PATCH RESEND V2] soc: imx8: Use existing of_root directly

2019-06-18 Thread Anson . Huang
From: Anson Huang There is common of_root for reference, no need to find it from DT again, use of_root directly to make driver simple. Signed-off-by: Anson Huang --- drivers/soc/imx/soc-imx8.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/soc/imx/soc

RE: [PATCH] soc: imx: Add i.MX8MN SoC driver support

2019-06-18 Thread Anson Huang
Hi, Shawn > -Original Message- > From: Shawn Guo > Sent: Tuesday, June 18, 2019 3:04 PM > To: Anson Huang > Cc: s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > Leonard Crestez ; viresh.ku...@linaro.org; > Abel Vesa ; linux-arm-ker...@lists.i

[PATCH V15 3/5] thermal: imx_sc: add i.MX system controller thermal support

2019-06-17 Thread Anson . Huang
From: Anson Huang i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and thermal sensors etc.. This patch adds i.MX system controller thermal driver support, Linux kernel has to communicate with system

[PATCH V5 5/5] arm64: defconfig: Select CONFIG_CLK_IMX8MN by default

2019-06-14 Thread Anson . Huang
From: Anson Huang Enable CONFIG_CLK_IMX8MN to support i.MX8MN clock driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 3dfbd6a..b2de9d0 100644

[PATCH V5 1/5] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-14 Thread Anson . Huang
From: Anson Huang Add the clock binding doc for i.MX8MN. Signed-off-by: Anson Huang Reviewed-by: Maxime Ripard --- Changes since V4: - remove unnecessary reference statement for common clock binding; - move the description about clock cell to clock-cells node

[PATCH V5 2/5] clk: imx8mm: Make 1416X/1443X PLL macro definitions common for usage

2019-06-14 Thread Anson . Huang
From: Anson Huang 1416X/1443X PLL are used on i.MX8MM and i.MX8MN and maybe other i.MX8M series SoC later, the macro definitions of these PLLs' initialization should be common for usage. Signed-off-by: Anson Huang --- No changes. --- drivers/clk/imx/clk-imx8mm.c | 17

[PATCH V5 4/5] clk: imx: Add support for i.MX8MN clock driver

2019-06-14 Thread Anson . Huang
From: Anson Huang This patch adds i.MX8MN clock driver support. Signed-off-by: Anson Huang --- Changes since V4: - add clock unregister operations when probe failed. --- drivers/clk/imx/Kconfig | 6 + drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx8mn.c | 636

[PATCH V5 3/5] clk: imx: Add API for clk unregister when driver probe fail

2019-06-14 Thread Anson . Huang
From: Anson Huang For i.MX clock drivers probe fail case, clks should be unregistered in the return path, this patch adds a common API for i.MX clock drivers to unregister clocks when fail. Signed-off-by: Anson Huang --- New patch. --- drivers/clk/imx/clk.c | 8 drivers/clk/imx/clk.h

[PATCH V2 1/2] soc: imx8: Fix potential kernel dump in error path

2019-06-14 Thread Anson . Huang
From: Anson Huang When SoC's revision value is 0, SoC driver will print out "unknown" in sysfs's revision node, this "unknown" is a static string which can NOT be freed, this will caused below kernel dump in later error path which calls kfree: kernel BUG at mm/slub.c:3942!

[PATCH V2 2/2] soc: imx8: Use existing of_root directly

2019-06-14 Thread Anson . Huang
From: Anson Huang There is common of_root for reference, no need to find it from DT again, use of_root directly to make driver simple. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No changes. --- drivers/soc/imx/soc-imx8.c | 9 ++--- 1 file changed, 2 insertions(+), 7

[PATCH] arm64: dts: imx8mq-evk: Enable SNVS power key

2019-06-13 Thread Anson . Huang
From: Anson Huang Enable SNVS power key for i.MX8MQ EVK board. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts index

[PATCH] arm64: dts: imx8mm: Enable SNVS power key according to board design

2019-06-13 Thread Anson . Huang
From: Anson Huang The SNVS power key depends on board design, by default it should be disabled in SoC DT and ONLY be enabled on board DT if it is wired up. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 4 arch/arm64/boot/dts/freescale/imx8mm.dtsi| 1

[PATCH 2/6] ARM: dts: imx6sx: Enable SNVS power key according to board design

2019-06-13 Thread Anson . Huang
From: Anson Huang The SNVS power key depends on board design, by default it should be disabled in SoC DT and ONLY be enabled on board DT if it is wired up. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx-sdb-reva.dts | 4 arch/arm/boot/dts/imx6sx-sdb.dts | 4 arch/arm

[PATCH 4/6] ARM: dts: imx6sll: Enable SNVS power key according to board design

2019-06-13 Thread Anson . Huang
From: Anson Huang The SNVS power key depends on board design, by default it should be disabled in SoC DT and ONLY be enabled on board DT if it is wired up. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sll-evk.dts | 4 arch/arm/boot/dts/imx6sll.dtsi| 1 + 2 files changed, 5

[PATCH 5/6] ARM: dts: imx7s: Enable SNVS power key according to board design

2019-06-13 Thread Anson . Huang
From: Anson Huang The SNVS power key depends on board design, by default it should be disabled in SoC DT and ONLY be enabled on board DT if it is wired up. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7d-sdb.dts | 4 arch/arm/boot/dts/imx7s.dtsi| 1 + 2 files changed, 5

[PATCH 1/6] ARM: dts: imx6qdl: Enable SNVS power key according to board design

2019-06-13 Thread Anson . Huang
From: Anson Huang The SNVS power key depends on board design, by default it should be disabled in SoC DT and ONLY be enabled on board DT if it is wired up. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 4 arch/arm/boot/dts/imx6qdl.dtsi | 1 + 2 files

[PATCH 6/6] ARM: dts: imx6sll: Enable SNVS poweroff according to board design

2019-06-13 Thread Anson . Huang
From: Anson Huang The SNVS poweroff depends on board design, by default it should be disabled in SoC DT and ONLY be enabled on board DT if it is wired up to external PMIC. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sll-evk.dts | 4 arch/arm/boot/dts/imx6sll.dtsi| 1 + 2

[PATCH 3/6] ARM: dts: imx6ul: Enable SNVS power key according to board design

2019-06-13 Thread Anson . Huang
From: Anson Huang The SNVS power key depends on board design, by default it should be disabled in SoC DT and ONLY be enabled on board DT if it is wired up. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6ul-14x14-evk.dtsi | 4 arch/arm/boot/dts/imx6ul.dtsi | 1 + 2 files

[PATCH V3 2/4] arm64: dts: freescale: Add i.MX8MN dtsi support

2019-06-13 Thread Anson . Huang
From: Anson Huang The i.MX8M Nano Media Applications Processor is a new SoC of the i.MX8M family, it is a 14nm FinFET product of the growing mScale family targeting the consumer market. It is built in Samsung 14LPP to achieve both high performance and low power consumption and relies

[PATCH V3 3/4] arm64: dts: freescale: Add i.MX8MN DDR4 EVK board support

2019-06-13 Thread Anson . Huang
From: Anson Huang This patch adds basic i.MM8MN DDR4 EVK board support. Signed-off-by: Anson Huang --- Changes since V2: - Enable SNVS powerkey. --- arch/arm64/boot/dts/freescale/Makefile| 1 + arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 221

[PATCH V3 1/4] dt-bindings: arm: imx: Add the soc binding for i.MX8MN

2019-06-13 Thread Anson . Huang
From: Anson Huang This patch adds the soc & board binding for i.MX8MN. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- Changes since V2: - sort it with alphabet order, no content change. --- Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++ 1 file change

[PATCH V3 4/4] dt-bindings: arm: imx: Add the soc binding for i.MX8MQ

2019-06-13 Thread Anson . Huang
From: Anson Huang This patch adds the soc & board binding for i.MX8MQ. Signed-off-by: Anson Huang --- New patch, as I just found i.MX8MQ SoC & board binding is missed, so add this patch based on i.MX8MN binding, so put it in same series to avoid dependency issue. --- Documentation/de

[PATCH 2/2] soc: imx8: Use existing of_root directly

2019-06-11 Thread Anson . Huang
From: Anson Huang There is common of_root for reference, no need to find it from DT again, use of_root directly to make driver simple. Signed-off-by: Anson Huang --- drivers/soc/imx/soc-imx8.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/soc/imx/soc

[PATCH 1/2] soc: imx8: Fix potential kernel dump in error path

2019-06-11 Thread Anson . Huang
From: Anson Huang When SoC's revision value is 0, SoC driver will print out "unknown" in sysfs's revision node, this "unknown" is a static string which can NOT be freed, this will caused below kernel dump in later error path which calls kfree: kernel BUG at mm/slub.c:3942!

RE: [PATCH 2/3] rtc: imx-sc: Make compatible string more generic

2019-06-11 Thread Anson Huang
Hi, Fabio/Trent > -Original Message- > From: Trent Piepho > Sent: Wednesday, June 12, 2019 4:46 AM > To: feste...@gmail.com; Anson Huang > Cc: Aisheng Dong ; alexandre.bell...@bootlin.com; > robh...@kernel.org; dl-linux-imx ; linux- > ker...@vger.kernel.org; devic

[PATCH V2 3/3] arm64: defconfig: Select CONFIG_PINCTRL_IMX8MN by default

2019-06-11 Thread Anson . Huang
From: Anson Huang Enable CONFIG_PINCTRL_IMX8MN by default to support i.MX8MN pinctrl driver. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- Changes since V1: - sort the change in alphabet order. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff

[PATCH V2 2/3] pinctrl: freescale: Add i.MX8MN pinctrl driver support

2019-06-11 Thread Anson . Huang
From: Anson Huang Add the pinctrl driver support for i.MX8MN. Signed-off-by: Anson Huang Acked-by: Dong Aisheng --- Changes since V1: - Fix some nitpicks like sorting the change in alphabet order and improve the headfile included. --- drivers/pinctrl/freescale/Kconfig

[PATCH V2 1/3] dt-bindings: imx: Add pinctrl binding doc for i.MX8MN

2019-06-11 Thread Anson . Huang
From: Anson Huang Add binding doc for i.MX8MN pinctrl driver. Signed-off-by: Anson Huang Acked-by: Dong Aisheng --- No change. --- .../bindings/pinctrl/fsl,imx8mn-pinctrl.txt| 39 ++ arch/arm64/boot/dts/freescale/imx8mn-pinfunc.h | 646 + 2 files changed, 685

[PATCH 3/3] arm64: dts: imx8qxp: Add fallback compatible string for RTC node

2019-06-11 Thread Anson . Huang
From: Anson Huang The i.MX system controller RTC driver uses generic compatible string to support all i.MX SoCs with system controller inside, this patch adds the generic system controller RTC compatible string as fallback compatible string accordingly. Signed-off-by: Anson Huang --- arch

[PATCH 2/3] rtc: imx-sc: Make compatible string more generic

2019-06-11 Thread Anson . Huang
From: Anson Huang i.MX system controller RTC driver can support all i.MX SoCs with system controller inside, this patch makes the compatible string more generic to support other i.MX SoCs with system controller inside, such as i.MX8QM etc.. Signed-off-by: Anson Huang --- drivers/rtc/rtc-imx

[PATCH 1/3] dt-bindings: fsl: scu: Update RTC compatible string

2019-06-11 Thread Anson . Huang
From: Anson Huang Update RTC compatible string to make system controller RTC driver more generic for all i.MX SoCs with system controller inside. Signed-off-by: Anson Huang --- This patch should be based on below patch which is already picked by watchdog maintainer: https

RE: [PATCH V3 3/4] clk: imx: Add support for i.MX8MN clock driver

2019-06-10 Thread Anson Huang
et; > robh...@kernel.org; s.hauer@pengutronix .de ; > shawn...@kernel.org; will.dea...@arm.com; Abel Vesa > ; Aisheng Dong ; Anson > Huang ; Jacky Bai ; Leonard > Crestez > Cc: dl-linux-imx > Subject: RE: [PATCH V3 3/4] clk: imx: Add support for i.MX8MN clock driver > &g

[PATCH] soc: imx: Add i.MX8MN SoC driver support

2019-06-10 Thread Anson . Huang
From: Anson Huang This patch adds i.MX8MN SoC driver support: root@imx8mnevk:~# cat /sys/devices/soc0/family Freescale i.MX root@imx8mnevk:~# cat /sys/devices/soc0/machine NXP i.MX8MNano DDR4 EVK board root@imx8mnevk:~# cat /sys/devices/soc0/soc_id i.MX8MN root@imx8mnevk:~# cat /sys/devices

RE: [RESEND] input: keyboard: imx: make sure keyboard can always wake up system

2019-06-10 Thread Anson Huang
Hi, Dmitry Any feedback for this patch? Thanks, Anson > -Original Message- > From: Anson Huang > Sent: Tuesday, May 21, 2019 2:36 PM > To: dmitry.torok...@gmail.com > Cc: shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste..

[PATCH] clk: imx8mq: Use devm_platform_ioremap_resource() instead of of_iomap()

2019-06-09 Thread Anson . Huang
From: Anson Huang i.MX8MQ clock driver uses platform driver model, better to use devm_platform_ioremap_resource() instead of of_iomap() to get IO base. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH 1/2] clk: imx: Remove __init for imx_check_clocks() API

2019-06-09 Thread Anson . Huang
From: Anson Huang Some of i.MX SoCs' clock driver use platform driver model, and they need to call imx_check_clocks() API, so imx_check_clocks() API should NOT be in .init section. Signed-off-by: Anson Huang --- drivers/clk/imx/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 2/2] clk: imx8mq: Use imx_check_clocks() API directly

2019-06-09 Thread Anson . Huang
From: Anson Huang Use imx_check_clocks() API to check clocks directly. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mq.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 7da1edb..5fbc2a7 100644

RE: [PATCH RESEND V13 2/5] thermal: of-thermal: add API for getting sensor ID from DT

2019-06-09 Thread Anson Huang
Hi, Eduardo > -Original Message- > From: Anson Huang > Sent: Wednesday, May 29, 2019 11:37 AM > To: Eduardo Valentin > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > ca

RE: [PATCH V3 3/4] clk: imx: Add support for i.MX8MN clock driver

2019-06-08 Thread Anson Huang
et; > robh...@kernel.org; s.hauer@pengutronix .de ; > shawn...@kernel.org; will.dea...@arm.com; Abel Vesa > ; Aisheng Dong ; Anson > Huang ; Jacky Bai ; Leonard > Crestez > Cc: dl-linux-imx > Subject: RE: [PATCH V3 3/4] clk: imx: Add support for i.MX8MN clock driver > >

RE: [PATCH RESEND V4 3/3] watchdog: imx_sc: Add pretimeout support

2019-06-08 Thread Anson Huang
Hi, Guenter > -Original Message- > From: Guenter Roeck On Behalf Of Guenter Roeck > Sent: Saturday, June 8, 2019 1:41 AM > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; w...@linux-watchdog.org; > shawn...@kernel.org; s.ha...@pengutronix.de; ker

RE: [PATCH V3 3/4] clk: imx: Add support for i.MX8MN clock driver

2019-06-06 Thread Anson Huang
Hi, Stephen > -Original Message- > From: Stephen Boyd > Sent: Friday, June 7, 2019 12:26 AM > To: Anson Huang ; Abel Vesa > ; Aisheng Dong ; > bjorn.anders...@linaro.org; catalin.mari...@arm.com; > devicet...@vger.kernel.org; dingu...@kernel.org; > enric.balle

RE: [PATCH V4 1/4] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-06 Thread Anson Huang
Hi, Maxime > -Original Message- > From: Maxime Ripard > Sent: Thursday, June 6, 2019 3:41 PM > To: Anson Huang > Cc: mturque...@baylibre.com; sb...@kernel.org; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@

RE: [PATCH] arm64: dts: imx8mm: Move gic node into soc node

2019-06-05 Thread Anson Huang
Hi, Shawn > -Original Message- > From: Shawn Guo > Sent: Thursday, June 6, 2019 10:18 AM > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; Leonard Crestez > ; Aisheng Dong ; >

[PATCH RESEND] arm64: dts: imx8mm: Move gic node into soc node

2019-06-05 Thread Anson . Huang
From: Anson Huang GIC is inside of SoC from architecture perspective, it should be located inside of soc node in DT. Signed-off-by: Anson Huang --- Resend the patch based on Shawn's imx/dt64 branch. --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 18 +- 1 file changed, 9

[PATCH V4 4/4] arm64: defconfig: Select CONFIG_CLK_IMX8MN by default

2019-06-05 Thread Anson . Huang
From: Anson Huang Enable CONFIG_CLK_IMX8MN to support i.MX8MN clock driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 8d4f25c..ae17f45 100644

[PATCH V4 1/4] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-05 Thread Anson . Huang
From: Anson Huang Add the clock binding doc for i.MX8MN. Signed-off-by: Anson Huang --- Changes since V3: - switch binding doc from .txt to .yaml. --- .../devicetree/bindings/clock/imx8mn-clock.yaml| 115 +++ include/dt-bindings/clock/imx8mn-clock.h | 215

[PATCH V4 2/4] clk: imx8mm: Make 1416X/1443X PLL macro definitions common for usage

2019-06-05 Thread Anson . Huang
From: Anson Huang 1416X/1443X PLL are used on i.MX8MM and i.MX8MN and maybe other i.MX8M series SoC later, the macro definitions of these PLLs' initialization should be common for usage. Signed-off-by: Anson Huang --- No changes. --- drivers/clk/imx/clk-imx8mm.c | 17

[PATCH V4 3/4] clk: imx: Add support for i.MX8MN clock driver

2019-06-05 Thread Anson . Huang
From: Anson Huang This patch adds i.MX8MN clock driver support. Signed-off-by: Anson Huang --- No changes. --- drivers/clk/imx/Kconfig | 6 + drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx8mn.c | 630 +++ 3 files changed, 637

RE: [PATCH V3 1/4] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-05 Thread Anson Huang
Hi, Stephen > -Original Message- > From: Stephen Boyd > Sent: Thursday, June 6, 2019 7:33 AM > To: Anson Huang ; Abel Vesa > ; Aisheng Dong ; > bjorn.anders...@linaro.org; catalin.mari...@arm.com; > devicet...@vger.kernel.org; dingu...@kernel.org; > enric.balle

RE: [PATCH RESEND V4 3/3] watchdog: imx_sc: Add pretimeout support

2019-06-05 Thread Anson Huang
Hi, Guenter > -Original Message- > From: Guenter Roeck On Behalf Of Guenter Roeck > Sent: Sunday, May 12, 2019 9:28 PM > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; w...@linux-watchdog.org; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pen

RE: [PATCH RESEND V4 2/3] arm64: dts: imx8qxp: Move watchdog node into scu node

2019-06-05 Thread Anson Huang
Hi, Shawn > -Original Message- > From: Shawn Guo > Sent: Wednesday, June 5, 2019 2:00 PM > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; w...@linux-watchdog.org; > li...@roeck-us.net; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gm

RE: [PATCH RESEND V4 2/3] arm64: dts: imx8qxp: Move watchdog node into scu node

2019-06-04 Thread Anson Huang
Hi, Shawn The driver and binding doc are already reviewed and waiting for DT patch, will you help review this DT patch? Thanks, Anson > -Original Message- > From: Anson Huang > Sent: Sunday, May 12, 2019 6:11 PM > To: robh...@kernel.org; mark.rutl...@arm.com

RE: [RFC PATCH 0/3] Add support of busfreq

2019-06-04 Thread Anson Huang
er...@vger.kernel.org>; Stephen Boyd ; Emilio > Lopez ; Hans de Goede ; > linux-clk ; linux-arm-kernel ker...@lists.infradead.org>; Zening Wang ; > Aisheng Dong ; Kevin Hilman > ; Carlo Caione ; dl-linux- > imx ; Anson Huang ; Viresh > Kumar > Subject: Re: [RFC PATCH 0/3]

[PATCH V3 3/4] clk: imx: Add support for i.MX8MN clock driver

2019-06-03 Thread Anson . Huang
From: Anson Huang This patch adds i.MX8MN clock driver support. Signed-off-by: Anson Huang --- Changes since V2: - use platform driver model for this clock driver; - add "const" to clock mux arrays. --- drivers/clk/imx/Kconfig | 6 + drivers/clk/imx/Makefile

[PATCH V3 1/4] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-03 Thread Anson . Huang
From: Anson Huang Add the clock binding doc for i.MX8MN. Signed-off-by: Anson Huang --- No changes. --- .../devicetree/bindings/clock/imx8mn-clock.txt | 29 +++ include/dt-bindings/clock/imx8mn-clock.h | 215 + 2 files changed, 244 insertions(+) create mode

[PATCH V3 2/4] clk: imx8mm: Make 1416X/1443X PLL macro definitions common for usage

2019-06-03 Thread Anson . Huang
From: Anson Huang 1416X/1443X PLL are used on i.MX8MM and i.MX8MN and maybe other i.MX8M series SoC later, the macro definitions of these PLLs' initialization should be common for usage. Signed-off-by: Anson Huang --- New patch. --- drivers/clk/imx/clk-imx8mm.c | 17 - drivers

[PATCH V3 4/4] arm64: defconfig: Select CONFIG_CLK_IMX8MN by default

2019-06-03 Thread Anson . Huang
From: Anson Huang Enable CONFIG_CLK_IMX8MN to support i.MX8MN clock driver. Signed-off-by: Anson Huang --- Changes since V2: - follow alphabet sequence. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64

RE: [PATCH V2 2/3] clk: imx: Add support for i.MX8MN clock driver

2019-06-03 Thread Anson Huang
> -Original Message- > From: Leonard Crestez > Sent: Monday, June 3, 2019 4:45 PM > To: Anson Huang ; mturque...@baylibre.com; > sb...@kernel.org; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; &g

RE: [PATCH V2 2/3] clk: imx: Add support for i.MX8MN clock driver

2019-06-03 Thread Anson Huang
Hi, Abel > -Original Message- > From: Abel Vesa > Sent: Monday, June 3, 2019 3:30 PM > To: Anson Huang > Cc: mturque...@baylibre.com; sb...@kernel.org; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.d

RE: [PATCH] arm64: dts: imx8mm: Fix build warnings

2019-06-02 Thread Anson Huang
Hi, Fabio > -Original Message- > From: Fabio Estevam > Sent: Monday, June 3, 2019 10:49 AM > To: Anson Huang > Cc: Rob Herring ; Mark Rutland > ; Shawn Guo ; Sascha > Hauer ; Sascha Hauer ; > Leonard Crestez ; Aisheng Dong > ; viresh kumar ; Jacky >

[PATCH] arm64: dts: imx8mm: Move gic node into soc node

2019-06-02 Thread Anson . Huang
From: Anson Huang GIC is inside of SoC from architecture perspective, it should be located inside of soc node in DT. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot

[PATCH V2 3/3] arm64: defconfig: Select CONFIG_CLK_IMX8MN by default

2019-06-02 Thread Anson . Huang
From: Anson Huang Enable CONFIG_CLK_IMX8MN to support i.MX8MN clock driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 8d4f25c..aef797c 100644

[PATCH V2 1/3] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-02 Thread Anson . Huang
From: Anson Huang Add the clock binding doc for i.MX8MN. Signed-off-by: Anson Huang --- No changes. --- .../devicetree/bindings/clock/imx8mn-clock.txt | 29 +++ include/dt-bindings/clock/imx8mn-clock.h | 215 + 2 files changed, 244 insertions(+) create mode

[PATCH V2 2/3] clk: imx: Add support for i.MX8MN clock driver

2019-06-02 Thread Anson . Huang
From: Anson Huang This patch adds i.MX8MN clock driver support. Signed-off-by: Anson Huang --- Changes since V1: - add GPIOx clocks. --- drivers/clk/imx/Kconfig | 6 + drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx8mn.c | 614

[PATCH V2 2/3] arm64: dts: freescale: Add i.MX8MN dtsi support

2019-06-02 Thread Anson . Huang
From: Anson Huang The i.MX8M Nano Media Applications Processor is a new SoC of the i.MX8M family, it is a 14nm FinFET product of the growing mScale family targeting the consumer market. It is built in Samsung 14LPP to achieve both high performance and low power consumption and relies

[PATCH V2 3/3] arm64: dts: freescale: Add i.MX8MN DDR4 EVK board support

2019-06-02 Thread Anson . Huang
From: Anson Huang This patch adds basic i.MM8MN DDR4 EVK board support. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/Makefile| 1 + arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 217 ++ 2 files changed, 218 insertions

[PATCH V2 1/3] dt-bindings: arm: imx: Add the soc binding for i.MX8MN

2019-06-02 Thread Anson . Huang
From: Anson Huang This patch adds the soc & board binding for i.MX8MN. Signed-off-by: Anson Huang --- No changes. --- Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documenta

RE: [PATCH 2/3] arm64: dts: freescale: Add i.MX8MN dtsi support

2019-06-02 Thread Anson Huang
Hi, Andrey > -Original Message- > From: Andrey Smirnov > Sent: Saturday, June 1, 2019 3:04 AM > To: Anson Huang > Cc: Rob Herring ; Mark Rutland > ; Shawn Guo ; Sascha > Hauer ; Sascha Hauer ; > Fabio Estevam ; manivannan.sadhasi...@linaro.org; > bruno.thom

[PATCH] arm64: dts: imx8mm: Fix build warnings

2019-06-02 Thread Anson . Huang
From: Anson Huang This patch fixes below build warning with "W=1": arch/arm64/boot/dts/freescale/imx8mm.dtsi:203.6-754.4: Warning (unit_address_vs_reg): /soc: node has a reg or ranges property, but no unit name arch/arm64/boot/dts/freescale/imx8mm.dtsi:209.23-388.5

RE: [PATCH 2/3] arm64: dts: freescale: Add i.MX8MN dtsi support

2019-05-31 Thread Anson Huang
Hi, Fabio > -Original Message- > From: Fabio Estevam > Sent: Friday, May 31, 2019 7:40 PM > To: Anson Huang > Cc: Rob Herring ; Mark Rutland > ; Shawn Guo ; Sascha > Hauer ; Sascha Hauer ; > Andrey Smirnov ; Manivannan Sadhasivam > ; Bruno Thomsen > ; Aishe

[PATCH 3/3] arm64: dts: freescale: Add i.MX8MN DDR4 EVK board support

2019-05-30 Thread Anson . Huang
From: Anson Huang This patch adds basic i.MM8MN DDR4 EVK board support. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/Makefile| 1 + arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 217 ++ 2 files changed, 218 insertions(+) create mode

[PATCH 2/3] arm64: dts: freescale: Add i.MX8MN dtsi support

2019-05-30 Thread Anson . Huang
From: Anson Huang The i.MX8M Nano Media Applications Processor is a new SoC of the i.MX8M family, it is a 14nm FinFET product of the growing mScale family targeting the consumer market. It is built in Samsung 14LPP to achieve both high performance and low power consumption and relies

[PATCH 1/3] dt-bindings: arm: imx: Add the soc binding for i.MX8MN

2019-05-30 Thread Anson . Huang
From: Anson Huang This patch adds the soc & board binding for i.MX8MN. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bind

[PATCH 3/3] arm64: defconfig: Select CONFIG_CLK_IMX8MN by default

2019-05-29 Thread Anson . Huang
From: Anson Huang Enable CONFIG_CLK_IMX8MN to support i.MX8MN clock driver. 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 8d4f25c..aef797c 100644 --- a/arch

[PATCH 1/3] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-05-29 Thread Anson . Huang
From: Anson Huang Add the clock binding doc for i.MX8MN. Signed-off-by: Anson Huang --- .../devicetree/bindings/clock/imx8mn-clock.txt | 29 +++ include/dt-bindings/clock/imx8mn-clock.h | 215 + 2 files changed, 244 insertions(+) create mode 100644

[PATCH 2/3] clk: imx: Add support for i.MX8MN clock driver

2019-05-29 Thread Anson . Huang
From: Anson Huang This patch adds i.MX8MN clock driver support. Signed-off-by: Anson Huang --- drivers/clk/imx/Kconfig | 6 + drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx8mn.c | 609 +++ 3 files changed, 616 insertions(+) create

[PATCH] dt-bindings: imx: Correct pinfunc head file path for i.MX8MM

2019-05-29 Thread Anson . Huang
From: Anson Huang The i.MX8MM pinfunc head file is located in DT folder, correct it. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl

[PATCH 1/3] dt-bindings: imx: Add pinctrl binding doc for i.MX8MN

2019-05-29 Thread Anson . Huang
From: Anson Huang Add binding doc for i.MX8MN pinctrl driver. Signed-off-by: Anson Huang --- .../bindings/pinctrl/fsl,imx8mn-pinctrl.txt| 39 ++ arch/arm64/boot/dts/freescale/imx8mn-pinfunc.h | 646 + 2 files changed, 685 insertions(+) create mode 100644

[PATCH 2/3] pinctrl: freescale: Add i.MX8MN pinctrl driver support

2019-05-29 Thread Anson . Huang
From: Anson Huang Add the pinctrl driver support for i.MX8MN. Signed-off-by: Anson Huang --- drivers/pinctrl/freescale/Kconfig | 7 + drivers/pinctrl/freescale/Makefile | 1 + drivers/pinctrl/freescale/pinctrl-imx8mn.c | 348 + 3 files changed

<    5   6   7   8   9   10   11   12   13   14   >