[PATCH] ARM: dts: imx6ul: add pm_power_off support

2015-08-07 Thread Anson Huang
i.MX6UL can be powered off by programming SNVS. When long press ON/OFF button(5 seconds), PMIC_ON_REQ pin will be set to low and external PMIC will be powered off. And system can be powered on by long press ON/OFF button again. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot

Re: [PATCH] ARM: dts: imx6sx: correct property name for wakeup source

2015-08-06 Thread Anson Huang
On Thu, Aug 06, 2015 at 03:41:34PM +0800, Shawn Guo wrote: On Wed, Aug 05, 2015 at 09:57:55PM +0800, Anson Huang wrote: Commit(def56bb input: snvs_pwrkey: use wakeup-source as deivce tree property name) replaces the property name of wakeup with wakeup-source, update this change in i.MX6SX

[PATCH] ARM: dts: imx6sx: correct property name for wakeup source

2015-08-05 Thread Anson Huang
Commit(def56bb input: snvs_pwrkey: use wakeup-source as deivce tree property name) replaces the property name of wakeup with wakeup-source, update this change in i.MX6SX dtsi accordingly. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sx.dtsi | 2 +- 1 file changed, 1

[PATCH] ARM: dts: imx6ul: add snvs power key support

2015-08-05 Thread Anson Huang
Add i.MX6UL SNVS power key support. Signed-off-by: Anson Huang b20...@freescale.com --- This patch is based on my last patch under review: (ARM: dts: imx6ul: add RTC support). arch/arm/boot/dts/imx6ul.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul.dtsi

[PATCH] ARM: dts: imx6ul: add RTC support

2015-08-04 Thread Anson Huang
Add RTC support for i.MX6UL. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6ul.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index af865d3..b6c6c31 100644 --- a/arch/arm/boot/dts

[PATCH 3/3] ARM: imx: add suspend/resume support for i.mx6ul

2015-08-04 Thread Anson Huang
any PL310 operations during suspend/resume, also, we need to flush Cortex-A7's inernal L2 cache before suspend. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/mach-imx/common.h | 1 + arch/arm/mach-imx/mach-imx6ul.c | 2 ++ arch/arm/mach-imx/pm-imx6.c | 46

[PATCH 1/3] ARM: dts: imx6ul: add sram support for i.mx6ul

2015-08-04 Thread Anson Huang
Add SRAM support for i.MX6UL, it has 128KB ocram starting from 0x90. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6ul.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index b6c6c31..227ba6e

[PATCH 2/3] ARM: dts: imx6ul: add mmdc support for i.mx6ul

2015-08-04 Thread Anson Huang
Add MMDC support for i.MX6UL. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6ul.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index 227ba6e..d3c7ae1 100644 --- a/arch/arm/boot/dts/imx6ul.dtsi

[PATCH] ARM: dts: imx6ul: enable GPC as extended interrupt controller

2015-08-03 Thread Anson Huang
Enable GPC as extended interrupt controller of GIC, as GPC needs to manage wakeup source for low power modes. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6ul.dtsi | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6ul.dtsi b

[PATCH V2] ARM: dts: imx6sx: add i.mx6sx sabreauto board support

2014-12-16 Thread Anson Huang
Add basic i.MX6SoloX Sabre Auto board support, currently only debug UART and uSDHC are supported on this board. Signed-off-by: Anson Huang b20...@freescale.com --- change since V1: 1. correct gpio regulator node; 2. using macro define for GPIO active value; 3. improve

[PATCH] arm: dts: imx6sx: add i.mx6sx sabreauto board support

2014-12-07 Thread Anson Huang
Add basic i.MX6SoloX Sabre Auto board support, currently only debug UART and uSDHC are supported on this board. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/imx6sx-sabreauto.dts | 135 2

[PATCH 2/2] arm: dts: imx6dl: correct cpufreq volt/freq table

2014-12-05 Thread Anson Huang
; LDO bypassed(min value): 996MHz: VDDARM: 1.250V, VDDSOC: 1.150V; 792MHz: VDDARM: 1.150V, VDDSOC: 1.150V; 396MHz: VDDARM: 1.050V, VDDSOC: 1.150V; Adding 25mV to cover board IR drop, for LDO enabled mode of 996MHz, VDDARM should be 1.250V, so this patch updates it. Signed-off-by: Anson Huang b20

