move things around
This commit is contained in:
28
firmware/dts/bindings/blink/blink-gpio-leds.yaml
Normal file
28
firmware/dts/bindings/blink/blink-gpio-leds.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
# Copyright (c) 2024 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
A generic binding for a GPIO-controlled blinking LED. Note that this binding
|
||||
has no vendor prefix, as it does not target a specific device or vendor.
|
||||
|
||||
Example definition in devicetree:
|
||||
|
||||
blink-gpio-led {
|
||||
compatible = "blink-gpio-led";
|
||||
led-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
|
||||
blink-period-ms = <1000>;
|
||||
};
|
||||
|
||||
compatible: "blink-gpio-led"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
led-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description: GPIO-controlled LED.
|
||||
|
||||
blink-period-ms:
|
||||
type: int
|
||||
description: Initial blinking period in milliseconds.
|
12
firmware/dts/bindings/sensor/bosch,bma255.yaml
Normal file
12
firmware/dts/bindings/sensor/bosch,bma255.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
description: |
|
||||
TODO: add a description
|
||||
|
||||
compatible: "bosch,bma255"
|
||||
|
||||
include: [sensor-device.yaml, i2c-device.yaml]
|
||||
|
||||
# properties:
|
||||
# input-gpios:
|
||||
# type: phandle-array
|
||||
# required: true
|
||||
# description: Input GPIO to be sensed.
|
7
firmware/dts/bindings/sensor/ti,hdc1080.yaml
Normal file
7
firmware/dts/bindings/sensor/ti,hdc1080.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
description: |
|
||||
TODO: add a description
|
||||
|
||||
compatible: "ti,hdc1080"
|
||||
|
||||
include: [sensor-device.yaml, i2c-device.yaml]
|
||||
|
23
firmware/dts/bindings/sensor/zephyr,example-sensor.yaml
Normal file
23
firmware/dts/bindings/sensor/zephyr,example-sensor.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
An example sensor that reads the GPIO level defined in input-gpios. The
|
||||
purpose of this sensor is to demonstrate how to create out-of-tree drivers.
|
||||
|
||||
Example definition in devicetree:
|
||||
|
||||
example-sensor {
|
||||
compatible = "zephyr,example-sensor";
|
||||
input-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
||||
};
|
||||
|
||||
compatible: "zephyr,example-sensor"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
input-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description: Input GPIO to be sensed.
|
Reference in New Issue
Block a user