WIP: device tree MVP

This commit is contained in:
Daniel Agar
2022-01-06 17:20:17 -05:00
parent 07d75d85cf
commit 1f39b42525
1395 changed files with 68755 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# Copyright (c) 2021 Piotr Mienkowski
# SPDX-License-Identifier: Apache-2.0
description: Atmel SAM family DAC
compatible: "atmel,sam-dac"
include: dac-controller.yaml
properties:
reg:
required: true
peripheral-id:
type: int
required: true
description: |
peripheral ID
prescaler:
type: int
required: false
default: 15
description: |
Peripheral Clock to DAC Clock Ratio. Prescaler value is calcuated as
PRESCAL = (MCK / DACClock) - 2. Should be in range from 0 to 15. The
value will be written to DACC_MR.PRESCALER bit-field. The property is
applicable only to SAME70, SAMV71 series devices.
"#io-channel-cells":
const: 1
io-channel-cells:
- output
+33
View File
@@ -0,0 +1,33 @@
# Copyright (c) 2020 Google LLC.
# SPDX-License-Identifier: Apache-2.0
description: Atmel SAM0 family DAC
compatible: "atmel,sam0-dac"
include: dac-controller.yaml
properties:
reg:
required: true
clocks:
required: true
clock-names:
required: true
label:
required: true
reference:
type: string
required: false
description: Reference voltage source
enum:
- "intref"
- "vddana"
- "vrefa"
"#io-channel-cells":
const: 0
+14
View File
@@ -0,0 +1,14 @@
# Copyright (c) 2020 Libre Solar Technologies GmbH
# SPDX-License-Identifier: Apache-2.0
# Common fields for DAC controllers
include: base.yaml
properties:
label:
required: true
"#io-channel-cells":
type: int
required: true
+34
View File
@@ -0,0 +1,34 @@
# Copyright (c) 2021 BrainCo Inc.
# SPDX-License-Identifier: Apache-2.0
description: GigaDevice GD32 series DAC module
compatible: "gd,gd32-dac"
include: [dac-controller.yaml, pinctrl-device.yaml]
properties:
reg:
required: true
rcu-periph-clock:
type: int
description: Reset Control Unit Peripheral Clock ID
required: true
num-channels:
type: int
description: Number of DAC output channels
required: true
reset-val:
type: int
default: 0
description: Reset value of DAC output. Defaults to 0, the SoC default.
required: false
"#io-channel-cells":
const: 1
io-channel-cells:
- output
+15
View File
@@ -0,0 +1,15 @@
# Copyright (c) 2021 Laird Connectivity
# SPDX-License-Identifier: Apache-2.0
description: Microchip MCP4725 12-bit DAC
compatible: "microchip,mcp4725"
include: [dac-controller.yaml, i2c-device.yaml]
properties:
"#io-channel-cells":
const: 1
io-channel-cells:
- output
+28
View File
@@ -0,0 +1,28 @@
# Copyright (c) 2020 Henrik Brix Andersen <henrik@brixandersen.dk>
# SPDX-License-Identifier: Apache-2.0
description: NXP Kinetis MCUX DAC
compatible: "nxp,kinetis-dac"
include: dac-controller.yaml
properties:
reg:
required: true
voltage-reference:
type: int
required: true
description: DAC voltage reference select
low-power-mode:
type: boolean
required: false
description: Enable low-power mode
"#io-channel-cells":
const: 1
io-channel-cells:
- output
+33
View File
@@ -0,0 +1,33 @@
# Copyright (c) 2020 Henrik Brix Andersen <henrik@brixandersen.dk>
# SPDX-License-Identifier: Apache-2.0
description: NXP Kinetis MCUX DAC32
compatible: "nxp,kinetis-dac32"
include: dac-controller.yaml
properties:
reg:
required: true
voltage-reference:
type: int
required: true
description: DAC voltage reference select
low-power-mode:
type: boolean
required: false
description: Enable low-power mode
buffered:
type: boolean
required: false
description: Enable output buffer
"#io-channel-cells":
const: 1
io-channel-cells:
- output
+27
View File
@@ -0,0 +1,27 @@
# Copyright (c) 2020 Libre Solar Technologies GmbH
# SPDX-License-Identifier: Apache-2.0
description: ST STM32 family DAC
compatible: "st,stm32-dac"
include: [dac-controller.yaml, pinctrl-device.yaml]
properties:
reg:
required: true
clocks:
required: true
"#io-channel-cells":
const: 1
pinctrl-0:
required: true
pinctrl-names:
required: true
io-channel-cells:
- output
+8
View File
@@ -0,0 +1,8 @@
# Copyright (c) 2020 Matija Tudan
# SPDX-License-Identifier: Apache-2.0
description: TI DAC43608 8-bit 8 channel DAC
compatible: "ti,dac43608"
include: ti,dacx3608-base.yaml
+8
View File
@@ -0,0 +1,8 @@
# Copyright (c) 2020 Matija Tudan
# SPDX-License-Identifier: Apache-2.0
description: TI DAC53608 10-bit 8 channel DAC
compatible: "ti,dac53608"
include: ti,dacx3608-base.yaml
+8
View File
@@ -0,0 +1,8 @@
# Copyright (c) 2020 M2I Corporation
# SPDX-License-Identifier: Apache-2.0
description: TI DAC60508 12-bit DAC
compatible: "ti,dac60508"
include: ti,dacx0508-base.yaml
+8
View File
@@ -0,0 +1,8 @@
# Copyright (c) 2020 M2I Corporation
# SPDX-License-Identifier: Apache-2.0
description: TI DAC70508 14-bit DAC
compatible: "ti,dac70508"
include: ti,dacx0508-base.yaml
+8
View File
@@ -0,0 +1,8 @@
# Copyright (c) 2020 M2I Corporation
# SPDX-License-Identifier: Apache-2.0
description: TI DAC80508 16-bit DAC
compatible: "ti,dac80508"
include: ti,dacx0508-base.yaml
+83
View File
@@ -0,0 +1,83 @@
# Copyright (c) 2020 M2I Corporation
# SPDX-License-Identifier: Apache-2.0
include: [dac-controller.yaml, spi-device.yaml]
properties:
voltage-reference:
type: int
required: true
description: |
DAC voltage reference select
See constants in dt-bindings/dac/dacx0508.h.
channel0-gain:
type: int
required: true
description: |
Channel 0 gain select
See constants in dt-bindings/dac/dacx0508.h.
channel1-gain:
type: int
required: true
description: |
Channel 1 gain select
See constants in dt-bindings/dac/dacx0508.h.
channel2-gain:
type: int
required: true
description: |
Channel 2 gain select
See constants in dt-bindings/dac/dacx0508.h.
channel3-gain:
type: int
required: true
description: |
Channel 3 gain select
See constants in dt-bindings/dac/dacx0508.h.
channel4-gain:
type: int
required: true
description: |
Channel 4 gain select
See constants in dt-bindings/dac/dacx0508.h.
channel5-gain:
type: int
required: true
description: |
Channel 5 gain select
See constants in dt-bindings/dac/dacx0508.h.
channel6-gain:
type: int
required: true
description: |
Channel 6 gain select
See constants in dt-bindings/dac/dacx0508.h.
channel7-gain:
type: int
required: true
description: |
Channel 7 gain select
See constants in dt-bindings/dac/dacx0508.h.
"#io-channel-cells":
const: 1
io-channel-cells:
- output
+11
View File
@@ -0,0 +1,11 @@
# Copyright (c) 2020 Matija Tudan
# SPDX-License-Identifier: Apache-2.0
include: [dac-controller.yaml, i2c-device.yaml]
properties:
"#io-channel-cells":
const: 1
io-channel-cells:
- output