[PATCH V3 1/3] ARM: imx: add gpt_3m clk for i.mx6qdl

2014-09-10 Thread Anson Huang
Add gpt_3m clock for i.mx6qdl, as gpt can source clock from OSC, some i.MX6 series SOCs has fixed divider of 8 for gpt clock, so here add a fix clk of gpt_3m. i.MX6Q TO1.0 has no gpt_3m option, so force it to be from ipg_per. Signed-off-by: Anson Huang b20...@freescale.com --- change log from v2

[PATCH V3 3/3] ARM: imx: source gpt per clk from OSC for system timer

2014-09-10 Thread Anson Huang
GPT_CR_24MEM to enable OSC clk source for gpt per, GPT_PR_PRESCALER24M is for pre-scaling of this OSC clk, here set it to 8 to make gpt per clk is 3MHz; i.MX6SL: ipg_per can be from OSC directly, so no need to implement this new clk source for gpt per. Signed-off-by: Anson Huang b20

[PATCH V3 2/3] ARM: dts: imx6: make gpt per clock can be from OSC

2014-09-10 Thread Anson Huang
and all i.MX6dl SoC. On i.mx6sx, just make gpt per clk from OSC. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6qdl.dtsi |5 +++-- arch/arm/boot/dts/imx6sx.dtsi |2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b

[PATCH V2 0/3] move gpt per clk parent from ipg_per to OSC

2014-09-04 Thread Anson Huang
. Anson Huang (3): ARM: imx: add gpt_3m clk for i.mx6qdl ARM: dts: imx6: make gpt per clock can be from OSC ARM: imx: source gpt per clk from OSC for system timer arch/arm/boot/dts/imx6qdl.dtsi|5 ++-- arch/arm/boot/dts/imx6sx.dtsi |2 +- arch/arm/mach-imx/clk

[PATCH V2 2/3] ARM: dts: imx6: make gpt per clock can be from OSC

2014-09-04 Thread Anson Huang
and all i.MX6dl SoC. On i.mx6sx, just make gpt per clk from OSC. Signed-off-by: Anson Huang b20...@freescale.com --- change log from v1 - v2 on i.mx6q TO1.0, there is no OSC clk source for gpt per, so I have to add a new clk source of osc_per for gpt to cover i.mx6q TO1.0

[PATCH V2 3/3] ARM: imx: source gpt per clk from OSC for system timer

2014-09-04 Thread Anson Huang
GPT_CR_24MEM to enable OSC clk source for gpt per, GPT_PR_PRESCALER24M is for pre-scaling of this OSC clk, here set it to 8 to make gpt per clk is 3MHz; i.MX6SL: ipg_per can be from OSC directly, so no need to implement this new clk source for gpt per. Signed-off-by: Anson Huang b20

[PATCH 2/3] ARM: dts: imx6: change gpt per clk to gpt_3m on i.mx6qdl and i.mx6sx

2014-09-03 Thread Anson Huang
Original gpt per clk parent is from ipg_per clk which may be scaled when system enter low bus mode, as ipg clk will be lower in low bus mode, to keep system clk NOT drift, select gpt per clk parent from OSC which is at fixed freq always. Signed-off-by: Anson Huang b20...@freescale.com --- arch

[PATCH 0/3] move gpt per clk parent for ipg_per to OSC

2014-09-03 Thread Anson Huang
to implement this new clk source for gpt per. Anson Huang (3): ARM: imx: add gpt_3m clk for i.mx6qdl ARM: dts: imx6: change gpt per clk to gpt_3m on i.mx6qdl and i.mx6sx ARM: imx: source gpt per clk from OSC for system timer arch/arm/boot/dts/imx6qdl.dtsi|2 +- arch/arm/boot/dts

[PATCH 1/3] ARM: imx: add gpt_3m clk for i.mx6qdl

