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:
Erwan Gouriou 2017-12-18 15:19:40 +01:00 committed by Kumar Gala
commit 2b4cb5a7ad
2 changed files with 64 additions and 0 deletions

View 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
...

View 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
...