w1-gpio.txt 822 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. W1 gpio device binding - one wire protocol over bitbanged gpio
  2. =======================
  3. Child nodes are required in device tree. The driver will detect
  4. the devices serial number and then search in the child nodes in the device tree
  5. for the proper node and try to match it with the device.
  6. Also check doc/device-tree-bindings/w1-eeprom for possible child nodes drivers
  7. Driver:
  8. - drivers/w1/w1-gpio.c
  9. Software w1 device-tree node properties:
  10. Required:
  11. * compatible = "w1-gpio";
  12. * gpios = <...>;
  13. This is the gpio used for one wire protocol, using bitbanging
  14. Optional:
  15. * none
  16. Example:
  17. onewire_tm: onewire {
  18. compatible = "w1-gpio";
  19. gpios = <&pioA 32 0>;
  20. };
  21. Example with child:
  22. onewire_tm: onewire {
  23. compatible = "w1-gpio";
  24. gpios = <&pioA 32 0>;
  25. eeprom1: eeprom@0 {
  26. compatible = "maxim,ds24xxx";
  27. }
  28. };