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

2019-05-29 Thread Anson . Huang
From: Anson Huang Enable CONFIG_PINCTRL_IMX8MN by default to support i.MX8MN pinctrl 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 7c7b6b5..8d4f25c

[PATCH] ARM: dts: imx7d-sdb: Make SW2's voltage fixed

2019-05-29 Thread Anson . Huang
From: Anson Huang On i.MX7D SDB board, SW2 supplies a lot of peripheral devices, its voltage should be fixed at 1.8V. The commit 43967d9b5a7c ("ARM: dts: imx7d-sdb: Assign corresponding power supply for LDOs") assigns SW2 as the supplier of vdd1p0d, and when its comsumers pcie-phy/mi

RE: [PATCH RESEND 2/5] ARM: dts: imx7d-sdb: Assign corresponding power supply for LDOs

2019-05-28 Thread Anson Huang
Hi, Leonard > -Original Message- > From: Leonard Crestez > Sent: Wednesday, May 29, 2019 3:24 AM > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > devicet...@v

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

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

[PATCH RESEND V13 5/5] arm64: dts: imx: add i.MX8QXP thermal support

2019-05-28 Thread Anson . Huang
From: Anson Huang Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- No change, just rebase the patch to top of linux-next and below my patch: https://patchwork.kernel.org/patch/10962185/ --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 37 ++ 1

[PATCH RESEND V13 4/5] defconfig: arm64: add i.MX system controller thermal support

2019-05-28 Thread Anson . Huang
From: Anson Huang This patch enables CONFIG_IMX_SC_THERMAL as module. Signed-off-by: Anson Huang --- No change, just rebase the patch to top of linux-next and based on below my patch: https://patchwork.kernel.org/patch/10959025/ --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1

[PATCH RESEND V13 1/5] dt-bindings: fsl: scu: add thermal binding

2019-05-28 Thread Anson . Huang
From: Anson Huang NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and thermal sensors etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC to get temperature

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

2019-05-28 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 RESEND V13 2/5] thermal: of-thermal: add API for getting sensor ID from DT

2019-05-28 Thread Anson . Huang
From: Anson Huang On some platforms like i.MX8QXP, the thermal driver needs a real HW sensor ID from DT thermal zone, the HW sensor ID is used to get temperature from SCU firmware, and the virtual sensor ID starting from 0 to N is NOT used at all, this patch adds new API

[PATCH V13 5/5] arm64: dts: imx: add i.MX8QXP thermal support

2019-05-27 Thread Anson . Huang
From: Anson Huang Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- No change, just rebase the patch to top of linux-next and below my patch: https://patchwork.kernel.org/patch/10962185/ --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 37 ++ 1

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

2019-05-27 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 V13 1/5] dt-bindings: fsl: scu: add thermal binding

2019-05-27 Thread Anson . Huang
From: Anson Huang NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and thermal sensors etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC to get temperature

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

2019-05-27 Thread Anson . Huang
From: Anson Huang This patch enables CONFIG_IMX_SC_THERMAL as module. Signed-off-by: Anson Huang --- No change, just rebase the patch to top of linux-next and based on below my patch: https://patchwork.kernel.org/patch/10959025/ --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1

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

2019-05-27 Thread Anson . Huang
From: Anson Huang On some platforms like i.MX8QXP, the thermal driver needs a real HW sensor ID from DT thermal zone, the HW sensor ID is used to get temperature from SCU firmware, and the virtual sensor ID starting from 0 to N is NOT used at all, this patch adds new API

[PATCH V4 RESEND 1/3] dt-bindings: watchdog: move i.MX system controller watchdog binding to SCU

2019-05-27 Thread Anson . Huang
From: Anson Huang i.MX system controller watchdog depends on SCU driver to support interrupt function, so it needs to be subnode of SCU node in DT, binding doc should be moved to fsl,scu.txt as well. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- No changes, just rebase the patch

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

2019-05-27 Thread Anson . Huang
From: Anson Huang i.MX system controller watchdog can support pretimeout IRQ via general SCU MU IRQ, it depends on IMX_SCU and driver MUST be probed after SCU IPC ready, then enable corresponding SCU IRQ group and register SCU IRQ notifier, when watchdog pretimeout IRQ fires, SCU MU IRQ

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

