Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings:iio:light:avago,apds9300: txt to yaml conversion.

This could have gone in trivial-devices.yaml, but there was a datasheet
link so I've given it a minimal file of it's own.
Very simple binding and so a very simple conversion.

Oleksandr's email address is bouncing so I've put myself as fallback
maintainer until someone else steps forward.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201031184854.745828-14-jic23@kernel.org

+44 -21
-21
Documentation/devicetree/bindings/iio/light/apds9300.txt
··· 1 - * Avago APDS9300 ambient light sensor 2 - 3 - https://www.avagotech.com/docs/AV02-1077EN 4 - 5 - Required properties: 6 - 7 - - compatible : should be "avago,apds9300" 8 - - reg : the I2C address of the sensor 9 - 10 - Optional properties: 11 - 12 - - interrupts : interrupt mapping for GPIO IRQ 13 - 14 - Example: 15 - 16 - apds9300@39 { 17 - compatible = "avago,apds9300"; 18 - reg = <0x39>; 19 - interrupt-parent = <&gpio2>; 20 - interrupts = <29 8>; 21 - };
+44
Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/light/avago,apds9300.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Avago APDS9300 ambient light sensor 8 + 9 + maintainers: 10 + - Jonathan Cameron <jic23@kernel.org> 11 + 12 + description: | 13 + Datasheet at https://www.avagotech.com/docs/AV02-1077EN 14 + 15 + properties: 16 + compatible: 17 + const: avago,apds9300 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + additionalProperties: false 26 + 27 + required: 28 + - compatible 29 + - reg 30 + 31 + examples: 32 + - | 33 + i2c { 34 + #address-cells = <1>; 35 + #size-cells = <0>; 36 + 37 + light-sensor@39 { 38 + compatible = "avago,apds9300"; 39 + reg = <0x39>; 40 + interrupt-parent = <&gpio2>; 41 + interrupts = <29 8>; 42 + }; 43 + }; 44 + ...