[PATCH RESEND V2 2/7] arm64: dts: imx8mn-ddr4-evk: Add rohm,bd71847 PMIC support

2019-08-18 Thread Anson Huang
On i.MX8MN DDR4 EVK board, there is a rohm,bd71847 PMIC on i2c1 bus, enable it. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 109 ++ 1 file changed, 109 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn

[PATCH RESEND V2 4/7] cpufreq: imx-cpufreq-dt: Add i.MX8MN support

2019-08-18 Thread Anson Huang
01101700 01111600 10001500 10011400 10101300 10111200 11001100 11011000 1110 900 800 Signed-off-by: Anson Huang --- No changes

[PATCH RESEND V2 5/7] clk: imx8mn: Add missing rate_count assignment for each PLL structure

2019-08-18 Thread Anson Huang
Add .rate_count assignment which is necessary for searching required PLL rate from the each PLL table. Fixes: 96d6392b54db ("clk: imx: Add support for i.MX8MN clock driver") Signed-off-by: Anson Huang --- Changes since V1: - split the patch into 2 patches, #1 fixed tho

[PATCH RESEND V2 7/7] arm64: dts: imx8mn: Add cpu-freq support

2019-08-18 Thread Anson Huang
Add A53 OPP table, cpu regulator and speed grading node to support cpu-freq driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 4 +++ arch/arm64/boot/dts/freescale/imx8mn.dtsi | 41 +++ 2 files changed, 45

[PATCH RESEND V2 1/7] arm64: dts: imx8mn-ddr4-evk: Add i2c1 support

2019-08-18 Thread Anson Huang
Enable i2c1 on i.MX8MN DDR4 EVK board. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts b/arch/arm64/boot/dts/freescale/imx8mn

RE: [PATCH 5/6] clk: imx8mn: Add necessary frequency support for ARM PLL table

2019-08-18 Thread Anson Huang
Hi, Stephen > Quoting Anson Huang (2019-08-17 15:22:01) > > Hi, Stephen > > > > > Quoting anson.hu...@nxp.com (2019-08-15 03:59:42) > > > > diff --git a/drivers/clk/imx/clk-imx8mn.c > > > > b/drivers/clk/imx/clk-imx8mn.c index ecd1062..3f1239a 1

[PATCH V2 3/6] cpufreq: Use imx-cpufreq-dt for i.MX8MN's speed grading

2019-08-17 Thread Anson Huang
Add i.MX8MN to blacklist, so that imx-cpufreq-dt driver can handle speed grading bits just like other i.MX8M SoCs. Signed-off-by: Anson Huang --- No changes. --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b

[PATCH V2 5/6] clk: imx8mn: Improve ARM PLL table to support CPU frequency scaling

2019-08-17 Thread Anson Huang
i.MX8MN supports CPU running at 1.5GHz/1.4GHz/1.2GHz, add missing frequency for ARM PLL table, also add .rate_count assignment which is necessary for searching required PLL rate from the table. Signed-off-by: Anson Huang --- Changes since V1: - Improve commit log, no code change

[PATCH V2 2/6] arm64: dts: imx8mn-ddr4-evk: Add rohm,bd71847 PMIC support

2019-08-17 Thread Anson Huang
On i.MX8MN DDR4 EVK board, there is a rohm,bd71847 PMIC on i2c1 bus, enable it. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 109 ++ 1 file changed, 109 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn

[PATCH V2 1/6] arm64: dts: imx8mn-ddr4-evk: Add i2c1 support

2019-08-17 Thread Anson Huang
Enable i2c1 on i.MX8MN DDR4 EVK board. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts b/arch/arm64/boot/dts/freescale/imx8mn

[PATCH V2 6/6] arm64: dts: imx8mn: Add cpu-freq support

2019-08-17 Thread Anson Huang
Add A53 OPP table, cpu regulator and speed grading node to support cpu-freq driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 4 +++ arch/arm64/boot/dts/freescale/imx8mn.dtsi | 41 +++ 2 files changed, 45

[PATCH V2 4/6] cpufreq: imx-cpufreq-dt: Add i.MX8MN support

2019-08-17 Thread Anson Huang
01101700 01111600 10001500 10011400 10101300 10111200 11001100 11011000 1110 900 800 Signed-off-by: Anson Huang --- No changes

RE: [PATCH 5/6] clk: imx8mn: Add necessary frequency support for ARM PLL table

