mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-13 08:21:36 +08:00
WIP: device tree MVP
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# Copyright (c) 2019, Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Microchip XEC PS/2 controller
|
||||
|
||||
compatible: "microchip,xec-ps2"
|
||||
|
||||
include: ps2.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
girq:
|
||||
type: int
|
||||
required: true
|
||||
description: GIRQ for this device
|
||||
|
||||
girq-bit:
|
||||
type: int
|
||||
required: true
|
||||
description: Bit position in GIRQ for this device
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2021 Nuvoton Technology Corporation.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Nuvoton, NPCX-PS/2 channel pads node
|
||||
|
||||
compatible: "nuvoton,npcx-ps2-channel"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
channel:
|
||||
type: int
|
||||
required: true
|
||||
description: index of i2c channel
|
||||
|
||||
pinctrl-0:
|
||||
type: phandles
|
||||
required: true
|
||||
description: configurations of pinmux controllers
|
||||
@@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2021 Nuvoton Technology Corporation.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Nuvoton, NPCX-PS/2 controller node
|
||||
|
||||
compatible: "nuvoton,npcx-ps2-ctrl"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
bus: ps2
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
clocks:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
@@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2019, Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Common properties for PS/2 devices
|
||||
|
||||
include: base.yaml
|
||||
|
||||
bus: ps2
|
||||
|
||||
properties:
|
||||
"#address-cells":
|
||||
type: int
|
||||
required: true
|
||||
const: 1
|
||||
"#size-cells":
|
||||
type: int
|
||||
required: true
|
||||
const: 0
|
||||
label:
|
||||
required: true
|
||||
Reference in New Issue
Block a user