1*c66ec88fSEmmanuel Vadotw1-gpio devicetree bindings 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot 5*c66ec88fSEmmanuel Vadot - compatible: "w1-gpio" 6*c66ec88fSEmmanuel Vadot - gpios: one or two GPIO specs: 7*c66ec88fSEmmanuel Vadot - the first one is used as data I/O pin 8*c66ec88fSEmmanuel Vadot - the second one is optional. If specified, it is used as 9*c66ec88fSEmmanuel Vadot enable pin for an external pin pullup. 10*c66ec88fSEmmanuel Vadot 11*c66ec88fSEmmanuel VadotOptional properties: 12*c66ec88fSEmmanuel Vadot 13*c66ec88fSEmmanuel Vadot - linux,open-drain: if specified, the data pin is considered in 14*c66ec88fSEmmanuel Vadot open-drain mode. 15*c66ec88fSEmmanuel Vadot 16*c66ec88fSEmmanuel VadotAlso refer to the generic w1.txt document. 17*c66ec88fSEmmanuel Vadot 18*c66ec88fSEmmanuel VadotExamples: 19*c66ec88fSEmmanuel Vadot 20*c66ec88fSEmmanuel Vadot onewire { 21*c66ec88fSEmmanuel Vadot compatible = "w1-gpio"; 22*c66ec88fSEmmanuel Vadot gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 23*c66ec88fSEmmanuel Vadot 24*c66ec88fSEmmanuel Vadot battery { 25*c66ec88fSEmmanuel Vadot // ... 26*c66ec88fSEmmanuel Vadot }; 27*c66ec88fSEmmanuel Vadot }; 28