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