[PATCH] clk: imx: Explicitly include bits.h

2020-08-04 Thread Anson Huang
It is better to explicitly include the required header file rather then get it through some recursive include. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-busy.c | 1 + drivers/clk/imx/clk-composite-7ulp.c | 1 + drivers/clk/imx/clk-fixup-mux.c | 1 + drivers/clk/imx/clk

[PATCH] dt-bindings: w1: Convert i.MX to json-schema

2020-08-04 Thread Anson Huang
Convert the i.MX one wire binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/w1/fsl-imx-owire.txt | 18 -- .../devicetree/bindings/w1/fsl-imx-owire.yaml | 42 ++ 2 files changed, 42 insertions(+), 18

[PATCH 3/3] dt-bindings: crypto: Convert i.MX sahara to json-schema

2020-08-04 Thread Anson Huang
Convert the i.MX sahara binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/crypto/fsl-imx-sahara.txt | 15 -- .../devicetree/bindings/crypto/fsl-imx-sahara.yaml | 35 ++ 2 files changed, 35 insertions(+), 15

[PATCH 2/3] dt-bindings: crypto: Convert i.MX SCC to json-schema

2020-08-04 Thread Anson Huang
Convert the i.MX SCC binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/crypto/fsl-imx-scc.txt | 21 - .../devicetree/bindings/crypto/fsl-imx-scc.yaml| 52 ++ 2 files changed, 52 insertions(+), 21 deletions

[PATCH 1/3] dt-bindings: crypto: Convert MXS DCP to json-schema

2020-08-04 Thread Anson Huang
Convert the MXS DCP binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/crypto/fsl-dcp.txt | 18 .../devicetree/bindings/crypto/fsl-dcp.yaml| 49 ++ 2 files changed, 49 insertions(+), 18 deletions

[PATCH 2/2] dt-bindings: fsl: Convert i.MX7ULP SIM to json-schema

2020-08-04 Thread Anson Huang
Convert the i.MX7ULP SIM binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../bindings/arm/freescale/fsl,imx7ulp-sim.txt | 16 -- .../bindings/arm/freescale/fsl,imx7ulp-sim.yaml| 36 ++ 2 files changed, 36 insertions(+), 16

[PATCH 1/2] dt-bindings: fsl: Convert i.MX7ULP PM to json-schema

2020-08-04 Thread Anson Huang
Convert the i.MX7ULP PM binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../bindings/arm/freescale/fsl,imx7ulp-pm.txt | 23 - .../bindings/arm/freescale/fsl,imx7ulp-pm.yaml | 40 ++ 2 files changed, 40 insertions(+), 23

[PATCH 1/3] dt-bindings: serial: Convert i.MX uart to json-schema

2020-08-04 Thread Anson Huang
Convert the i.MX uart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/serial/fsl-imx-uart.txt| 40 -- .../devicetree/bindings/serial/fsl-imx-uart.yaml | 92 ++ 2 files changed, 92 insertions(+), 40 deletions

[PATCH 2/3] dt-bindings: serial: Convert MXS auart to json-schema

2020-08-04 Thread Anson Huang
Convert the MXS auart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/serial/fsl-mxs-auart.txt | 53 .../devicetree/bindings/serial/fsl-mxs-auart.yaml | 93 ++ 2 files changed, 93 insertions(+), 53

[PATCH 3/3] dt-bindings: serial: Convert NXP lpuart to json-schema

2020-08-04 Thread Anson Huang
Convert the NXP lpuart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/serial/fsl-lpuart.txt | 43 .../devicetree/bindings/serial/fsl-lpuart.yaml | 79 ++ 2 files changed, 79 insertions(+), 43

[PATCH] dt-bindings: rng: Convert i.MX to json-schema

2020-08-05 Thread Anson Huang
Convert the i.MX rng binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/rng/imx-rng.txt | 23 -- Documentation/devicetree/bindings/rng/imx-rng.yaml | 50 ++ 2 files changed, 50 insertions(+), 23 deletions

[PATCH] dt-bindings: perf: Convert i.MX DDR to json-schema

