dt-bindings: Add devicetree bindings
Add snapshot of device tree bindings from keystone common kernel, branch "android-mainline-keystone-qcom-release" at c4c12103f9c0 ("Snap for 9228065 from e32903b9a63bb558df8b803b076619c53c16baad to android-mainline-keystone-qcom-release"). Change-Id: I7682079615cbd9f29340a5c1f2a1d84ec441a1f1 Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
This commit is contained in:
44
bindings/w1/fsl-imx-owire.yaml
Normal file
44
bindings/w1/fsl-imx-owire.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/w1/fsl-imx-owire.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Freescale i.MX One wire bus master controller
|
||||
|
||||
maintainers:
|
||||
- Martin Fuzzey <mfuzzey@parkeon.com>
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
oneOf:
|
||||
- const: fsl,imx21-owire
|
||||
- items:
|
||||
- enum:
|
||||
- fsl,imx27-owire
|
||||
- fsl,imx50-owire
|
||||
- fsl,imx51-owire
|
||||
- fsl,imx53-owire
|
||||
- const: fsl,imx21-owire
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
clocks:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
#include <dt-bindings/clock/imx5-clock.h>
|
||||
|
||||
owire@63fa4000 {
|
||||
compatible = "fsl,imx53-owire", "fsl,imx21-owire";
|
||||
reg = <0x63fa4000 0x4000>;
|
||||
clocks = <&clks IMX5_CLK_OWIRE_GATE>;
|
||||
};
|
22
bindings/w1/omap-hdq.txt
Normal file
22
bindings/w1/omap-hdq.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
* OMAP HDQ One wire bus master controller
|
||||
|
||||
Required properties:
|
||||
- compatible : should be "ti,omap3-1w" or "ti,am4372-hdq"
|
||||
- reg : Address and length of the register set for the device
|
||||
- interrupts : interrupt line.
|
||||
- ti,hwmods : "hdq1w"
|
||||
|
||||
Optional properties:
|
||||
- ti,mode: should be "hdq": HDQ mode "1w": one-wire mode.
|
||||
If not specified HDQ mode is implied.
|
||||
|
||||
Example:
|
||||
|
||||
- From omap3.dtsi
|
||||
hdqw1w: 1w@480b2000 {
|
||||
compatible = "ti,omap3-1w";
|
||||
reg = <0x480b2000 0x1000>;
|
||||
interrupts = <58>;
|
||||
ti,hwmods = "hdq1w";
|
||||
ti,mode = "hdq";
|
||||
};
|
43
bindings/w1/w1-gpio.yaml
Normal file
43
bindings/w1/w1-gpio.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/w1/w1-gpio.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Bitbanged GPIO 1-Wire Bus
|
||||
|
||||
maintainers:
|
||||
- Daniel Mack <zonque@gmail.com>
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: w1-gpio
|
||||
|
||||
gpios:
|
||||
minItems: 1
|
||||
items:
|
||||
- description: Data I/O pin
|
||||
- description: Enable pin for an external pull-up resistor
|
||||
|
||||
linux,open-drain:
|
||||
type: boolean
|
||||
description: >
|
||||
If specified, the data pin is considered in open-drain mode.
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- gpios
|
||||
|
||||
additionalProperties:
|
||||
type: object
|
||||
|
||||
examples:
|
||||
- |
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
onewire {
|
||||
compatible = "w1-gpio";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
...
|
25
bindings/w1/w1.txt
Normal file
25
bindings/w1/w1.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
Generic devicetree bindings for onewire (w1) busses
|
||||
===================================================
|
||||
|
||||
Onewire busses are described through nodes of their master bus controller.
|
||||
Slave devices are listed as sub-nodes of such master devices. For now, only
|
||||
one slave is allowed per bus master.
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
charger: charger {
|
||||
compatible = "gpio-charger";
|
||||
charger-type = "mains";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
onewire {
|
||||
compatible = "w1-gpio";
|
||||
gpios = <&gpio 100 0>, <&gpio 101 0>;
|
||||
|
||||
battery {
|
||||
compatible = "maxim,ds2760";
|
||||
power-supplies = <&charger>;
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user