Skip to contentSkip to conversation

iio: imx8qxp-adc: Add driver support for NXP IMX8QXP ADC

PATCH Applied Cai Huoqing 3 participants 9 messages Sep 25, 2021 – Sep 26, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v6 cover iio: imx8qxp-adc: Add driver support for NXP IMX8QXP ADC

The NXP i.MX 8QuadXPlus SOC has a new ADC IP. These patches add driver support for this ADC.

dt-bindings: iio: adc:
v1->v2:
*Fix some indentation issues.
*Mark status as okay.
*Change clock2 source.
v3->v4:
*Remove 'status' from examples. *Remove unused 'state'.
*Remove interrupts-parent.
*Change num of address/size-cells from 1 to 2.
v4->v5:
*Remove unused properties.

iio: imx8qxp-adc:
v1->v2:
*Squash patches 1, 2, 3, and 5 into a single patch.
*Add device specific prefix.
*Remove the brackets around individual numbers.
*Make use of FIELD_PREP() and FIELD_GET().
*Remove a lot of cache values.
*Replace mlock with adc->lock.
*Move adc->value read from isr to the completion.
*Set pm_runtime_disable/_put_noidle() before adc_disable.
*Add error handler-err_disable_reg/err_unprepare_clk.
v2->v3:
*Add "return 0" to adc_runtime_resume().
v3->v4:
*Sort header file declarations in alphabetical order.
*Remove explicitly cast from "void *".
*Make use of dev_err_probe().
*Add some blank lines to help readability.
v4->v5:
*Update commit message.
*Remove unused headers.
*Wrap imx8qxp_adc_read_raw() at a shorter line length that helps readability. *Deal with clock/regulator in probe/remove().
*Use ADC_DRIVER_NAME instead of dev_name(dev).
*Don't use dev_error_probe() without returning -PROBE_DEFER.
v5->v6:
*Rename the error path labels to indicate the action that will be performed.

v1 link:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
v3 link:
https://patchwork.kernel.org/project/linux-arm-kernel/cover/[email protected]/
v4 link:
https://patchwork.kernel.org/project/linux-arm-kernel/cover/[email protected]/
v5 link:
https://patchwork.kernel.org/project/linux-arm-kernel/cover/[email protected]/

Cai Huoqing (3):
iio: imx8qxp-adc: Add driver support for NXP IMX8QXP ADC
iio: imx8qxp-adc: dt-bindings: iio: adc: Add binding documentation for
NXP IMX8QXP ADC
MAINTAINERS: Add the driver info of the NXP IMX8QXP

 .../bindings/iio/adc/nxp,imx8qxp-adc.yaml     |  78 +++
 MAINTAINERS                                   |   7 +
 drivers/iio/adc/Kconfig                       |  10 +
 drivers/iio/adc/Makefile                      |   1 +
 drivers/iio/adc/imx8qxp-adc.c                 | 492 ++++++++++++++++++
 5 files changed, 588 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml
 create mode 100644 drivers/iio/adc/imx8qxp-adc.c
Signature · 1 line
2.25.1
#1 lore raw

PATCH v6 1/3 iio: imx8qxp-adc: Add driver support for NXP IMX8QXP ADC

The NXP i.MX 8QuadXPlus SOC has a new ADC IP, so add driver support for this ADC.

---
v1->v2:
*Squash patches 1, 2, 3, and 5 into a single patch.
*Add device specific prefix.
*Remove the brackets around individual numbers.
*Make use of FIELD_PREP() and FIELD_GET().
*Remove a lot of cache values.
*Replace mlock with adc->lock.
*Move adc->value read from isr to the completion.
*Set pm_runtime_disable/_put_noidle() before adc_disable.
*Add error handler-err_disable_reg/err_unprepare_clk.
v2->v3:
*Add "return 0" to adc_runtime_resume().
v3->v4:
*Sort header file declarations in alphabetical order.
*Remove explicitly cast from "void *".
*Make use of dev_err_probe().
*Add some blank lines to help readability.
v4->v5:
*Update commit message.
*Remove unused headers.
*Wrap imx8qxp_adc_read_raw() at a shorter line length that helps readability. *Deal with clock/regulator in probe/remove().
*Use ADC_DRIVER_NAME instead of dev_name(dev).
*Don't use dev_error_probe() without returning -PROBE_DEFER.
v5->v6:
*Rename the error path labels to indicate the action that will be performed.