2020-08-05 Thread Anson Huang
Convert the i.MX DDR perf binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/perf/fsl-imx-ddr.txt | 22 .../devicetree/bindings/perf/fsl-imx-ddr.yaml | 39 ++ 2 files changed, 39 insertions(+), 22

[PATCH] dt-bindings: nvmem: Convert snvs lpgpr to json-schema

2020-08-05 Thread Anson Huang
Convert the snvs lpgpr binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/nvmem/snvs-lpgpr.txt | 21 --- .../devicetree/bindings/nvmem/snvs-lpgpr.yaml | 31 ++ 2 files changed, 31 insertions(+), 21

[PATCH] dt-bindings: ata: Convert i.MX sata to json-schema

2020-08-05 Thread Anson Huang
Convert the i.MX sata binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/ata/imx-sata.txt | 37 -- .../devicetree/bindings/ata/imx-sata.yaml | 81 ++ 2 files changed, 81 insertions(+), 37 deletions

[PATCH] dt-bindings: sound: Convert NXP spdif to json-schema

2020-08-05 Thread Anson Huang
Convert the NXP SPDIF binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/sound/fsl,spdif.txt| 68 - .../devicetree/bindings/sound/fsl,spdif.yaml | 108 + 2 files changed, 108 insertions(+), 68

[PATCH V2] PCI: imx6: Do not output error message when devm_clk_get() failed with -EPROBE_DEFER

2020-08-10 Thread Anson Huang
When devm_clk_get() returns -EPROBE_DEFER, i.MX6 PCI driver should NOT print error message, use dev_err_probe() to handle it. Signed-off-by: Anson Huang --- drivers/pci/controller/dwc/pci-imx6.c | 35 +++ 1 file changed, 15 insertions(+), 20 deletions(-) diff

RE: [PATCH] PCI: imx6: Do not output error message when devm_clk_get() failed with -EPROBE_DEFER

2020-08-10 Thread Anson Huang
Hi, Lucas > Subject: Re: [PATCH] PCI: imx6: Do not output error message when > devm_clk_get() failed with -EPROBE_DEFER > > Am Dienstag, den 04.08.2020, 13:38 +0800 schrieb Anson Huang: > > When devm_clk_get() returns -EPROBE_DEFER, i.MX6 PCI driver should NOT > > p

[PATCH 2/2] thermal: imx8mm: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/thermal/imx8mm_thermal.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/thermal

[PATCH 1/2] thermal: imx: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/thermal/imx_thermal.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/drivers

[PATCH] soc: imx: gpcv2: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/soc/imx/gpcv2.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/soc/imx/gpcv2.c b

[PATCH 1/3] pwm: imx-tpm: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/pwm/pwm-imx-tpm.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/pwm/pwm-imx-tpm.c b

[PATCH 3/3] pwm: imx1: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/pwm/pwm-imx1.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/drivers/pwm/pwm

[PATCH 2/3] pwm: imx27: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/pwm/pwm-imx27.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/pwm

[PATCH 2/3] iio: light: isl29018: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/iio/light/isl29018.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/iio/light/isl29018.c

[PATCH 1/3] iio: accel: mma8452: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/iio/accel/mma8452.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/drivers/iio

[PATCH 3/3] iio: magnetometer: mag3110: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/iio/magnetometer/mag3110.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/drivers

[PATCH 2/2] irqchip/imx-irqsteer: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/irqchip/irq-imx-irqsteer.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq

[PATCH 1/2] irqchip/imx-intmux: Use dev_err_probe() to simplify error handling

2020-08-10 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/irqchip/irq-imx-intmux.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq

RE: [PATCH 1/2] irqchip/imx-intmux: Use dev_err_probe() to simplify error handling

2020-08-11 Thread Anson Huang
Hi, Ahmad > Subject: Re: [PATCH 1/2] irqchip/imx-intmux: Use dev_err_probe() to simplify > error handling > > Hello, > > On 8/11/20 6:25 AM, Anson Huang wrote: > > dev_err_probe() can reduce code size, uniform error handling and > > record the defer probe r

