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