v1 link:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
v3 link:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
v4 link:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
v5 link:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/

 drivers/iio/adc/Kconfig       |  10 +
 drivers/iio/adc/Makefile      |   1 +
 drivers/iio/adc/imx8qxp-adc.c | 494 ++++++++++++++++++++++++++++++++++
 3 files changed, 505 insertions(+)
 create mode 100644 drivers/iio/adc/imx8qxp-adc.c
drivers/iio/adc/Kconfig +10 -0
index af168e1c9fdb..fa8ad63d6ac2 100644
@@ -530,6 +530,16 @@ config IMX7D_ADC
 	  This driver can also be built as a module. If so, the module will be
 	  called imx7d_adc.
 
+config IMX8QXP_ADC
+	tristate "NXP IMX8QXP ADC driver"
+	depends on ARCH_MXC_ARM64 || COMPILE_TEST
+	depends on HAS_IOMEM
+	help
+	  Say yes here to build support for IMX8QXP ADC.
+
+	  This driver can also be built as a module. If so, the module will be
+	  called imx8qxp-adc.
+
 config LP8788_ADC
 	tristate "LP8788 ADC driver"
 	depends on MFD_LP8788
drivers/iio/adc/Makefile +1 -0
index d68550f493e3..d3f53549720c 100644
@@ -46,6 +46,7 @@ obj-$(CONFIG_FSL_MX25_ADC) += fsl-imx25-gcq.o
 obj-$(CONFIG_HI8435) += hi8435.o
 obj-$(CONFIG_HX711) += hx711.o
 obj-$(CONFIG_IMX7D_ADC) += imx7d_adc.o
+obj-$(CONFIG_IMX8QXP_ADC) += imx8qxp-adc.o
 obj-$(CONFIG_INA2XX_ADC) += ina2xx-adc.o
 obj-$(CONFIG_INGENIC_ADC) += ingenic-adc.o
 obj-$(CONFIG_INTEL_MRFLD_ADC) += intel_mrfld_adc.o
drivers/iio/adc/imx8qxp-adc.c new file +494 -0

494 lines not on this page · raw message

Signature · 1 line
2.25.1
maintainer
#2 lore raw
Quoted 4 lines · On Sat, 25 Sep 2021 10:05:45 +0800 Cai Huoqing <[email protected]> wrote:

The NXP i.MX 8QuadXPlus SOC has a new ADC IP, so add driver support for this ADC.

Hi Cai Huoqing,

Having had a 'final' read through of the driver, I am basically happy to merge this after Fabio has had time for another look (plus anyone else who wishes to of course!)

There were a few minor things inline though that I'll tidy up whilst applying. If you do a v7 for some other reason please sort these out as well.

Thanks,

Jonathan

...

drivers/iio/adc/imx8qxp-adc.c line 41

Quoted 3 lines
drivers/iio/adc/imx8qxp-adc.c new file +3 -0
+#define IMX8QXP_ADR_ADC_TCTRL(tid)	(0xc0 + tid * 4)
+#define IMX8QXP_ADR_ADC_CMDH(cid)	(0x100 + cid * 8)
+#define IMX8QXP_ADR_ADC_CMDL(cid)	(0x104 + cid * 8)

In macros, it is always a good idea to put brackets around any use of parameters so as to avoid potential odd issues due to operator precedence.

(0xc0 + (tid) * 4)

Quoted 2 lines
drivers/iio/adc/imx8qxp-adc.c new file +2 -0
+#define IMX8QXP_ADR_ADC_RESFIFO		0x300
+#define IMX8QXP_ADR_ADC_TST		0xffc

...

drivers/iio/adc/imx8qxp-adc.c line 94

