[PATCH 1/3] ARM: imx: enable anatop suspend/resume

2013-03-19 Thread Anson Huang
anatop module have sereval configurations for user to reduce the power consumption in suspend, provide suspend/resume interface for further use and enable fet_odrive to reduce CORE LDO leakage during suspend. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/mach-imx/Kconfig

[PATCH 2/3] ARM: imx: enable periphery well bias for suspend

2013-03-19 Thread Anson Huang
enable periphery charge pump for well biasing at suspend to reduce periphery leakage. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/mach-imx/clk-imx6q.c | 22 +- arch/arm/mach-imx/common.h|4 ++-- arch/arm/mach-imx/pm-imx6q.c |4 +++- 3 files

[PATCH 3/3] ARM: imx: enable RBC to support anatop LPM mode

2013-03-19 Thread Anson Huang
the RBC setting is changed. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/mach-imx/anatop.c| 19 +++ arch/arm/mach-imx/clk-imx6q.c | 35 +++ arch/arm/mach-imx/common.h|3 +++ arch/arm/mach-imx/gpc.c | 21

Re: [PATCH 1/3] ARM: imx: enable anatop suspend/resume

2013-03-20 Thread Anson Huang
On Wed, Mar 20, 2013 at 03:29:33PM +0800, Shawn Guo wrote: On Wed, Mar 20, 2013 at 01:39:38PM -0400, Anson Huang wrote: anatop module have sereval configurations for user to reduce the power consumption in suspend, provide suspend/resume interface for further use and enable fet_odrive

Re: [PATCH 2/3] ARM: imx: enable periphery well bias for suspend

2013-03-20 Thread Anson Huang
:39PM -0400, Anson Huang wrote: enable periphery charge pump for well biasing at suspend to reduce periphery leakage. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/mach-imx/clk-imx6q.c | 22 +- arch/arm/mach-imx/common.h|4 ++-- arch/arm

Re: [PATCH 3/3] ARM: imx: enable RBC to support anatop LPM mode

2013-03-20 Thread Anson Huang
On Wed, Mar 20, 2013 at 05:01:19PM +0800, Shawn Guo wrote: On Wed, Mar 20, 2013 at 01:39:40PM -0400, Anson Huang wrote: RBC is to control whether some ANATOP sub modules can enter lpm mode when SOC is into STOP mode, if RBC is enabled and PMIC_VSTBY_REQ is set, ANATOP will have below

[PATCH 2/2] regulators: anatop: add set_voltage_time_sel interface

2013-01-30 Thread Anson Huang
bit [28-29]: vddsoc field definition: 0'b00: 64 cycles of 24M clock; 0'b01: 128 cycles of 24M clock; 0'b02: 256 cycles of 24M clock; 0'b03: 512 cycles of 24M clock; Signed-off-by: Anson Huang b20...@freescale.com --- drivers/regulator/anatop-regulator.c | 42

[PATCH] regulators: anatop: add set_voltage_time_sel interface

2013-01-30 Thread Anson Huang
bit [28-29]: vddsoc field definition: 0'b00: 64 cycles of 24M clock; 0'b01: 128 cycles of 24M clock; 0'b02: 256 cycles of 24M clock; 0'b03: 512 cycles of 24M clock; Signed-off-by: Anson Huang b20...@freescale.com --- .../bindings/regulator/anatop-regulator.txt|6 +++ drivers

[PATCH V2] regulators: anatop: add set_voltage_time_sel interface

2013-01-30 Thread Anson Huang
[28-29]: vddsoc field definition: 0'b00: 64 cycles of 24M clock; 0'b01: 128 cycles of 24M clock; 0'b02: 256 cycles of 24M clock; 0'b03: 512 cycles of 24M clock; Signed-off-by: Anson Huang b20...@freescale.com --- .../bindings/regulator/anatop-regulator.txt|8 drivers/regulator

[PATCH V3] regulators: anatop: add set_voltage_time_sel interface

2013-01-30 Thread Anson Huang
[28-29]: vddsoc field definition: 0'b00: 64 cycles of 24M clock; 0'b01: 128 cycles of 24M clock; 0'b02: 256 cycles of 24M clock; 0'b03: 512 cycles of 24M clock; Signed-off-by: Anson Huang b20...@freescale.com --- .../bindings/regulator/anatop-regulator.txt|8 drivers/regulator

Re: [PATCH 2/2] regulators: anatop: add set_voltage_time_sel interface

2013-01-30 Thread Anson Huang
On Wed, Jan 30, 2013 at 02:30:47PM -0700, Troy Kisky wrote: On 1/30/2013 3:37 PM, Anson Huang wrote: some of anatop's regulators(vppcpu, vddpu and vddsoc) have register settings about LDO's step time, which will impact the LDO ramp up speed, need to use set_voltage_time_sel interface to add