2014-09-03 Thread Anson Huang
Add gpt_3m clock for i.mx6qdl, as gpt can source clock from OSC, some i.MX6 series SOCs has fixed divider of 8 for gpt clock, so here add a fix clk of gpt_3m. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/mach-imx/clk-imx6q.c |1 + include/dt-bindings/clock/imx6qdl

[PATCH 3/3] ARM: imx: source gpt per clk from OSC for system timer

2014-09-03 Thread Anson Huang
GPT_CR_24MEM to enable OSC clk source for gpt per, GPT_PR_PRESCALER24M is for pre-scaling of this OSC clk, here set it to 8 to make gpt per clk is 3MHz; i.MX6SL: ipg_per can be from OSC directly, so no need to implement this new clk source for gpt per. 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] ARM: dts: add thermal sensor support for i.mx6sl

2014-08-05 Thread Anson Huang
Add thermal sensor support for i.MX6SL. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sl.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi index c75800c..505da9e 100644

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] ARM: dts: imx6sx: iomux-gpr syscon is compatible to imx6q

2014-06-23 Thread Anson Huang
-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sx.dtsi |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 78ccf61..7b41194 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts

[PATCH] ARM: dts: imx6sx-sdb: add gpio key support

2014-06-19 Thread Anson Huang
This patch adds support for imx6sx-sdb board's gpio keys: SW4(FUNC1): KEY_VOLUMEUP SW5(FUNC2): KEY_VOLUMEDOWN Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sx-sdb.dts | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH 2/2] ARM: dts: imx6sx: add initial imx6sx sdb support

2014-02-18 Thread Anson Huang
Add initial imx6sx sdb board support with uart and usdhc enabled. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sx-sdb.dts | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 arch/arm/boot/dts/imx6sx-sdb.dts diff --git

[PATCH 1/2] ARM: dts: add device tree source for imx6sx SoC

2014-02-18 Thread Anson Huang
Add device tree support for i.MX6SoloX SOC. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sx.dtsi | 524 + 1 file changed, 524 insertions(+) create mode 100644 arch/arm/boot/dts/imx6sx.dtsi diff --git a/arch/arm/boot/dts

[PATCH 1/2] ARM: dts: add device tree source for imx6sx SoC

2014-02-18 Thread Anson Huang
Add device tree support for i.MX6SoloX SOC. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sx.dtsi | 524 + 1 file changed, 524 insertions(+) create mode 100644 arch/arm/boot/dts/imx6sx.dtsi diff --git a/arch/arm/boot/dts

[PATCH 2/2] ARM: dts: imx6sx: add initial imx6sx sdb support

2014-02-18 Thread Anson Huang
Add initial imx6sx sdb board support with uart and usdhc enabled. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sx-sdb.dts | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 arch/arm/boot/dts/imx6sx-sdb.dts diff --git

[PATCH V2 2/2] ARM: imx: add speed grading check for i.mx6 soc

2014-02-12 Thread Anson Huang
The fuse map of speed_grading[1:0] defines the max speed of ARM, see below the definition: 2b'11: 12Hz; 2b'10: 99600Hz; 2b'01: 85200Hz; -- i.MX6Q Only, exclusive with 996MHz. 2b'00: 79200Hz; Need to remove all illegal setpoints according to fuse map. Signed-off-by: Anson

[PATCH V2 1/2] ARM: dts: imx6q: add 852MHz setpoint for CPU freq

2014-02-12 Thread Anson Huang
According to datasheet, i.MX6Q has setpoint of 852MHz which is exclusive with 996MHz, the fuse map of speed_grading defines the max speed of ARM, here we add this 852MHz setpoint opp info, kernel will check the speed_grading fuse and remove all illegal setpoints. Signed-off-by: Anson Huang b20

[PATCH 1/2] ARM: dts: imx6q: add 852MHz setpoint for CPU freq

2014-02-11 Thread Anson Huang
According to datasheet, i.MX6Q has setpoint of 852MHz which is exclusive with 996MHz, the fuse map of speed_grading defines the max speed of ARM, here we add this 852MHz setpoint opp info, kernel will check the speed_grading fuse and remove all illegal setpoints. Signed-off-by: Anson Huang b20

[PATCH 2/2] ARM: imx: add speed grading check for i.mx6 soc