2019-08-17 Thread Anson Huang
Hi, Stephen > Quoting anson.hu...@nxp.com (2019-08-15 03:59:42) > > diff --git a/drivers/clk/imx/clk-imx8mn.c > > b/drivers/clk/imx/clk-imx8mn.c index ecd1062..3f1239a 100644 > > --- a/drivers/clk/imx/clk-imx8mn.c > > +++ b/drivers/clk/imx/clk-imx8mn.c > > @@ -82,6 +84,7 @@ static struct

RE: [PATCH V6 4/4] arm64: dts: imx8mm: Enable cpu-idle driver

2019-08-16 Thread Anson Huang
Hi, Shawn > > On 16/08/2019 02:38, Anson Huang wrote: > > > Enable i.MX8MM cpu-idle using generic ARM cpu-idle driver, 2 states > > > are supported, details as below: > > > > > > root@imx8mmevk:~# cat > > /sys/devices/system/cpu/cpu0/cpuidle/s

[PATCH] arm64: dts: imx8mm: Enable cpu-idle driver

2019-08-16 Thread Anson Huang
/cpu/cpu0/cpuidle/state1/name cpu-pd-wait root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state1/usage 6647 Signed-off-by: Anson Huang Acked-by: Daniel Lezcano --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64

RE: [PATCH V6 4/4] arm64: dts: imx8mm: Enable cpu-idle driver

2019-08-16 Thread Anson Huang
Hi, Daniel/Shawn > On 16/08/2019 02:38, Anson Huang wrote: > > Enable i.MX8MM cpu-idle using generic ARM cpu-idle driver, 2 states > > are supported, details as below: > > > > root@imx8mmevk:~# cat > /sys/devices/system/cpu/cpu0/cpuidle/state0/name > > WF

RE: [PATCH V5 5/5] arm64: dts: imx8mm: Enable cpu-idle driver

2019-08-15 Thread Anson Huang
Hi, Daniel > Hi Anson, > > sorry for the late review, I've been pretty busy. That is OK for sure. > > If Shawn is ok, I can pick the patches 1-4 in my tree and then this one after > you fix the comments below. Shawn should be OK for it, and he already took patch [PATCH V5 2/5] arm64: Enable

[PATCH V6 3/4] arm64: dts: imx8mq: Add system counter node

2019-08-15 Thread Anson Huang
Add i.MX8MQ system counter node to enable timer-imx-sysctr broadcast timer driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot

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

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

[PATCH V6 4/4] arm64: dts: imx8mm: Enable cpu-idle driver

2019-08-15 Thread Anson Huang
/cpu/cpu0/cpuidle/state1/name cpu-pd-wait root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state1/usage 6647 Signed-off-by: Anson Huang --- Changes since V5: - improve state1 idle name to better match PSCI doc; - remove wakeup-latency-us property as it is NOT necessary when

[PATCH V6 1/4] clocksource: imx-sysctr: Add internal clock divider handle

2019-08-15 Thread Anson Huang
The system counter block guide states that the base clock is internally divided by 3 before use, that means the clock input of system counter defined in DT should be base clock which is normally from OSC, and then internally divided by 3 before use. Signed-off-by: Anson Huang --- No changes

[PATCH 2/6] arm64: dts: imx8mn-ddr4-evk: Add rohm,bd71847 PMIC support

2019-08-15 Thread Anson . Huang
From: Anson Huang On i.MX8MN DDR4 EVK board, there is a rohm,bd71847 PMIC on i2c1 bus, enable it. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 109 ++ 1 file changed, 109 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn

[PATCH 5/6] clk: imx8mn: Add necessary frequency support for ARM PLL table

2019-08-15 Thread Anson . Huang
From: Anson Huang i.MX8MN supports CPU running at 1.5GHz/1.4GHz/1.2GHz, add missing frequency for ARM PLL table. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index

[PATCH 4/6] cpufreq: imx-cpufreq-dt: Add i.MX8MN support

2019-08-15 Thread Anson . Huang
From: Anson Huang i.MX8MN has different speed grading definition as below, it has 4 bits to define speed grading, add support for it. SPEED_GRADE[3:0]MHz 2300 00012200 00102100 00112000 01001900 0101

[PATCH 6/6] arm64: dts: imx8mn: Add cpu-freq support

2019-08-15 Thread Anson . Huang
From: Anson Huang Add A53 OPP table, cpu regulator and speed grading node to support cpu-freq driver. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 4 +++ arch/arm64/boot/dts/freescale/imx8mn.dtsi | 41 +++ 2 files changed, 45