[PATCH 2/4] regulator: anatop: add is_enabled interface

2013-12-16 Thread Anson Huang
Add is_enabled interface for anatop regulator in case some drivers need to know regulator's status. Signed-off-by: Anson Huang b20...@freescale.com --- drivers/regulator/anatop-regulator.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/regulator/anatop-regulator.c

[PATCH] regulator: anatop: add is_enabled interface

2013-12-16 Thread Anson Huang
Add is_enabled interface for anatop regulator in case some drivers need to know regulator's status. Signed-off-by: Anson Huang b20...@freescale.com --- drivers/regulator/anatop-regulator.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/regulator/anatop-regulator.c

[PATCH] thermal: imx: correct suspend/resume flow

2013-12-23 Thread Anson Huang
resume, it fixes the failure of suspend/resume caused by thermal driver. Signed-off-by: Anson Huang b20...@freescale.com --- drivers/thermal/imx_thermal.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/drivers/thermal/imx_thermal.c b/drivers

[PATCH V2] thermal: imx: correct suspend/resume flow

2013-12-23 Thread Anson Huang
as alarm function is enabled, but the suspend callback of imx thermal returns success only if thermal sensor is powered down, so it will always returns fail hence break system's suspend, this patch disables imx thermal sensor before suspend and re-enable it after resume. Signed-off-by: Anson Huang b20

[PATCH] ARM: imx: improve the comment of CCM lpm SW workaround

2013-12-23 Thread Anson Huang
manually by setting IOMUX_GPR1_GINT bit, 2) SW should then Unmask it in GPC before setting CCM LPM 3) SW should Mask it right after CCM LPM is set (set bit0-1 of CCM_CLPCR) Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/mach-imx/pm-imx6q.c | 13 + 1 file changed, 9

[PATCH] ARM: imx: add necessary interface for pfd

2013-12-23 Thread Anson Huang
to disable those unused ones for saving power. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/mach-imx/clk-pfd.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-imx/clk-pfd.c b/arch/arm/mach-imx/clk-pfd.c index e2ed416..0b0f6f6 100644 --- a/arch/arm/mach

[PATCH] ARM: imx: improve status check of clock gate

2013-12-23 Thread Anson Huang
: Not applicable; 2b'11: clock is on during all modes, except stop mode. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/mach-imx/clk-gate2.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/clk-gate2.c b/arch/arm/mach-imx/clk-gate2.c index a63e415

[PATCH V2] ARM: imx: improve the comment of CCM lpm SW workaround

2013-12-24 Thread Anson Huang
(IOMUX) to be always pending by setting IOMUX_GPR1_GINT. 2) Software should then unmask IRQ #32 in GPC before setting CCM Low-Power mode. 3) Software should mask IRQ #32 right after CCM Low-Power mode is set (set bits 0-1 of CCM_CLPCR). Signed-off-by: Anson Huang b20...@freescale.com --- arch

[PATCH] Thermal: imx: add i.mx6sx thermal support

2014-08-05 Thread Anson Huang
we need to correct it before enabling thermal irq; Enable PANIC ALARM as critical trip point, it will trigger system reset via SRC module once PANIC IRQ is triggered, it is pure hardware function, so use it instead of software reset by cooling device. Signed-off-by: Anson Huang b20

Re: [PATCH] Thermal: imx: add i.mx6sx thermal support

2014-08-05 Thread Anson Huang
On Tue, Aug 05, 2014 at 09:25:53AM -0400, Eduardo Valentin wrote: Hello Anson, On Tue, Aug 05, 2014 at 05:12:43PM +0800, Anson Huang wrote: i.MX6SX has some new features of thermal interrupt function, there are LOW, HIGH and PANIC irq for thermal sensor, so add platform data to separate

[PATCH V2] Thermal: imx: add i.mx6sx thermal support

2014-08-05 Thread Anson Huang
we need to correct it before enabling thermal irq; Enable PANIC ALARM as critical trip point, it will trigger system reset via SRC module once PANIC IRQ is triggered, it is pure hardware function, so use it instead of software reset by cooling device. Signed-off-by: Anson Huang b20

[PATCH V3] Thermal: imx: add i.mx6sx thermal support

2014-08-06 Thread Anson Huang
we need to correct it before enabling thermal irq; Enable PANIC ALARM as critical trip point, it will trigger system reset via SRC module once PANIC IRQ is triggered, it is pure hardware function, so use it instead of software reset by cooling device. Signed-off-by: Anson Huang b20

[PATCH V2] Thermal: imx: add clk disable/enable for suspend/resume