Quoted 8 lines
drivers/iio/adc/imx8qxp-adc.c new file +8 -0
+
+struct imx8qxp_adc {
+	struct device *dev;
+	void __iomem *regs;
+	struct clk *clk;
+	struct clk *ipg_clk;
+	struct regulator *vref;
+	struct mutex lock;

A lock should have documentation to identify what it's precise scope is. I can add

/* Serialise ADC channel reads */
above the lock definition whilst applying if you aren't doing a v7 for other reasons.

Quoted 2 lines
(quoted diff) +2 -0
+	struct completion completion;
+};

...

drivers/iio/adc/imx8qxp-adc.c line 263

Quoted 5 lines
drivers/iio/adc/imx8qxp-adc.c new file +5 -0
+
+static irqreturn_t imx8qxp_adc_isr(int irq, void *dev_id)
+{
+	struct imx8qxp_adc *adc = dev_id;
+

Really minor, but the blank line here doesn't help readability much and is inconsistent with the rest of the driver. I might remove this whilst applying if nothing else comes up.

Quoted 11 lines
drivers/iio/adc/imx8qxp-adc.c new file +11 -0
+	u32 fifo_count;
+
+	fifo_count = FIELD_GET(IMX8QXP_ADC_FCTRL_FCOUNT_MASK,
+			       readl(adc->regs + IMX8QXP_ADR_ADC_FCTRL));
+
+	if (fifo_count)
+		complete(&adc->completion);
+
+	return IRQ_HANDLED;
+}
+

...

#3 lore raw
Quoted 7 lines · Jonathan Cameron
Quoted 4 lines · On Sat, 25 Sep 2021 10:05:45 +0800 Cai Huoqing <[email protected]> wrote:

The NXP i.MX 8QuadXPlus SOC has a new ADC IP, so add driver support for this ADC.

Hi Jonathan
Thanks for your feedback.

Quoted 7 lines

Hi Cai Huoqing,

Having had a 'final' read through of the driver, I am basically happy to merge this after Fabio has had time for another look (plus anyone else who wishes to of course!)

There were a few minor things inline though that I'll tidy up whilst applying.

Feel free to fix these directly.

Quoted 1 line

If you do a v7 for some other reason please sort these out as well.

Sure, if v7 is needed for other issue, I will add these changes BTW.

Many thanks,
Cai

Quoted 65 lines

Thanks,

Jonathan

...

drivers/iio/adc/imx8qxp-adc.c line 41

Quoted 3 lines
drivers/iio/adc/imx8qxp-adc.c new file +3 -0
+#define IMX8QXP_ADR_ADC_TCTRL(tid)	(0xc0 + tid * 4)
+#define IMX8QXP_ADR_ADC_CMDH(cid)	(0x100 + cid * 8)
+#define IMX8QXP_ADR_ADC_CMDL(cid)	(0x104 + cid * 8)

In macros, it is always a good idea to put brackets around any use of parameters so as to avoid potential odd issues due to operator precedence.

(0xc0 + (tid) * 4)

Quoted 2 lines
drivers/iio/adc/imx8qxp-adc.c new file +2 -0
+#define IMX8QXP_ADR_ADC_RESFIFO		0x300
+#define IMX8QXP_ADR_ADC_TST		0xffc

...

drivers/iio/adc/imx8qxp-adc.c line 94

Quoted 8 lines
drivers/iio/adc/imx8qxp-adc.c new file +8 -0
+
+struct imx8qxp_adc {
+	struct device *dev;
+	void __iomem *regs;
+	struct clk *clk;
+	struct clk *ipg_clk;
+	struct regulator *vref;
+	struct mutex lock;

A lock should have documentation to identify what it's precise scope is. I can add

/* Serialise ADC channel reads */
above the lock definition whilst applying if you aren't doing a v7 for other reasons.

Quoted 2 lines
(quoted diff) +2 -0
+	struct completion completion;
+};

...

drivers/iio/adc/imx8qxp-adc.c line 263

Quoted 5 lines
drivers/iio/adc/imx8qxp-adc.c new file +5 -0
+
+static irqreturn_t imx8qxp_adc_isr(int irq, void *dev_id)
+{
+	struct imx8qxp_adc *adc = dev_id;
+

Really minor, but the blank line here doesn't help readability much and is inconsistent with the rest of the driver. I might remove this whilst applying if nothing else comes up.

Quoted 11 lines
drivers/iio/adc/imx8qxp-adc.c new file +11 -0
+	u32 fifo_count;
+
+	fifo_count = FIELD_GET(IMX8QXP_ADC_FCTRL_FCOUNT_MASK,
+			       readl(adc->regs + IMX8QXP_ADR_ADC_FCTRL));
+
+	if (fifo_count)
+		complete(&adc->completion);
+
+	return IRQ_HANDLED;
+}
+

...

reviewer Reviewed-by
#4 lore raw
In reply to Jonathan Cameron

Hi Jonathan,

Quoted 7 lines · Jonathan Cameron
Quoted 3 lines · On Sat, 25 Sep 2021 10:05:45 +0800 Cai Huoqing <[email protected]> wrote:

The NXP i.MX 8QuadXPlus SOC has a new ADC IP, so add driver support for this ADC.

Quoted 6 lines
Quoted 1 line

Hi Cai Huoqing,

Having had a 'final' read through of the driver, I am basically happy to merge this after Fabio has had time for another look (plus anyone else who wishes to of course!)

It looks good to me:

maintainer
#5 lore raw
In reply to Cai Huoqing
Quoted 4 lines · On Sat, 25 Sep 2021 10:05:45 +0800 Cai Huoqing <[email protected]> wrote:

The NXP i.MX 8QuadXPlus SOC has a new ADC IP, so add driver support for this ADC.

Hi. My local build tests throw up a "set but unused" warning which made me take another look. I've fixed as commented below. Shout if that was not the right fix!

Quoted 9 lines
drivers/iio/adc/imx8qxp-adc.c new file +9 -0
+
+static void imx8qxp_adc_reg_config(struct imx8qxp_adc *adc, int channel)
+{
+	u32 adc_cfg, adc_tctrl, adc_cmdl, adc_cmdh;
+
+	/* ADC configuration */
+	adc_cfg = FIELD_PREP(IMX8QXP_ADC_CFG_PWREN_MASK, 1) |
+		  FIELD_PREP(IMX8QXP_ADC_CFG_PUDLY_MASK, 0x80)|
+		  FIELD_PREP(IMX8QXP_ADC_CFG_REFSEL_MASK, 0) |

drivers/iio/adc/imx8qxp-adc.c line 152

Quoted 10 lines
drivers/iio/adc/imx8qxp-adc.c new file +10 -0
+		  FIELD_PREP(IMX8QXP_ADC_CFG_PWRSEL_MASK, 3) |
+		  FIELD_PREP(IMX8QXP_ADC_CFG_TPRICTRL_MASK, 0);
+	writel(adc_cfg, adc->regs + IMX8QXP_ADR_ADC_CFG);
+
+	/* config the trigger control */
+	adc_tctrl = FIELD_PREP(IMX8QXP_ADC_TCTRL_TCMD_MASK, 1) |
+		    FIELD_PREP(IMX8QXP_ADC_TCTRL_TDLY_MASK, 0) |
+		    FIELD_PREP(IMX8QXP_ADC_TCTRL_TPRI_MASK, IMX8QXP_ADC_TCTRL_TPRI_PRIORITY_HIGH) |
+		    FIELD_PREP(IMX8QXP_ADC_TCTRL_HTEN_MASK, IMX8QXP_ADC_TCTRL_HTEN_HW_TIRG_DIS);
+	writel(adc_cfg, adc->regs + IMX8QXP_ADR_ADC_TCTRL(0));

adc_tctrl I assume? I've changed it to that so shout if that was not what was intented.

Quoted 18 lines
drivers/iio/adc/imx8qxp-adc.c new file +18 -0
+
+	/* config the cmd */
+	adc_cmdl = FIELD_PREP(IMX8QXP_ADC_CMDL_CSCALE_MASK, IMX8QXP_ADC_CMDL_CHANNEL_SCALE_FULL) |
+		   FIELD_PREP(IMX8QXP_ADC_CMDL_MODE_MASK, IMX8QXP_ADC_CMDL_STANDARD_RESOLUTION) |
+		   FIELD_PREP(IMX8QXP_ADC_CMDL_DIFF_MASK, IMX8QXP_ADC_CMDL_MODE_SINGLE) |
+		   FIELD_PREP(IMX8QXP_ADC_CMDL_ABSEL_MASK, IMX8QXP_ADC_CMDL_SEL_A_A_B_CHANNEL) |
+		   FIELD_PREP(IMX8QXP_ADC_CMDL_ADCH_MASK, channel);
+	writel(adc_cmdl, adc->regs + IMX8QXP_ADR_ADC_CMDL(0));
+
+	adc_cmdh = FIELD_PREP(IMX8QXP_ADC_CMDH_NEXT_MASK, 0) |
+		   FIELD_PREP(IMX8QXP_ADC_CMDH_LOOP_MASK, 0) |
+		   FIELD_PREP(IMX8QXP_ADC_CMDH_AVGS_MASK, 7) |
+		   FIELD_PREP(IMX8QXP_ADC_CMDH_STS_MASK, 0) |
+		   FIELD_PREP(IMX8QXP_ADC_CMDH_LWI_MASK, IMX8QXP_ADC_CMDH_LWI_INCREMENT_DIS) |
+		   FIELD_PREP(IMX8QXP_ADC_CMDH_CMPEN_MASK, IMX8QXP_ADC_CMDH_CMPEN_DIS);
+	writel(adc_cmdh, adc->regs + IMX8QXP_ADR_ADC_CMDH(0));
+}
+
#6 lore raw

