dts: provide yaml bindings for led and gpio keys
Provide yaml bindings for led and gpio keys (buttons). These are based on gpio bindings. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
6c92e55635
commit
2b4cb5a7ad
2 changed files with 64 additions and 0 deletions
32
dts/bindings/gpio/gpio-keys.yaml
Normal file
32
dts/bindings/gpio/gpio-keys.yaml
Normal file
|
@ -0,0 +1,32 @@
|
|||
#
|
||||
# Copyright (c) 2018, Linaro Limited
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
---
|
||||
title: GPIO KEYS
|
||||
id: gpio-keys
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This is a representation of the GPIO KEYS nodes
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
type: string
|
||||
category: required
|
||||
description: compatible strings
|
||||
constraint: "gpio-keys"
|
||||
|
||||
gpios:
|
||||
type: compound
|
||||
category: required
|
||||
generation: define
|
||||
|
||||
label:
|
||||
type: string
|
||||
category: required
|
||||
description: Human readable string describing the device (used by Zephyr for API name)
|
||||
generation: define
|
||||
|
||||
...
|
32
dts/bindings/gpio/gpio-leds.yaml
Normal file
32
dts/bindings/gpio/gpio-leds.yaml
Normal file
|
@ -0,0 +1,32 @@
|
|||
#
|
||||
# Copyright (c) 2018, Linaro Limited
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
---
|
||||
title: GPIO LED
|
||||
id: gpio-leds
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This is a representation of the LED GPIO nodes
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
type: string
|
||||
category: required
|
||||
description: compatible strings
|
||||
constraint: "gpio-leds"
|
||||
|
||||
gpios:
|
||||
type: compound
|
||||
category: required
|
||||
generation: define
|
||||
|
||||
label:
|
||||
type: string
|
||||
category: required
|
||||
description: Human readable string describing the device (used by Zephyr for API name)
|
||||
generation: define
|
||||
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue