[PATCH V12 4/5] ARM: dts: imx7ulp: Add tpm pwm support

2019-05-09 Thread Anson Huang
Add i.MX7ULP EVK board PWM support. Signed-off-by: Anson Huang --- No change. --- 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 d6b7110..8fb9559 100644 --- a/arch/arm/boot/dts

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

2019-05-09 Thread Anson Huang
Hi, Uwe > -Original Message- > From: Uwe Kleine-König [mailto:u.kleine-koe...@pengutronix.de] > Sent: Thursday, May 9, 2019 3:20 PM > To: Anson Huang > Cc: thierry.red...@gmail.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@p

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

2019-05-08 Thread Anson Huang
Ping... > -Original Message- > From: Anson Huang [mailto:anson.hu...@nxp.com] > Sent: Tuesday, April 16, 2019 11:22 AM > To: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > catal

RE: [PATCH V11 0/5] Add i.MX7ULP EVK PWM backlight support

2019-05-08 Thread Anson Huang
Ping... > -Original Message- > From: Anson Huang > Sent: Wednesday, April 24, 2019 10:59 AM > To: thierry.red...@gmail.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; li...@ar

RE: [PATCH] mailbox: imx: use devm_platform_ioremap_resource() to simplify code

2019-05-08 Thread Anson Huang
Ping... > -Original Message- > From: Anson Huang > Sent: Sunday, April 28, 2019 2:27 PM > To: jassisinghb...@gmail.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infr

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

2019-05-08 Thread Anson Huang
Ping... > -Original Message- > From: Anson Huang > Sent: Thursday, April 25, 2019 9:50 AM > To: dmitry.torok...@gmail.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > linux-in...@vger.kernel.org; linux-arm-ker...@lists.in

RE: [PATCH] input: imx6ul_tsc: use devm_platform_ioremap_resource() to simplify code

2019-05-08 Thread Anson Huang
Ping... > -Original Message- > From: Anson Huang > Sent: Sunday, April 28, 2019 2:30 PM > To: Mukesh Ojha ; dmitry.torok...@gmail.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; linux-in...@vger.kernel.org

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

2019-05-07 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 --- arch/arm/boot/dts/imx6sl-evk.dts | 12 arch/arm/boot/dts/imx6sl.dtsi| 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git

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

2019-05-07 Thread Anson Huang
vdd1p2: supplied by SW2 Signed-off-by: Anson Huang --- 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 100644 --- a/arch/arm/boot/dts/imx7d-sdb.dts +++ b/arch/arm

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

2019-05-07 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 --- arch/arm/boot/dts/imx6sx-sdb-reva.dts | 12 arch/arm/boot/dts/imx6sx-sdb.dts | 12 arch/arm/boot/dts

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

2019-05-07 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 --- arch/arm

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

2019-05-07 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 --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 12 arch/arm/boot/dts/imx6qdl.dtsi | 6 +++--- 2 files changed, 15

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

2019-05-06 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 --- arch/arm/boot/dts/imx6ul.dtsi | 1 + arch/arm/boot/dts/imx6ull.dtsi | 1 + 2 files changed, 2 insertions(+) d

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

2019-05-06 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. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

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

2019-05-06 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. --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 15

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

2019-05-06 Thread Anson Huang
pretimeout notifier will be called to handle the event. Signed-off-by: Anson Huang --- Changes since V3: - use devm_add_action_or_reset instead of devm_add_action to make sure action is taken if add action failed; - only enable pretimeout function if everything success

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

2019-05-06 Thread Anson Huang
Hi, Guenter > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: Tuesday, May 7, 2019 2:28 AM > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; w...@linux-watchdog.org; > shawn...@kernel.org; s

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

2019-05-06 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 --- drivers/clk/imx/clk-imx8mm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 1ef8438..733ca20

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

2019-05-06 Thread Anson Huang
Add macro for the GPIO clocks of the i.MX8MM. Signed-off-by: Anson Huang --- include/dt-bindings/clock/imx8mm-clock.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/imx8mm-clock.h b/include/dt-bindings/clock/imx8mm-clock.h index 1b4353e

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

