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

2019-09-20 Thread Anson Huang
Ping..., 1 month passed, NOT sure what is the latest status. Anson > On Tue, Aug 20, 2019 at 05:56:40AM +0000, Anson Huang wrote: > > Gentle ping... > > My impression[1] is that Thierry collects patches in bulk once or twice per > release cycle. The last two such bulks we

RE: [PATCH V2 1/2] clk: imx8mm: Move 1443X/1416X PLL clock structure to common place

2019-09-19 Thread Anson Huang
cated code on each platform. > > Meanwhile, no need to define PLL clock structure for every module which > uses same type of PLL, e.g., audio/video/dram use 1443X PLL, > arm/gpu/vpu/sys use 1416X PLL, define 2 PLL clock structure for each group > is enough. > > Signed-off-by

RE: Missing 'assigned-clocks' in usdhc node of i.MX8MQ/MM/MN dtsi?

2019-09-19 Thread Anson Huang
Hi, Schrempf > Hi, > > I wonder why imx8mq.dtsi, imx8mm.dtsi and imx8mn.dtsi have 'assigned- > clocks' and 'assigned-clock-rates' set for all usdhc nodes, except for usdhc2. > > Is this on purpose? Is it a flaw? I don't think it is on purpose, it should be a flaw, I will double check with our

[PATCH 2/2] arm64: dts: imx8mm-evk: Enable pca6416 on i2c3 bus

2019-09-19 Thread Anson Huang
Enable pca6416 on i.MX8MM EVK board's i2c3 bus. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts index 7758c1c

[PATCH 1/2] arm64: dts: imx8mm-evk: Add i2c3 support

2019-09-19 Thread Anson Huang
Enable i2c3 for i.MX8MM EVK board. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts index f7a15f3..7758c1c

RE: [PATCH] gpio: mxc: Only getting second IRQ when there is more than one IRQ

2019-09-19 Thread Anson Huang
Hi, Bartosz > czw., 19 wrz 2019 o 08:10 Anson Huang napisaƂ(a): > > > > On some of i.MX SoCs like i.MX8QXP, there is ONLY one IRQ for each > > GPIO bank, so it is better to check the IRQ count before getting > > second IRQ to avoid below error message during probe:

[PATCH V2] gpio: mxc: Only getting second IRQ when there is more than one IRQ

2019-09-19 Thread Anson Huang
index 1 not found [1.115475] gpio-mxc 5d0f.gpio: IRQ index 1 not found Signed-off-by: Anson Huang --- Changes since V1: - use local variable irq_count instead or err to avoid confusion. --- drivers/gpio/gpio-mxc.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions

RE: [PATCH 2/3] arm64: dts: imx8mm: Use correct clock for usdhc's ipg clk

2019-09-19 Thread Anson Huang
Hi, Schrempf > Hi Anson, > > I have a question, that is not directly related to this patch. > I see that for the usdhc1 and usdhc3 nodes, there is an 'assigned-clock' > and 'assigned-clock-rates' property but not for usdhc2. The same applies to > the mx8mq and mx8mn dtsi file. > > Is there any

[PATCH] gpio: mxc: Only getting second IRQ when there is more than one IRQ

2019-09-19 Thread Anson Huang
index 1 not found [1.115475] gpio-mxc 5d0f.gpio: IRQ index 1 not found Signed-off-by: Anson Huang --- drivers/gpio/gpio-mxc.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 7907a87..39ba7dd 100644

[PATCH 1/3] arm64: dts: imx8mq: Use correct clock for usdhc's ipg clk

2019-09-18 Thread Anson Huang
On i.MX8MQ, usdhc's ipg clock is from IMX8MQ_CLK_IPG_ROOT, assign it explicitly instead of using IMX8MQ_CLK_DUMMY. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale

[PATCH 3/3] arm64: dts: imx8mn: Use correct clock for usdhc's ipg clk

2019-09-18 Thread Anson Huang
On i.MX8MN, usdhc's ipg clock is from IMX8MN_CLK_IPG_ROOT, assign it explicitly instead of using IMX8MN_CLK_DUMMY. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale

[PATCH 2/3] arm64: dts: imx8mm: Use correct clock for usdhc's ipg clk

