| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/i2c/tsd,mule-i2c-mux.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Theobroma Systems Mule I2C multiplexer |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Farouk Bouabid <[email protected]> |
| 11 |
- Quentin Schulz <[email protected]> |
| 12 |
|
| 13 |
description: | |
| 14 |
Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among |
| 15 |
which devices that are reachable through an I2C-mux. The devices on the mux |
| 16 |
can be selected by writing the appropriate device number to an I2C config |
| 17 |
register. |
| 18 |
|
| 19 |
+--------------------------------------------------+ |
| 20 |
| Mule | |
| 21 |
0x18| +---------------+ | |
| 22 |
-------->|Config register|----+ | |
| 23 |
| +---------------+ | | |
| 24 |
| V_ | |
| 25 |
| | \ +--------+ | |
| 26 |
| | \-------->| dev #0 | | |
| 27 |
| | | +--------+ | |
| 28 |
0x6f| | M |-------->| dev #1 | | |
| 29 |
---------------------------->| U | +--------+ | |
| 30 |
| | X |-------->| dev #2 | | |
| 31 |
| | | +--------+ | |
| 32 |
| | /-------->| dev #3 | | |
| 33 |
| |__/ +--------+ | |
| 34 |
+--------------------------------------------------+ |
| 35 |
|
| 36 |
allOf: |
| 37 |
- $ref: /schemas/i2c/i2c-mux.yaml# |
| 38 |
|
| 39 |
properties: |
| 40 |
compatible: |
| 41 |
const: tsd,mule-i2c-mux |
| 42 |
|
| 43 |
required: |
| 44 |
- compatible |
| 45 |
|
| 46 |
unevaluatedProperties: false |
| 47 |
|
| 48 |
examples: |
| 49 |
- | |
| 50 |
i2c-mux { |
| 51 |
compatible = "tsd,mule-i2c-mux"; |
| 52 |
#address-cells = <1>; |
| 53 |
#size-cells = <0>; |
| 54 |
|
| 55 |
i2c@0 { |
| 56 |
reg = <0x0>; |
| 57 |
#address-cells = <1>; |
| 58 |
#size-cells = <0>; |
| 59 |
|
| 60 |
rtc@6f { |
| 61 |
compatible = "isil,isl1208"; |
| 62 |
reg = <0x6f>; |
| 63 |
}; |
| 64 |
}; |
| 65 |
}; |
| 66 |
... |
| 67 |
|