2019-05-06 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 --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts

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

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

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

2019-05-05 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 --- arch/arm/boot/dts/imx6qdl.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot

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

2019-05-05 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 --- drivers/clk/imx/clk.c | 14 ++ drivers/clk/imx/clk.h | 1 + 2 files changed, 15 insertions

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

2019-05-05 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 --- drivers/clk/imx/clk-imx6q.c | 13 + drivers/clk/imx/clk-imx6sl.c | 5 + drivers/clk/imx/clk-imx6sll.c | 3

[PATCH] i2c: imx: Use __maybe_unused instead of #if CONFIG_PM

2019-05-04 Thread Anson Huang
Use __maybe_unused for runtime PM related functions instead of #if CONFIG_PM to simply the code. Signed-off-by: Anson Huang --- drivers/i2c/busses/i2c-imx.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c

[PATCH V3 3/3] watchdog: imx_sc: Add pretimeout support

2019-05-04 Thread Anson Huang
pretimeout notifier will be called to handle the event. Signed-off-by: Anson Huang --- No change. --- drivers/watchdog/Kconfig | 1 + drivers/watchdog/imx_sc_wdt.c | 114 ++ 2 files changed, 95 insertions(+), 20 deletions(-) diff --git a/drivers

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

2019-05-04 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. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

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

2019-05-04 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 --- Changes since V2: - no content change, just merge two dt-binding patches

RE: [PATCH V2] clk: imx: pllv4: add fractional-N pll support

2019-05-03 Thread Anson Huang
ernel.org; mturque...@baylibre.com; > s.ha...@pengutronix.de; shawn...@kernel.org; Aisheng Dong > ; Anson Huang > Cc: dl-linux-imx > Subject: Re: [PATCH V2] clk: imx: pllv4: add fractional-N pll support > > The Content-transfer-encoding header is still base64. I guess it can't be

RE: [PATCH] clk: imx: clk-pllv3: mark expected switch fall-throughs