2019-05-27 Thread Anson . Huang
From: Anson Huang i.MX system controller watchdog has pretimeout function which depends on i.MX SCU driver, so it should be a subnode of SCU. Signed-off-by: Anson Huang --- No change, just rebase the patch to top of linux-next. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 10 +- 1

RE: [PATCH 1/2] soc: imx: soc-imx8: Avoid unnecessary of_node_put() in error handling

2019-05-23 Thread Anson Huang
Hi, Shawn > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Thursday, May 23, 2019 8:41 PM > To: Anson Huang > Cc: s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > Leonard Crestez ; Abel Vesa > ; viresh.ku...@linaro.

RE: [PATCH 3/3] arm64: dts: imx8mq: add clock for SNVS RTC node

2019-05-23 Thread Anson Huang
Hi, Shawn > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Thursday, May 23, 2019 9:03 AM > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; mturque...@

[PATCH RESEND 1/2] soc: imx: soc-imx8: Avoid unnecessary of_node_put() in error handling

2019-05-23 Thread Anson . Huang
From: Anson Huang of_node_put() is called after of_match_node() successfully called, then in the following error handling, of_node_put() is called again which is unnecessary, this patch adjusts the location of of_node_put() to avoid such scenario. Signed-off-by: Anson Huang Reviewed

[PATCH RESEND 2/2] soc: imx: soc-imx8: Correct return value of error handle

2019-05-23 Thread Anson . Huang
From: Anson Huang Current implementation of i.MX8 SoC driver returns -ENODEV for all cases of error during initialization, this is incorrect. This patch fixes them using correct return value according to different errors. Signed-off-by: Anson Huang Reviewed-by: Leonard Crestez --- drivers

[PATCH RESEND] arm64: dts: imx8mq: add clock for SNVS RTC node

2019-05-23 Thread Anson . Huang
From: Anson Huang i.MX8MQ has clock gate for SNVS module, add clock info to SNVS RTC node for clock management. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch

[PATCH V7 1/2] soc: imx: Add SCU SoC info driver support

2019-05-23 Thread Anson Huang
be read from sysfs: i.mx8qxp-mek# cat /sys/devices/soc0/family Freescale i.MX i.mx8qxp-mek# cat /sys/devices/soc0/soc_id 0x2 i.mx8qxp-mek# cat /sys/devices/soc0/machine Freescale i.MX8QXP MEK i.mx8qxp-mek# cat /sys/devices/soc0/revision 1.1 Signed-off-by: Anson Huang Reviewed-by: Abel Vesa

[PATCH V7 2/2] arm64: defconfig: Add i.MX SCU SoC info driver

2019-05-23 Thread Anson Huang
This patch selects CONFIG_IMX_SCU_SOC by default to support i.MX system controller unit SoC info driver. Signed-off-by: Anson Huang Reviewed-by: Abel Vesa Reviewed-by: Dong Aisheng --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64

RE: [PATCH] arm64: defconfig: Enable CONFIG_QORIQ_THERMAL

2019-05-23 Thread Anson Huang
Hi, Shawn > -Original Message- > From: Shawn Guo [mailto:shawn@linaro.org] > Sent: Thursday, May 23, 2019 9:16 PM > To: Anson Huang > Cc: catalin.mari...@arm.com; will.dea...@arm.com; > maxime.rip...@bootlin.com; o...@lixom.net; agr...@kernel.org; > horms+ren

[PATCH RESEND] arm64: defconfig: Enable CONFIG_QORIQ_THERMAL

2019-05-23 Thread Anson Huang
i.MX8MQ needs CONFIG_QORIQ_THERMAL for thermal support. 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 f0bad30..c91642d 100644 --- a/arch/arm64/configs/defconfig

RE: [PATCH V6 1/2] soc: imx: Add SCU SoC info driver support

2019-05-23 Thread Anson Huang
Hi, Russell > -Original Message- > From: Russell King - ARM Linux admin [mailto:li...@armlinux.org.uk] > Sent: Thursday, May 23, 2019 5:10 PM > To: Anson Huang > Cc: catalin.mari...@arm.com; will.dea...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker

[PATCH V6 1/2] soc: imx: Add SCU SoC info driver support

