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