2019-05-03 Thread Anson Huang
_pllv3_ops; > pll->powerup_set = true; > @@ -451,6 +452,7 @@ struct clk *imx_clk_pllv3(enum imx_pllv3_type type, > const char *name, > case IMX_PLLV3_AV_IMX7: > pll->num_offset = PLL_IMX7_NUM_OFFSET; > pll->denom_offset = PLL_IMX7_DENOM_OFFSET; > + /* fall through */ Reviewed-by: Anson Huang > case IMX_PLLV3_AV: > ops = _pllv3_av_ops; > break; > -- > 2.21.0

RE: [PATCH] clk: imx: pllv3: Fix fall through build warning

2019-05-01 Thread Anson Huang
ngutronix.de; linux-arm- > ker...@lists.infradead.org; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org; mturque...@baylibre.com; > s.ha...@pengutronix.de; shawn...@kernel.org; Anson Huang > ; Gustavo A. R. Silva > Cc: dl-linux-imx > Subject: Re: [PATCH] clk: imx: pllv3:

[PATCH] i2c: imx-lpi2c: Use __maybe_unused instead of #if CONFIG_PM_SLEEP

2019-04-30 Thread 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 --- drivers/i2c/busses/i2c-imx-lpi2c.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c b

[PATCH] clk: imx: pllv3: Fix fall through build warning

2019-04-29 Thread Anson Huang
off-by: Anson Huang --- drivers/clk/imx/clk-pllv3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index e892b9a..fbe4fe0 100644 --- a/drivers/clk/imx/clk-pllv3.c +++ b/drivers/clk/imx/clk-pllv3.c @@ -451,6 +451,7 @@ struct

RE: linux-next: build warning after merge of the clk tree

2019-04-29 Thread Anson Huang
8:20 AM > To: Mike Turquette ; Stephen Boyd > > Cc: Linux Next Mailing List ; Linux Kernel Mailing > List ; Anson Huang ; > Gustavo A. R. Silva ; Kees Cook > > Subject: linux-next: build warning after merge of the clk tree > > Hi all, > > After merging the clk tree

RE: [PATCH] rtc: snvs: Use __maybe_unused instead of #if CONFIG_PM_SLEEP

2019-04-29 Thread Anson Huang
Hi, Trent > -Original Message- > From: Trent Piepho [mailto:tpie...@impinj.com] > Sent: Tuesday, April 30, 2019 1:13 AM > To: linux-...@vger.kernel.org; Anson Huang ; > a.zu...@towertech.it; linux-kernel@vger.kernel.org; > alexandre.bell...@bootlin.com > Cc: dl-lin

[PATCH V2] rtc: snvs: Use __maybe_unused instead of #if CONFIG_PM_SLEEP

2019-04-29 Thread 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 Reviewed-by: Dong Aisheng --- Changes since V1: - use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() to make sure snvs_rtc_pm_ops is empty when PM is off

[PATCH V2] clk: imx: pllv4: add fractional-N pll support

2019-04-29 Thread Anson Huang
-by: Anson Huang Reviewed-by: Dong Aisheng --- drivers/clk/imx/clk-pllv4.c | 72 +++-- 1 file changed, 63 insertions(+), 9 deletions(-) diff --git a/drivers/clk/imx/clk-pllv4.c b/drivers/clk/imx/clk-pllv4.c index d38bc9f..d7e62c3 100644 --- a/drivers/clk/imx

RE: [PATCH] clk: imx: add fractional-N pll support to pllv4

2019-04-29 Thread Anson Huang
Hi, Aisheng > -Original Message- > From: Aisheng Dong > Sent: Monday, April 29, 2019 7:28 PM > To: Anson Huang ; mturque...@baylibre.com; > sb...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; linux-...@vger.kerne

RE: [PATCH] clk: imx: add fractional-N pll support to pllv4

2019-04-29 Thread Anson Huang
Hi, Aisheng > -Original Message- > From: Aisheng Dong > Sent: Monday, April 29, 2019 7:36 PM > To: Anson Huang ; mturque...@baylibre.com; > sb...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; linux-...@vger.kerne

[PATCH] rtc: snvs: Use __maybe_unused instead of #if CONFIG_PM_SLEEP

2019-04-29 Thread 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 --- drivers/rtc/rtc-snvs.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc

[PATCH] clk: imx: add fractional-N pll support to pllv4

2019-04-28 Thread Anson Huang
-by: Anson Huang --- drivers/clk/imx/clk-pllv4.c | 68 +++-- 1 file changed, 60 insertions(+), 8 deletions(-) diff --git a/drivers/clk/imx/clk-pllv4.c b/drivers/clk/imx/clk-pllv4.c index d38bc9f..4ced5ca 100644 --- a/drivers/clk/imx/clk-pllv4.c +++ b/drivers

RE: [PATCH] input: imx6ul_tsc: use devm_platform_ioremap_resource() to simplify code

2019-04-28 Thread Anson Huang
Ping... > -Original Message- > From: Mukesh Ojha [mailto:mo...@codeaurora.org] > Sent: Monday, April 1, 2019 4:02 PM > To: Anson Huang ; dmitry.torok...@gmail.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; linux-in.

RE: [PATCH] irqchip/imx-irqsteer: use devm_platform_ioremap_resource() to simplify code

2019-04-28 Thread Anson Huang
Ping... > -Original Message- > From: Mukesh Ojha [mailto:mo...@codeaurora.org] > Sent: Monday, April 1, 2019 3:47 PM > To: Anson Huang ; t...@linutronix.de; > ja...@lakedaemon.net; marc.zyng...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pen

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

2019-04-28 Thread Anson Huang
Ping... > -Original Message- > From: Mukesh Ojha [mailto:mo...@codeaurora.org] > Sent: Monday, April 1, 2019 4:01 PM > To: Anson Huang ; thierry.red...@gmail.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; linux-...@vger

RE: [PATCH] mailbox: imx: use devm_platform_ioremap_resource() to simplify code

2019-04-28 Thread Anson Huang
Ping... > -Original Message- > From: Anson Huang > Sent: Monday, April 1, 2019 1:15 PM > To: jassisinghb...@gmail.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infr

RE: [PATCH 2/2] watchdog: imx_sc: Add pretimeout support

2019-04-27 Thread Anson Huang
. Anson. > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: Saturday, April 27, 2019 4:17 AM > To: Anson Huang > Cc: shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; w.

[PATCH V2 3/4] watchdog: imx_sc: Add pretimeout support

2019-04-27 Thread Anson Huang
pretimeout notifier will be called to handle the event. Signed-off-by: Anson Huang --- Changes since V1: - improve imx_sc_wdt_set_pretimeout() return value and assignment sequence; - improve coding and logic of imx_sc_wdt_notify() function; - use devm_add_action() instead

[PATCH V2 4/4] dt-bindings: watchdog: remove i.MX system controller watchdog

2019-04-27 Thread Anson Huang
i.MX system controller watchdog now depends on SCU driver, so it needs to be subnode of SCU node in DT, binding doc is moved to fsl,scu.txt as well. Signed-off-by: Anson Huang --- New patch. --- .../bindings/watchdog/fsl-imx-sc-wdt.txt | 24 -- 1 file changed, 24

[PATCH V2 2/4] arm64: dts: imx8qxp: Move watchdog node into scu node

2019-04-27 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 --- New patch. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

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

2019-04-27 Thread Anson Huang
i.MX system controller watchdog has pretimeout function which depends on i.MX SCU driver, so watchdog DT node needs to be subnode of SCU, this patch adds i.MX system controller watchdog binding to SCU binding doc. Signed-off-by: Anson Huang --- New patch. --- .../devicetree/bindings/arm

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

2019-04-27 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 remove the watchdog related words to improve the commit message. --- drivers/firmware/imx/imx-scu-irq.c | 3 +++ 1 file

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

2019-04-27 Thread Anson Huang
or core framework. Then the assigned-clock-parents/rates may NOT be available for i.MX7ULP, is this OK? It is anyway something special on i.MX7ULP HW design, SW needs to follow it. > -Original Message- > From: Anson Huang > Sent: Friday, April 26, 2019 8:50 AM > To: Stephen

[PATCH] clk: imx: correct pfdv2 gate_bit/vld_bit operations

2019-04-26 Thread Anson Huang
status in clock tree, this patch fixes the issue by assigning them as correct bit offset. Fixes: 9fcb6be3b6c9 ("clk: imx: add pfdv2 support") Signed-off-by: Anson Huang --- drivers/clk/imx/clk-pfdv2.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drive

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

2019-04-25 Thread Anson Huang
.org; linux-kernel@vger.kernel.org; > mturque...@baylibre.com; s.ha...@pengutronix.de; shawn...@kernel.org; > Aisheng Dong ; Anson Huang > > Cc: dl-linux-imx > Subject: Re: [PATCH 2/2] clk: imx: disable i.mx7ulp composite clock during > initialization > > Quoting Anson Huang (2019-04-

RE: [PATCH] clk: imx: correct i.MX7D AV PLL num/denom offset

2019-04-25 Thread Anson Huang
g; linux- > ker...@vger.kernel.org; li...@rempel-privat.de; mturque...@baylibre.com; > rui.si...@linaro.org; s.ha...@pengutronix.de; shawn...@kernel.org; > ste...@agner.ch; tiny.win...@gmail.com; Abel Vesa ; > Aisheng Dong ; Anson Huang > ; Jacky Bai > Cc: dl-linux-imx > Subject: Re: [PATCH]

RE: [PATCH 1/2] firmware: imx: SCU irq should ONLY be enabled after SCU IPC is ready

2019-04-25 Thread Anson Huang
Hi, Guenter > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: Thursday, April 25, 2019 10:15 AM > To: Anson Huang ; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > w.

RE: [PATCH 2/2] watchdog: imx_sc: Add pretimeout support

2019-04-24 Thread Anson Huang
Hi, Guenter > -Original Message- > From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter > Roeck > Sent: Thursday, April 25, 2019 12:04 PM > To: Anson Huang ; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > w.

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

2019-04-24 Thread Anson Huang
abled during clock tree initialization, the usdhc0 is working, and this change is necessary for all i.MX7ULP peripheral clocks. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-composite-7ulp.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/clk/imx/clk-composite-7ulp.c b

[PATCH 1/2] clk: imx7ulp: update nic1_bus_clk parent info

2019-04-24 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 --- drivers/clk/imx/clk-imx7ulp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7ulp.c b/drivers/clk/imx/clk

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

2019-04-24 Thread Anson Huang
Gentle ping... > -Original Message- > From: Anson Huang > Sent: Thursday, April 4, 2019 9:40 AM > To: dmitry.torok...@gmail.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > linux-in...@vger.kernel.org; linux-arm-ker...@l

[PATCH 2/2] watchdog: imx_sc: Add pretimeout support

2019-04-24 Thread Anson Huang
pretimeout notifier will be called to handle the event. Signed-off-by: Anson Huang --- drivers/watchdog/Kconfig | 1 + drivers/watchdog/imx_sc_wdt.c | 65 +++ 2 files changed, 61 insertions(+), 5 deletions(-) diff --git a/drivers/watchdog/Kconfig b

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

2019-04-24 Thread Anson Huang
x scu general irq function") Signed-off-by: Anson Huang --- drivers/firmware/imx/imx-scu-irq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/firmware/imx/imx-scu-irq.c b/drivers/firmware/imx/imx-scu-irq.c index 043833a..687121f 100644 --- a/drivers/firmware/imx/imx-scu-i

[PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_THERMAL_STATISTICS

2019-04-23 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 --- 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

RE: [PATCH V11 0/5] Add i.MX7ULP EVK PWM backlight support

2019-04-23 Thread Anson Huang
Gentle ping... > -Original Message- > From: Anson Huang > Sent: Wednesday, April 10, 2019 9:47 AM > To: thierry.red...@gmail.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; li.

[PATCH] clk: imx: correct i.MX7D AV PLL num/denom offset

2019-04-22 Thread Anson Huang
According reference manual, i.MX7D's audio/video PLL's num/denom register offset are 0x20/0x30, they are different from i.MX6's audio/video PLL, correct it by introducing new offset variables for audio/video PLL and using runtime assignment based on PLL type. Signed-off-by: Anson Huang

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

2019-04-22 Thread Anson Huang
Hi, Shawn Best Regards! Anson Huang > -Original Message- > From: Anson Huang > Sent: Monday, April 22, 2019 8:52 AM > To: Shawn Guo > Cc: stefan.wah...@i2se.com; enric.balle...@collabora.com; linux- > ker...@vger.kernel.org; he...@sntech.de; marc.w.gonza..

[PATCH 2/2] arm64: defconfig: Add i.MX8 SoC driver

2019-04-21 Thread Anson Huang
This patch selects CONFIG_IMX8_SOC by default to support i.MX8 SoC 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 2d9c390..c8ab62e 100644 --- a/arch/arm64

[PATCH 1/2] soc: imx: add i.MX8QXP SoC driver support

2019-04-21 Thread Anson Huang
# 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 --- drivers/soc/imx/Kconfig| 4 ++ drivers/soc

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

2019-04-21 Thread Anson Huang
Hi, Shawn Best Regards! Anson Huang > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Sunday, April 21, 2019 3:42 PM > To: Anson Huang > Cc: stefan.wah...@i2se.com; enric.balle...@collabora.com; linux- > ker...@vger.kernel.org; he...@sntec

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

2019-04-17 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > > From: Anson Huang > > Sent: Tuesday, April 16, 2019 11:22 AM > > > > i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller > > inside, the system controller is in charge of controlling power,

RE: [PATCH V12 1/5] dt-bindings: fsl: scu: add thermal binding

2019-04-17 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: Wednesday, April 17, 2019 11:32 AM > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail

RE: [PATCH] i2c: imx: correct the method of getting private data in notifier_call

2019-04-16 Thread Anson Huang
Hi, Aisheng Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: Wednesday, April 17, 2019 11:13 AM > To: Anson Huang ; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > wsa+rene...@sang-engineering

[PATCH] i2c: imx: correct the method of getting private data in notifier_call

2019-04-16 Thread Anson Huang
;8045edf0>] (__clk_recalc_rates+0x60/0xb4) [<8045edf0>] (__clk_recalc_rates) from [<8045ee10>] (__clk_recalc_rates+0x80/0xb4) Code: e92d40f8 e5903298 e59072a0 e1530001 (e5975008) ---[ end trace fc7f5514b97b6cbb ]--- Fixes: 90ad2cbe88c2("i2c: imx: use clk notifier for rat

RE: [EXT] Re: [PATCH] iio: accell: mma8452: free iio trigger pointer when cleanup

2019-04-15 Thread Anson Huang
Hi, Jonathan Best Regards! Anson Huang > -Original Message- > > On Mon, 8 Apr 2019 02:07:24 +0000 > Anson Huang wrote: > > > Hi, Jonathan > > > > Best Regards! > > Anson Huang > > > > > -Original Message- > > > Fro

RE: [EXT] Re: [PATCH RESEND V11 4/4] arm64: dts: imx: add i.MX8QXP thermal support

2019-04-15 Thread Anson Huang
Hi, Daniel Best Regards! Anson Huang > -Original Message- > > > On 10/04/2019 09:43, Anson Huang wrote: > > Add i.MX8QXP CPU thermal zone support. > > > > Signed-off-by: Anson Huang > > --- > > Changes since V10: > > - remove prope

RE: [EXT] Re: [PATCH RESEND V11 2/4] thermal: imx_sc: add i.MX system controller thermal support

2019-04-15 Thread Anson Huang
Hi, Daniel Best Regards! Anson Huang > -Original Message- > > On 10/04/2019 09:43, Anson Huang wrote: > > i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller > > inside, the system controller is in charge of controlling power, clock > &

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

2019-04-15 Thread Anson Huang
Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V11: - add cooling device for all secondary CPUs. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 37 ++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts

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

2019-04-15 Thread Anson Huang
the feature of getting sensor ID from DT thermal zone's node. Signed-off-by: Anson Huang --- New patch. --- drivers/thermal/of-thermal.c | 53 ++-- include/linux/thermal.h | 10 + 2 files changed, 51 insertions(+), 12 deletions(-) diff --git

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

2019-04-15 Thread Anson Huang
, this patch adds binding doc for i.MX system controller thermal driver. Signed-off-by: Anson Huang --- No changes. --- .../devicetree/bindings/arm/freescale/fsl,scu.txt| 16 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl

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

2019-04-15 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 V11: - move the API of getting thermal zone sensor ID to of-thermal.c as generic API

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

2019-04-15 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 17daa97..fbe3be7 100644 --- a/arch/arm64/configs

RE: [EXT] Re: [PATCH V7 2/4] firmware: imx: enable imx scu general irq function

2019-04-11 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: 2019年4月12日 10:26 > To: Anson Huang ; Shawn Guo > ; alexandre.bell...@bootlin.com > Cc: robh...@kernel.org; mark.rutl...@arm.com; s.ha...@pengutronix.de; > ker...@pengutronix.de; fes

RE: [EXT] Re: [PATCH V7 2/4] firmware: imx: enable imx scu general irq function

2019-04-11 Thread Anson Huang
Hello, Alexandre As i.MX SCU general irq function is picked up by Shawn, could you please also pick up below i.MX SC RTC alarm support patch ? https://patchwork.kernel.org/patch/10890525/ Best Regards! Anson Huang > -Original Message- > From: Shawn Guo [mailto

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

2019-04-11 Thread Anson Huang
/revision 1.1 i.mx8qxp-mek# cat /sys/devices/soc0/soc_uid 7B64280B57AC1898 Signed-off-by: Anson Huang --- drivers/soc/imx/Kconfig | 7 ++ drivers/soc/imx/Makefile | 1 + drivers/soc/imx/soc-imx-sc.c | 220 +++ 3 files changed, 228 insertions

[PATCH 2/2] defconfig: arm64: add i.MX system controller SoC support

2019-04-11 Thread Anson Huang
This patch enables CONFIG_IMX_SC_SOC as module. 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 d4c404a..b61cc53 100644 --- a/arch/arm64/configs/defconfig +++ b/arch

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

2019-04-10 Thread Anson Huang
-off-by: Anson Huang --- drivers/rtc/rtc-mxc_v2.c | 29 - 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/drivers/rtc/rtc-mxc_v2.c b/drivers/rtc/rtc-mxc_v2.c index 007879a..5b970a8 100644 --- a/drivers/rtc/rtc-mxc_v2.c +++ b/drivers/rtc/rtc-mxc_v2.c

[PATCH] rtc: mxc: use dev_pm_set_wake_irq() to simplify code

2019-04-10 Thread Anson Huang
-by: Anson Huang --- drivers/rtc/rtc-mxc.c | 32 ++-- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/drivers/rtc/rtc-mxc.c b/drivers/rtc/rtc-mxc.c index 28a15bd..708b9e9 100644 --- a/drivers/rtc/rtc-mxc.c +++ b/drivers/rtc/rtc-mxc.c @@ -8,6 +8,7

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

2019-04-10 Thread Anson Huang
Hi, Shawn Can you pick up this patch series if no additional comments? We need this feature to support many modules IRQ function including suspend/resume, thanks. Best Regards! Anson Huang > -Original Message- > From: Anson Huang > Sent: 2019年4月9日 13:00 &

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

2019-04-10 Thread Anson Huang
Hi, Rui/ Eduardo I just resent the V11 patch series as I found previous patch series has conflict on the dt-binding patch, can NOT be applied directly, sorry for the inconvenience. Best Regards! Anson Huang > -Original Message- > From: Anson Huang > Sent: 2019年4月

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

2019-04-10 Thread Anson Huang
Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V10: - remove property "imx,sensor-resource-id" and put HW resource ID inside each thermal-sensors' phandle argument. --- arch/arm64/boot/dts/freescale/imx8qxp

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

2019-04-10 Thread Anson Huang
, this patch adds binding doc for i.MX system controller thermal driver. Signed-off-by: Anson Huang --- Changes since V10: - remove property "imx,sensor-resource-id". --- .../devicetree/bindings/arm/freescale/fsl,scu.txt| 16 1 file changed, 16 insertion

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

2019-04-10 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 V10: - remove "imx,sensor-resource-id" property, put the HW resource ID insi

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

2019-04-10 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 9e313f5..d4c404a 100644 --- a/arch/arm64/configs

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

2019-04-10 Thread Anson Huang
for your time. Best Regards! Anson Huang > -Original Message- > From: Zhang Rui [mailto:rui.zh...@intel.com] > Sent: 2019年4月9日 15:29 > To: Anson Huang ; Rob Herring ; > edubez...@gmail.com > Cc: mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@

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

2019-04-10 Thread Anson Huang
Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V10: - remove property "imx,sensor-resource-id" and put HW resource ID inside each thermal-sensors' phandle argument. --- arch/arm64/boot/dts/freescale/imx8qxp

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

2019-04-10 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 V10: - remove "imx,sensor-resource-id" property, put the HW resource ID insi

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

2019-04-10 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 9e313f5..d4c404a 100644 --- a/arch/arm64/configs

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

2019-04-10 Thread Anson Huang
, this patch adds binding doc for i.MX system controller thermal driver. Signed-off-by: Anson Huang --- Changes since V10: - remove property "imx,sensor-resource-id". -- .../devicetree/bindings/arm/freescale/fsl,scu.txt| 16 1 file changed, 16 insertion

RE: [EXT] Re: [PATCH V11 5/5] ARM: dts: imx7ulp-evk: Add backlight support

2019-04-09 Thread Anson Huang
Hi, Fabio Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年4月10日 10:03 > To: Anson Huang > Cc: thierry.red...@gmail.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@p

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

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

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