2019-05-22 Thread Anson Huang
be read from sysfs: i.mx8qxp-mek# cat /sys/devices/soc0/family Freescale i.MX i.mx8qxp-mek# cat /sys/devices/soc0/soc_id 0x2 i.mx8qxp-mek# cat /sys/devices/soc0/machine Freescale i.MX8QXP MEK i.mx8qxp-mek# cat /sys/devices/soc0/revision 1.1 Signed-off-by: Anson Huang Reviewed-by: Abel Vesa

[PATCH V6 2/2] arm64: defconfig: Add i.MX SCU SoC info driver

2019-05-22 Thread Anson Huang
This patch selects CONFIG_IMX_SCU_SOC by default to support i.MX system controller unit SoC info driver. Signed-off-by: Anson Huang Reviewed-by: Abel Vesa Reviewed-by: Dong Aisheng --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64

[PATCH V5 1/2] soc: imx: Add SCU SoC info driver support

2019-05-22 Thread Anson Huang
be read from sysfs: i.mx8qxp-mek# cat /sys/devices/soc0/family Freescale i.MX i.mx8qxp-mek# cat /sys/devices/soc0/soc_id 0x2 i.mx8qxp-mek# cat /sys/devices/soc0/machine Freescale i.MX8QXP MEK i.mx8qxp-mek# cat /sys/devices/soc0/revision 1.1 Signed-off-by: Anson Huang --- Changes since V4

[PATCH V5 2/2] arm64: defconfig: Add i.MX SCU SoC info driver

2019-05-22 Thread Anson Huang
This patch selects CONFIG_IMX_SCU_SOC by default to support i.MX system controller unit SoC info 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

[PATCH 1/2] soc: imx: soc-imx8: Avoid unnecessary of_node_put() in error handling

2019-05-21 Thread Anson Huang
of_node_put() is called after of_match_node() successfully called, then in the following error handling, of_node_put() is called again which is unnecessary, this patch adjusts the location of of_node_put() to avoid such scenario. Signed-off-by: Anson Huang --- drivers/soc/imx/soc-imx8.c | 4

[PATCH 2/2] soc: imx: soc-imx8: Correct return value of error handle

2019-05-21 Thread Anson Huang
Current implementation of i.MX8 SoC driver returns -ENODEV for all cases of error during initialization, this is incorrect. This patch fixes them using correct return value according to different errors. Signed-off-by: Anson Huang --- drivers/soc/imx/soc-imx8.c | 16 +++- 1 file

RE: [PATCH] arm64: dts: imx8qxp: Add gpio alias

2019-05-21 Thread Anson Huang
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Tuesday, May 21, 2019 4:09 PM > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; Aisheng Dong > ; Danie

[PATCH V2] arm64: dts: imx8qxp: Add gpio alias

2019-05-21 Thread Anson Huang
Add i.MX8QXP GPIO alias for kernel GPIO driver usage. Signed-off-by: Anson Huang --- Changes since V1: - keep the list alphabetically sorted, no content change. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH V2] arm64: dts: imx8mq: Add gpio alias

2019-05-21 Thread Anson Huang
Add i.MX8MQ GPIO alias for kernel GPIO driver usage. Signed-off-by: Anson Huang --- Changes since V1: - keep the list alphabetically sorted, no content change. --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts

RE: [PATCH] arm64: dts: imx8mq: Add gpio alias

2019-05-21 Thread Anson Huang
Hi, Shawn > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Tuesday, May 21, 2019 4:07 PM > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; l.st...@pengutron

[PATCH] arm64: defconfig: Enable CONFIG_QORIQ_THERMAL

2019-05-21 Thread Anson Huang
i.MX8MQ needs CONFIG_QORIQ_THERMAL for thermal support. 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 da85808..61be39b 100644 --- a/arch/arm64/configs/defconfig

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

2019-05-21 Thread Anson Huang
Hi, Dmitry > -Original Message- > From: dmitry.torok...@gmail.com [mailto:dmitry.torok...@gmail.com] > Sent: Tuesday, May 21, 2019 1:31 PM > To: Anson Huang > Cc: shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; linux-in.

RE: linux-next: build failure after merge of the imx-mxs tree

2019-05-20 Thread Anson Huang
ead, sorry for the inconvenience. https://patchwork.kernel.org/patch/10944681/ thanks, Anson. > -Original Message- > From: Stephen Rothwell [mailto:s...@canb.auug.org.au] > Sent: Tuesday, May 21, 2019 6:38 AM > To: Shawn Guo > Cc: Linux Next Mailing List ; Linux Kernel Mailing > Li

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

