RE: [PATCH V4 1/2] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-02-28 Thread Anson Huang
Hi, Guenter Best Regards! Anson Huang > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: 2019年2月28日 22:58 > To: Anson Huang ; catalin.mari...@arm.com; > will.dea...@arm.com; w...@linux-watchdog.org; shawn...@

RE: [PATCH V10 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-28 Thread Anson Huang
Hi, Rob/Eduardo Best Regards! Anson Huang > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: 2019年2月28日 22:49 > To: Anson Huang > Cc: mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.c

[PATCH V4 1/3] dt-bindings: memory-controllers: freescale: add MMDC binding doc

2019-02-28 Thread Anson Huang
Freescale MMDC (Multi Mode DDR Controller) driver is supported since i.MX6Q, but not yet documented, this patch adds binding doc for MMDC module driver. Signed-off-by: Anson Huang --- Changes since V3: - add i.MX6QP compatible name. --- .../bindings/memory-controllers/fsl/mmdc.txt

[PATCH V4 2/3] ARM: dts: imx7ulp: add mmdc support

2019-02-28 Thread Anson Huang
i.MX7ULP has a MMDC module to control DDR, it reuses i.MX6Q's MMDC module, add support for it. Signed-off-by: Anson Huang Reviewed-by: Fabio Estevam --- No change since V3. --- arch/arm/boot/dts/imx7ulp.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boo

[PATCH V4 3/3] ARM: dts: imx: make MMDC node name generic

2019-02-28 Thread Anson Huang
Node name should be generic, so use "memory-controller" instead of "mmdc" for MMDC node name, also remove "mmdc" label for platforms with single MMDC node. Signed-off-by: Anson Huang Reviewed-by: Fabio Estevam --- No changes since V3. --- arch/arm/boot/dts/imx6qd

[PATCH 1/2] clk: imx7ulp: remove snvs clock

2019-02-28 Thread Anson Huang
Since i.MX7ULP B0 chip, the SNVS module is moved into M4 domain and its clock is also moved into PCC0 which is contorlled by M4, Linux kernel should NOT add it into clock tree. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx7ulp.c | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH 2/2] dt-bindings: clock: imx7ulp: remove SNVS clock

2019-02-28 Thread Anson Huang
Since i.MX7ULP B0 chip, SNVS module is moved into M4 domain, so remove it from Linux clock table. Signed-off-by: Anson Huang --- include/dt-bindings/clock/imx7ulp-clock.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/dt-bindings/clock/imx7ulp-clock.h b/include/dt-bindings/clock

[PATCH V4 1/2] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-02-28 Thread Anson Huang
-Firmware, using SMC call, CPU will trap into ARM-Trusted-Firmware and then it will request system controller to do watchdog operation via IPC. Signed-off-by: Anson Huang --- Changes since V3: - add ARM64 dependency for this driver; - change SPDX license to GPL-2.0 to match module license

[PATCH V4 2/2] arm64: defconfig: add support for i.MX system controller watchdog

2019-02-28 Thread Anson Huang
Enable CONFIG_IMX_SC_WDT as module to support i.MX system controller watchdog. 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 2d9c390..690f4ba

RE: [PATCH V7 1/2] arm64: dts: freescale: imx8qxp: add cpu opp table

2019-02-27 Thread Anson Huang
Hi, Shawn Best Regards! Anson Huang > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: 2019年2月28日 11:19 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; mturq

RE: [PATCH V3 2/4] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-02-27 Thread Anson Huang
Hi, Guenter Best Regards! Anson Huang > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: 2019年2月27日 6:39 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha..

RE: [PATCH V2 2/3] ARM: dts: imx7ulp: add mmdc support

2019-02-27 Thread Anson Huang
Hi, Fabio Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年2月28日 9:57 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutr

[PATCH V3 2/3] ARM: dts: imx7ulp: add mmdc support

2019-02-27 Thread Anson Huang
i.MX7ULP has a MMDC module to control DDR, it reuses i.MX6Q's MMDC module, add support for it. Signed-off-by: Anson Huang --- Changes since V2: - remove mmdc label. --- arch/arm/boot/dts/imx7ulp.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boo

[PATCH V3 1/3] dt-bindings: memory-controllers: freescale: add MMDC binding doc

