Merge tag 'upstream-4.19-rc1' of git://git.infradead.org/linux-ubifs
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / w1 / w1.txt
1 Generic devicetree bindings for onewire (w1) busses
2 ===================================================
3
4 Onewire busses are described through nodes of their master bus controller.
5 Slave devices are listed as sub-nodes of such master devices. For now, only
6 one slave is allowed per bus master.
7
8
9 Example:
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         };