xref: /linux/Documentation/devicetree/bindings/w1/w1.txt (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1Generic devicetree bindings for onewire (w1) busses
2===================================================
3
4Onewire busses are described through nodes of their master bus controller.
5Slave devices are listed as sub-nodes of such master devices. For now, only
6one slave is allowed per bus master.
7
8
9Example:
10
11	charger: charger {
12		compatible = "gpio-charger";
13		charger-type = "mains";
14		gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
15	};
16
17	onewire {
18		compatible = "w1-gpio";
19		gpios = <&gpio 100 0>, <&gpio 101 0>;
20
21		battery {
22			compatible = "maxim,ds2760";
23			power-supplies = <&charger>;
24		};
25	};
26