2019-09-18 Thread Anson Huang
On i.MX8MM, usdhc's ipg clock is from IMX8MM_CLK_IPG_ROOT, assign it explicitly instead of using IMX8MM_CLK_DUMMY. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale

[PATCH RESEND V5 3/5] arm64: dts: imx8qxp: Add scu key node

2019-09-16 Thread Anson Huang
Add scu key node for i.MX8QXP, disabled by default as it depends on board design. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot

RE: [PATCH V5 1/5] dt-bindings: fsl: scu: add scu key binding

2019-09-16 Thread Anson Huang
ge of system power, clock and scu > key event etc. management, Linux kernel has to communicate with system > controller via MU (message unit) IPC to get scu key event, add binding doc for > i.MX system controller key driver. > > Signed-off-by: Anson Huang > --- > No changes. >

[PATCH RESEND V5 1/5] dt-bindings: fsl: scu: add scu key binding

2019-09-16 Thread Anson Huang
for i.MX system controller key driver. Signed-off-by: Anson Huang --- No changes. --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree

[PATCH RESEND V5 2/5] input: keyboard: imx_sc: Add i.MX system controller key support

2019-09-16 Thread Anson Huang
key's status. Signed-off-by: Anson Huang --- Changes since V4: - reduce debounce time from 100mS to 30mS; - remove unnecessary delay_check for button release interrupt which is NOT existing at all; - using error instead of ret; - move pm_wakeup_event() to interrupt

[PATCH RESEND V5 5/5] arm64: defconfig: Enable CONFIG_KEYBOARD_IMX_SC_KEY as module

2019-09-16 Thread Anson Huang
Select CONFIG_KEYBOARD_IMX_SC_KEY as module by default to support i.MX8QXP scu key driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0a70e10

[PATCH RESEND V5 4/5] arm64: dts: imx8qxp-mek: Enable scu key

2019-09-16 Thread Anson Huang
Enable scu key for i.MX8QXP MEK board. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index

[PATCH V5 2/5] input: keyboard: imx_sc: Add i.MX system controller key support

2019-09-16 Thread Anson Huang
key's status. Signed-off-by: Anson Huang --- Changes since V4: - reduce debounce time from 100mS to 30mS; - remove unnecessary delay_check for button release interrupt which is NOT existing at all; - using error instead of ret; - move pm_wakeup_event() to interrupt

[PATCH V5 4/5] arm64: dts: imx8qxp-mek: Enable scu key

2019-09-16 Thread Anson Huang
Enable scu key for i.MX8QXP MEK board. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index

[PATCH V5 1/5] dt-bindings: fsl: scu: add scu key binding

2019-09-16 Thread Anson Huang
for i.MX system controller key driver. Signed-off-by: Anson Huang --- No changes. --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree

[PATCH V5 5/5] arm64: defconfig: Enable CONFIG_KEYBOARD_IMX_SC_KEY as module

2019-09-16 Thread Anson Huang
Select CONFIG_KEYBOARD_IMX_SC_KEY as module by default to support i.MX8QXP scu key driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0a70e10

[PATCH V5 3/5] arm64: dts: imx8qxp: Add scu key node

2019-09-16 Thread Anson Huang
Add scu key node for i.MX8QXP, disabled by default as it depends on board design. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot

RE: [PATCH V4 2/5] input: keyboard: imx_sc: Add i.MX system controller key support

2019-09-16 Thread Anson Huang
Hi, Dmitry > On Mon, Sep 16, 2019 at 10:52:50AM +0800, 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 > > and scu key etc.. > > > > Adds i.MX sys

[PATCH] ARM: dts: imx7s: Correct GPT's ipg clock source

2019-09-16 Thread Anson Huang
i.MX7S/D's GPT ipg clock should be from GPT clock root and controlled by CCM's GPT CCGR, using correct clock source for GPT ipg clock instead of IMX7D_CLK_DUMMY. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7s.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

RE: [PATCH 1/2] ARM: dts: imx7d: Correct speed grading fuse settings