2015-01-05 Thread Anson Huang
-by: Anson Huang b20...@freescale.com --- drivers/thermal/imx_thermal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index 461bf3d..dc8bcd8 100644 --- a/drivers/thermal/imx_thermal.c +++ b/drivers/thermal/imx_thermal.c @@ -600,6

[PATCH] Thermal: imx: add clk disable/enable for suspend/resume

2015-01-04 Thread Anson Huang
-by: Anson Huang b20...@freescale.com --- drivers/thermal/imx_thermal.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index 461bf3d..03894da 100644 --- a/drivers/thermal/imx_thermal.c +++ b/drivers/thermal/imx_thermal.c @@ -600,6

[PATCH] irqchip/gic: restore global interrupts group settings in distributor

2015-08-05 Thread Anson Huang
for distributor. Signed-off-by: Anson Huang b20...@freescale.com --- drivers/irqchip/irq-gic.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index a530d9a..c8fa6ee 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip

Re: [PATCH] irqchip/gic: restore global interrupts group settings in distributor

2015-08-05 Thread Anson Huang
On Wed, Aug 05, 2015 at 10:12:35AM +0100, Marc Zyngier wrote: Hi Anson, On 05/08/15 17:39, Anson Huang wrote: In GIC's distributor initializtion, all global interrupts are set to group 1, however, after suspend/resume with ARM/GIC power off/on, distributor does NOT restore these global

[PATCH] ARM: imx: add cpuidle support for i.mx6ul

2016-08-24 Thread Anson Huang
if to flush L2 when entering idle with ARM power off, this is different from i.MX6SX which has PL310 external L2 cache. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/mach-imx/cpuidle-imx6sx.c | 10 ++ arch/arm/mach-imx/mach-imx6ul.c| 3 +++ 2 files changed, 13 inse

[PATCH] ARM: imx: build cpuidle-imx6sx.c for imx6ul