[PATCH V2 2/2] irqchip/imx-irqsteer: Use dev_err_probe() to simplify error handling

2020-08-11 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/irqchip/irq-imx-irqsteer.c | 9 +++-- 1 file changed

[PATCH V2 1/2] irqchip/imx-intmux: Use dev_err_probe() to simplify error handling

2020-08-11 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/irqchip/irq-imx-intmux.c | 9 +++-- 1 file changed, 3

[PATCH V2 1/3] pwm: imx-tpm: Use dev_err_probe() to simplify error handling

2020-08-11 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/pwm/pwm-imx-tpm.c | 10 +++--- 1 file changed, 3

[PATCH V2 2/3] pwm: imx27: Use dev_err_probe() to simplify error handling

2020-08-11 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/pwm/pwm-imx27.c | 25 ++--- 1 file

[PATCH V2 3/3] pwm: imx1: Use dev_err_probe() to simplify error handling

2020-08-11 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/pwm/pwm-imx1.c | 21 ++--- 1 file changed

[PATCH V2 1/2] thermal: imx: Use dev_err_probe() to simplify error handling

2020-08-11 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/thermal/imx_thermal.c | 22 ++ 1 file

[PATCH V2 2/2] thermal: imx8mm: Use dev_err_probe() to simplify error handling

2020-08-11 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- changes since V1: - remove redundant return value print. --- drivers/thermal/imx8mm_thermal.c | 10 +++--- 1 file changed

[PATCH 1/3] arm64: dts: imx8mm: Correct WDOG_B pin configuration

2020-10-09 Thread Anson Huang
of flexibility on different board design, just enable it for all i.MX8MM boards. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi| 2 +- arch/arm64/boot/dts/freescale/imx8mm-var-som.dtsi| 2 +- 3

[PATCH 3/3] arm64: dts: imx8mp-evk: Correct WDOG_B pin configuration

2020-10-09 Thread Anson Huang
of flexibility on different board design, just enable it for all i.MX8MP boards. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts

[PATCH 2/3] arm64: dts: imx8mn: Correct WDOG_B pin configuration

2020-10-09 Thread Anson Huang
of flexibility on different board design, just enable it for all i.MX8MN boards. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64

RE: [PATCH V3 1/4] gpio: mxc: Support module build

2020-10-12 Thread Anson Huang
Hi, Shawn > Subject: Re: [PATCH V3 1/4] gpio: mxc: Support module build > > On Thu, Sep 17, 2020 at 7:40 AM Anson Huang > wrote: > > > Change config to tristate, add module device table, module author, > > description and license to support module

RE: [PATCH 1/3] arm64: dts: imx8mm: Correct WDOG_B pin configuration

2020-10-12 Thread Anson Huang
Hi, Krzysztof > Subject: Re: [PATCH 1/3] arm64: dts: imx8mm: Correct WDOG_B pin > configuration > > On Fri, 9 Oct 2020 at 09:52, Anson Huang wrote: > > > > Different revision of i.MX8MM EVK boards may have different external > > pull up registor desig

[PATCH V2 2/3] arm64: dts: imx8mn: Correct WDOG_B pin configuration

2020-10-12 Thread Anson Huang
. Signed-off-by: Anson Huang --- Changes since V1: - Provide more explanation of removing schmitt input and enabling open drain in commit msg. --- arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi | 2 +- 2 files changed, 2 insertions

[PATCH V2 1/3] arm64: dts: imx8mm: Correct WDOG_B pin configuration

2020-10-12 Thread Anson Huang
. Signed-off-by: Anson Huang --- Changes since V1: - Provide more explanation of removing schmitt input and enabling open drain in commit msg. --- arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi| 2 +- arch/arm64/boot/dts

[PATCH V2 3/3] arm64: dts: imx8mp-evk: Correct WDOG_B pin configuration

2020-10-12 Thread Anson Huang
. Signed-off-by: Anson Huang --- Changes since V1: - Provide more explanation of removing schmitt input and enabling open drain in commit msg. --- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale

[PATCH V3 4/4] ARM: multi_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-09-16 Thread Anson Huang
i.MX SoC GPIO driver provides the basic functions of GPIO pin operations and IRQ operations, it is now changed from "def_bool y" to "tristate", so it should be explicitly enabled to make sure all consumers work normally. Signed-off-by: Anson Huang --- changes since V2:

[PATCH V3 2/4] arm64: defconfig: Build in CONFIG_GPIO_MXC by default

2020-09-16 Thread Anson Huang
i.MX SoC GPIO driver provides the basic functions of GPIO pin operations and IRQ operations, it is now changed from "def_bool y" to "tristate", so it should be explicitly enabled to make sure all consumers work normally. Signed-off-by: Anson Huang --- changes since V2:

[PATCH V3 1/4] gpio: mxc: Support module build

2020-09-16 Thread Anson Huang
subsys_initcall(), NOT module_platform_driver(). Signed-off-by: Anson Huang --- no change. --- drivers/gpio/Kconfig| 2 +- drivers/gpio/gpio-mxc.c | 6 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 5cfdaf3..c7292a5 100644

[PATCH V3 3/4] ARM: imx_v6_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-09-16 Thread Anson Huang
i.MX SoC GPIO driver provides the basic functions of GPIO pin operations and IRQ operations, it is now changed from "def_bool y" to "tristate", so it should be explicitly enabled to make sure all consumers work normally. Signed-off-by: Anson Huang --- changes since V2:

RE: [PATCH V2 1/3] pwm: imx-tpm: Use dev_err_probe() to simplify error handling

2020-09-17 Thread Anson Huang
Gentle ping... > Subject: [PATCH V2 1/3] pwm: imx-tpm: Use dev_err_probe() to simplify error > handling > > dev_err_probe() can reduce code size, uniform error handling and record the > defer probe reason etc., use it to simplify the code. > > Signed-off-by: Anson Huang

[PATCH] i2c: imx: Use dev_err_probe() to simplify error handling

2020-08-11 Thread Anson Huang
dev_err_probe() can reduce code size, uniform error handling and record the defer probe reason etc., use it to simplify the code. Signed-off-by: Anson Huang --- drivers/i2c/busses/i2c-imx.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx.c

[PATCH V2] dt-bindings: gpio: Convert vf610 to json-schema

2020-08-12 Thread Anson Huang
Convert the vf610 gpio binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- changes since V1: - fix reg property to pass build; - add "additionalProperties: false". --- .../devicetree/bindings/gpio/gpio-vf610.txt

[PATCH V2 5/5] dt-bindings: serial: Convert NXP lpuart to json-schema

2020-08-12 Thread Anson Huang
Convert the NXP lpuart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- no change. --- .../devicetree/bindings/serial/fsl-lpuart.txt | 43 .../devicetree/bindings/serial/fsl-lpuart.yaml | 79 ++ 2 files changed, 79

[PATCH V2 1/5] dt-bindings: clock: Update i.MX28 example

2020-08-12 Thread Anson Huang
-clock.example.dt.yaml: serial@8006a000: 'dmas' is a required property Documentation/devicetree/bindings/clock/imx28-clock.example.dt.yaml: serial@8006a000: 'dma-names' is a required property Signed-off-by: Anson Huang --- new patch. --- Documentation/devicetree/bindings/clock/imx28-clock.yaml | 6

[PATCH V2 3/5] dt-bindings: serial: Convert i.MX uart to json-schema

2020-08-12 Thread Anson Huang
Convert the i.MX uart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- no change. --- .../devicetree/bindings/serial/fsl-imx-uart.txt| 40 -- .../devicetree/bindings/serial/fsl-imx-uart.yaml | 92 ++ 2 files changed, 92 insertions

[PATCH V2 4/5] dt-bindings: serial: Convert MXS auart to json-schema

2020-08-12 Thread Anson Huang
Convert the MXS auart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- changes since V1: - update examples to align with i.MX23/i.MX28 clock bindings; - add minItem to clocks/clock-names property as i.MX23/i.MX28 have optional clocks

[PATCH V2 2/5] dt-bindings: clock: Update i.MX23 example