2014-02-11 Thread Anson Huang
The fuse map of speed_grading[1:0] defines the max speed of ARM, see below the definition: 2b'11: 12Hz; 2b'10: 99600Hz; 2b'01: 85200Hz; -- i.MX6Q Only, exclusive with 996MHz. 2b'00: 79200Hz; Need to remove all illegal setpoints according to fuse map. Signed-off-by: Anson

[PATCH] ARM: dts: imx6qdl-sabresd: correct gpio key's active state

2014-01-20 Thread Anson Huang
From schematic, the power, vol+/- key's active state is low, so we need to set the gpio flag to active low. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH V2] ARM: dts: imx6qdl-sabresd: correct gpio key's active state

2014-01-20 Thread Anson Huang
From schematic, the power, vol+/- key's active state is low, so we need to set the gpio flag to active low. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts

Re: [PATCH] ARM: dts: imx6sl: add keypad support for i.mx6sl-evk board.

2014-01-14 Thread Anson Huang
On Tue, Jan 14, 2014 at 04:29:50PM +0800, Shawn Guo wrote: On Tue, Jan 14, 2014 at 03:37:09PM +0800, Anson Huang wrote: i.MX6SL EVK board has a 3*3 keypad matrix to support 8 keypads, enable them, the keymap is as below: SW6: 0x0067/* KEY_UP */ SW7: 0x0001006c/* KEY_DOWN

Re: [PATCH] ARM: dts: imx6sl: add keypad support for i.mx6sl-evk board.

2014-01-14 Thread Anson Huang
On Tue, Jan 14, 2014 at 04:29:50PM +0800, Shawn Guo wrote: OK, I saw this define #define MATRIX_KEY(row, col, code) in include/dt-bindings/input/input.h, please ignore my first reply. Will do it in V2. On Tue, Jan 14, 2014 at 03:37:09PM +0800, Anson Huang wrote: i.MX6SL EVK board has a 3*3

[PATCH V2] ARM: dts: imx6sl: add keypad support for i.mx6sl-evk board.

2014-01-14 Thread Anson Huang
*/ Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sl-evk.dts | 28 arch/arm/boot/dts/imx6sl.dtsi|2 ++ 2 files changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/imx6sl-evk.dts b/arch/arm/boot/dts/imx6sl-evk.dts index f5e4513

[PATCH V3] ARM: dts: imx6sl: add keypad support for i.mx6sl-evk board.

2014-01-14 Thread Anson Huang
-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sl-evk.dts | 28 arch/arm/boot/dts/imx6sl.dtsi|2 ++ 2 files changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/imx6sl-evk.dts b/arch/arm/boot/dts/imx6sl-evk.dts index f5e4513..f23b5d1 100644

Re: [PATCH V2] ARM: dts: imx6sl: add keypad support for i.mx6sl-evk board.

2014-01-14 Thread Anson Huang
On Tue, Jan 14, 2014 at 01:27:43PM +0400, Alexander Shiyan wrote: Вторник, 14 января 2014, 17:23 +08:00 от Anson Huang b20...@freescale.com: i.MX6SL EVK board has a 3*3 keypad matrix to support 8 keypads, enable them, the keymap is as below: SW6: MATRIX_KEY(0x0, 0x0, 0x67) /* ROW0

[PATCH V4 5/6] ARM: dts: imx6sl: add common compatible name for reused modules

2014-01-13 Thread Anson Huang
As some modules are common for all i.MX6 SOCs, to avoid checking cpu type for drivers that needs them, just add a new compatible name for them. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sl.dtsi |8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH V4 6/6] ARM: imx: add suspend in ocram support on i.mx6sl

2014-01-13 Thread Anson Huang
i.MX6SL's suspend in ocram function is derived from i.MX6Q, the only difference is the offset of DDR IO pins. It can lower the DDR IO power from ~10mA@1.2V to ~1mA@1.2V, measured on i.MX6SL EVK board, SH5. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/mach-imx/Makefile

[PATCH V4 4/6] ARM: imx: add suspend in ocram support on i.mx6dl

2014-01-13 Thread Anson Huang
i.MX6DL's suspend in ocram function is derived from i.MX6Q, the only difference is the offset of DDR IO pins. It can lower the DDR IO power from ~26mA@1.5V to ~15mA@1.5V, measured on i.MX6Q/DL SabreSD board, R25. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/mach-imx/pm-imx6q.c

[PATCH V4 2/6] ARM: imx: add suspend in ocram support on i.mx6q

2014-01-13 Thread Anson Huang
structure(imx6_cpu_pm_info) low address === Signed-off-by: Anson Huang b20...@freescale.com --- Changes since V3: 1. Add const to MMDC IO offset array; 2. Improve for-loop code to save code lines; 3. Use __aligned to save one variable

[PATCH] ARM: dts: imx6sl: add keypad support for i.mx6sl-evk board.

2014-01-13 Thread Anson Huang
/* KEY_LEFT */ SW12: 0x0272/* KEY_VOLUMEDOWN */ SW13: 0x02010073/* KEY_VOLUMEUP */ Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6sl-evk.dts | 27 +++ arch/arm/boot/dts/imx6sl.dtsi|2 ++ 2 files changed, 29 insertions(+) diff