[PATCH 3/6] cpufreq: Use imx-cpufreq-dt for i.MX8MN's speed grading

2019-08-15 Thread Anson . Huang
From: Anson Huang Add i.MX8MN to blacklist, so that imx-cpufreq-dt driver can handle speed grading bits just like other i.MX8M SoCs. Signed-off-by: Anson Huang --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b

[PATCH 1/6] arm64: dts: imx8mn-ddr4-evk: Add i2c1 support

2019-08-15 Thread Anson . Huang
From: Anson Huang Enable i2c1 on i.MX8MN DDR4 EVK board. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts b/arch/arm64/boot/dts/freescale

[PATCH] arm64: dts: imx8mn: Add gpio-ranges property

2019-08-14 Thread Anson . Huang
From: Anson Huang Add "gpio-ranges" property to establish connections between GPIOs and PINs on i.MX8MN pinctrl driver. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/i

RE: [PATCH] rtc: snvs: fix possible race condition

2019-08-13 Thread Anson Huang
Hi, Alexandre > On 19/07/2019 19:04:21+, Trent Piepho wrote: > > On Fri, 2019-07-19 at 02:57 +0000, Anson Huang wrote: > > > > > > > I do worry that handling the irq before the rtc device is > > > > registered could still result in a crash. From wha