2019-05-17 Thread Anson Huang
> -Original Message- > From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > Sent: Thursday, May 16, 2019 5:39 PM > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail

[PATCH V4 1/2] soc: imx: Add SCU SoC info driver support

2019-05-16 Thread Anson Huang
be read from sysfs: i.mx8qxp-mek# cat /sys/devices/soc0/family Freescale i.MX i.mx8qxp-mek# cat /sys/devices/soc0/soc_id 0x2 i.mx8qxp-mek# cat /sys/devices/soc0/machine Freescale i.MX8QXP MEK i.mx8qxp-mek# cat /sys/devices/soc0/revision 1.1 Signed-off-by: Anson Huang --- Changes since V3

[PATCH V4 2/2] arm64: defconfig: Add i.MX SCU SoC info driver

2019-05-16 Thread Anson Huang
This patch selects CONFIG_IMX_SCU_SOC by default to support i.MX system controller unit SoC info 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

RE: [PATCH V3 1/2] soc: imx: Add SCU SoC info driver support

2019-05-16 Thread Anson Huang
> -Original Message- > From: Aisheng Dong > Sent: Thursday, May 16, 2019 7:13 PM > To: Anson Huang ; catalin.mari...@arm.com; > will.dea...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; agr...@kernel.org; > maxime.

RE: [PATCH V3 1/2] soc: imx: Add SCU SoC info driver support

2019-05-16 Thread Anson Huang
Hi, Leonard > -Original Message- > From: Leonard Crestez > Sent: Thursday, May 16, 2019 6:07 PM > To: Anson Huang ; shawn...@kernel.org > Cc: catalin.mari...@arm.com; will.dea...@arm.com; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > agr...@k

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

2019-05-16 Thread Anson Huang
> -Original Message- > From: Aisheng Dong > Sent: Thursday, May 16, 2019 6:40 PM > 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...@arm.com; >

[PATCH V3 2/2] arm64: defconfig: Add i.MX SCU SoC info driver

2019-05-15 Thread Anson Huang
This patch selects CONFIG_IMX_SCU_SOC by default to support i.MX system controller unit SoC info 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

[PATCH V3 1/2] soc: imx: Add SCU SoC info driver support

2019-05-15 Thread Anson Huang
be read from sysfs: i.mx8qxp-mek# cat /sys/devices/soc0/family Freescale i.MX i.mx8qxp-mek# cat /sys/devices/soc0/soc_id i.MX8QXP i.mx8qxp-mek# cat /sys/devices/soc0/machine Freescale i.MX8QXP MEK i.mx8qxp-mek# cat /sys/devices/soc0/revision 1.1 Signed-off-by: Anson Huang --- Changes since V2

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

2019-05-15 Thread Anson Huang
Ping... > -Original Message- > From: Anson Huang > Sent: Thursday, May 9, 2019 9:44 AM > 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...@arm.com; >

[PATCH V2 2/2] clk: imx: Use imx_mmdc_mask_handshake() API for masking MMDC channel

2019-05-15 Thread Anson Huang
Use imx_mmdc_mask_handshake() API instead of programming CCM register directly in each platform to mask unused MMDC channel's handshake. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No changes. --- drivers/clk/imx/clk-imx6q.c | 13 + drivers/clk/imx/clk-imx6sl.c | 5

[PATCH V2 1/2] clk: imx: Add common API for masking MMDC handshake

2019-05-15 Thread Anson Huang
All i.MX6 SoCs need to mask unused MMDC channel's handshake for low power modes, this patch provides common API for masking the MMDC channel passed from caller. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- Changes since V1: - add necessary "io.h" head file to a

RE: [PATCH V2 1/2] soc: imx: Add SCU SoC info driver support

2019-05-15 Thread Anson Huang
Hi, Leonard > -Original Message- > From: Leonard Crestez > Sent: Wednesday, May 15, 2019 6:05 PM > To: Anson Huang > Cc: catalin.mari...@arm.com; will.dea...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; agr...@k

RE: [PATCH 1/3] dt-bindings: clock: imx8mm: Add SNVS clock

2019-05-15 Thread Anson Huang
Hi, Leonard > -Original Message- > From: Leonard Crestez > Sent: Wednesday, May 15, 2019 6:18 PM > To: Anson Huang ; shawn...@kernel.org; > sb...@kernel.org; Jacky Bai > Cc: robh...@kernel.org; mark.rutl...@arm.com; s.ha...@pengutronix.de; > ker...@pengutronix.d

