From: Manivannan Sadhasivam <[email protected]>
Hello,
This patchset adds external reset and wakeup support for CCS811 VOC
gas sensor. The nRESET and nWAKE pins available on the device are
utilised to provide these functionalities.
The patchset has been validated using CCS811 connected to STM32MP1 based
board over I2C.
While at it, the devicetree yaml binding and OF match table for this sensor
are also added.
Thanks,
Mani
Changes in v3:
* Added ccs811_set_wake(false) to all error paths before calling it actually
* Added Andy's reviewed-by tag
* Added comment for reset procedure and dropped error print for gpio request
Changes in v2:
* Fixed DT binding schema and switched to dual license (GPL/BSD)
* Returned actual error code from devm_gpiod_get_optional()
* Dropped of.h include and of_match_ptr()
Manivannan Sadhasivam (3):
iio: chemical: Add support for external Reset and Wakeup in CCS811
iio: chemical: Add OF match table for CCS811 VOC sensor
dt-bindings: serial: Add binding for software flow control in STM32
UART
.../bindings/serial/st,stm32-uart.yaml | 15 ++-
drivers/iio/chemical/ccs811.c | 112 ++++++++++++++++--
2 files changed, 115 insertions(+), 12 deletions(-)
--
2.17.1
From: Manivannan Sadhasivam <[email protected]>
Add devicetree binding for software flow control in STM32 UART
controller. While at it, let's also fix one schema error reported by
`make dtbs_check`.
Signed-off-by: Manivannan Sadhasivam <[email protected]>
---
.../devicetree/bindings/serial/st,stm32-uart.yaml | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
index 238c44192d31..ea5797a1b403 100644
--- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
@@ -38,13 +38,26 @@ properties:
description: enable hardware flow control
$ref: /schemas/types.yaml#/definitions/flag
+ st,sw-flow-ctrl:
+ description: enable software flow control
+ $ref: /schemas/types.yaml#/definitions/flag
+
+ rts-gpios:
+ description: RTS pin used if st,sw-flow-ctrl is true
+ maxItems: 1
+
+ cts-gpios:
+ description: CTS pin used if st,sw-flow-ctrl is true
+ maxItems: 1
+
dmas:
minItems: 1
maxItems: 2
dma-names:
items:
- enum: [ rx, tx ]
+ - const: rx
+ - const: tx
minItems: 1
maxItems: 2
--
2.17.1
On Wed, Apr 15, 2020 at 12:11:44AM +0530, [email protected] wrote:
> From: Manivannan Sadhasivam <[email protected]>
>
> Hello,
>
> This patchset adds external reset and wakeup support for CCS811 VOC
> gas sensor. The nRESET and nWAKE pins available on the device are
> utilised to provide these functionalities.
>
> The patchset has been validated using CCS811 connected to STM32MP1 based
> board over I2C.
>
> While at it, the devicetree yaml binding and OF match table for this sensor
> are also added.
>
> Thanks,
> Mani
>
> Changes in v3:
>
> * Added ccs811_set_wake(false) to all error paths before calling it actually
> * Added Andy's reviewed-by tag
> * Added comment for reset procedure and dropped error print for gpio request
>
> Changes in v2:
>
> * Fixed DT binding schema and switched to dual license (GPL/BSD)
> * Returned actual error code from devm_gpiod_get_optional()
> * Dropped of.h include and of_match_ptr()
>
> Manivannan Sadhasivam (3):
> iio: chemical: Add support for external Reset and Wakeup in CCS811
> iio: chemical: Add OF match table for CCS811 VOC sensor
> dt-bindings: serial: Add binding for software flow control in STM32
Err... please ignore this series. I'll resend it.
Thanks,
Mani
> UART
>
> .../bindings/serial/st,stm32-uart.yaml | 15 ++-
> drivers/iio/chemical/ccs811.c | 112 ++++++++++++++++--
> 2 files changed, 115 insertions(+), 12 deletions(-)
>
> --
> 2.17.1
>