[PATCH V2 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-12 Thread Anson . Huang
From: Anson Huang The i.MX7ULP Watchdog Timer (WDOG) module is an independent timer that is available for system use. It provides a safety feature to ensure that software is executing as planned and that the CPU is not stuck in an infinite loop or executing unintended code. If the WDOG module

[PATCH V2 3/4] ARM: imx_v6_v7_defconfig: Enable CONFIG_IMX7ULP_WDT by default

2019-08-12 Thread Anson . Huang
From: Anson Huang Select CONFIG_IMX7ULP_WDT by default to support i.MX7ULP watchdog. Signed-off-by: Anson Huang --- No changes. --- 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: dts: imx7ulp: Add wdog1 node

2019-08-12 Thread Anson . Huang
From: Anson Huang Add wdog1 node to support watchdog driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm/boot/dts/imx7ulp.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index 6859a3a..1fdb5a35

[PATCH V2 1/4] dt-bindings: watchdog: Add i.MX7ULP bindings

2019-08-12 Thread Anson . Huang
From: Anson Huang Add the watchdog bindings for Freescale i.MX7ULP. Signed-off-by: Anson Huang --- No changes. --- .../bindings/watchdog/fsl-imx7ulp-wdt.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog

[PATCH] watchdog: imx_sc: Remove unnecessary error log

2019-08-12 Thread Anson . Huang
From: Anson Huang An error message is already displayed by watchdog_register_device() when failed, so no need to have error log again for failure of calling devm_watchdog_register_device(). Signed-off-by: Anson Huang --- drivers/watchdog/imx_sc_wdt.c | 5 + 1 file changed, 1 insertion

RE: [PATCH 1/4] dt-bindings: watchdog: Add i.MX7ULP bindings

2019-08-11 Thread Anson Huang
Hi, Guenter > On Fri, Aug 09, 2019 at 03:13:59PM +0800, Anson Huang wrote: > > Add the watchdog bindings for Freescale i.MX7ULP. > > > > Signed-off-by: Anson Huang > > --- > > .../bindings/watchdog/fsl-imx7ulp-wdt.txt | 22 > +

RE: [PATCH 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-11 Thread Anson Huang
Hi, Guenter > On Fri, Aug 09, 2019 at 03:14:00PM +0800, Anson Huang wrote: > > The i.MX7ULP Watchdog Timer (WDOG) module is an independent timer > that > > is available for system use. > > It provides a safety feature to ensure that software is executing as >

[PATCH 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-09 Thread Anson Huang
(refreshed) within a certain period, it resets the MCU. Add driver support for i.MX7ULP watchdog. Signed-off-by: Anson Huang --- drivers/watchdog/Kconfig | 13 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/imx7ulp_wdt.c | 221 + 3 files

[PATCH 4/4] ARM: dts: imx7ulp: Add wdog1 node

2019-08-09 Thread Anson Huang
Add wdog1 node to support watchdog driver. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7ulp.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index 6859a3a..1fdb5a35 100644 --- a/arch/arm/boot/dts

[PATCH 3/4] ARM: imx_v6_v7_defconfig: Enable CONFIG_IMX7ULP_WDT by default

2019-08-09 Thread Anson Huang
Select CONFIG_IMX7ULP_WDT by default to support i.MX7ULP watchdog. 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 bd2e2f5..f69075b 100644

[PATCH 1/4] dt-bindings: watchdog: Add i.MX7ULP bindings

2019-08-09 Thread Anson Huang
Add the watchdog bindings for Freescale i.MX7ULP. Signed-off-by: Anson Huang --- .../bindings/watchdog/fsl-imx7ulp-wdt.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.txt diff --git

[PATCH 1/2] clk: imx8mm: Unregister clks when of_clk_add_provider failed

2019-08-06 Thread Anson . Huang
From: Anson Huang When of_clk_add_provider failed, all clks should be unregistered. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mm.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index e494e99

[PATCH 2/2] clk: imx8mq: Unregister clks when of_clk_add_provider failed

2019-08-06 Thread Anson . Huang
From: Anson Huang When of_clk_add_provider failed, all clks should be unregistered. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mq.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index

RE: [PATCH V3] soc: imx-scu: Add SoC UID(unique identifier) support

2019-08-06 Thread Anson Huang
Hi, Marco Are you OK with this patch? Thanks, Anson. > On Tue, Jul 02, 2019 at 03:45:45PM +0800, anson.hu...@nxp.com wrote: > > From: Anson Huang > > > > Add i.MX SCU SoC's UID(unique identifier) support, user can read it > > from sysfs: > > > > r

RE: [PATCH 1/2] dt-bindings: imx-ocotp: Add i.MX8MN compatible

2019-08-06 Thread Anson Huang
Gentle Ping... > From: Anson Huang > > Add compatible for i.MX8MN and add i.MX8MM/i.MX8MN to the description. > > Signed-off-by: Anson Huang > --- > Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > &

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

2019-08-05 Thread Anson Huang
Ping for this patch series... > 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

RE: [PATCH 2/2] clk: imx: disable i.mx7ulp composite clock during initialization

2019-08-05 Thread Anson Huang
explicitly if the CLK_SET_RATE_GATE/CLK_SET_PARENT_GATE is present, most likely it will impact other platforms I think, so the most safe way is just to do it inside our i.MX7ULP composite clock driver. What do you think? Thanks, Anson > Hi, Stephen > > > Quoting Anson Huang (2019-04

RE: [PATCH V5 1/5] clocksource: imx-sysctr: Add internal clock divider handle

2019-08-05 Thread Anson Huang
Gentle ping... > From: Anson Huang > > The system counter block guide states that the base clock is internally > divided > by 3 before use, that means the clock input of system counter defined in DT > should be base clock which is normally from OSC, and then internally div

[PATCH] gpio: mxc: Use devm_clk_get_optional instead of devm_clk_get

2019-08-01 Thread Anson . Huang
From: Anson Huang i.MX SoC's GPIO clock is optional, so it is better to use devm_clk_get_optional instead of devm_clk_get. Signed-off-by: Anson Huang --- drivers/gpio/gpio-mxc.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio

[PATCH V3 2/5] thermal: qoriq: Fix error path of calling qoriq_tmu_register_tmu_zone fail

2019-07-29 Thread Anson . Huang
From: Anson Huang When registering tmu zone failed, the error path should be err_tmu instead of err_iomap, as iounmap() needs to be called. Signed-off-by: Anson Huang --- New patch. --- drivers/thermal/qoriq_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH V3 5/5] dt-bindings: thermal: qoriq: Add optional clocks property

2019-07-29 Thread Anson . Huang
From: Anson Huang Some platforms like i.MX8M series SoCs have clock control for TMU, add optional clocks property to the binding doc. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- No changes, noted the i.MX8M series SoCs need this clock in commit log. --- Documentation/devicetree

[PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-07-29 Thread Anson . Huang
From: Anson Huang Some platforms like i.MX8MQ has clock control for this module, need to add clock operations to make sure the driver is working properly. Signed-off-by: Anson Huang Reviewed-by: Guido Günther --- Changes since V2: - move this patch as first patch in the series

[PATCH V3 4/5] thermal: qoriq: Use __maybe_unused instead of #if CONFIG_PM_SLEEP

2019-07-29 Thread Anson . Huang
From: Anson Huang Use __maybe_unused for power management related functions instead of #if CONFIG_PM_SLEEP to simply the code. Signed-off-by: Anson Huang --- No changes. --- drivers/thermal/qoriq_thermal.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH V3 3/5] thermal: qoriq: Use devm_platform_ioremap_resource() instead of of_iomap()

2019-07-29 Thread Anson . Huang
From: Anson Huang Use devm_platform_ioremap_resource() instead of of_iomap() to save the iounmap() call in error handle path; Signed-off-by: Anson Huang --- No change, just adjust the patch sequence and handle the conflicts. --- drivers/thermal/qoriq_thermal.c | 18 ++ 1 file

[PATCH V2 4/4] thermal: qoriq: Add clock operations

2019-07-29 Thread Anson . Huang
From: Anson Huang Some platforms like i.MX8MQ has clock control for this module, need to add clock operations to make sure the driver is working properly. Signed-off-by: Anson Huang Reviewed-by: Guido Günther --- Changes since V1: - use devm_clk_get_optional() instead of devm_clk_get

[PATCH V2 3/4] dt-bindings: thermal: qoriq: Add optional clocks property

2019-07-29 Thread Anson . Huang
From: Anson Huang Some platforms have clock control for TMU, add optional clocks property to the binding doc. Signed-off-by: Anson Huang --- No changes. --- Documentation/devicetree/bindings/thermal/qoriq-thermal.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree

[PATCH V2 1/4] thermal: qoriq: Use devm_platform_ioremap_resource() instead of of_iomap()

2019-07-29 Thread Anson . Huang
From: Anson Huang Use devm_platform_ioremap_resource() instead of of_iomap() to save the iounmap() call in error handle path; Signed-off-by: Anson Huang --- No changes. --- drivers/thermal/qoriq_thermal.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git

[PATCH V2 2/4] thermal: qoriq: Use __maybe_unused instead of #if CONFIG_PM_SLEEP

2019-07-29 Thread Anson . Huang
From: Anson Huang Use __maybe_unused for power management related functions instead of #if CONFIG_PM_SLEEP to simply the code. Signed-off-by: Anson Huang --- No changes. --- drivers/thermal/qoriq_thermal.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers

RE: [PATCH 4/6] thermal: qoriq: Add clock operations

2019-07-29 Thread Anson Huang
Hi, Guido > On Fri, Jul 05, 2019 at 12:56:10PM +0800, anson.hu...@nxp.com wrote: > > From: Anson Huang > > > > Some platforms like i.MX8MQ has clock control for this module, need to > > add clock operations to make sure the driver is working properly. > &g

RE: [PATCH 5/6] clk: imx8mq: Remove CLK_IS_CRITICAL flag for IMX8MQ_CLK_TMU_ROOT

2019-07-29 Thread Anson Huang
Hi, Daniel > On Mon, Jul 29, 2019 at 10:20 AM Daniel Baluta > wrote: > > > > > > > > Your explanation makes a lot of sense. We will take care today of > > > > Abel's patch. > > > > What do you think about Fabio's patch? I also think this is a valid > > > > patch: > > > > > > > > > > > > > >

RE: [PATCH 5/6] clk: imx8mq: Remove CLK_IS_CRITICAL flag for IMX8MQ_CLK_TMU_ROOT

2019-07-29 Thread Anson Huang
Hi, Daniel > On Mon, Jul 29, 2019 at 4:29 AM Anson Huang > wrote: > > > > Hi, Abel/Daniel > > > > > On 19-07-27 09:33:10, Daniel Baluta wrote: > > > > On Sat, Jul 27, 2019 at 9:19 AM Anson Huang > > > wrote: > > > > > &g

RE: [PATCH 5/6] clk: imx8mq: Remove CLK_IS_CRITICAL flag for IMX8MQ_CLK_TMU_ROOT

2019-07-28 Thread Anson Huang
Hi, Abel/Daniel > On 19-07-27 09:33:10, Daniel Baluta wrote: > > On Sat, Jul 27, 2019 at 9:19 AM Anson Huang > wrote: > > > > > > Hi, Daniel > > > > > > > Subject: Re: [PATCH 5/6] clk: imx8mq: Remove CLK_IS_CRITICAL flag >

RE: [PATCH 5/6] clk: imx8mq: Remove CLK_IS_CRITICAL flag for IMX8MQ_CLK_TMU_ROOT

2019-07-27 Thread Anson Huang
origin/HEAD) > Author: Stephen Rothwell > Date: Fri Jul 26 15:18:02 2019 +1000 > > Add linux-next specific files for 20190726 > > Signed-off-by: Stephen Rothwell > > > I know this is crazy but reverting commit: > > commit 431bdd1df48ee2896ea9980d9153e3ae

RE: [PATCH V2 1/4] dt-bindings: opp: Support multiple opp-suspend properties

2019-07-24 Thread Anson Huang
Hi, Shawn > On 09-07-19, 16:00, anson.hu...@nxp.com wrote: > > From: Anson Huang > > > > Update opp-suspend property's description to support multiple > > opp-suspend properties defined in DT, the OPP with highest opp-hz and > > with opp-suspend property pr

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

2019-07-24 Thread Anson Huang
> On Sun, Jul 21, 2019 at 7:51 PM Shawn Guo wrote: > > > > On Wed, Jun 19, 2019 at 01:52:43PM +0800, anson.hu...@nxp.com wrote: > > > From: Anson Huang > > > > > > Add the clock binding doc for i.MX8MN. > > > > > > Signed-off-by: An

[PATCH] dt-bindings: clock: imx8mn: Fix tab indentation for yaml file

2019-07-24 Thread Anson . Huang
From: Anson Huang YAML file can NOT contain tab as indentation, fix it. Fixes: 6d6062553e3d ("dt-bindings: imx: Add clock binding doc for i.MX8MN") Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/clock/imx8mn-clock.yaml | 2 +- 1 file changed, 1 insertion(+),

RE: [PATCH 2/2] clk: imx: disable i.mx7ulp composite clock during initialization

2019-07-24 Thread Anson Huang
Hi, Stephen > Quoting Anson Huang (2019-04-24 22:19:12) > > i.MX7ULP peripheral clock ONLY allow parent/rate to be changed with > > clock gated, however, during clock tree initialization, the peripheral > > clock could be enabled by bootloader, but the prepare count in cl

[PATCH] clk: imx8mn: Keep uart clocks on for early console

2019-07-24 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-imx8mn.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx

[PATCH] clk: imx: Remove unused function statement

2019-07-24 Thread Anson . Huang
From: Anson Huang imx_register_uart_clocks_hws() function is NOT implemented at all, remove it. Signed-off-by: Anson Huang --- drivers/clk/imx/clk.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 9995f2a..f7a389a 100644 --- a/drivers/clk

[PATCH] clk: imx7ulp: Make sure earlycon's clock is enabled

2019-07-23 Thread Anson . Huang
From: Anson Huang Earlycon's clock could be disabled during kernel boot up, if earlycon is enabled and its clock is gated, then kernel boot up will fail. Make sure earlycon's clock is enabled during kernel boot up. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx7ulp.c | 31

RE: [PATCH V5 3/5] arm64: dts: imx8mm: Add system counter node

2019-07-22 Thread Anson Huang
Hi, Shawn > On Wed, Jul 10, 2019 at 02:30:54PM +0800, anson.hu...@nxp.com wrote: > > From: Anson Huang > > > > Add i.MX8MM system counter node to enable timer-imx-sysctr broadcast > > timer driver. > > > > Signed-off-by: Anson Huang > > Do I need t

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

2019-07-21 Thread Anson Huang
Hi, Shawn > On Mon, Jun 24, 2019 at 02:35:10AM +0000, Anson Huang wrote: > > Hi, Shawn > > > > > -Original Message- > > > From: Shawn Guo > > > Sent: Monday, June 24, 2019 10:27 AM > > > To: Anson Huang > > > Cc: mark.rutl...@a

RE: [PATCH V2] rtc: snvs: fix possible race condition

2019-07-19 Thread Anson Huang
Hi, Alexandre > On 19/07/2019 11:01:02+0800, anson.hu...@nxp.com wrote: > > From: Anson Huang > > > > The RTC IRQ is requested before the struct rtc_device is allocated, > > this may lead to a NULL pointer dereference in IRQ handler. > > > > To fix this

[PATCH V2] rtc: snvs: fix possible race condition

2019-07-18 Thread Anson . Huang
From: Anson Huang The RTC IRQ is requested before the struct rtc_device is allocated, this may lead to a NULL pointer dereference in IRQ handler. To fix this issue, allocating the rtc_device struct and register rtc device before requesting the RTC IRQ. Using devm_rtc_allocate_device

RE: [PATCH] rtc: snvs: fix possible race condition

2019-07-18 Thread Anson Huang
Hi, Trent > On Thu, 2019-07-18 at 03:08 +, Aisheng Dong wrote: > > > From: Anson Huang > > > Sent: Wednesday, July 17, 2019 9:58 PM> Hi, Aisheng > > > > > > > > From: anson.hu...@nxp.com > > > > > Sent: Tuesday, July 16, 2

[PATCH 1/4] ARM: dts: imx6sx: move GIC to right location in DT

2019-07-18 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/arm/boot/dts/imx6sx.dtsi | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH 2/4] ARM: dts: imx6sl: move GIC to right location in DT

2019-07-18 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/arm/boot/dts/imx6sl.dtsi | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH 3/4] ARM: dts: imx6ul: move GIC to right location in DT

2019-07-18 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/arm/boot/dts/imx6ul.dtsi | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH 4/4] ARM: dts: imx6sll: move GIC to right location in DT

