Eugen Hristev | 6a984d6 | 2018-09-18 10:35:32 +0300 | [diff] [blame] | 1 | Onewire EEPROM sandbox driver device binding - one wire protocol sandbox EEPROM |
| 2 | ======================= |
| 3 | |
| 4 | This memory needs to be connected to a onewire bus, as a child node. |
| 5 | The bus will read the device serial number and match this node with a found |
| 6 | device on the bus |
| 7 | Also check doc/device-tree-bindings/w1 for onewire bus drivers |
| 8 | |
| 9 | Driver: |
| 10 | - drivers/w1-eeprom/eep_sandbox.c |
| 11 | |
| 12 | Software ds24xxx device-tree node properties: |
| 13 | Required: |
| 14 | * compatible = "sandbox,w1-eeprom" |
| 15 | |
| 16 | Optional: |
| 17 | * none |
| 18 | |
| 19 | Example: |
| 20 | eeprom1: eeprom@0 { |
| 21 | compatible = "sandbox,w1-eeprom"; |
| 22 | } |
| 23 | |
| 24 | Example with parent bus: |
| 25 | |
| 26 | onewire_tm: onewire { |
| 27 | compatible = "w1-gpio"; |
| 28 | gpios = <&gpio_a 8>; |
| 29 | |
| 30 | eeprom1: eeprom@0 { |
| 31 | compatible = "sandbox,w1-eeprom"; |
| 32 | } |
| 33 | }; |
| 34 | |