PATCH v6 2/3 dt-bindings: iio: adc: Add binding documentation for NXP IMX8QXP ADC

In reply to Cai Huoqing

The NXP i.MX 8QuadXPlus SOC a new ADC IP, so add
binding documentation for NXP IMX8QXP ADC.

---
v1->v2:
*Fix some indentation issues.
*Mark status as okay.
*Change clock2 source.
v3->v4:
*Remove 'status' from examples. *Remove unused 'state'.
*Remove interrupts-parent.
*Change num of address/size-cells from 1 to 2.
v4->v5:
*Remove unused properties
v1 link:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
v3 link:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
v4 link:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
v5 link:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/

 .../bindings/iio/adc/nxp,imx8qxp-adc.yaml     | 78 +++++++++++++++++++
 1 file changed, 78 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml
Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml new file +78 -0
new file mode 100644
index 000000000000..9c59a20a6032
@@ -0,0 +1,78 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/adc/nxp,imx8qxp-adc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP IMX8QXP ADC bindings
+
+maintainers:
+  - Cai Huoqing <[email protected]>
+
+description:
+  Supports the ADC found on the IMX8QXP SoC.
+
+properties:
+  compatible:
+    const: nxp,imx8qxp-adc
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 2
+
+  clock-names:
+    items:
+      - const: per
+      - const: ipg
+
+  assigned-clocks:
+    maxItems: 1
+
+  assigned-clock-rates:
+    maxItems: 1
+
+  power-domains:
+    maxItems: 1
+
+  "#io-channel-cells":
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - clock-names
+  - assigned-clocks
+  - assigned-clock-rates
+  - power-domains
+  - "#io-channel-cells"
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/firmware/imx/rsrc.h>
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+        adc@5a880000 {
+            compatible = "nxp,imx8qxp-adc";
+            reg = <0x0 0x5a880000 0x0 0x10000>;
+            interrupts = <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>;
+            clocks = <&clk IMX_SC_R_ADC_0>,
+                     <&clk IMX_SC_R_ADC_0>;
+            clock-names = "per", "ipg";
+            assigned-clocks = <&clk IMX_SC_R_ADC_0>;
+            assigned-clock-rates = <24000000>;
+            power-domains = <&pd IMX_SC_R_ADC_0>;
+            #io-channel-cells = <1>;
+        };
+    };
+...
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#7 lore raw

PATCH v6 3/3 MAINTAINERS: Add the driver info of the NXP IMX8QXP

In reply to Cai Huoqing