RE: [PATCH V2 1/2] soc: imx: Add SCU SoC info driver support

2019-05-15 Thread Anson Huang
> -Original Message- > From: Daniel Baluta [mailto:daniel.bal...@gmail.com] > Sent: Wednesday, May 15, 2019 7:47 PM > To: Anson Huang > Cc: catalin.mari...@arm.com; will.dea...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > fe

[PATCH V2 2/2] arm64: defconfig: Add i.MX SCU SoC info driver

2019-05-15 Thread Anson Huang
This patch selects CONFIG_IMX_SCU_SOC by default to support i.MX system controller unit SoC info 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

[PATCH V2 1/2] soc: imx: Add SCU SoC info driver support

2019-05-15 Thread Anson Huang
be read from sysfs: i.mx8qxp-mek# cat /sys/devices/soc0/family Freescale i.MX i.mx8qxp-mek# cat /sys/devices/soc0/soc_id i.MX8QXP i.mx8qxp-mek# cat /sys/devices/soc0/machine Freescale i.MX8QXP MEK i.mx8qxp-mek# cat /sys/devices/soc0/revision 1.1 Signed-off-by: Anson Huang --- Changes since V1

[PATCH 2/3] clk: imx8mm: add SNVS clock to clock tree

2019-05-14 Thread Anson Huang
i.MX8MM has clock gate for SNVS module, add it into clock tree for SNVS RTC driver to manage. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 733ca20..7ffbd6e3

[PATCH 3/3] arm64: dts: imx8mm: add clock for SNVS RTC node

2019-05-14 Thread Anson Huang
i.MX8MM has clock gate for SNVS module, add clock info to SNVS RTC node for clock management. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale

[PATCH 1/3] dt-bindings: clock: imx8mm: Add SNVS clock

2019-05-14 Thread Anson Huang
Add macro for the SNVS clock of the i.MX8MM. Signed-off-by: Anson Huang --- This patch is based on patch: https://patchwork.kernel.org/patch/10939997/ --- include/dt-bindings/clock/imx8mm-clock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock

[PATCH 1/3] dt-bindings: clock: imx8mq: Add SNVS clock

2019-05-14 Thread Anson Huang
Add macro for the SNVS clock of the i.MX8MQ. Signed-off-by: Anson Huang --- include/dt-bindings/clock/imx8mq-clock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/imx8mq-clock.h b/include/dt-bindings/clock/imx8mq-clock.h index 6677e92..0233bb1

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

2019-05-14 Thread Anson Huang
i.MX8MQ has clock gate for SNVS module, add it into clock tree for SNVS RTC driver to manage. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index daf1841..24c3464 100644

[PATCH 3/3] arm64: dts: imx8mq: add clock for SNVS RTC node

2019-05-14 Thread Anson Huang
i.MX8MQ has clock gate for SNVS module, add clock info to SNVS RTC node for clock management. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale

RE: [PATCH RESEND 1/2] soc: imx: Add SCU SoC info driver support

2019-05-14 Thread Anson Huang
> -Original Message- > From: Daniel Baluta [mailto:daniel.bal...@gmail.com] > Sent: Tuesday, May 14, 2019 4:39 PM > To: Anson Huang > Cc: catalin.mari...@arm.com; will.dea...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@

[PATCH] arm64: dts: imx8mq: Remove unnecessary blank lines

2019-05-14 Thread Anson Huang
Unnecessary blank lines do NOT help readability, so remove them. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index df33672

[PATCH] arm64: dts: imx8qxp: Add gpio alias

2019-05-13 Thread Anson Huang
Add i.MX8QXP GPIO alias for kernel GPIO driver usage. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index b17c22e

[PATCH] arm64: dts: imx8mq: Add gpio alias

2019-05-13 Thread Anson Huang
Add i.MX8MQ GPIO alias for kernel GPIO driver usage. 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/freescale/imx8mq.dtsi index 6d635ba..df33672

RE: [PATCH RESEND 1/2] soc: imx: Add SCU SoC info driver support