2019-09-15 Thread Anson Huang
Hi, Leonard > On 2019-09-12 5:57 AM, Anson Huang wrote: > > The 800MHz opp speed grading fuse mask should be 0xd instead of 0xf > > according to fuse map definition: > > > > SPEED_GRADING[1:0] MHz > > 00 800 > > 01 500

[PATCH V4 3/5] arm64: dts: imx8qxp: Add scu key node

2019-09-15 Thread Anson Huang
Add scu key node for i.MX8QXP, disabled by default as it depends on board design. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot

[PATCH V4 1/5] dt-bindings: fsl: scu: add scu key binding

2019-09-15 Thread Anson Huang
for i.MX system controller key driver. Signed-off-by: Anson Huang --- No changes. --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree

[PATCH V4 4/5] arm64: dts: imx8qxp-mek: Enable scu key

2019-09-15 Thread Anson Huang
Enable scu key for i.MX8QXP MEK board. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index

[PATCH V4 2/5] input: keyboard: imx_sc: Add i.MX system controller key support

2019-09-15 Thread Anson Huang
key's status. Signed-off-by: Anson Huang --- Changes since V3: - switch the debounce and repeat interval time for delay work schdule; - add .remove to handle group irq and notify etc.. --- drivers/input/keyboard/Kconfig | 7 ++ drivers/input/keyboard/Makefile | 1

[PATCH V4 5/5] arm64: defconfig: Enable CONFIG_KEYBOARD_IMX_SC_KEY as module

2019-09-15 Thread Anson Huang
Select CONFIG_KEYBOARD_IMX_SC_KEY as module by default to support i.MX8QXP scu key driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0a70e10

RE: [PATCH V3 2/5] input: keyboard: imx_sc: Add i.MX system controller key support

2019-09-15 Thread Anson Huang
Hi, Dmitry > On Tue, Sep 03, 2019 at 05:36:37PM -0400, 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 > > and scu key etc.. > > > > Adds i.MX sys

[PATCH 1/2] ARM: dts: imx7d: Correct speed grading fuse settings

2019-09-11 Thread Anson Huang
The 800MHz opp speed grading fuse mask should be 0xd instead of 0xf according to fuse map definition: SPEED_GRADING[1:0] MHz 00 800 01 500 10 1000 11 1200 Signed-off-by: Anson Huang --- arch/arm/boot/dts

[PATCH 2/2] ARM: dts: imx7d: Add opp-suspend property

2019-09-11 Thread Anson Huang
Add "opp-suspend" property for i.MX7D to make sure system suspend with max available opp. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7d.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index 0083272..2792

RE: [PATCH 1/2] arm64: dts: imx8mm: Remove incorrect fallback compatible for ocotp

2019-09-11 Thread Anson Huang
Hi, Daniel > On 11/09/2019 16:24, Anson Huang wrote: > > Compared to i.MX7D, i.MX8MM has different ocotp layout, so it should > > NOT use "fsl,imx7d-ocotp" as ocotp's fallback compatible, remove it. > > > > Signed-off-by: Anson Huang > > --- > &g

[PATCH 1/2] arm64: dts: imx8mm: Remove incorrect fallback compatible for ocotp

2019-09-10 Thread Anson Huang
Compared to i.MX7D, i.MX8MM has different ocotp layout, so it should NOT use "fsl,imx7d-ocotp" as ocotp's fallback compatible, remove it. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/

[PATCH 2/2] arm64: dts: imx8mn: Use "fsl,imx8mm-ocotp" as ocotp's fallback compatible

2019-09-10 Thread Anson Huang
Use "fsl,imx8mm-ocotp" as i.MX8MN ocotp's fallback compatible instead of "fsl,imx7d-ocotp" to support SoC UID read, as i.MX8MN reuses i.MX8MM's SoC ID driver. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 2 +- 1 file changed, 1 insertion(+),

[PATCH 1/2] arm64: dts: imx8mn: Add system counter node

2019-09-09 Thread Anson Huang
Add i.MX8MN system counter node to enable timer-imx-sysctr broadcast timer driver. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale

[PATCH 2/2] arm64: dts: imx8mn: Enable cpu-idle driver

2019-09-09 Thread Anson Huang
/cpu/cpu0/cpuidle/state1/name cpu-pd-wait root@imx8mnevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state1/usage 3078 Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/freescale