The NXP i.MX 8QuadXPlus SOC has a new ADC IP. After adding the driver support for it, I add the driver info of the NXP IMX8QXP ADC to MAINTAINERS file.

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
index 15a5fd8323f7..271fe42a1211 100644
@@ -13489,6 +13489,13 @@ S:	Maintained
 F:	Documentation/devicetree/bindings/display/imx/nxp,imx8mq-dcss.yaml
 F:	drivers/gpu/drm/imx/dcss/
 
+NXP i.MX 8QXP ADC DRIVER
+M:	Cai Huoqing <[email protected]>
+L:	[email protected]
+S:	Supported
+F:	Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml
+F:	drivers/iio/adc/imx8qxp-adc.c
+
 NXP PF8100/PF8121A/PF8200 PMIC REGULATOR DEVICE DRIVER
 M:	Jagan Teki <[email protected]>
 S:	Maintained
Signature · 1 line
2.25.1
maintainer Applied
#8 lore raw
In reply to Cai Huoqing
Quoted 2 lines · On Sat, 25 Sep 2021 10:05:44 +0800 Cai Huoqing <[email protected]> wrote:

The NXP i.MX 8QuadXPlus SOC has a new ADC IP. These patches add driver support for this ADC.

Hi Cai Huoqing,

Series applies with the changes discussed in replies to patch 1.

Applied to the togreg branch of iio.git which will be initially pushed out as testing to let 0-day see if it can find anything we missed.

Thanks,

Jonathan

Quoted 66 lines

dt-bindings: iio: adc:
v1->v2:
*Fix some indentation issues.
*Mark status as okay.
*Change clock2 source.
v3->v4:
*Remove 'status' from examples. *Remove unused 'state'.
*Remove interrupts-parent.
*Change num of address/size-cells from 1 to 2.
v4->v5:
*Remove unused properties.

iio: imx8qxp-adc:
v1->v2:
*Squash patches 1, 2, 3, and 5 into a single patch.
*Add device specific prefix.
*Remove the brackets around individual numbers.
*Make use of FIELD_PREP() and FIELD_GET().
*Remove a lot of cache values.
*Replace mlock with adc->lock.
*Move adc->value read from isr to the completion.
*Set pm_runtime_disable/_put_noidle() before adc_disable.
*Add error handler-err_disable_reg/err_unprepare_clk.
v2->v3:
*Add "return 0" to adc_runtime_resume().
v3->v4:
*Sort header file declarations in alphabetical order.
*Remove explicitly cast from "void *".
*Make use of dev_err_probe().
*Add some blank lines to help readability.
v4->v5:
*Update commit message.
*Remove unused headers.
*Wrap imx8qxp_adc_read_raw() at a shorter line length that helps readability. *Deal with clock/regulator in probe/remove().
*Use ADC_DRIVER_NAME instead of dev_name(dev).
*Don't use dev_error_probe() without returning -PROBE_DEFER.
v5->v6:
*Rename the error path labels to indicate the action that will be performed.

v1 link:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
v3 link:
https://patchwork.kernel.org/project/linux-arm-kernel/cover/[email protected]/
v4 link:
https://patchwork.kernel.org/project/linux-arm-kernel/cover/[email protected]/
v5 link:
https://patchwork.kernel.org/project/linux-arm-kernel/cover/[email protected]/

Cai Huoqing (3):
iio: imx8qxp-adc: Add driver support for NXP IMX8QXP ADC
iio: imx8qxp-adc: dt-bindings: iio: adc: Add binding documentation for
NXP IMX8QXP ADC
MAINTAINERS: Add the driver info of the NXP IMX8QXP

 .../bindings/iio/adc/nxp,imx8qxp-adc.yaml     |  78 +++
 MAINTAINERS                                   |   7 +
 drivers/iio/adc/Kconfig                       |  10 +
 drivers/iio/adc/Makefile                      |   1 +
 drivers/iio/adc/imx8qxp-adc.c                 | 492 ++++++++++++++++++
 5 files changed, 588 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml
 create mode 100644 drivers/iio/adc/imx8qxp-adc.c