2019-05-13 Thread Anson Huang
Hi, Daniel > -Original Message- > From: Daniel Baluta [mailto:daniel.bal...@gmail.com] > Sent: Monday, May 13, 2019 10:30 PM > To: Anson Huang > Cc: catalin.mari...@arm.com; will.dea...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; &g

[PATCH RESEND 1/2] soc: imx: Add SCU SoC info driver support

2019-05-12 Thread Anson Huang
be read from sysfs: i.mx8qxp-mek# cat /sys/devices/soc0/family Freescale i.MX i.mx8qxp-mek# cat /sys/devices/soc0/soc_id i.MX8QXP i.mx8qxp-mek# cat /sys/devices/soc0/machine Freescale i.MX8QXP MEK i.mx8qxp-mek# cat /sys/devices/soc0/revision 1.1 Signed-off-by: Anson Huang --- This patch

[PATCH RESEND 2/2] arm64: defconfig: Add i.MX SCU SoC info driver

2019-05-12 Thread Anson Huang
This patch selects CONFIG_IMX_SCU_SOC by default to support i.MX system controller unit SoC info driver. Signed-off-by: Anson Huang --- This patch is a resend version of patch https://patchwork.kernel.org/patch/10895149/, the change is just using correct encoding. --- arch/arm64/configs

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

2019-05-12 Thread Anson Huang
> -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] 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..

[PATCH RESEND] clk: imx7ulp: update nic1_bus_clk parent info

2019-05-12 Thread Anson Huang
Since i.MX7ULP B0 chip, nic1_bus_clk's parent is changed to from nic0_clk directly, update it accordingly. Signed-off-by: Anson Huang --- No change, just resend patch with correct encoding. --- drivers/clk/imx/clk-imx7ulp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH RESEND 1/2] clk: imx: Add common API for masking MMDC handshake

2019-05-12 Thread Anson Huang
All i.MX6 SoCs need to mask unused MMDC channel's handshake for low power modes, this patch provides common API for masking the MMDC channel passed from caller. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No change, just resend patch with correct encoding. --- drivers/clk/imx

[PATCH RESEND 2/2] clk: imx: Use imx_mmdc_mask_handshake() API for masking MMDC channel

2019-05-12 Thread Anson Huang
Use imx_mmdc_mask_handshake() API instead of programming CCM register directly in each platform to mask unused MMDC channel's handshake. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No change, just resend patch with correct encoding. --- drivers/clk/imx/clk-imx6q.c | 13

[PATCH RESEND 1/3] dt-bindings: clock: imx8mm: Add GPIO clocks

2019-05-12 Thread Anson Huang
Add macro for the GPIO clocks of the i.MX8MM. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No change, just resend patch with correct encoding. --- include/dt-bindings/clock/imx8mm-clock.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings

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

2019-05-12 Thread Anson Huang
i.MX8MM has clock gate for each GPIO bank, add them into clock tree for GPIO driver to manage. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No change, just resend patch with correct encoding. --- drivers/clk/imx/clk-imx8mm.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH RESEND 3/3] arm64: dts: imx8mm: add clock for GPIO node

2019-05-12 Thread Anson Huang
i.MX8MM has clock gate for each GPIO bank, add clock info to GPIO node for clock management. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No change, just resend patch with correct encoding. --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 5 + 1 file changed, 5 insertions

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

2019-05-12 Thread Anson Huang
i.MX system controller watchdog has pretimeout function which depends on i.MX SCU driver, so it should be a subnode of SCU. Signed-off-by: Anson Huang --- No change, just resend patch with correct encoding. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 10 +- 1 file changed, 5

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

2019-05-12 Thread Anson Huang
pretimeout notifier will be called to handle the event. Signed-off-by: Anson Huang --- No change, just resend patch with correct encoding. --- drivers/watchdog/Kconfig | 1 + drivers/watchdog/imx_sc_wdt.c | 116 +++--- 2 files changed, 98 insertions

[PATCH RESEND V4 1/3] dt-bindings: watchdog: move i.MX system controller watchdog binding to SCU

2019-05-12 Thread Anson Huang
i.MX system controller watchdog depends on SCU driver to support interrupt function, so it needs to be subnode of SCU node in DT, binding doc should be moved to fsl,scu.txt as well. Signed-off-by: Anson Huang --- No change, just resend patch with correct encoding. --- .../devicetree/bindings

[PATCH RESEND 2/2] ARM: dts: imx6qdl: Assign corresponding clocks instead of dummy clock