2019-07-18 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/arm/boot/dts/imx6sll.dtsi | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code

2019-07-17 Thread Anson . Huang
From: Anson Huang Use the new helper devm_platform_ioremap_resource() which wraps the platform_get_resource() and devm_ioremap_resource() together, to simplify the code. Signed-off-by: Anson Huang --- drivers/pwm/pwm-mxs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

RE: [PATCH] rtc: snvs: fix possible race condition

2019-07-17 Thread Anson Huang
Hi, Aisheng > > From: anson.hu...@nxp.com > > Sent: Tuesday, July 16, 2019 3:19 PM > > > > The RTC IRQ is requested before the struct rtc_device is allocated, > > this may lead to a NULL pointer dereference in IRQ handler. > > > > To fix this issue, allocating the rtc_device struct before

[PATCH] mmc: mxs: use devm_platform_ioremap_resource() to simplify code

2019-07-17 Thread Anson . Huang
From: Anson Huang Use the new helper devm_platform_ioremap_resource() which wraps the platform_get_resource() and devm_ioremap_resource() together, to simplify the code. Signed-off-by: Anson Huang --- drivers/mmc/host/mxs-mmc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH 1/2] i2c: mxs: use devm_platform_ioremap_resource() to simplify code

2019-07-17 Thread Anson . Huang
From: Anson Huang Use the new helper devm_platform_ioremap_resource() which wraps the platform_get_resource() and devm_ioremap_resource() together, to simplify the code. Signed-off-by: Anson Huang --- drivers/i2c/busses/i2c-mxs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH 2/2] i2c: imx-lpi2c: use devm_platform_ioremap_resource() to simplify code

