mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-13 14:31:36 +08:00
WIP: device tree MVP
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
description: Holtek HT16K33 LEDs
|
||||
|
||||
compatible: "holtek,ht16k33"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
bus: ht16k33
|
||||
|
||||
properties:
|
||||
label:
|
||||
required: true
|
||||
irq-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: IRQ pin
|
||||
@@ -0,0 +1,39 @@
|
||||
# Copyright (c) 2020 Seagate Technology LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Common fields for LED controllers and child LEDs
|
||||
|
||||
properties:
|
||||
label:
|
||||
required: true
|
||||
|
||||
child-binding:
|
||||
description: LED child node
|
||||
properties:
|
||||
label:
|
||||
required: false
|
||||
type: string
|
||||
description: Human readable string describing the LED
|
||||
index:
|
||||
required: false
|
||||
type: int
|
||||
description: |
|
||||
Index of the LED on a controller. It can be used by drivers or
|
||||
applications to map a logical LED to its real position on the
|
||||
controller. For example, this allows to handle boards where the
|
||||
LEDs in an array/strip are not wired following the LED order of
|
||||
the controller.
|
||||
color-mapping:
|
||||
type: array
|
||||
required: false
|
||||
description: |
|
||||
Channel to color mapping of a multicolor LED. If a LED supports
|
||||
several colors, then the color-mapping property can be used to
|
||||
describe how the hardware channels and the colors are mapped.
|
||||
|
||||
For example the channel to color mapping of RGB LEDs would be
|
||||
|
||||
color-mapping =
|
||||
<LED_COLOR_ID_RED>,
|
||||
<LED_COLOR_ID_GREEN>,
|
||||
<LED_COLOR_ID_BLUE>;
|
||||
@@ -0,0 +1,5 @@
|
||||
description: NXP PCA9633 LED
|
||||
|
||||
compatible: "nxp,pca9633"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,33 @@
|
||||
# Copyright (c) 2018, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: PWM LEDs parent node
|
||||
|
||||
compatible: "pwm-leds"
|
||||
|
||||
include:
|
||||
- name: base.yaml
|
||||
property-allowlist: [label]
|
||||
|
||||
properties:
|
||||
label:
|
||||
description: |
|
||||
Human readable string describing the device and used to set the device
|
||||
name. It can be passed as argument to device_get_binding() to retrieve
|
||||
the device. If this property is omitted, then the device name is set
|
||||
from the node full name.
|
||||
|
||||
child-binding:
|
||||
description: PWM LED child node
|
||||
properties:
|
||||
pwms:
|
||||
required: true
|
||||
type: phandle-array
|
||||
|
||||
label:
|
||||
required: false
|
||||
type: string
|
||||
description: |
|
||||
Human readable string describing the LED. It can be used by an
|
||||
application to identify this LED or to retrieve its number/index
|
||||
(i.e. child node number) on the parent device.
|
||||
@@ -0,0 +1,5 @@
|
||||
description: TI LP3943 LED
|
||||
|
||||
compatible: "ti,lp3943"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,30 @@
|
||||
# Copyright (c) 2020 Seagate Technology LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: TI LP503x LED controller node
|
||||
|
||||
compatible: "ti,lp503x"
|
||||
|
||||
include: ["i2c-device.yaml", "led-controller.yaml"]
|
||||
|
||||
properties:
|
||||
max_curr_opt:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
If enabled the maximum current output is set to 35 mA (25.5 mA else).
|
||||
log_scale_en:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
If enabled a logarithmic dimming scale curve is used for LED brightness
|
||||
control. A linear dimming scale curve is used else.
|
||||
|
||||
child-binding:
|
||||
properties:
|
||||
label:
|
||||
required: true
|
||||
index:
|
||||
required: true
|
||||
color-mapping:
|
||||
required: true
|
||||
@@ -0,0 +1,5 @@
|
||||
description: TI LP5562 LED
|
||||
|
||||
compatible: "ti,lp5562"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,5 @@
|
||||
description: TI TLC59108 LED
|
||||
|
||||
compatible: "ti,tlc59108"
|
||||
|
||||
include: i2c-device.yaml
|
||||
Reference in New Issue
Block a user