RE: [PATCH] clk: imx: lpcg: write twice when writing lpcg regs

2019-09-09 Thread Anson Huang
> On Sat, Sep 7, 2019 at 9:47 PM Stephen Boyd wrote: > > > > Quoting Peng Fan (2019-08-27 01:17:50) > > > From: Peng Fan > > > > > > There is hardware issue that: > > > The output clock the LPCG cell will not turn back on as expected, > > > even though a read of the IPG registers in the LPCG

[PATCH] arm64: dts: imx8mn: Add "fsl,imx8mq-src" as src's fallback compatible

2019-09-09 Thread Anson Huang
i.MX8MN can reuse i.MX8MQ's src driver, add "fsl,imx8mq-src" as src's fallback compatible to enable it. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dt

[PATCH V2 2/2] clk: imx8mn: Use common 1443X/1416X PLL clock structure

2019-09-05 Thread Anson Huang
Use common 1413X/1416X PLL clock structure to save a lot of duplicated code on i.MX8MN clock driver. Signed-off-by: Anson Huang --- Changes since V1: - Changes according to patch 1/2, now PLL table/structure is in pll14xx driver. --- drivers/clk/imx/clk-imx8mn.c | 89

[PATCH V2 1/2] clk: imx8mm: Move 1443X/1416X PLL clock structure to common place

2019-09-05 Thread Anson Huang
/video/dram use 1443X PLL, arm/gpu/vpu/sys use 1416X PLL, define 2 PLL clock structure for each group is enough. Signed-off-by: Anson Huang --- Changes since V1: - Move 1443X/1416X PLL clock table/structure to pll14xx driver. --- drivers/clk/imx/clk-imx8mm.c | 87

RE: [PATCH 1/2] clk: imx8mm: Move 1443X/1416X PLL clock structure to common place

2019-09-05 Thread Anson Huang
Hi, Leonard > On 05.09.2019 12:59, Anson Huang wrote: > > Many i.MX8M SoCs use same 1443X/1416X PLL, such as i.MX8MM, > i.MX8MN > > and later i.MX8M SoCs, moving these PLL definitions to common place > > can save a lot of duplicated code on each platform. > >

[PATCH 2/2] clk: imx8mn: Use common 1443X/1416X PLL clock structure

2019-09-05 Thread Anson Huang
Use common 1413X/1416X PLL clock structure to save a lot of duplicated code on i.MX8MN clock driver. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mn.c | 89 +--- drivers/clk/imx/clk.c| 2 + 2 files changed, 12 insertions(+), 79

[PATCH 1/2] clk: imx8mm: Move 1443X/1416X PLL clock structure to common place

2019-09-05 Thread Anson Huang
/video/dram use 1443X PLL, arm/gpu/vpu/sys use 1416X PLL, define 2 PLL clock structure for each group is enough. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mm.c | 87 +--- drivers/clk/imx/clk.c| 30 +++ drivers/clk/imx/clk.h

RE: [PATCH] soc: imx: imx-scu: Getting UID from SCU should have response

2019-09-04 Thread Anson Huang
Hi, Leonard > On 2019-09-04 10:14 AM, Anson Huang wrote: > > The SCU firmware API for getting UID should have response, otherwise, > > the message stored in function stack could be released and then the > > response data received from SCU will be stored into that release

[PATCH] soc: imx: imx-scu: Getting UID from SCU should have response

2019-09-04 Thread Anson Huang
C UID(unique identifier) support") Signed-off-by: Anson Huang --- drivers/soc/imx/soc-imx-scu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/imx/soc-imx-scu.c b/drivers/soc/imx/soc-imx-scu.c index 50831eb..c68882e 100644 --- a/drivers/soc/imx/soc-imx-scu.c +++

[PATCH V3 4/5] arm64: dts: imx8qxp-mek: Enable scu key

2019-09-03 Thread Anson Huang
Enable scu key for i.MX8QXP MEK board. Signed-off-by: Anson Huang --- Changes since V2: - change node name accordingly. --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64

[PATCH V3 2/5] input: keyboard: imx_sc: Add i.MX system controller key support