2016-09-06 Thread Anson Huang
Fix build error when CONFIG_SOC_IMX6SX is disabled, as i.MX6UL reuses i.MX6SX's cpuidle driver. arch/arm/mach-imx/built-in.o: In function `imx6ul_init_late': platform-spi_imx.c:(.init.text+0x445c): undefined reference to `imx6sx_cpuidle_init' make: *** [vmlinux] Error 1 Signed-off-by: Anson

RE: [PATCH] ARM: imx: build cpuidle-imx6sx.c for imx6ul

2016-09-06 Thread Anson Huang
Sorry, please ignore this patch, Arnd Bergmann <a...@arndb.de> has summited a patch to fix this issue. Best Regards! Anson Huang > -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel-boun...@lists.infradead.org] > On Behalf Of Anson Huang > Sent:

[PATCH] ARM: imx: use soc type instead of cpu type for i.MX

2016-08-26 Thread Anson Huang
i.MX is a SoC rather than a CPU, so for those names of cpu_is_xxx and cpu_type etc., better to use soc_is_xxx and soc_type etc. instead, this patch improves these names. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/mach-imx/anatop.c | 6 ++--- arch/arm/mach-imx/co

[PATCH V2] ARM: imx: add cpuidle support for i.mx6ul

2016-08-29 Thread Anson Huang
is necessary, flush_cache_all() in last step of cpu_suspend has very small overhead, just call it to avoid cache type check for different platforms. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V1: remove L2 cache contional code, just call flush_cache_all i

[PATCH V2 1/2] ARM: imx: rename imx6q_set_int_mem_clk_lpm() function

2016-08-29 Thread Anson Huang
Let's rename the function imx6q_set_int_mem_clk_lpm() to imx6_set_int_mem_clk_lpm() since it's actually common for all i.MX6 SoCs. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V1: This is a new add patch to improve function name. arch/arm/mach-imx/co

[PATCH V2 2/2] ARM: imx: enable WAIT mode hardware workaround for imx6sx

2016-08-29 Thread Anson Huang
Need to enable INT_MEM_CLK_LPM bit in CCM_CGPR for WAIT mode, without this bit set, if there is pending interrupt during ARM platform entering WAIT mode without power gating, cache data will be corrupted, this is a hardware workaround for WAIT mode and must be enabled. Signed-off-by: Anson Huang

[PATCH V2] ARM: dts: imx6ul iomuxc syscon is compatible to imx6q

2016-08-29 Thread Anson Huang
The imx6ul iomuxc syscon is compatible to imx6q, so let's add compatible string 'fsl,imx6q-iomuxc-gpr' for imx6ul iomuxc syscon node. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V1: improve commit message. arch/arm/boot/dts/imx6ul.dtsi | 3 ++- 1 file chan

[PATCH] ARM: dts: imx6ul: set GINT to enable IOMUXC irq

2016-08-23 Thread Anson Huang
Add "fsl,imx6q-iomuxc-gpr" for IOMUXC-GPR to enable IOMUXC irq which is required for ERR007265 software workaround. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx6ul.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/a

[PATCH 2/3] ARM: imx: add gpcv2 support

2016-08-26 Thread Anson Huang
i.MX7's GPC(general power controller) module is different from i.MX6, name it as GPCV2 and add its driver for SMP support, as secondary CPUs boot up will need GPC to enable power. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/mach-imx/Kconfig | 4 +++ arch/arm/mach-imx/Ma

[PATCH 0/3] Add SMP support for i.MX7D

2016-08-25 Thread Anson Huang
i.MX7D has 2 Cortex-A7 ARM cores, and it has a different GPC design than i.MX6, so this patch set adds a new GPCV2 driver for i.MX7D, and also adds runtime check in SMP code to support both Cortex-A9 and Cortex-A7 ARM cores. With this patch set, i.MX7D can boot up SMP kernel with 2 CPUs. Anson

[PATCH 3/3] ARM: imx: add SMP support for i.MX7D

2016-08-25 Thread Anson Huang
-a7. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/mach-imx/headsmp.S| 11 +++ arch/arm/mach-imx/mach-imx7d.c | 2 ++ arch/arm/mach-imx/platsmp.c| 19 ++- arch/arm/mach-imx/src.c| 38 ++ 4 files chang

[PATCH 1/3] ARM: dts: imx7: support SMP boot up

2016-08-25 Thread Anson Huang
arch timer. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx7s.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index bb7102c..e920436 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boo

RE: [PATCH] cpufreq: imx6q: Fix imx6sx low frequency support

2017-07-19 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Lucas Stach [mailto:l.st...@pengutronix.de] > Sent: 2017-07-19 6:28 PM > To: Leonard Crestez <leonard.cres...@nxp.com> > Cc: Viresh Kumar <viresh.ku...@linaro.org>; Rafael J. Wysocki > <r...

RE: [PATCH] ARM: imx6ull: Make suspend/resume work like on 6ul

2017-06-06 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: 2017-06-07 11:21 AM > To: Anson Huang <anson.hu...@nxp.com> > Cc: Leonard Crestez <leonard.cres...@nxp.com>; Peter Chen > <peter.c...@nxp.com>;

[PATCH V6 5/7] ARM: dts: imx6sx-sabreauto: add wdog external reset

2018-05-05 Thread Anson Huang
i.MX6SX Sabre Auto board has GPIO1_IO13 pin can be MUXed as WDOG output to reset PMIC, add this function support. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/

[PATCH V6 3/7] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support

2018-05-05 Thread Anson Huang
i.MX6SX Sabre Auto board has two max7310 IO expander on I2C3 bus, add support for them. Signed-off-by: Dong Aisheng <aisheng.d...@nxp.com> Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V5: improve pinctrl node name. arch/arm/boot/dts/imx6sx-sabrea

[PATCH V6 6/7] ARM: dts: imx6sx-sabreauto: add debug LED support

2018-05-05 Thread Anson Huang
There is a debug LED(D11) connected to GPIO1_IO24, add support for it. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/bo

[PATCH V6 4/7] ARM: dts: imx6sx-sabreauto: add fec support

2018-05-05 Thread Anson Huang
Add FEC support on i.MX6SX Sabre Auto board. Signed-off-by: Fugang Duan <fugang.d...@nxp.com> Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V5: use "gpios" instead of "enable-gpio". arch/arm/boot/dts/imx6sx-sabreauto.dts | 80 +

[PATCH V6 1/7] ARM: dts: imx6sx-sabreauto: add PMIC support

2018-05-05 Thread Anson Huang
Add pfuze100 support on i.MX6SX Sabre Auto board. Signed-off-by: Robin Gong <yibin.g...@nxp.com> Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V5: improve node name and unit-address format. arch/arm/boot/dts/imx6sx-sabreau

[PATCH V6 2/7] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support

2018-05-05 Thread Anson Huang
Add MAX7322 IO expander support. Signed-off-by: Fugang Duan <fugang.d...@nxp.com> Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/

[PATCH V6 7/7] ARM: dts: imx6sx-sabreauto: add egalax touch screen support

2018-05-05 Thread Anson Huang
Add egalax touch screen support on i2c2 bus. Signed-off-by: Haibo Chen <haibo.c...@freescale.com> Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V5: improve pinctrl node name and touchscreen node name. arch/arm/boot/dts/imx6sx-sabreauto.dts | 16 +++

[PATCH 3/3] ARM: dts: imx: add cooling-cells for cpufreq cooling device

2018-05-14 Thread Anson Huang
Add #cooling-cells for i.MX6/7 SoCs for cpufreq cooling device usage. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx6dl.dtsi | 1 + arch/arm/boot/dts/imx6q.dtsi | 1 + arch/arm/boot/dts/imx6sl.dtsi | 1 + arch/arm/boot/dts/imx6sx.dtsi | 1 + arch/arm/bo

[PATCH 1/3] thermal: imx: remove cpufreq cooling registration

2018-05-14 Thread Anson Huang
This patch removes cpufreq cooling registration in thermal .probe function, cpufreq cooling should be done in cpufreq driver when it is ready. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/thermal/imx_thermal.c | 16 1 file changed, 16 deletions(-) diff

RE: [PATCH 1/3] thermal: imx: remove cpufreq cooling registration

2018-05-14 Thread Anson Huang
Anson Huang Best Regards! > -Original Message- > From: Bastian Stender [mailto:b...@pengutronix.de] > Sent: Monday, May 14, 2018 4:37 PM > To: Anson Huang <anson.hu...@nxp.com>; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; Fabio Estevam >

[PATCH 2/3] cpufreq: imx6q: add cpufreq cooling device based on device tree

2018-05-14 Thread Anson Huang
Register the imx6q cpufreq driver as a cooling device based on the thermal device tree framework. When temperature exceeds the passive trip point, cpufreq driver will be used to throttle CPUs. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/cpufreq/imx6q-cpufreq.c | 9 ++

[PATCH] cpufreq: add imx8mq-cpufreq driver

2018-05-14 Thread Anson Huang
Add imx8mq-cpufreq driver for NXP i.MX8MQ SoC to support the hardware specific frequency and voltage scaling requirements. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/cpufreq/Kconfig.arm | 8 ++ drivers/cpufreq/Makefile | 1 + drivers/cpufreq/imx8mq-cpu

[PATCH] ARM: dts: imx6sx-sabreauto: add debug LED support

2018-04-27 Thread Anson Huang
There is a debug LED(D11) connected to GPIO1_IO24, add support for it. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- this patch is based on patch series (ARM: dts: imx6sx-sabreauto: add wdog external reset support). arch/arm/boot/dts/imx6sx-sabreauto.dts | 18 ++

[PATCH] ARM: dts: imx6sx-sabreauto: add egalax touch screen support

2018-04-27 Thread Anson Huang
From: Haibo Chen <haibo.c...@nxp.com> Add egalax touch screen support on i2c2 bus. Signed-off-by: Haibo Chen <haibo.c...@freescale.com> Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- this patch is based on patch (ARM: dts: imx6sx-sabreauto: add debug LED support) I s

RE: [PATCH V6 4/7] ARM: dts: imx6sx-sabreauto: add fec support

2018-05-06 Thread Anson Huang
Hi, Fabio Anson Huang Best Regards! > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Saturday, May 5, 2018 8:11 PM > To: Anson Huang <anson.hu...@nxp.com> > Cc: Shawn Guo <shawn...@kernel.org>; Sascha Hauer > <ker.

RE: [PATCH V6 7/7] ARM: dts: imx6sx-sabreauto: add egalax touch screen support

2018-05-06 Thread Anson Huang
Hi, Fabio Anson Huang Best Regards! > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Saturday, May 5, 2018 11:18 PM > To: Anson Huang <anson.hu...@nxp.com> > Cc: Shawn Guo <shawn...@kernel.org>; Sascha Hauer > <ker.

RE: [PATCH V6 7/7] ARM: dts: imx6sx-sabreauto: add egalax touch screen support

2018-05-06 Thread Anson Huang
Hi, Fabio Anson Huang Best Regards! > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Saturday, May 5, 2018 7:56 PM > To: Anson Huang <anson.hu...@nxp.com> > Cc: Shawn Guo <shawn...@kernel.org>; Sascha Hauer > <ker.

[PATCH V7 5/7] ARM: dts: imx6sx-sabreauto: add wdog external reset

2018-05-06 Thread Anson Huang
i.MX6SX Sabre Auto board has GPIO1_IO13 pin can be MUXed as WDOG output to reset PMIC, add this function support. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- no change. arch/arm/boot/dts/imx6sx-sabreauto.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/ar

[PATCH V7 1/7] ARM: dts: imx6sx-sabreauto: add PMIC support

2018-05-06 Thread Anson Huang
Add pfuze100 support on i.MX6SX Sabre Auto board. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V6: remove unnecessary sign-off. arch/arm/boot/dts/imx6sx-sabreauto.dts | 116 + 1 file changed, 116 insertions(+) diff --git a/ar

[PATCH V7 7/7] ARM: dts: imx6sx-sabreauto: add egalax touch screen support

2018-05-06 Thread Anson Huang
Add egalax touch screen support on i2c2 bus. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V6: remove unnecessary sign-off, improve node name and add PAD setting value. arch/arm/boot/dts/imx6sx-sabreauto.dts | 16 1 file changed, 16 inse

[PATCH V7 3/7] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support

2018-05-06 Thread Anson Huang
i.MX6SX Sabre Auto board has two max7310 IO expander on I2C3 bus, add support for them. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V6: remove unnecessary sign-off. arch/arm/boot/dts/imx6sx-sabreauto.dts | 28 1 file chang

[PATCH V7 6/7] ARM: dts: imx6sx-sabreauto: add debug LED support

2018-05-06 Thread Anson Huang
There is a debug LED(D11) connected to GPIO1_IO24, add support for it. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- no change. arch/arm/boot/dts/imx6sx-sabreauto.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/ar

[PATCH V7 4/7] ARM: dts: imx6sx-sabreauto: add fec support

2018-05-06 Thread Anson Huang
Add FEC support on i.MX6SX Sabre Auto board. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V6: remove unnecessary sign-off and remove unused regulator for adjusting fec IO voltage. arch/arm/boot/dts/imx6sx-sabreauto.dts | 69 +++

[PATCH V7 2/7] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support

2018-05-06 Thread Anson Huang
Add MAX7322 IO expander support. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V6: remove unnecessary sign-off. arch/arm/boot/dts/imx6sx-sabreauto.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/ar

[PATCH 2/2] ARM: dts: imx7: correct enet clock settings

2018-05-17 Thread Anson Huang
This patch corrects ENET "ipg" and "enet_out" clock settings according to clock driver's changes. Based on Andy Duan's patch from the NXP kernel tree. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx7d.dtsi | 4 ++-- arch/arm/boot/dts/im

[PATCH 1/2] clk: imx7d: correct enet clock CCGR register offset

2018-05-17 Thread Anson Huang
the NXP kernel tree. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/clk/imx/clk-imx7d.c | 11 ++- include/dt-bindings/clock/imx7d-clock.h | 4 +++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/i

[PATCH 2/2] regulator: pfuze100: add .is_enable() for pfuze100_swb_regulator_ops

2018-05-17 Thread Anson Huang
If is_enabled() is not defined, regulator core will assume this regulator is already enabled, then it can NOT be really enabled after disabled. Based on Li Jun's patch from the NXP kernel tree. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/regulator/pfuze100-regulator.c |

[PATCH 1/2] regulator: pfuze100: add enable/disable for switch

2018-05-17 Thread Anson Huang
Add enable/disable support for switch regulator on pfuze100. Based on Robin Gong's patch from the NXP kernel tree. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/regulator/pfuze100-regulator.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/regulator/pf

[PATCH] ARM: dts: imx7d: correct cpu supply name for voltage scaling

2018-05-15 Thread Anson Huang
Correct CPU supply name to meet cpufreq-dt driver's requirement for voltage scaling. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 4 ++-- arch/arm/boot/dts/imx7d-nitrogen7.dts | 2 +- arch/arm/boot/dts/imx7d-sdb.dts | 2 +- 3

[PATCH] ARM: dts: imx7s-warp: remove unnecessary cpu regulator supply

2018-05-15 Thread Anson Huang
i.MX7S does NOT support CPU frequency scaling, so no need to specify the CPU regulator supply. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx7s-warp.dts | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts

[PATCH] gpio: mxc: add clock operation

2018-05-21 Thread Anson Huang
i.MX6SLL has GPIO clock gates in CCM CCGR, need to enable them before accessing registers, add optional clock operation for GPIO driver. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/gpio/gpio-mxc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/driver

[PATCH V2] gpio: mxc: add clock operation

2018-05-21 Thread Anson Huang
Some i.MX SoCs have GPIO clock gates in CCM CCGR, such as i.MX6SLL, need to enable clocks before accessing GPIO registers, add optional clock operation for GPIO driver. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V1: add missing clk header; remo

RE: [PATCH V2] gpio: mxc: add clock operation

2018-05-21 Thread Anson Huang
Hi, Fabio Anson Huang Best Regards! > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Tuesday, May 22, 2018 10:28 AM > To: Anson Huang <anson.hu...@nxp.com> > Cc: Linus Walleij <linus.wall...@linaro.org>; dl-linux-imx >

RE: [PATCH V2] gpio: mxc: add clock operation

2018-05-21 Thread Anson Huang
Anson Huang Best Regards! > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Tuesday, May 22, 2018 10:34 AM > To: Anson Huang <anson.hu...@nxp.com> > Cc: Linus Walleij <linus.wall...@linaro.org>; dl-linux-imx >

[PATCH V3] gpio: mxc: add clock operation

2018-05-21 Thread Anson Huang
Some i.MX SoCs have GPIO clock gates in CCM CCGR, such as i.MX6SLL, need to enable clocks before accessing GPIO registers, add optional clock operation for GPIO driver. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- changes since V2: remove the copyright change, since the

[PATCH 2/2] ARM: dts: imx6ul: add GPIO clocks

2018-05-21 Thread Anson Huang
i.MX6UL has GPIO clock gates in CCM CCGR, add clock property for GPIO driver to make sure all GPIO banks work as expected. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx6ul.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul.

[PATCH 1/2] clk: imx6ul: add GPIO clock gates

2018-05-21 Thread Anson Huang
i.MX6UL has GPIO clock gates in CCM CCGR, add them into clock tree for clock management. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/clk/imx/clk-imx6ul.c | 5 + include/dt-bindings/clock/imx6ul-clock.h | 31 ++- 2 files chang

RE: [PATCH] irqchip: gpcv2: remove unnecessary functions

2018-05-23 Thread Anson Huang
Hi, Marc Anson Huang Best Regards! > -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Wednesday, May 23, 2018 3:23 PM > To: Anson Huang <anson.hu...@nxp.com> > Cc: t...@linutronix.de; ja...@lakedaemon.net; dl-linux-imx > <linux

[PATCH] irqchip: gpcv2: remove unnecessary functions

2018-05-23 Thread Anson Huang
GPC is in always-on domain, it never lost its content during suspend/resume, so no need to do save/restore for it during suspend/resume. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/irqchip/irq-imx-gpcv2.c | 41 - 1 file chang

RE: [PATCH] gpio: mxc: add clock operation

2018-05-24 Thread Anson Huang
Hi, Linus Anson Huang Best Regards! > -Original Message- > From: Linus Walleij [mailto:linus.wall...@linaro.org] > Sent: Thursday, May 24, 2018 4:13 PM > To: Anson Huang <anson.hu...@nxp.com> > Cc: dl-linux-imx <linux-...@nxp.com>; open list:GPIO SUBSYSTEM &g

[PATCH V2] ARM: dts: imx7d: correct cpu supply name for voltage scaling

2018-05-15 Thread Anson Huang
Correct CPU supply name to meet cpufreq-dt driver's requirement for voltage scaling. Signed-off-by: Anson Huang <anson.hu...@nxp.com> Reviewed-by: Fabio Estevam <fabio.este...@nxp.com> --- changes since V1: fix the "No newline at end of file" caused by vim editor. a

[PATCH] clk: imx6sl: correct ocram_podf clock type

2018-05-16 Thread Anson Huang
IMX6SL_CLK_OCRAM_PODF is a busy divider, its name in CCM_CDHIPR register of Reference Manual CCM chapter is axi_podf_busy, correct its clock type. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/clk/imx/clk-imx6sl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization

2018-05-16 Thread Anson Huang
Disable those unnecessary clocks during kernel boot up to save power, those modules clock should be managed by modules driver in runtime. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/clk/imx/clk-imx6sx.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff

[PATCH] ARM: dts: imx7d: use operating-points-v2 for cpu

2018-05-15 Thread Anson Huang
This patch uses "operating-points-v2" instead of "operating-points" to be more fit with cpufreq-dt driver. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx7d.dtsi | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-)

RE: [PATCH] ARM: dts: imx7d: use operating-points-v2 for cpu

2018-05-20 Thread Anson Huang
Anson Huang Best Regards! > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Sunday, May 20, 2018 8:51 PM > To: Anson Huang <anson.hu...@nxp.com> > Cc: ker...@pengutronix.de; Fabio Estevam <fabio.este...@nxp.com>; > robh...@kernel

RE: [PATCH V2 2/3] clk: imx7d: correct enet clock CCGR registers

2018-05-20 Thread Anson Huang
Hi, Stefan Anson Huang Best Regards! > -Original Message- > From: Stefan Agner [mailto:ste...@agner.ch] > Sent: Friday, May 18, 2018 9:02 PM > To: Anson Huang <anson.hu...@nxp.com> > Cc: shawn...@kernel.org; ker...@pengutronix.de; Fabio Estevam > <f

[PATCH V2 3/3] ARM: dts: imx7: correct enet ipg clock

2018-05-17 Thread Anson Huang
ENET "ipg" clock should be IMX7D_ENETx_IPG_ROOT_CLK rather than IMX7D_ENET_AXI_ROOT_CLK which is for ENET bus clock. Based on Andy Duan's patch from the NXP kernel tree. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- arch/arm/boot/dts/imx7d.dtsi | 2 +- arch/arm/boot/dt

[PATCH V2 2/3] clk: imx7d: correct enet clock CCGR registers

2018-05-17 Thread Anson Huang
instead of adding new clocks. Based on Andy Duan's patch from the NXP kernel tree. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/clk/imx/clk-imx7d.c | 10 ++ include/dt-bindings/clock/imx7d-clock.h | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-)

[PATCH V2 1/3] clk: imx7d: correct enet phy ref clock gates

2018-05-17 Thread Anson Huang
IMX7D_ENET_PHY_REF_ROOT_DIV supplies clock for PHY directly, there is no clock gate after it, rename it to IMX7D_ENET_PHY_REF_ROOT_CLK to avoid device tree change. Signed-off-by: Anson Huang <anson.hu...@nxp.com> --- drivers/clk/imx/clk-imx7d.c | 3 +-- 1 file changed, 1 insertion

RE: [PATCH 1/2] clk: imx7d: correct enet clock CCGR register offset

2018-05-17 Thread Anson Huang
Hi, Stefan Anson Huang Best Regards! > -Original Message- > From: Stefan Agner [mailto:ste...@agner.ch] > Sent: Thursday, May 17, 2018 7:22 PM > To: Anson Huang <anson.hu...@nxp.com> > Cc: shawn...@kernel.org; ker...@pengutronix.de; Fabio Estevam > <f

RE: [PATCH 3/3] ARM: imx: remove i.MX6SLL support in i.MX6SL cpu idle driver

2018-05-30 Thread Anson Huang
Hi, Fabio Anson Huang Best Regards! > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Thursday, May 31, 2018 8:57 AM > To: Anson Huang > Cc: Shawn Guo ; Sascha Hauer > ; Sascha Hauer ; Fabio > Estevam ; Russell King - ARM Linux > ;

RE: [PATCH 3/3] ARM: imx: remove i.MX6SLL support in i.MX6SL cpu idle driver

2018-05-30 Thread Anson Huang
Hi, Fabio Anson Huang Best Regards! > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Wednesday, May 30, 2018 8:34 PM > To: Anson Huang > Cc: Shawn Guo ; Sascha Hauer > ; Sascha Hauer ; Fabio > Estevam ; Russell King - ARM Linux > ;

[PATCH 2/2] ARM: imx: add mem mode suspend for i.MX6SLL

2018-05-30 Thread Anson Huang
Add mem mode suspend for i.MX6SLL, when linux kernel suspend, SoC will enter STOP mode, ARM core will be power gated and MMDC IO will be set to low power mode. Signed-off-by: Anson Huang --- arch/arm/mach-imx/pm-imx6.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions

[PATCH 1/2] ARM: imx: add standby mode suspend for i.MX6SLL

2018-05-30 Thread Anson Huang
Add standby mode suspend for i.MX6SLL, when linux kernel suspend, SoC will enter STOP mode with ARM core power on. Signed-off-by: Anson Huang --- arch/arm/mach-imx/pm-imx6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm

RE: [PATCH] soc: imx: gpcv2: correct PGC offset

2018-05-29 Thread Anson Huang
Hi, Andrey Anson Huang Best Regards! > -Original Message- > From: Andrey Smirnov [mailto:andrew.smir...@gmail.com] > Sent: Wednesday, May 30, 2018 7:11 AM > To: Anson Huang > Cc: Shawn Guo ; Sascha Hauer > ; Sascha Hauer ; Fabio > Estevam ; dl-linux-imx ; >

[PATCH] soc: imx: gpcv2: correct PGC offset

2018-05-29 Thread Anson Huang
for fastmix/megamix; 0xC00 ~ 0xC3F: PGC for MIPI PHY; 0xC40 ~ 0xC7F: PGC for PCIe_PHY; 0xC80 ~ 0xCBF: PGC for USB OTG1 PHY; 0xCC0 ~ 0xCFF: PGC for USB OTG2 PHY; 0xD00 ~ 0xD3F: PGC for USB HSIC PHY; Signed-off-by: Anson Huang --- drivers/soc/imx/gpcv2.c | 6 +++--- 1 file changed, 3 insertions

[PATCH 2/3] ARM: imx: add cpu idle support for i.MX6SLL

2018-05-30 Thread Anson Huang
-by: Anson Huang --- arch/arm/mach-imx/cpuidle-imx6sx.c | 1 + arch/arm/mach-imx/mach-imx6sl.c| 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/cpuidle-imx6sx.c b/arch/arm/mach-imx/cpuidle-imx6sx.c index d0f14b7..243a108 100644 --- a/arch/arm/mach-imx

[PATCH 3/3] ARM: imx: remove i.MX6SLL support in i.MX6SL cpu idle driver

2018-05-30 Thread Anson Huang
i.MX6SLL supports ARM power off in cpu idle, better to reuse i.MX6SX cpu idle driver instead of i.MX6SL which does NOT support ARM power off. Signed-off-by: Anson Huang --- arch/arm/mach-imx/cpuidle-imx6sl.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm

  1   2   3   4   5   6   >