From: Chang Yu <marcus.yu.56@gmail.com>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: "Chang Yu" <marcus.yu.56@gmail.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>, "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Shi Hao" <i.shihao.999@gmail.com>,
"Jose A. Perez de Azpillaga" <azpijr@gmail.com>,
"Joshua Crofts" <joshua.crofts1@gmail.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/2] iio: light: add AS7343 multi-spectral sensor driver
Date: Fri, 18 Sep 2026 20:46:18 -0700 [thread overview]
Message-ID: <aq4FioMYYiPqlhwS@gmail.com> (raw)
In-Reply-To: <aqepkmQS_p6K1Bd6@ashevche-desk.local>
On Mon, Sep 14, 2026 at 11:00:18AM +0300, Andy Shevchenko wrote:
> On Fri, Sep 11, 2026 at 06:39:12PM -0700, Chang Yu wrote:
> > +#define AS7343_ID 0x5a
>
> > +/* AS7343 config registers */
> > +#define AS7343_ENABLE 0x80
>
> > +#define AS7343_ATIME 0x81
>
> > +#define AS7343_ASTEP 0xd4
>
>
> > +#define AS7343_CFG0 0xbf
> > +
> > +#define AS7343_CFG1 0xc6
>
> > +#define AS7343_CFG20 0xd6
>
> > +#define AS7343_CONTROL 0xfa
> > +
> > +/* AS7343 status registers */
> > +#define AS7343_STATUS2 0x90
> > +#define AS7343_STATUS3 0x91
> > +#define AS7343_STATUS 0x93
> > +#define AS7343_ASTATUS 0x94
> > +#define AS7343_STATUS5 0xbb
> > +#define AS7343_STATUS4 0xbc
> > +#define AS7343_FD_STATUS 0xe3
> > +
> > +/* AS7343 spectral data registers */
> > +#define AS7343_DATA_FZ 0x95
> > +#define AS7343_DATA_FY 0x97
> > +#define AS7343_DATA_FXL 0x99
> > +#define AS7343_DATA_NIR 0x9b
> > +#define AS7343_DATA_F2 0xa1
> > +#define AS7343_DATA_F3 0xa3
> > +#define AS7343_DATA_F4 0xa5
> > +#define AS7343_DATA_F6 0xa7
> > +#define AS7343_DATA_F1 0xad
> > +#define AS7343_DATA_F7 0xaf
> > +#define AS7343_DATA_F8 0xb1
> > +#define AS7343_DATA_F5 0xb3
> > +#define AS7343_DATA_FD_L 0xb7
> > +#define AS7343_DATA_FD_H 0xb8
>
> > +/* AS7343 FIFO buffer data registers */
> > +#define AS7343_FIFO_LVL 0xfd
> > +#define AS7343_FDATA_L 0xfe
> > +#define AS7343_FDATA_H 0xff
>
> Please, keep indentation for the registers the same. Also would be nice to have
> them sorted by offset.
>
Due to the register layout sometimes registers with similar
functions/purposes are scattered across the address space. As a
compromise I'll group registers by purposes and sort by offset within
the same group.
next prev parent reply other threads:[~2026-09-19 3:46 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-12 1:39 [PATCH v4 0/2] Add support for AS7343 multi-spectral sensor Chang Yu
2026-09-12 1:39 ` [PATCH v4 1/2] dt-bindings: iio: light: add as7343 Chang Yu
2026-09-13 0:56 ` Jonathan Cameron
2026-09-13 1:35 ` Chang Yu
2026-09-13 2:51 ` Jonathan Cameron
2026-09-13 3:20 ` Chang Yu
2026-09-13 17:14 ` Jonathan Cameron
2026-09-15 3:19 ` Chang Yu
2026-09-12 1:39 ` [PATCH v4 2/2] iio: light: add AS7343 multi-spectral sensor driver Chang Yu
2026-09-12 1:50 ` sashiko-bot
2026-09-13 2:47 ` Jonathan Cameron
2026-09-13 4:11 ` Chang Yu
2026-09-13 17:17 ` Jonathan Cameron
2026-09-14 8:00 ` Andy Shevchenko
2026-09-15 2:49 ` Chang Yu
2026-09-15 7:34 ` Andy Shevchenko
2026-09-16 4:04 ` Chang Yu
2026-09-17 3:01 ` Jonathan Cameron
2026-09-19 3:46 ` Chang Yu [this message]
2026-09-19 14:14 ` Andy Shevchenko
2026-09-13 0:30 ` [PATCH v4 0/2] Add support for AS7343 multi-spectral sensor Jonathan Cameron
2026-09-13 0:44 ` Chang Yu
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=aq4FioMYYiPqlhwS@gmail.com \
--to=marcus.yu.56@gmail.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=azpijr@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=i.shihao.999@gmail.com \
--cc=jic23@kernel.org \
--cc=joshua.crofts1@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.