xref: /linux/Documentation/devicetree/bindings/w1/ti,hdq.yaml (revision 93e4b3076b5f2d853462b9777d083c77fc0b7b23)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/w1/ti,hdq.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments OMAP HDQ One Wire Bus Master Controller
8
9maintainers:
10  - Eduard Bostina <egbostina@gmail.com>
11
12properties:
13  compatible:
14    enum:
15      - ti,omap3-1w
16      - ti,am4372-hdq
17
18  reg:
19    maxItems: 1
20
21  interrupts:
22    maxItems: 1
23
24  clocks:
25    maxItems: 1
26
27  clock-names:
28    items:
29      - const: fck
30
31  ti,hwmods:
32    description: Name of the hwmod associated to the hdq
33    $ref: /schemas/types.yaml#/definitions/string
34    const: hdq1w
35
36  ti,mode:
37    description: |
38      Operation mode. "hdq" for HDQ mode, "1w" for One-Wire mode.
39      If not specified, HDQ mode is implied.
40    $ref: /schemas/types.yaml#/definitions/string
41    enum:
42      - hdq
43      - 1w
44    default: hdq
45
46required:
47  - compatible
48  - reg
49  - interrupts
50
51additionalProperties: false
52
53examples:
54  - |
55    #include <dt-bindings/interrupt-controller/arm-gic.h>
56    onewire@0 {
57        compatible = "ti,am4372-hdq";
58        reg = <0x0 0x1000>;
59        interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
60        clocks = <&func_12m_clk>;
61        clock-names = "fck";
62    };
63  - |
64    onewire@480b2000 {
65        compatible = "ti,omap3-1w";
66        reg = <0x480b2000 0x1000>;
67        interrupts = <58>;
68        ti,hwmods = "hdq1w";
69        ti,mode = "hdq";
70    };
71