2020-08-12 Thread Anson Huang
: serial@8006c000: 'dmas' is a required property Documentation/devicetree/bindings/clock/imx23-clock.example.dt.yaml: serial@8006c000: 'dma-names' is a required property Signed-off-by: Anson Huang --- new patch. --- Documentation/devicetree/bindings/clock/imx23-clock.yaml | 4 +++- 1 file

[PATCH] arm64: dts: imx8mp: Update pinfunc header file

2020-08-14 Thread Anson Huang
Update some pins' name and adjust pin options to i.MX8MP pinfunc header file according to latest reference manual. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h | 360 - 1 file changed, 114 insertions(+), 246 deletions(-) diff --git

RE: [PATCH 1/2] pinctrl: imx: Support building SCU pinctrl driver as module

2020-08-31 Thread Anson Huang
as module; > - All drivers using SCU pinctrl driver need to initialize the > SCU related function callback; > - Change PINCTR_IMX_SCU to tristate; > - Add module author, description and license. > > With above changes, i.MX SCU pinctrl driver can be built as m

[PATCH] dt-bindings: regulator: Convert pfuze100 to json-schema

2020-08-02 Thread Anson Huang
Convert the pfuze100 regulator binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/regulator/pfuze100.txt | 394 - .../devicetree/bindings/regulator/pfuze100.yaml| 186 ++ 2 files changed, 186 insertions

[PATCH] ARM: dts: imx7ulp: Correct gpio ranges

2020-08-03 Thread Anson Huang
Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7ulp.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index 3674396..b7ea37a 100644 --- a/arch/arm/boot/dts/imx7ulp.dtsi +++ b/arch/arm/boot/dts/im

RE: [PATCH] arm64: dts: imx8mp: Update pinfunc header file

2020-08-23 Thread Anson Huang
Hi, Shawn > Subject: Re: [PATCH] arm64: dts: imx8mp: Update pinfunc header file > > On Fri, Aug 14, 2020 at 05:27:19PM +0800, Anson Huang wrote: > > Update some pins' name and adjust pin options to i.MX8MP pinfunc > > header file according to latest reference manual. > &g

RE: [PATCH V2 1/4] gpio: mxc: Support module build

2020-09-13 Thread Anson Huang
Hi, Linus > Subject: Re: [PATCH V2 1/4] gpio: mxc: Support module build > > On Thu, Sep 3, 2020 at 3:31 AM Anson Huang > wrote: > > > Hi, Linus > > Do you have chance to take a look at this patch series? > > I've seen there was plenty discussio

[PATCH V2 RESEND 3/4] ARM: imx_v6_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-09-13 Thread Anson Huang
i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as built-in manually. Signed-off-by: Anson Huang --- No change. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs

[PATCH V2 RESEND 4/4] ARM: multi_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-09-13 Thread Anson Huang
i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as built-in manually. Signed-off-by: Anson Huang --- new patch. --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig

[PATCH V2 RESEND 1/4] gpio: mxc: Support module build

2020-09-13 Thread Anson Huang
subsys_initcall(), NOT module_platform_driver(). Signed-off-by: Anson Huang --- Changes since V1: - no code change, just add detail explanation about why this patch does NOT support module unloaded. --- drivers/gpio/Kconfig| 2 +- drivers/gpio/gpio-mxc.c | 6 ++ 2 files changed, 7

[PATCH V2 RESEND 2/4] arm64: defconfig: Build in CONFIG_GPIO_MXC by default

2020-09-13 Thread Anson Huang
i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as built-in manually. Signed-off-by: Anson Huang --- No change. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 63003ec..c8fca1a

RE: [PATCH V2 RESEND 2/4] arm64: defconfig: Build in CONFIG_GPIO_MXC by default

2020-09-15 Thread Anson Huang
Hi, Krzysztof > Subject: Re: [PATCH V2 RESEND 2/4] arm64: defconfig: Build in > CONFIG_GPIO_MXC by default > > On Mon, 14 Sep 2020 at 05:36, Anson Huang > wrote: > > > > i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as > > built-in ma

[PATCH] thermal: imx: Do NOT return -EPROBE_DEFER when "#cooling-cells" is present