2019-07-17 Thread Anson . Huang
From: Anson Huang Use the new helper devm_platform_ioremap_resource() which wraps the platform_get_resource() and devm_ioremap_resource() together, to simplify the code. Signed-off-by: Anson Huang --- drivers/i2c/busses/i2c-imx-lpi2c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions

[PATCH] rtc: imxdi: use devm_platform_ioremap_resource() to simplify code

2019-07-17 Thread Anson . Huang
From: Anson Huang Use the new helper devm_platform_ioremap_resource() which wraps the platform_get_resource() and devm_ioremap_resource() together, to simplify the code. Signed-off-by: Anson Huang --- drivers/rtc/rtc-imxdi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH] rtc: mxc_v2: use devm_platform_ioremap_resource() to simplify code

2019-07-17 Thread Anson . Huang
From: Anson Huang Use the new helper devm_platform_ioremap_resource() which wraps the platform_get_resource() and devm_ioremap_resource() together, to simplify the code. Signed-off-by: Anson Huang --- drivers/rtc/rtc-mxc_v2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH] rtc: snvs: fix possible race condition

2019-07-16 Thread Anson . Huang
From: Anson Huang The RTC IRQ is requested before the struct rtc_device is allocated, this may lead to a NULL pointer dereference in IRQ handler. To fix this issue, allocating the rtc_device struct before requesting the RTC IRQ using devm_rtc_allocate_device, and use rtc_register_device

