blob: 05f26b27d898867823632b4a6cdde50b4b6fce8e [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001Generic 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 };