2019-09-03 Thread Anson Huang
key's status. Signed-off-by: Anson Huang --- Changes since V2: - use private platform data instead of global data; - use "key" instead of "pwrkey"; - fix some data format. --- drivers/input/keyboard/Kconfig | 7 ++ drivers/input/keyboard/Makefile

[PATCH V3 1/5] dt-bindings: fsl: scu: add scu key binding

2019-09-03 Thread Anson Huang
for i.MX system controller key driver. Signed-off-by: Anson Huang --- Changes since V2: - use "key" instead of "pwrkey" as the key function can be defined in DT. --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 14 ++ 1 file changed, 14 inser

[PATCH V3 3/5] arm64: dts: imx8qxp: Add scu key node

2019-09-03 Thread Anson Huang
Add scu key node for i.MX8QXP, disabled by default as it depends on board design. Signed-off-by: Anson Huang --- Changes since V2: - use "key" instead of "pwrkey". --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --g

[PATCH V3 5/5] arm64: defconfig: Enable CONFIG_KEYBOARD_IMX_SC_KEY as module

2019-09-03 Thread Anson Huang
Select CONFIG_KEYBOARD_IMX_SC_KEY as module by default to support i.MX8QXP scu key driver. Signed-off-by: Anson Huang --- Changes since V2: - change CONFIG name. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch

RE: [PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support

2019-09-03 Thread Anson Huang
Hi, Oleksij > On 03.09.19 08:48, Anson Huang wrote: > > Hi, Oleksij > > > >> On 03.09.19 16:03, Anson Huang wrote: > >>> i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller > >>> inside, the system controller is in charge of

RE: [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding

2019-09-03 Thread Anson Huang
Hi, Oleksij > On 03.09.19 08:37, Anson Huang wrote: > > Hi, Oleksij > > > >> On 03.09.19 16:03, Anson Huang wrote: > >>> NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system > >>> controller, the system controller is in charge of s

RE: [PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support

2019-09-03 Thread Anson Huang
Hi, Oleksij > On 03.09.19 16:03, 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 > > and power key etc.. > > > > Adds i.MX system controller power

RE: [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding

2019-09-03 Thread Anson Huang
Hi, Oleksij > On 03.09.19 16:03, Anson Huang wrote: > > NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system > > controller, the system controller is in charge of system power, clock > > and power key event etc. management, Linux kernel has to communicate >

RE: [PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support

2019-09-02 Thread Anson Huang
Hi, Fabio > On Mon, Sep 2, 2019 at 11:05 PM Anson Huang > wrote: > > > + ret = input_register_device(input); > > + if (ret < 0) { > > + dev_err(>dev, "failed to register input device\n"); > > + return

RE: [PATCH 1/5] dt-bindings: fsl: scu: add scu power key binding

2019-09-02 Thread Anson Huang
Hi, Rob > On Fri, Aug 30, 2019 at 04:53:45PM -0400, Anson Huang wrote: > > NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system > > controller, the system controller is in charge of system power, clock > > and power key event etc. management, Linux kern

[PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support

2019-09-02 Thread Anson Huang
power key's status. Signed-off-by: Anson Huang --- Changes since V1: - remove "wakeup-source" property operation, scu power key uses generic scu irq, no need to have this property for device wakeup operation. --- drivers/input/keyboard/Kconfig | 7 ++ dri

[PATCH V2 5/5] arm64: defconfig: Enable CONFIG_KEYBOARD_IMX_SC_PWRKEY as module

2019-09-02 Thread Anson Huang
Select CONFIG_KEYBOARD_IMX_SC_PWRKEY as module by default to support i.MX8QXP power key driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

[PATCH V2 3/5] arm64: dts: imx8qxp: Add scu power key node

2019-09-02 Thread Anson Huang
Add scu power key node for i.MX8QXP, disabled by default as it depends on board design. Signed-off-by: Anson Huang --- Changes since V1: - remove "wakeup-source" property, as it is NOT needed for scu mu interrupt; --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 7 +

[PATCH V2 4/5] arm64: dts: imx8qxp-mek: Enable scu power key

2019-09-02 Thread Anson Huang
Enable scu power key for i.MX8QXP MEK board. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index

[PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding

2019-09-02 Thread Anson Huang
for i.MX system controller power key driver. Signed-off-by: Anson Huang --- Changes since V1: - remove "wakeup-source" property, as it is NOT needed for SCU interrupt; - remove "status" in example. --- .../devicetree/bindings/arm/freescale/fsl,s

RE: [PATCH] arm64: dts: imx8mn-ddr4-evk: Enable GPIO LED

2019-09-02 Thread Anson Huang
Hi, Pavel > On Mon 2019-09-02 16:45:38, Anson Huang wrote: > > i.MX8MN DDR4 EVK board has a GPIO LED to indicate status, add support > > for it. > > LED maintainers want to be on the cc list... The get_maintainer.pl does NOT show the LED maintainers...But I have added it in

[PATCH V2] arm64: dts: imx8mn-ddr4-evk: Enable GPIO LED

2019-09-02 Thread Anson Huang
i.MX8MN DDR4 EVK board has a GPIO LED to indicate status, add support for it. Signed-off-by: Anson Huang --- Changes since V1: - Mention color in the label. --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch

[PATCH] arm64: dts: imx8mn-ddr4-evk: Enable GPIO LED

2019-09-02 Thread Anson Huang
i.MX8MN DDR4 EVK board has a GPIO LED to indicate status, add support for it. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts b/arch/arm64

[PATCH 3/5] arm64: dts: imx8qxp: Add scu power key node

2019-08-30 Thread Anson Huang
Add scu power key node for i.MX8QXP, disabled by default as it depends on board design. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts

[PATCH 4/5] arm64: dts: imx8qxp-mek: Enable scu power key

2019-08-30 Thread Anson Huang
Enable scu power key for i.MX8QXP MEK board. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 1946805..f3df5c4

[PATCH 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support

2019-08-30 Thread Anson Huang
power key's status. Signed-off-by: Anson Huang --- drivers/input/keyboard/Kconfig | 7 ++ drivers/input/keyboard/Makefile| 1 + drivers/input/keyboard/imx_sc_pwrkey.c | 174 + 3 files changed, 182 insertions(+) create mode 100644 drivers/input

[PATCH 5/5] arm64: defconfig: Enable CONFIG_KEYBOARD_IMX_SC_PWRKEY as module

2019-08-30 Thread Anson Huang
Select CONFIG_KEYBOARD_IMX_SC_PWRKEY as module by default to support i.MX8QXP power key 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 49bb3d4..8178737

[PATCH 1/5] dt-bindings: fsl: scu: add scu power key binding

2019-08-30 Thread Anson Huang
for i.MX system controller power key driver. Signed-off-by: Anson Huang --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings

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

2019-08-28 Thread Anson Huang
do it inside > our > i.MX7ULP composite clock driver. What do you think? What is your opinion on this? Thanks, Anson > > Thanks, > Anson > > > Hi, Stephen > > > > > Quoting Anson Huang (2019-04-24 22:19:12) > > > > i.MX7ULP peripheral clock ONL

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Anson Huang
Hi, Rui > > On Wed, 2019-08-28 at 08:51 +, Anson Huang wrote: > > > Hi, Rui > > > > > > > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > > > > On 27.08.2019 04:51, Anson Huang wrote: > > > > > > > In an

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Anson Huang
Hi, Rui > On Wed, 2019-08-28 at 08:49 +0000, Anson Huang wrote: > > Hi, Rui > > > > > On Wed, 2019-08-28 at 16:32 +0800, Zhang Rui wrote: > > > > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > > > > On 27.08.2019 04:51, An

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Anson Huang
Hi, Rui > On Wed, 2019-08-28 at 08:51 +0000, Anson Huang wrote: > > Hi, Rui > > > > > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > > > On 27.08.2019 04:51, Anson Huang wrote: > > > > > > In an earlier series the CLK_IS_CRITIC

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Anson Huang
Hi, Rui > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > On 27.08.2019 04:51, Anson Huang wrote: > > > > In an earlier series the CLK_IS_CRITICAL flags was removed from > > > > the TMU clock so if the thermal driver doesn't explicitly enable > &g

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Anson Huang
Hi, Rui > On Wed, 2019-08-28 at 16:32 +0800, Zhang Rui wrote: > > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > > On 27.08.2019 04:51, Anson Huang wrote: > > > > > In an earlier series the CLK_IS_CRITICAL flags was removed from > > >

[PATCH V5 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-27 Thread Anson Huang
(refreshed) within a certain period, it resets the MCU. Add driver support for i.MX7ULP watchdog. Signed-off-by: Anson Huang --- No changes. --- drivers/watchdog/Kconfig | 13 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/imx7ulp_wdt.c | 243

[PATCH V5 4/4] ARM: dts: imx7ulp: Add wdog1 node

2019-08-27 Thread Anson Huang
Add wdog1 node to support watchdog driver. Signed-off-by: Anson Huang --- Changes since V4: - improve watchdog node name. --- 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

[PATCH V5 1/4] dt-bindings: watchdog: Add i.MX7ULP bindings

2019-08-27 Thread Anson Huang
Add the watchdog bindings for Freescale i.MX7ULP. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- Changes since V4: - improve watchdog node name. --- .../bindings/watchdog/fsl-imx7ulp-wdt.txt | 22 ++ 1 file changed, 22 insertions(+) create mode

[PATCH V5 3/4] ARM: imx_v6_v7_defconfig: Enable CONFIG_IMX7ULP_WDT by default

2019-08-27 Thread Anson Huang
Select CONFIG_IMX7ULP_WDT by default to support i.MX7ULP watchdog. Signed-off-by: Anson Huang --- no changes. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 9bfffbe

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-26 Thread Anson Huang
Hi, Rui > On Tue, 2019-08-27 at 01:51 +0000, Anson Huang wrote: > > > On 7/30/2019 5:31 AM, anson.hu...@nxp.com wrote: > > > > From: Anson Huang > > > > > > > > Some platforms like i.MX8MQ has clock control for this module, > > > > nee

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-26 Thread Anson Huang
> On 7/30/2019 5:31 AM, anson.hu...@nxp.com wrote: > > From: Anson Huang > > > > Some platforms like i.MX8MQ has clock control for this module, need to > > add clock operations to make sure the driver is working properly. > > > > Signed-off-by: Anso

[tip: timers/core] arm64: dts: imx8mq: Add system counter node

2019-08-26 Thread tip-bot2 for Anson Huang
The following commit has been merged into the timers/core branch of tip: Commit-ID: 24e8a5db8ae46bf021d3b4063c005f443282ab4f Gitweb: https://git.kernel.org/tip/24e8a5db8ae46bf021d3b4063c005f443282ab4f Author:Anson Huang AuthorDate:Thu, 15 Aug 2019 20:38:44 -04:00

[tip: timers/core] arm64: dts: imx8mm: Add system counter node

2019-08-26 Thread tip-bot2 for Anson Huang
The following commit has been merged into the timers/core branch of tip: Commit-ID: 5b0221bf7b08163030e6801255ffbaf52775df01 Gitweb: https://git.kernel.org/tip/5b0221bf7b08163030e6801255ffbaf52775df01 Author:Anson Huang AuthorDate:Thu, 15 Aug 2019 20:38:43 -04:00

[tip: timers/core] clocksource/drivers/imx-sysctr: Add internal clock divider handle

2019-08-26 Thread tip-bot2 for Anson Huang
The following commit has been merged into the timers/core branch of tip: Commit-ID: 4419e19d8117dda6bccfbc62090e766f469ff20a Gitweb: https://git.kernel.org/tip/4419e19d8117dda6bccfbc62090e766f469ff20a Author:Anson Huang AuthorDate:Thu, 15 Aug 2019 20:38:42 -04:00

[PATCH V4 1/4] dt-bindings: watchdog: Add i.MX7ULP bindings

2019-08-21 Thread Anson Huang
Add the watchdog bindings for Freescale i.MX7ULP. Signed-off-by: Anson Huang --- No changes. --- .../bindings/watchdog/fsl-imx7ulp-wdt.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.txt

[PATCH V4 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-21 Thread Anson Huang
(refreshed) within a certain period, it resets the MCU. Add driver support for i.MX7ULP watchdog. Signed-off-by: Anson Huang --- Changes since V3: - pass clk directly for reset action to avoid dereference from structure; - use constant instead of variable for wdog clock rate

[PATCH V4 4/4] ARM: dts: imx7ulp: Add wdog1 node

2019-08-21 Thread Anson Huang
Add wdog1 node to support watchdog driver. Signed-off-by: Anson Huang --- No changes. --- 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 6859a3a..1fdb5a35 100644 --- a/arch/arm

[PATCH V4 3/4] ARM: imx_v6_v7_defconfig: Enable CONFIG_IMX7ULP_WDT by default

2019-08-21 Thread Anson Huang
Select CONFIG_IMX7ULP_WDT by default to support i.MX7ULP watchdog. Signed-off-by: Anson Huang --- No changes. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 9bfffbe

RE: [PATCH V3 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-21 Thread Anson Huang
Hi, Guenter > On Tue, Aug 20, 2019 at 10:07:56PM -0400, Anson Huang wrote: > > The i.MX7ULP Watchdog Timer (WDOG) module is an independent timer > that > > is available for system use. > > It provides a safety feature to ensure that software is executing as >

RE: [PATCH V2 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-20 Thread Anson Huang
Hi, Guenter > On Tue, Aug 20, 2019 at 08:31:55AM -0700, Guenter Roeck wrote: > > On Mon, Aug 12, 2019 at 04:53:19PM +0800, anson.hu...@nxp.com > wrote: > > > From: Anson Huang > > > > > > The i.MX7ULP Watchdog Timer (WDOG) module is an independent timer

[PATCH V3 4/4] ARM: dts: imx7ulp: Add wdog1 node

2019-08-20 Thread Anson Huang
Add wdog1 node to support watchdog driver. Signed-off-by: Anson Huang --- No changes. --- 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 6859a3a..1fdb5a35 100644 --- a/arch/arm

[PATCH V3 3/4] ARM: imx_v6_v7_defconfig: Enable CONFIG_IMX7ULP_WDT by default

2019-08-20 Thread Anson Huang
Select CONFIG_IMX7ULP_WDT by default to support i.MX7ULP watchdog. Signed-off-by: Anson Huang --- No changes. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 9bfffbe

[PATCH V3 1/4] dt-bindings: watchdog: Add i.MX7ULP bindings

2019-08-20 Thread Anson Huang
Add the watchdog bindings for Freescale i.MX7ULP. Signed-off-by: Anson Huang --- No changes. --- .../bindings/watchdog/fsl-imx7ulp-wdt.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.txt

[PATCH V3 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-20 Thread Anson Huang
(refreshed) within a certain period, it resets the MCU. Add driver support for i.MX7ULP watchdog. Signed-off-by: Anson Huang --- Changes since V2: - add devm_add_action_or_reset to disable clk for remove action. --- drivers/watchdog/Kconfig | 13 +++ drivers/watchdog/Makefile | 1

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

2019-08-19 Thread Anson Huang
Gentle ping... > > From: anson.hu...@nxp.com > > Sent: Thursday, July 18, 2019 9:32 AM > > > > Use the new helper devm_platform_ioremap_resource() which wraps the > > platform_get_resource() and devm_ioremap_resource() together, to > > simplify the code

[PATCH RESEND V2 6/7] clk: imx8mn: Add necessary frequency support for ARM PLL table

2019-08-18 Thread Anson Huang
i.MX8MN supports CPU running at 1.5GHz/1.4GHz/1.2GHz, add missing frequency for ARM PLL table. Signed-off-by: Anson Huang --- Changes since V1: - split the patch into 2 patches, #1 fixed those missing .rate_count assignment, #2 add missing frequency points. --- drivers/clk

[PATCH RESEND V2 3/7] cpufreq: Use imx-cpufreq-dt for i.MX8MN's speed grading

2019-08-18 Thread Anson Huang
Add i.MX8MN to blacklist, so that imx-cpufreq-dt driver can handle speed grading bits just like other i.MX8M SoCs. Signed-off-by: Anson Huang --- No changes. --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b

<    2   3   4   5   6   7   8   9   10   11   >