Message ID | 20231215162312.143568-1-anshulusr@gmail.com |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | [v5,1/3] dt-bindings: vendor-prefixes: add aosong | expand |
Context | Check | Description |
---|---|---|
robh/checkpatch | success | |
robh/patch-applied | success | |
robh/dtbs-check | warning | build log |
robh/dt-meta-schema | success |
On Fri, 15 Dec 2023 21:53:11 +0530 Anshul Dalal <anshulusr@gmail.com> wrote: > A simple driver for the TVOC (Total Volatile Organic Compounds) > sensor from Aosong: AGS02MA > > Steps in reading the VOC sensor value over i2c: > 1. Read 5 bytes from the register `AGS02MA_TVOC_READ_REG` [0x00] > 2. The first 4 bytes are taken as the big endian sensor data with final > byte being the CRC > 3. The CRC is verified and the value is returned over an > `IIO_CHAN_INFO_RAW` channel as percents > > Tested on Raspberry Pi Zero 2W > > Datasheet: https://asairsensors.com/wp-content/uploads/2021/09/AGS02MA.pdf > Signed-off-by: Anshul Dalal <anshulusr@gmail.com> Hi Anshul, Just one trivial thing. I'll fix up whilst applying. Applied to the togreg branch of iio.git. Will be initially pushed out as testing for 0-day to see if it can find anything we missed. Thanks, Jonathan > + > +static const struct iio_info ags02ma_info = { > + .read_raw = ags02ma_read_raw, > +}; > + > +static const struct iio_chan_spec ags02ma_channel = { > + .type = IIO_CONCENTRATION, > + .channel2 = IIO_MOD_VOC, > + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE) Comma after this line. I'll fix up if there isn't much else. The reason for this is that it is very plausible we'll add more to this channel description in the future and the absence of the comma would make that messier. > +};
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 573578db9509..48d4ff635562 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -117,6 +117,8 @@ patternProperties: description: Andes Technology Corporation "^anvo,.*": description: Anvo-Systems Dresden GmbH + "^aosong,.*": + description: Guangzhou Aosong Electronic Co., Ltd. "^apm,.*": description: Applied Micro Circuits Corporation (APM) "^apple,.*":