[PATCH V3 2/5] ARM: dts: imx6dl: Remove unnecessary node

2014-01-12 Thread Anson Huang
IOMUXC node is included in i.mx6qdl.dtsi, so no need to overwrite it, as it is a reused module from i.mx6q. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6dl.dtsi |4 1 file changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/imx6dl.dtsi b/arch/arm/boot

[PATCH V3 1/5] ARM: imx: add suspend in ocram support on i.mx6q

2014-01-12 Thread Anson Huang
structure(imx6_cpu_pm_info) low address === Signed-off-by: Anson Huang b20...@freescale.com --- Changes since V2: 1. save MMDC IO info during initialization for once, no need to do save everytime before suspend; 2. Improve ocram suspend

[PATCH V3 3/5] ARM: imx: add suspend in ocram support on i.mx6dl

2014-01-12 Thread Anson Huang
i.MX6DL's suspend in ocram function is derived from i.MX6Q, the only difference is the offset of DDR IO pins. It can lower the DDR IO power from ~26mA@1.5V to ~15mA@1.5V, measured on i.MX6Q/DL SabreSD board, R25. Signed-off-by: Anson Huang b20...@freescale.com --- Changes since V2: Only do

[PATCH V3 5/5] ARM: imx: add suspend in ocram support on i.mx6sl

2014-01-12 Thread Anson Huang
i.MX6SL's suspend in ocram function is derived from i.MX6Q, the only difference is the offset of DDR IO pins. It can lower the DDR IO power from ~10mA@1.2V to ~1mA@1.2V, measured on i.MX6SL EVK board, SH5. Signed-off-by: Anson Huang b20...@freescale.com --- Changes since V2: Do necessary

[PATCH V4] thermal: imx: add necessary clk operation

2013-12-23 Thread Anson Huang
. Signed-off-by: Anson Huang b20...@freescale.com --- .../devicetree/bindings/thermal/imx-thermal.txt|4 drivers/thermal/imx_thermal.c | 20 2 files changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/imx

[PATCH V2 2/2] thermal: imx: add necessary clk operation

2013-12-19 Thread Anson Huang
. Signed-off-by: Anson Huang b20...@freescale.com --- .../devicetree/bindings/thermal/imx-thermal.txt|2 ++ drivers/thermal/imx_thermal.c | 18 ++ 2 files changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/imx-thermal.txt

[PATCH V3 2/2] thermal: imx: add necessary clk operation

2013-12-19 Thread Anson Huang
. Signed-off-by: Anson Huang b20...@freescale.com --- .../devicetree/bindings/thermal/imx-thermal.txt|4 drivers/thermal/imx_thermal.c | 18 ++ 2 files changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/imx

Re: [PATCH V2 1/2] ARM: imx: add vddsoc/pu setpoint info into dts