2019-05-12 Thread Anson Huang
i.MX6Q/DL's WDOGs use IMX6QDL_CLK_IPG as clock root, assign IMX6QDL_CLK_IPG to them instead of IMX6QDL_CLK_DUMMY. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No code change, just resend patch with correct encoding. --- arch/arm/boot/dts/imx6qdl.dtsi | 4 ++-- 1 file changed, 2

[PATCH RESEND 1/2] ARM: dts: imx6sl: Assign corresponding clocks instead of dummy clock

2019-05-12 Thread Anson Huang
i.MX6SL's KPP and WDOG use IMX6SL_CLK_IPG as clock root, assign IMX6SL_CLK_IPG to them instead of IMX6SL_CLK_DUMMY. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No code change, just resend patch with correct encoding. --- arch/arm/boot/dts/imx6sl.dtsi | 6 +++--- 1 file changed, 3

[PATCH RESEND 4/5] ARM: dts: imx6sll-evk: Assign corresponding power supply for vdd3p0

2019-05-12 Thread Anson Huang
On i.MX6SLL EVK board, sw2 supplies vdd3p0 LDO, this patch assigns corresponding power supply for vdd3p0 to avoid confusion by below log: vdd3p0: supplied by regulator-dummy With this patch, the power supply is more accurate: vdd3p0: supplied by SW2 Signed-off-by: Anson Huang --- No code

[PATCH RESEND 5/5] ARM: dts: imx6sx-sdb: Assign corresponding power supply for LDOs

2019-05-12 Thread Anson Huang
With this patch, the power supply is more accurate: vdd1p1: supplied by VGEN6 vdd3p0: supplied by SW2 vdd2p5: supplied by VGEN6 Signed-off-by: Anson Huang --- No code change, just resend patch with correct encoding. --- arch/arm/boot/dts/imx6sx-sdb-reva.dts | 12 arch/arm/boot/dts

[PATCH RESEND 2/5] ARM: dts: imx7d-sdb: Assign corresponding power supply for LDOs

2019-05-12 Thread Anson Huang
vdd1p2: supplied by SW2 Signed-off-by: Anson Huang --- No code change, just resend patch with correct encoding. --- arch/arm/boot/dts/imx7d-sdb.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 202922e..efc83bc

[PATCH RESEND 1/5] ARM: dts: imx6qdl-sabresd: Assign corresponding power supply for LDOs

2019-05-12 Thread Anson Huang
-dummy With this patch, the power supply is more accurate: vdd1p1: supplied by VGEN5 vdd3p0: supplied by SW2 vdd2p5: supplied by VGEN5 Signed-off-by: Anson Huang --- No code change, just resend patch with correct encoding. --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 12 arch/arm

[PATCH RESEND 3/5] ARM: dts: imx6sl-evk: Assign corresponding power supply for LDOs

2019-05-12 Thread Anson Huang
, the power supply is more accurate: vdd1p1: supplied by SW2 vdd3p0: supplied by SW2 vdd2p5: supplied by SW2 Signed-off-by: Anson Huang --- No code change, just resend patch with correct encoding. --- arch/arm/boot/dts/imx6sl-evk.dts | 12 arch/arm/boot/dts/imx6sl.dtsi| 6 +++--- 2

[PATCH RESEND] ARM: dts: imx6ul: add clock-frequency to CPU node

2019-05-12 Thread Anson Huang
Add clock-frequency property to CPU node. Avoids warnings like "/cpus/cpu@0 missing clock-frequency property" for "arm,cortex-a7". Signed-off-by: Anson Huang --- No code change, just resend patch using correct encoding. --- arch/arm/boot/dts/imx6ul.dtsi | 1 + arch/arm/b

[PATCH V12 RESEND 2/3] ARM: dts: imx7ulp: Add tpm pwm support

2019-05-12 Thread Anson Huang
Add i.MX7ULP EVK board PWM support. Signed-off-by: Anson Huang --- No change change, just resend the patch with correct encoding for patch series: https://patchwork.kernel.org/patch/10937147/ --- arch/arm/boot/dts/imx7ulp.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch

[PATCH V12 RESEND 1/3] ARM: imx_v6_v7_defconfig: Add TPM PWM support by default