2019-02-27 Thread Anson Huang
Freescale MMDC (Multi Mode DDR Controller) driver is supported since i.MX6Q, but not yet documented, this patch adds binding doc for MMDC module driver. Signed-off-by: Anson Huang --- No changes since V2. --- .../bindings/memory-controllers/fsl/mmdc.txt | 31 ++ 1 file

[PATCH V3 3/3] ARM: dts: imx: make MMDC node name generic

2019-02-27 Thread Anson Huang
Node name should be generic, so use "memory-controller" instead of "mmdc" for MMDC node name, also remove "mmdc" label for platforms with single MMDC node. Signed-off-by: Anson Huang --- Changes since V2: - remove "mmdc" label for single MMDC node.

RE: [PATCH V2 2/3] ARM: dts: imx7ulp: add mmdc support

2019-02-27 Thread Anson Huang
Hi, Fabio Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年2月28日 9:32 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutr

RE: [PATCH 2/2] ARM: dts: imx7ulp: add mmdc support

2019-02-27 Thread Anson Huang
Hi, Fabio Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年2月28日 3:50 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutr

[PATCH V2 3/3] ARM: dts: imx: make MMDC node name generic

2019-02-27 Thread Anson Huang
Node name should be generic, so use "memory-controller" instead of "mmdc" for MMDC node name. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6qdl.dtsi | 4 ++-- arch/arm/boot/dts/imx6sl.dtsi | 2 +- arch/arm/boot/dts/imx6sx.dtsi | 2 +- arch/arm/boot/dts/imx6ul.d

[PATCH V2 1/3] dt-bindings: memory-controllers: freescale: add MMDC binding doc

2019-02-27 Thread Anson Huang
Freescale MMDC (Multi Mode DDR Controller) driver is supported since i.MX6Q, but not yet documented, this patch adds binding doc for MMDC module driver. Signed-off-by: Anson Huang --- Changes since V1: - use "memory-controller" as MMDC node name and update examples. --- ..

[PATCH V2 2/3] ARM: dts: imx7ulp: add mmdc support

2019-02-27 Thread Anson Huang
i.MX7ULP has a MMDC module to control DDR, it reuses i.MX6Q's MMDC module, add support for it. Signed-off-by: Anson Huang --- Changes since V1: - use "memory-controller" as MMDC node name to make it more generic. --- arch/arm/boot/dts/imx7ulp.dtsi | 6 ++ 1