[PATCH] arm64: dts: imx8mm: Correct SAI3 RXC/TXFS pin's mux option #1

2019-07-15 Thread Anson . Huang
From: Anson Huang According to i.MX8MM reference manual Rev.1, 03/2019: SAI3_RXC pin's mux option #1 should be GPT1_CLK, NOT GPT1_CAPTURE2; SAI3_TXFS pin's mux option #1 should be GPT1_CAPTURE2, NOT GPT1_CLK. Fixes: c1c9d41319c3 ("dt-bindings: imx: Add pinctrl binding doc for imx8mm&quo

[PATCH 1/2] dt-bindings: imx-ocotp: Add i.MX8MN compatible

2019-07-10 Thread Anson . Huang
From: Anson Huang Add compatible for i.MX8MN and add i.MX8MM/i.MX8MN to the description. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/nvmem/imx

[PATCH 2/2] nvmem: imx-ocotp: Add i.MX8MN support

2019-07-10 Thread Anson . Huang
From: Anson Huang i.MX8MN is a new SoC of i.MX8M series, it is similar to i.MX8MM in terms of addressing and clock setup, add support for its fuse read/write. Signed-off-by: Anson Huang --- drivers/nvmem/imx-ocotp.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/nvmem/imx

RE: [PATCH V4 2/5] clocksource/drivers/sysctr: Add clock-frequency property

