mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Svyatoslav Ryhel <clamor95@gmail.com>
Cc: "Liam Girdwood" <lgirdwood@gmail.com>,
	"Mark Brown" <broonie@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>, "Lee Jones" <lee@kernel.org>,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-iio@vger.kernel.org, mfd@lists.linux.dev
Subject: Re: [PATCH v1 2/4] mfd: max8907: Add ADC client support
Date: Sun, 8 Nov 2026 20:51:43 +0000	[thread overview]
Message-ID: <20261108205143.134d6aa0@jic23-hlaptop> (raw)
In-Reply-To: <20261108095634.100517-3-clamor95@gmail.com>

On Sun,  8 Nov 2026 11:56:32 +0200
Svyatoslav Ryhel <clamor95@gmail.com> wrote:

> The Maxim MAX8907 has an 8-channel ADC at a fixed location. Add client
> support for it along with its regmap and interrupts.
> 
> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>

> diff --git a/include/linux/mfd/max8907.h b/include/linux/mfd/max8907.h
> index 35b2ede54f856..cf304afc782d6 100644
> --- a/include/linux/mfd/max8907.h
> +++ b/include/linux/mfd/max8907.h
> @@ -153,6 +153,51 @@
>  #define MAX8907_REG_MPL_CNTL		0x1E
>  
>  /* ADC and Touch Screen Controller register map */
> +#define MAX8907_REG_TSC_STA_INT		0x00
> +#define MAX8907_REG_TSC_INT_MASK	0x01
> +#define MAX8907_REG_TSC_CNFG1		0x02
> +#define MAX8907_REG_TSC_CNFG2		0x03

....

> +/* Regulator stride */

I'm not sure what this means. Stride of what?  Seems to
be some offsets in the register address.

>  #define MAX8907_CTL			0
>  #define MAX8907_SEQCNT			1
>  #define MAX8907_VOUT			2
> @@ -165,6 +210,8 @@
>  #define MAX8907_MASK_OUT5V_ENSRC	0x0E
>  #define MAX8907_MASK_OUT5V_EN		0x01
>  #define MAX8907_MASK_POWER_OFF		0x40
> +#define MAX8907_MASK_RST_CFG_INT_REF_EN	0x01
> +#define MAX8907_MASK_NREF_OK		0x10


  reply	other threads:[~2026-11-08 20:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-08  9:56 [PATCH v1 0/4] iio: adc: Add support for MAX8907 ADC cell Svyatoslav Ryhel
2026-11-08  9:56 ` [PATCH v1 1/4] regulator: dt-bindings: maxim,max8907: Document io-channel-cells property Svyatoslav Ryhel
2026-11-08 10:40   ` Mark Brown
2026-11-08 20:46   ` Jonathan Cameron
2026-11-08  9:56 ` [PATCH v1 2/4] mfd: max8907: Add ADC client support Svyatoslav Ryhel
2026-11-08 20:51   ` Jonathan Cameron [this message]
2026-11-08  9:56 ` [PATCH v1 3/4] iio: adc: Add support for MAX8907 ADC cell Svyatoslav Ryhel
2026-11-08  9:56 ` [PATCH v1 4/4] mfd: max8907: Add " Svyatoslav Ryhel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261108205143.134d6aa0@jic23-hlaptop \
    --to=jic23@kernel.org \
    --cc=andy@kernel.org \
    --cc=broonie@kernel.org \
    --cc=clamor95@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mfd@lists.linux.dev \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®