2013-12-18 Thread Anson Huang
On Wed, Dec 18, 2013 at 03:05:39PM +0800, Shawn Guo wrote: On Tue, Dec 17, 2013 at 05:08:21PM -0500, Anson Huang wrote: i.MX6Q needs to update vddarm, vddsoc/pu regulators when cpu freq is changed, each setpoint has different voltage, so we need to pass vddarm, vddsoc/pu's freq-voltage info

[PATCH V3 2/2] cpufreq: imx6q: correct VDDSOC/PU voltage scaling when cpufreq is changed

2013-12-18 Thread Anson Huang
is scaling down, need to decrease VDDARM voltage before VDDSOC/PU, if VDDPU is off, no need to change it; normally dts will pass vddsoc/pu freq/volt info to kernel, if not, will use fixed value for vddsoc/pu voltage setting. Signed-off-by: Anson Huang b20...@freescale.com --- drivers/cpufreq/imx6q

[PATCH V3 1/2] ARM: imx: add vddsoc/pu setpoint info into dts

2013-12-18 Thread Anson Huang
i.MX6Q needs to update vddarm, vddsoc/pu regulators when cpu freq is changed, each setpoint has different voltage, so we need to pass vddarm, vddsoc/pu's freq-voltage info from dts together. Signed-off-by: Anson Huang b20...@freescale.com --- .../devicetree/bindings/cpufreq/cpufreq-imx6.txt

[PATCH V4 2/3] ARM: imx: add vddsoc/pu setpoint info into dts

2013-12-18 Thread Anson Huang
i.MX6Q needs to update vddarm, vddsoc/pu regulators when cpu freq is changed, each setpoint has different voltage, so we need to pass vddarm, vddsoc/pu's freq-voltage info from dts together. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6q.dtsi |7 +++ 1 file

[PATCH] ARM: imx: enable cpufreq for i.mx6dl

2013-12-18 Thread Anson Huang
This patch adds cpufreq dts for i.mx6dl to support cpufreq driver. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6dl.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl.dtsi b/arch/arm/boot/dts/imx6dl.dtsi index

[PATCH] ARM: dts: imx6qdl-sabresd: Add power key support

2013-12-18 Thread Anson Huang
This patch adds support for imx6qdl-sabresd board's power key, the key is named SW1 on board, press it can wake up system from suspend. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch

[PATCH 2/3] thermal: imx: add necessary clk operation

2013-12-18 Thread Anson Huang
. Signed-off-by: Anson Huang b20...@freescale.com --- drivers/thermal/imx_thermal.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index 1d6c801..7abbc04 100644 --- a/drivers/thermal/imx_thermal.c +++ b

[PATCH 3/3] thermal: imx: add clk info for thermal sensor

2013-12-18 Thread Anson Huang
thermal sensor needs dedicated clock to work in correct way, so we need to add necessary clock info in dts. Signed-off-by: Anson Huang b20...@freescale.com --- .../devicetree/bindings/thermal/imx-thermal.txt|2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree

[PATCH 1/3] ARM: dts: imx6qdl: add necessary thermal clk

2013-12-18 Thread Anson Huang
Thermal sensor needs pll3_usb_otg when measuring temperature, so we need to pass clk info to thermal driver. Signed-off-by: Anson Huang b20...@freescale.com --- arch/arm/boot/dts/imx6qdl.dtsi |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot

[PATCH V2 2/2] cpufreq: imx6q: correct VDDSOC/PU voltage scaling when cpufreq is changed

2013-12-17 Thread Anson Huang
is scaling down, need to decrease VDDARM voltage before VDDSOC/PU, if VDDPU is off, no need to change it; normally dts will pass vddsoc/pu freq/volt info to kernel, if not, will use fixed value for vddsoc/pu voltage setting. Signed-off-by: Anson Huang b20...@freescale.com --- drivers/cpufreq/imx6q

[PATCH V2 1/2] ARM: imx: add vddsoc/pu setpoint info into dts

2013-12-17 Thread Anson Huang
i.MX6Q needs to update vddarm, vddsoc/pu regulators when cpu freq is changed, each setpoint has different voltage, so we need to pass vddarm, vddsoc/pu's freq-voltage info from dts together. Signed-off-by: Anson Huang b20...@freescale.com --- .../devicetree/bindings/cpufreq/cpufreq-imx6.txt