2019-05-12 Thread Anson Huang
Select CONFIG_PWM_IMX_TPM by default to support i.MX7ULP TPM PWM. Signed-off-by: Anson Huang --- No change change, just resend the patch with correct encoding for patch series: https://patchwork.kernel.org/patch/10937147/ --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1

[PATCH V12 RESEND 3/3] ARM: dts: imx7ulp-evk: Add backlight support

2019-05-12 Thread Anson Huang
This patch adds i.MX7ULP EVK board MIPI-DSI backlight support. Signed-off-by: Anson Huang --- No change change, just resend the patch with correct encoding for patch series: https://patchwork.kernel.org/patch/10937147/ --- arch/arm/boot/dts/imx7ulp-evk.dts | 20 1 file

[PATCH RESEND] firmware: imx: SCU irq should ONLY be enabled after SCU IPC is ready

2019-05-12 Thread Anson Huang
will defer probe after SCU IPC ready. Fixes: 851826c7566e ("firmware: imx: enable imx scu general irq function") Signed-off-by: Anson Huang --- No code change, just resend the patch with correct encoding. --- drivers/firmware/imx/imx-scu-irq.c | 3 +++ 1 file changed, 3 insertions(+)

RE: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_THERMAL_STATISTICS

2019-05-10 Thread Anson Huang
.org/patch/10938725/ > -Original Message- > From: Anson Huang > Sent: Friday, May 10, 2019 1:05 PM > To: 'Shawn Guo' > Cc: li...@armlinux.org.uk; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; ota...@ossystems.com.br; > Leonard Crestez ; Robin Gong >

[PATCH RESEND] ARM: imx_v6_v7_defconfig: Enable CONFIG_THERMAL_STATISTICS

2019-05-10 Thread Anson Huang
Enable CONFIG_THERMAL_STATISTICS to extend the sysfs interface for thermal cooling devices and expose some useful statistics. Signed-off-by: Anson Huang --- no change, just fix the base64 encoding issue. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

RE: [PATCH 1/2] soc: imx-sc: add i.MX system controller soc driver support

2019-05-10 Thread Anson Huang
defer probe to make sure SCU driver is ready, and need to use SCU API for getting soc id, will resend a patch soon, sorry for wasting your time on this patch. Anson. > -Original Message- > From: Aisheng Dong > Sent: Friday, May 10, 2019 5:17 PM > To: Anson Huang ; catalin.mar

RE: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_THERMAL_STATISTICS

2019-05-09 Thread Anson Huang
Hi, Shawn > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Friday, May 10, 2019 11:29 AM > To: Anson Huang > Cc: li...@armlinux.org.uk; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; ota...@ossystems.com.br; > Leonard

[PATCH V12 5/5] ARM: dts: imx7ulp-evk: Add backlight support

2019-05-09 Thread Anson Huang
This patch adds i.MX7ULP EVK board MIPI-DSI backlight support. Signed-off-by: Anson Huang --- No change. --- arch/arm/boot/dts/imx7ulp-evk.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts index

[PATCH V12 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding

2019-05-09 Thread Anson Huang
Add i.MX TPM(Low Power Timer/Pulse Width Modulation Module) PWM binding. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- No change. --- .../devicetree/bindings/pwm/imx-tpm-pwm.txt| 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation

[PATCH V12 0/5] Add i.MX7ULP EVK PWM backlight support

2019-05-09 Thread Anson Huang
i.MX7ULP EVK board has MIPI-DSI display, its backlight is supplied by TPM PWM module, this patch set enables i.MX7ULP TPM PWM driver support and also add backlight support for MIPI-DSI display. Changes since V11: - ONLY add a function comment in drivers/pwm/pwm-imx-tpm.c Anson Huang (5

[PATCH V12 3/5] ARM: imx_v6_v7_defconfig: Add TPM PWM support by default

2019-05-09 Thread Anson Huang
Select CONFIG_PWM_IMX_TPM by default to support i.MX7ULP TPM PWM. Signed-off-by: Anson Huang --- No change. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index ea387cb

[PATCH V12 2/5] pwm: Add i.MX TPM PWM driver support

2019-05-09 Thread Anson Huang
of channels in TPM modules are different, it can be read from each TPM module's PARAM register. Signed-off-by: Anson Huang Reviewed-by: Uwe Kleine-König --- Changes since V11: - ONLY add function comment to pwm_imx_tpm_round_state(), no code change. --- drivers/pwm/Kconfig | 11

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