W1 bindings
Single-page view · as markdown
AMD AXI 1-wire bus host for programmable logic
Peios Kernel / Hardware and drivers / Device-tree binding reference / W1 bindings
Schema identifier ($id): "http://devicetree.org/schemas/w1/amd,axi-1wire-host.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kris Chaplin <kris.chaplin@amd.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "amd,axi-1wire-host"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
onewire@a0000000 {
compatible = "amd,axi-1wire-host";
reg = <0xa0000000 0x10000>;
clocks = <&zynqmp_clk 0x47>;
interrupts = <GIC_SPI 0x59 IRQ_TYPE_LEVEL_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale i.MX One wire bus master controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / W1 bindings
Schema identifier ($id): "http://devicetree.org/schemas/w1/fsl-imx-owire.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Martin Fuzzey <mfuzzey@parkeon.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"fsl,imx21-owire"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx27-owire","fsl,imx50-owire","fsl,imx51-owire","fsl,imx53-owire"Item 2
Exact value (
const):"fsl,imx21-owire"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx5-clock.h>
owire@63fa4000 {
compatible = "fsl,imx53-owire", "fsl,imx21-owire";
reg = <0x63fa4000 0x4000>;
interrupts = <88>;
clocks = <&clks IMX5_CLK_OWIRE_GATE>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Maxim One wire bus master controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / W1 bindings
Schema identifier ($id): "http://devicetree.org/schemas/w1/maxim,ds2482.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stefan Wahren <stefan.wahren@chargebyte.com>"
I2C to 1-wire bridges
https://www.analog.com/media/en/technical-documentation/data-sheets/ds2482-100.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/DS2482-800.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/DS2484.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,ds2482", "maxim,ds2484"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
onewire@18 {
compatible = "maxim,ds2484";
reg = <0x18>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Bitbanged GPIO 1-Wire Bus
Peios Kernel / Hardware and drivers / Device-tree binding reference / W1 bindings
Schema identifier ($id): "http://devicetree.org/schemas/w1/w1-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Daniel Mack <zonque@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "w1-gpio"
gpios — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Data I/O pin
Item 2
Enable pin for an external pull-up resistor
linux,open-drain — not listed as required here #
Value type (type): "boolean"
If specified, the data pin is considered in open-drain mode.
Required in this object (required): "compatible", "gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
onewire {
compatible = "w1-gpio";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
UART 1-Wire Bus
Peios Kernel / Hardware and drivers / Device-tree binding reference / W1 bindings
Schema identifier ($id): "http://devicetree.org/schemas/w1/w1-uart.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christoph Winklhofer <cj.winklhofer@gmail.com>"
UART 1-wire bus. Utilizes the UART interface via the Serial Device Bus to create the 1-Wire timing patterns.
The UART peripheral must support full-duplex and operate in open-drain mode. The timing patterns are generated by a specific combination of baud-rate and transmitted byte, which corresponds to a 1-Wire read bit, write bit or reset pulse.
The default baud-rate for reset and presence detection is 9600 and for a 1-Wire read or write operation 115200. In case the actual baud-rate is different from the requested one, the transmitted byte is adapted to generate the 1-Wire timing patterns.
https://www.analog.com/en/technical-articles/using-a-uart-to-implement-a-1wire-bus-master.html
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "w1-uart"
reset-bps — not listed as required here #
Default value (default): 9600
The baud rate for the 1-Wire reset and presence detect.
write-0-bps — not listed as required here #
Default value (default): 115200
The baud rate for the 1-Wire write-0 cycle.
write-1-bps — not listed as required here #
Default value (default): 115200
The baud rate for the 1-Wire write-1 and read cycle.
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
Examples (examples) #
serial {
onewire {
compatible = "w1-uart";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause