mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-15 18:31:36 +08:00
WIP: device tree MVP
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Copyright (c) 2020 Nuvoton Technology Corporation.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Nuvoton, NPCX-ADC node
|
||||
|
||||
compatible: "nuvoton,npcx-adc"
|
||||
|
||||
include: [adc-controller.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
clocks:
|
||||
required: true
|
||||
label:
|
||||
required: true
|
||||
pinctrl-0:
|
||||
type: phandles
|
||||
required: true
|
||||
description: configurations of pinmux controllers
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
@@ -0,0 +1,56 @@
|
||||
# Copyright (c) 2020, Toby Firth
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: LPC LPADC
|
||||
|
||||
compatible: "nxp,lpc-lpadc"
|
||||
|
||||
include: adc-controller.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
clk-divider:
|
||||
type: int
|
||||
required: true
|
||||
description: clock divider for the converter
|
||||
|
||||
clk-source:
|
||||
type: int
|
||||
required: true
|
||||
description: source to attach the ADC clock to
|
||||
|
||||
voltage-ref:
|
||||
type: int
|
||||
required: true
|
||||
description: reference voltage source
|
||||
|
||||
calibration-average:
|
||||
type: int
|
||||
required: true
|
||||
description: conversion average number for auto-calibration
|
||||
|
||||
power-level:
|
||||
type: int
|
||||
required: true
|
||||
description: power level for the ADC
|
||||
|
||||
offset-value-a:
|
||||
type: int
|
||||
required: true
|
||||
description: Offset value A to use if CONFIG_LPADC_DO_OFFSET_CALIBRATION is false
|
||||
|
||||
offset-value-b:
|
||||
type: int
|
||||
required: true
|
||||
description: Offset value B to use if CONFIG_LPADC_DO_OFFSET_CALIBRATION is false
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
Reference in New Issue
Block a user