2020-10-21 Thread Anson Huang
r can continue probe. Signed-off-by: Anson Huang --- drivers/thermal/imx_thermal.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index 9f00182..df60dcb 100644 --- a/drivers/thermal/imx_the

[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

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

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 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-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 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 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

[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

[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 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 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] 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 +++

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

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

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

[PATCH V3 4/5] thermal: qoriq: Use __maybe_unused instead of #if CONFIG_PM_SLEEP

2019-07-29 Thread Anson . Huang
From: Anson Huang Use __maybe_unused for power management related functions instead of #if CONFIG_PM_SLEEP to simply the code. Signed-off-by: Anson Huang --- No changes. --- drivers/thermal/qoriq_thermal.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH V3 3/5] thermal: qoriq: Use devm_platform_ioremap_resource() instead of of_iomap()

2019-07-29 Thread Anson . Huang
From: Anson Huang Use devm_platform_ioremap_resource() instead of of_iomap() to save the iounmap() call in error handle path; Signed-off-by: Anson Huang --- No change, just adjust the patch sequence and handle the conflicts. --- drivers/thermal/qoriq_thermal.c | 18 ++ 1 file

[PATCH V3 5/5] dt-bindings: thermal: qoriq: Add optional clocks property

2019-07-29 Thread Anson . Huang
From: Anson Huang Some platforms like i.MX8M series SoCs have clock control for TMU, add optional clocks property to the binding doc. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- No changes, noted the i.MX8M series SoCs need this clock in commit log. --- Documentation/devicetree

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

2019-07-29 Thread Anson . Huang
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: Anson Huang Reviewed-by: Guido Günther --- Changes since V2: - move this patch as first patch in the series

[PATCH V3 2/5] thermal: qoriq: Fix error path of calling qoriq_tmu_register_tmu_zone fail

2019-07-29 Thread Anson . Huang
From: Anson Huang When registering tmu zone failed, the error path should be err_tmu instead of err_iomap, as iounmap() needs to be called. Signed-off-by: Anson Huang --- New patch. --- drivers/thermal/qoriq_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

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 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

[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 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 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

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

RE: [PATCH 2/2] arm64: dts: imx8mm: Assign highest opp as suspend opp

2019-07-08 Thread Anson Huang
Hi, Viresh > On 08-07-19, 08:43, Anson Huang wrote: > > Hi, Viresh > > > > > On 04-07-19, 07:49, Leonard Crestez wrote: > > > > On 7/4/2019 9:23 AM, anson.hu...@nxp.com wrote: > > > > > From: Anson Huang > > > > > &g

RE: [PATCH] cpufreq: imx-cpufreq-dt: Assign max supported frequency as suspend frequency

2019-07-08 Thread Anson Huang
be NOT > > supported according to speed garding and market segment fuse settings. > > So we can assign the cpufreq policy's suspend_freq with max available > > frequency provided by cpufreq driver. > > > > Signed-off-by: Anson Huang > > > diff --git a/d

RE: [PATCH 2/2] arm64: dts: imx8mm: Assign highest opp as suspend opp

2019-07-08 Thread Anson Huang
Hi, Viresh > On 08-07-19, 08:54, Anson Huang wrote: > > Each OPP has "opp-supported-hw" property as below, the first value > > needs to be checked with speed grading fuse, and the second one needs > > to be checked with market segment fuse, ONLY both of them passed,

[PATCH 3/3] arm64: dts: imx8mm: Add opp-suspend property to OPP table

2019-07-09 Thread Anson . Huang
From: Anson Huang Add opp-suspend property to each OPP, the of opp core will select the OPP HW supported and with highest rate to be suspend opp, it will speed up the suspend/resume process. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 3 +++ 1 file changed, 3

[PATCH 2/3] arm64: dts: imx8mq: Add opp-suspend property to OPP table

2019-07-09 Thread Anson . Huang
From: Anson Huang Add opp-suspend property to each OPP, the of opp core will select the OPP HW supported and with highest rate to be suspend opp, it will speed up the suspend/resume process. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 4 1 file changed, 4

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