RE: [PATCH V10 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-27 Thread Anson Huang
Hi, Rob Best Regards! Anson Huang > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: 2019年2月28日 7:55 > To: Anson Huang > Cc: mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > ca

[PATCH 1/2] dt-bindings: memory-controllers: freescale: add MMDC binding doc

2019-02-27 Thread Anson Huang
Freescale MMDC (Multi Mode DDR Controller) driver is supported since i.MX6Q, but not yet documented, this patch adds binding doc for MMDC module driver. Signed-off-by: Anson Huang --- .../bindings/memory-controllers/fsl/mmdc.txt | 27 ++ 1 file changed, 27 insertions

[PATCH 2/2] ARM: dts: imx7ulp: add mmdc support

2019-02-27 Thread Anson Huang
i.MX7ULP has a MMDC module to control DDR, it reuses i.MX6Q's MMDC module, add support for it. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7ulp.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index fc

RE: [PATCH V8 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-27 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: 2019年2月26日 20:01 > To: Anson Huang ; Eduardo Valentin > > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmai

[PATCH V10 2/4] thermal: imx_sc: add i.MX system controller thermal support

2019-02-27 Thread Anson Huang
unit) IPC to get each thermal sensor's temperature, it supports multiple sensors which are passed from device tree, please see the binding doc for details. Signed-off-by: Anson Huang --- No changes since V9. --- drivers/thermal/Kconfig | 11 drivers/thermal/Makefile

[PATCH V10 3/4] defconfig: arm64: add i.MX system controller thermal support

2019-02-27 Thread Anson Huang
This patch enables CONFIG_IMX_SC_THERMAL as module. 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 2d9c390..52d503e 100644 --- a/arch/arm64/configs

[PATCH V10 4/4] arm64: dts: imx: add i.MX8QXP thermal support

2019-02-27 Thread Anson Huang
Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V9: - change #thermal-sensor-cells value in to 1, since there are other thermal sensors inside system controller, it is just because there are still some issue, so system controller

[PATCH V10 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-27 Thread Anson Huang
, this patch adds binding doc for i.MX system controller thermal driver. Signed-off-by: Anson Huang --- Changes since V9: - change #thermal-sensor-cells value in example to 1, since there are other thermal sensors inside system controller, it is just because there are still

[PATCH RESEND V2 2/2] arm64: dts: freescale: imx8mq: add clock for GPIO node

2019-02-26 Thread Anson Huang
i.MX8MQ has clock gate for each GPIO bank, add clock info to GPIO node for clock management. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64

[PATCH RESEND V2 1/2] clk: imx8mq: add GPIO clocks to clock tree

2019-02-26 Thread Anson Huang
i.MX8MQ has clock gate for each GPIO bank, add them into clock tree for GPIO driver to manage. Signed-off-by: Anson Huang --- No changes, just rebase to clk-next. --- drivers/clk/imx/clk-imx8mq.c | 5 + include/dt-bindings/clock/imx8mq-clock.h | 8 +++- 2 files changed, 12

[PATCH RESEND V4 1/2] dt-bindings: firmware: imx-scu: remove unused resources from scu resource table

2019-02-26 Thread Anson Huang
IMX_SC_R_M4_1_SIM IMX_SC_R_M4_1_WDOG Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- include/dt-bindings/firmware/imx/rsrc.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/include/dt-bindings/firmware/imx/rsrc.h b/include/dt-bindings/firmware/imx/rsrc.h index 4481f2d

[PATCH RESEND V4 2/2] dt-bindings: firmware: imx-scu: add new resources to scu resource table

2019-02-26 Thread Anson Huang
Add new resources as below according to latest system controller firmware for new features: IMX_SC_R_PERF IMX_SC_R_OCRAM IMX_SC_R_DMA_5_CH0 IMX_SC_R_DMA_5_CH1 IMX_SC_R_DMA_5_CH2 IMX_SC_R_DMA_5_CH3 IMX_SC_R_ATTESTATION Signed-off-by: Anson

[PATCH V7 1/2] arm64: dts: freescale: imx8qxp: add cpu opp table

2019-02-25 Thread Anson Huang
Add i.MX8QXP CPU opp table to support cpufreq. Signed-off-by: Anson Huang Acked-by: Viresh Kumar --- No changes since V6. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/freescale

[PATCH V7 2/2] clk: imx: scu: add cpu frequency scaling support

2019-02-25 Thread Anson Huang
uency scaling. This patch adds i.MX system controller CPU frequency scaling support, it reuses cpufreq-dt driver and implement the CPU frequency scaling inside SCU clock driver. Signed-off-by: Anson Huang --- Changes since V6: - add return fail to clk_scu_atf_set_cpu_rate() when the resour

RE: [PATCH RESEND V6 2/2] clk: imx: scu: add cpu frequency scaling support

2019-02-25 Thread Anson Huang
Hi, Stephen Best Regards! Anson Huang > -Original Message- > From: Stephen Boyd [mailto:sb...@kernel.org] > Sent: 2019年2月26日 1:22 > To: devicet...@vger.kernel.org; feste...@gmail.com; > ker...@pengutronix.de; linux-arm-ker...@lists.infradead.org; linux- > c...@vger

RE: [PATCH RESEND V2 1/4] dt-bindings: fsl: scu: add watchdog binding

2019-02-24 Thread Anson Huang
Hi, Guenter Best Regards! Anson Huang > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: 2019年2月24日 11:20 > To: Anson Huang ; Rob Herring > Cc: mark.rutl...@arm.com; shawn...@kernel.org; > s.ha..

RE: [PATCH RESEND V2 2/4] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-02-24 Thread Anson Huang
Hi, Guenter Best Regards! Anson Huang > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: 2019年2月24日 11:29 > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pen

[PATCH V3 4/4] arm64: dts: freescale: imx8qxp: add watchdog support

2019-02-24 Thread Anson Huang
Add i.MX8QXP system controller watchdog support. Signed-off-by: Anson Huang --- Changes since V2: - add fallback compatilbe "fsl,imx-sc-wdt" for other i.MX platforms with system controller watchdog available; - this patch depends on my thermal patch seri

[PATCH V3 2/4] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-02-24 Thread Anson Huang
-Firmware, using SMC call, CPU will trap into ARM-Trusted-Firmware and then it will request system controller to do watchdog operation via IPC. Signed-off-by: Anson Huang --- Changes since V2: - improve watchdog_init_timeout() operation and error check, setting it via module parameter

[PATCH V3 3/4] arm64: defconfig: add support for i.MX system controller watchdog

2019-02-24 Thread Anson Huang
Enable CONFIG_IMX_SC_WDT as module to support i.MX system controller watchdog. Signed-off-by: Anson Huang --- No changes since V2. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 52d503e

[PATCH V3 0/4] Add i.MX8QXP system controller watchdog support

2019-02-24 Thread Anson Huang
and imx8qxp.dtsi patch are based on my thermal patch series as below: https://patchwork.kernel.org/patch/10827673/ Anson Huang (4): dt-bindings: fsl: scu: add watchdog binding watchdog: imx_sc: Add i.MX system controller watchdog support arm64: defconfig: add support for i.MX system

[PATCH V3 1/4] dt-bindings: fsl: scu: add watchdog binding

2019-02-24 Thread Anson Huang
Add i.MX8QXP system controller watchdog binding. Signed-off-by: Anson Huang --- Changes since V2: - add fallback compatible "fsl,imx-sc-wdt" to cover other i.MX platforms with system controller watchdog available. - this patch depends on my thermal patch seri

RE: [PATCH RESEND V2 1/4] dt-bindings: fsl: scu: add watchdog binding

2019-02-23 Thread Anson Huang
Hi, Guenter/Rob Best Regards! Anson Huang > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: 2019年2月24日 1:08 > To: Rob Herring ; Anson Huang > Cc: mark.rutl...@arm.com; shawn...@kernel.org; > s.ha..

RE: [PATCH V8 2/4] thermal: imx_sc: add i.MX system controller thermal support

2019-02-23 Thread Anson Huang
Hi, Eduardo Best Regards! Anson Huang > -Original Message- > From: Eduardo Valentin [mailto:edubez...@gmail.com] > Sent: 2019年2月24日 5:39 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pen

RE: [PATCH V8 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-23 Thread Anson Huang
Hi, Eduardo Best Regards! Anson Huang > -Original Message- > From: Eduardo Valentin [mailto:edubez...@gmail.com] > Sent: 2019年2月24日 5:38 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pen

[PATCH V9 2/4] thermal: imx_sc: add i.MX system controller thermal support

2019-02-23 Thread Anson Huang
unit) IPC to get each thermal sensor's temperature, it supports multiple sensors which are passed from device tree, please see the binding doc for details. Signed-off-by: Anson Huang --- Changes since V8: - get thermal zones number from "imx,sensor-resource-id" element cou

[PATCH V9 3/4] defconfig: arm64: add i.MX system controller thermal support

2019-02-23 Thread Anson Huang
This patch enables CONFIG_IMX_SC_THERMAL as module. 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 2d9c390..52d503e 100644 --- a/arch/arm64/configs

[PATCH V9 4/4] arm64: dts: imx: add i.MX8QXP thermal support

2019-02-23 Thread Anson Huang
Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V8: - remove "#cooling-cells" since it is already included in cpu-freq opp table patch: https://patchwork.kernel.org/patch/10825081/ --- arch/arm64/boot/dts/freescale/imx8qxp

[PATCH V9 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-23 Thread Anson Huang
, this patch adds binding doc for i.MX system controller thermal driver. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- Changes since V8: - improve "imx,sensor-resource-id" description to cover single and multiple thermal zones. --- .../devicetree/bindings/arm/fre

[PATCH V4 2/2] dt-bindings: imx: add new resources to scu resource table

2019-02-22 Thread Anson Huang
Add new resources as below according to latest system controller firmware for new features: IMX_SC_R_PERF IMX_SC_R_OCRAM IMX_SC_R_DMA_5_CH0 IMX_SC_R_DMA_5_CH1 IMX_SC_R_DMA_5_CH2 IMX_SC_R_DMA_5_CH3 IMX_SC_R_ATTESTATION Signed-off-by: Anson

[PATCH V2 2/2] arm64: dts: freescale: imx8mq: add clock for GPIO node

2019-02-22 Thread Anson Huang
i.MX8MQ has clock gate for each GPIO bank, add clock info to GPIO node for clock management. Signed-off-by: Anson Huang --- No change since V1, just drop 1 patch from V1 patch series. --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch

[PATCH V2 1/2] clk: imx8mq: add GPIO clocks to clock tree

2019-02-22 Thread Anson Huang
i.MX8MQ has clock gate for each GPIO bank, add them into clock tree for GPIO driver to manage. Signed-off-by: Anson Huang --- No change since V1, just drop 1 patch from V1 patch series. --- drivers/clk/imx/clk-imx8mq.c | 5 + include/dt-bindings/clock/imx8mq-clock.h | 8

[PATCH V4 1/2] dt-bindings: imx: remove unused resources from scu resource table

2019-02-22 Thread Anson Huang
IMX_SC_R_M4_1_SIM IMX_SC_R_M4_1_WDOG Signed-off-by: Anson Huang --- Changes since V3: - just remove those unused resource and no need to define UNUSED resource. -- include/dt-bindings/firmware/imx/rsrc.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/include/dt-bindings

[PATCH] gpio: mxc: add check to return defer probe if clock tree NOT ready

2019-02-22 Thread Anson Huang
ation") Signed-off-by: Anson Huang --- drivers/gpio/gpio-mxc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 2d1dfa1..e86e61d 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c @@ -438,8 +438,11

RE: [PATCH 1/3] clk: imx8mq: initialize clock tree earlier

2019-02-22 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Anson Huang > Sent: 2019年2月23日 11:04 > To: Lucas Stach ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; mturque...@

RE: [PATCH 1/3] clk: imx8mq: initialize clock tree earlier

2019-02-22 Thread Anson Huang
Hi, Lucas Best Regards! Anson Huang > -Original Message- > From: Lucas Stach [mailto:l.st...@pengutronix.de] > Sent: 2019年2月22日 18:55 > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de;

RE: [PATCH RESEND V6 2/2] clk: imx: scu: add cpu frequency scaling support

2019-02-22 Thread Anson Huang
Hi, Stehpen Best Regards! Anson Huang > -Original Message- > From: Stephen Boyd [mailto:sb...@kernel.org] > Sent: 2019年2月23日 3:08 > To: devicet...@vger.kernel.org; feste...@gmail.com; > ker...@pengutronix.de; linux-arm-ker...@lists.infradead.org; linux- > c...@vger

[PATCH 1/3] clk: imx8mq: initialize clock tree earlier

2019-02-22 Thread Anson Huang
driver. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mq.c | 33 +++-- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 26b57f4..2df1575 100644 --- a/drivers/clk/imx/clk-imx8mq.c

[PATCH 3/3] arm64: dts: freescale: imx8mq: add clock for GPIO node

2019-02-22 Thread Anson Huang
i.MX8MQ has clock gate for each GPIO bank, add clock info to GPIO node for clock management. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts

[PATCH 2/3] clk: imx8mq: add GPIO clocks to clock tree

2019-02-22 Thread Anson Huang
i.MX8MQ has clock gate for each GPIO bank, add them into clock tree for GPIO driver to manage. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mq.c | 5 + include/dt-bindings/clock/imx8mq-clock.h | 8 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a

RE: [PATCH V4 2/2] clk: imx: scu: add cpu frequency scaling support

2019-02-21 Thread Anson Huang
Hi, Stephen Best Regards! Anson Huang > -Original Message- > From: Stephen Boyd [mailto:sb...@kernel.org] > Sent: 2019年2月22日 4:48 > To: devicet...@vger.kernel.org; feste...@gmail.com; > ker...@pengutronix.de; linux-arm-ker...@lists.infradead.org; linux- > c...@vger

[PATCH RESEND V6 1/2] arm64: dts: freescale: imx8qxp: add cpu opp table

2019-02-21 Thread Anson Huang
Add i.MX8QXP CPU opp table to support cpufreq. Signed-off-by: Anson Huang Acked-by: Viresh Kumar --- No changes. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch

[PATCH RESEND V6 2/2] clk: imx: scu: add cpu frequency scaling support

2019-02-21 Thread Anson Huang
uency scaling. This patch adds i.MX system controller CPU frequency scaling support, it reuses cpufreq-dt driver and implement the CPU frequency scaling inside SCU clock driver. Signed-off-by: Anson Huang --- No changes compared to last version, just redo patch based on clk-next to fix patch conf

[PATCH V4 3/4] arm64: dts: freescale: imx8qxp: enable scu general irq channel

2019-02-21 Thread Anson Huang
On i.MX8QXP, SCU uses MU1 general interrupt channel #3 to notify user for IRQs of RTC alarm, thermal alarm and WDOG etc., mailbox RX doorbell mode is used for this function, this patch adds support for it. Signed-off-by: Anson Huang --- Changes since V3: - rename "gi3"

[PATCH V4 1/4] dt-bindings: fsl: scu: add general interrupt support

2019-02-21 Thread Anson Huang
Add scu general interrupt function support. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- Changes since V3: - make general MU interrupt channel as optional; - rename "gi3" to "gip3" according to driver/dts change. --- .../devicetree/bindings/arm/f

[PATCH V4 2/4] firmware: imx: enable imx scu general irq function

2019-02-21 Thread Anson Huang
le to handle the interrupt. Since there is no data transmission for SCU IRQ notification, so doorbell mode is used for this MU channel, and SCU driver will use notifier mechanism to broadcast to every module which registers the SCU block notifier. Signed-off-by: Anson Huang --- Changes sin

[PATCH V4 4/4] rtc: imx-sc: add rtc alarm support

2019-02-21 Thread Anson Huang
irq event and notify system controller RTC driver to handle the irq event. Signed-off-by: Anson Huang --- No changes since V3. --- drivers/rtc/rtc-imx-sc.c | 112 +++ 1 file changed, 112 insertions(+) diff --git a/drivers/rtc/rtc-imx-sc.c b/drivers/rtc

[PATCH V8 4/4] arm64: dts: imx: add i.MX8QXP thermal support

2019-02-20 Thread Anson Huang
Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V7: - move the "imx,sensor-resource-id" to scu tsens node; - correct #thermal-sensor-cells value to be 0 as there is ONLY one thermal zone now; - add cooling map for pa

[PATCH V8 3/4] defconfig: arm64: add i.MX system controller thermal support

2019-02-20 Thread Anson Huang
This patch enables CONFIG_IMX_SC_THERMAL as module. Signed-off-by: Anson Huang --- No change. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 2d9c390..52d503e 100644 --- a/arch/arm64/configs

[PATCH V8 2/4] thermal: imx_sc: add i.MX system controller thermal support

2019-02-20 Thread Anson Huang
unit) IPC to get each thermal sensor's temperature, it supports multiple sensors which are passed from device tree, please see the binding doc for details. Signed-off-by: Anson Huang --- Changes since V7: - remove unused structure imx_sc_thermal_data to simply the driver; - mov

[PATCH V8 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-20 Thread Anson Huang
, this patch adds binding doc for i.MX system controller thermal driver. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- Changes since V7: - remove unused property "tsens-num"; - improve the compatible description; - update examples according to lates

[PATCH V3 2/2] dt-bindings: imx: add new resources to scu resource table

2019-02-20 Thread Anson Huang
Add new resources as below according to latest system controller firmware for new features: IMX_SC_R_PERF IMX_SC_R_OCRAM IMX_SC_R_DMA_5_CH0 IMX_SC_R_DMA_5_CH1 IMX_SC_R_DMA_5_CH2 IMX_SC_R_DMA_5_CH3 IMX_SC_R_ATTESTATION Signed-off-by: Anson

[PATCH V3 1/2] dt-bindings: imx: remove unused resources from scu resource table

2019-02-20 Thread Anson Huang
IMX_SC_R_M4_1_SIM IMX_SC_R_M4_1_WDOG Signed-off-by: Anson Huang --- No changes since V2, just separate the patch to 2, 1 patch to remove resources and the other is to add new resources. --- include/dt-bindings/firmware/imx/rsrc.h | 30 +++--- 1 file changed, 15 insertions

[PATCH V2] dt-bindings: imx: update scu resource id headfile

2019-02-20 Thread Anson Huang
IMX_SC_R_M4_1_WDOG and also add below resources to support new features: IMX_SC_R_PERF IMX_SC_R_OCRAM IMX_SC_R_DMA_5_CH0 IMX_SC_R_DMA_5_CH1 IMX_SC_R_DMA_5_CH2 IMX_SC_R_DMA_5_CH3 IMX_SC_R_ATTESTATION Signed-off-by: Anson Huang --- No changes since V1

RE: [PATCH V7 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-20 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: 2019年2月20日 15:45 > To: Anson Huang ; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; catalin.mari...@arm.com; will.dea...

[PATCH V7 4/4] arm64: dts: imx: add i.MX8QXP thermal support

2019-02-19 Thread Anson Huang
Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V6: - add fallback compatible string "fsl,imx-sc-thermal" according to i.MX SC thermal driver update. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 28 ++

[PATCH V7 3/4] defconfig: arm64: add i.MX system controller thermal support

2019-02-19 Thread Anson Huang
This patch enables CONFIG_IMX_SC_THERMAL as module. Signed-off-by: Anson Huang --- No changes since V6. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 2d9c390..52d503e 100644 --- a/arch/arm64

[PATCH V7 2/4] thermal: imx_sc: add i.MX system controller thermal support

2019-02-19 Thread Anson Huang
unit) IPC to get each thermal sensor's temperature, it supports multiple sensors which are passed from device tree, please see the binding doc for details. Signed-off-by: Anson Huang --- Changes since V6: - use "fsl,imx-sc-thermal" compatible to make SC thermal driver mo

[PATCH V7 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-19 Thread Anson Huang
, this patch adds binding doc for i.MX system controller thermal driver. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- Changes since V6: - put "imx,sensor-resource-id" property in thermal zone nodes. --- .../devicetree/bindings/arm/freescale/fsl,scu

RE: [PATCH] dt-bindings: imx: update scu resource id headfile

2019-02-19 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: 2019年2月20日 11:43 > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; ulf.hans...@lin

RE: [PATCH V6 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-19 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: 2019年2月20日 11:27 > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; catalin.mari...@a

RE: [PATCH] dt-bindings: imx: update scu resource id headfile

2019-02-19 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: 2019年2月20日 11:29 > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; ulf.hans...@lin

RE: [PATCH] dt-bindings: imx: update scu resource id headfile

2019-02-19 Thread Anson Huang
Hi, Marco Best Regards! Anson Huang > -Original Message- > From: Marco Felsch [mailto:m.fel...@pengutronix.de] > Sent: 2019年2月19日 22:48 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pen

RE: [PATCH] dt-bindings: imx: update scu resource id headfile

2019-02-19 Thread Anson Huang
Hi, Marco Best Regards! Anson Huang > -Original Message- > From: Marco Felsch [mailto:m.fel...@pengutronix.de] > Sent: 2019年2月19日 20:52 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pen

[PATCH] dt-bindings: imx: update scu resource id headfile

2019-02-19 Thread Anson Huang
Update i.MX SCU resource ID table according to latest system controller firmware. Signed-off-by: Anson Huang --- include/dt-bindings/firmware/imx/rsrc.h | 39 +++-- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/include/dt-bindings/firmware/imx

RE: [PATCH V6 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-18 Thread Anson Huang
Ping... Best Regards! Anson Huang > -Original Message- > From: Anson Huang > Sent: 2019年2月13日 13:36 > To: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > catalin.mari...@arm.com; w

[PATCH V3 4/4] rtc: imx-sc: add rtc alarm support

2019-02-18 Thread Anson Huang
irq event and notify system controller RTC driver to handle the irq event. Signed-off-by: Anson Huang --- Changes since V2: - add .read_alarm callback to make sure RTC set alarm work, system controller firmware does NOT support read alarm, so simply return 0; - add rtc

RE: [PATCH V2 4/4] rtc: imx-sc: add rtc alarm support

2019-02-18 Thread Anson Huang
Hi, Alexandre Best Regards! Anson Huang > -Original Message- > From: Alexandre Belloni [mailto:alexandre.bell...@bootlin.com] > Sent: 2019年2月19日 5:58 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker

[PATCH V3 3/4] arm64: dts: freescale: imx8qxp: enable scu general irq channel

2019-02-18 Thread Anson Huang
On i.MX8QXP, SCU uses MU1 general interrupt channel #3 to notify user for IRQs of RTC alarm, thermal alarm and WDOG etc., mailbox RX doorbell mode is used for this function, this patch adds support for it. Signed-off-by: Anson Huang --- No change since V2. --- arch/arm64/boot/dts/freescale

[PATCH V3 1/4] dt-bindings: fsl: scu: add general interrupt support

2019-02-18 Thread Anson Huang
Add scu general interrupt function support. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- No change since V2. --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree

[PATCH V3 2/4] firmware: imx: enable imx scu general irq function

2019-02-18 Thread Anson Huang
le to handle the interrupt. Since there is no data transmission for SCU IRQ notification, so doorbell mode is used for this MU channel, and SCU driver will use notifier mechanism to broadcast to every module which registers the SCU block notifier. Signed-off-by: Anson Huang --- No change sin

RE: [PATCH V4] dt-bindings: timer: gpt: update binding doc

2019-02-18 Thread Anson Huang
Hi, Rob Best Regards! Anson Huang > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: 2019年1月11日 22:52 > To: Anson Huang > Cc: daniel.lezc...@linaro.org; t...@linutronix.de; mark.rutl...@arm.com; > linux-kernel@vger.kernel.org; devicet...@vger.ke

[PATCH RESEND V2 4/4] arm64: dts: freescale: imx8qxp: add watchdog support

2019-02-17 Thread Anson Huang
Add i.MX8QXP system controller watchdog support. Signed-off-by: Anson Huang --- Changes since V1: - use watchdog instead of wdog. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch

[PATCH RESEND V2 2/4] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-02-17 Thread Anson Huang
-Firmware, using SMC call, CPU will trap into ARM-Trusted-Firmware and then it will request system controller to do watchdog operation via IPC. Signed-off-by: Anson Huang --- Changes since V1: - use watchdog_active() instead of comparing watchdog status directly; - use devm_kzalloc instead

[PATCH RESEND V2 3/4] arm64: defconfig: add support for i.MX system controller watchdog

2019-02-17 Thread Anson Huang
Enable CONFIG_IMX_SC_WDT as module to support i.MX system controller watchdog. 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 2d9c390..690f4ba 100644 --- a/arch

[PATCH RESEND V2 0/4] Add i.MX8QXP system controller watchdog support

2019-02-17 Thread Anson Huang
and imx8qxp.dtsi patch are based on my thermal patch series as below: https://patchwork.kernel.org/patch/10800699/ Anson Huang (4): dt-bindings: fsl: scu: add watchdog binding watchdog: imx_sc: Add i.MX system controller watchdog support arm64: defconfig: add support for i.MX system

[PATCH RESEND V2 1/4] dt-bindings: fsl: scu: add watchdog binding

2019-02-17 Thread Anson Huang
Add i.MX8QXP system controller watchdog binding. Signed-off-by: Anson Huang --- Changes since V1: - update dts node name to "watchdog"; --- Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Doc

RE: [PATCH V2 0/4] Add i.MX8QXP system controller watchdog support

2019-02-17 Thread Anson Huang
Hi, Guenter Best Regards! Anson Huang > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: 2019年2月18日 13:16 > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pen

[PATCH V2 0/4] Add i.MX8QXP system controller watchdog support

2019-02-17 Thread Anson Huang
/10800699/ Anson Huang (4): dt-bindings: fsl: scu: add watchdog binding watchdog: imx_sc: Add i.MX system controller watchdog support arm64: defconfig: add support for i.MX system controller watchdog arm64: dts: freescale: imx8qxp: add watchdog support .../devicetree/bindings/arm/freescale/fsl

[PATCH V2 3/4] arm64: defconfig: add support for i.MX system controller watchdog

2019-02-17 Thread Anson Huang
Enable CONFIG_IMX_SC_WDT as module to support i.MX system controller watchdog. 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 2d9c390..690f4ba 100644 --- a/arch

<    10   11   12   13   14   15   16   17   18   19   >