2019-07-10 Thread Anson Huang
Hi, Rob > On Tue, Jul 9, 2019 at 7:30 PM Anson Huang wrote: > > > > Hi, Rob > > > > > On Mon, Jul 1, 2019 at 3:47 AM wrote: > > > > > > > > From: Anson Huang > > > > > > 'dt-bindings: timer: ...' for the subject. &

[PATCH V5 4/5] arm64: dts: imx8mq: Add system counter node

2019-07-10 Thread Anson . Huang
From: Anson Huang Add i.MX8MQ system counter node to enable timer-imx-sysctr broadcast timer driver. Signed-off-by: Anson Huang --- Changes since V4: - update the clock info using fixed clock node; - correct the reg range; - update the interrupt number as the system

[PATCH V5 3/5] arm64: dts: imx8mm: Add system counter node

2019-07-10 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 --- Changes since V4: - update the clock info using fixed clock node; - correct the reg range; - update the interrupt number as the system

[PATCH V5 5/5] arm64: dts: imx8mm: Enable cpu-idle driver

2019-07-10 Thread Anson . Huang
From: Anson Huang Enable i.MX8MM cpu-idle using generic ARM cpu-idle driver, 2 states are supported, details as below: root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state0/name WFI root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state0/usage 3973 root@imx8mmevk:~# cat

[PATCH V5 2/5] arm64: Enable TIMER_IMX_SYS_CTR for ARCH_MXC platforms

2019-07-10 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 --- New patch, now that system counter driver lands in main line, we can enable it by default. --- arch/arm64/Kconfig.platforms | 1 + 1 file

[PATCH V5 1/5] clocksource: imx-sysctr: Add internal clock divider handle

2019-07-10 Thread Anson . Huang
From: Anson Huang The system counter block guide states that the base clock is internally divided by 3 before use, that means the clock input of system counter defined in DT should be base clock which is normally from OSC, and then internally divided by 3 before use. Signed-off-by: Anson Huang

RE: [PATCH V4 2/5] clocksource/drivers/sysctr: Add clock-frequency property

2019-07-09 Thread Anson Huang
Hi, Rob > On Mon, Jul 1, 2019 at 3:47 AM wrote: > > > > From: Anson Huang > > 'dt-bindings: timer: ...' for the subject. OK, I made a mistake. > > > > > Systems which use platform driver model for clock driver require the > > clock frequency

[PATCH V2 2/4] opp: of: Support multiple suspend OPPs defined in DT

2019-07-09 Thread Anson . Huang
From: Anson Huang With property "opp-supported-hw" introduced, the OPP table in DT could be a large OPP table and ONLY a subset of OPPs are available, based on the version of the hardware running on. That introduces restriction of using "opp-suspend" property to define th

[PATCH V2 3/4] arm64: dts: imx8mq: Add opp-suspend property to OPP table

2019-07-09 Thread Anson . Huang
From: Anson Huang Add opp-suspend property to each OPP, the of opp core will select the OPP HW supported and with highest rate to be suspend opp, it will speed up the suspend/resume process. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 4 1

[PATCH V2 4/4] arm64: dts: imx8mm: Add opp-suspend property to OPP table

2019-07-09 Thread Anson . Huang
From: Anson Huang Add opp-suspend property to each OPP, the of opp core will select the OPP HW supported and with highest rate to be suspend opp, it will speed up the suspend/resume process. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 3 +++ 1

[PATCH V2 1/4] dt-bindings: opp: Support multiple opp-suspend properties

2019-07-09 Thread Anson . Huang
From: Anson Huang Update opp-suspend property's description to support multiple opp-suspend properties defined in DT, the OPP with highest opp-hz and with opp-suspend property present will be used as suspend opp. Signed-off-by: Anson Huang --- New patch. --- Documentation/devicetree/bindings

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