Skip to content

Commit 69c3d58

Browse files
tinghan-shenLinus Walleij
authored andcommitted
dt-bindings: pinctrl: mt8195: Add mediatek,drive-strength-adv property
Extend driving support for I2C pins on SoC mt8195. This property is already documented in mediatek,mt8183-pinctrl.yaml. Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20220216113131.13145-3-tinghan.shen@mediatek.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 0dd1628 commit 69c3d58

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,32 @@ patternProperties:
9898
drive-strength:
9999
enum: [2, 4, 6, 8, 10, 12, 14, 16]
100100

101+
mediatek,drive-strength-adv:
102+
description: |
103+
Describe the specific driving setup property.
104+
For I2C pins, the existing generic driving setup can only support
105+
2/4/6/8/10/12/14/16mA driving. But in specific driving setup, they
106+
can support 0.125/0.25/0.5/1mA adjustment. If we enable specific
107+
driving setup, the existing generic setup will be disabled.
108+
The specific driving setup is controlled by E1E0EN.
109+
When E1=0/E0=0, the strength is 0.125mA.
110+
When E1=0/E0=1, the strength is 0.25mA.
111+
When E1=1/E0=0, the strength is 0.5mA.
112+
When E1=1/E0=1, the strength is 1mA.
113+
EN is used to enable or disable the specific driving setup.
114+
Valid arguments are described as below:
115+
0: (E1, E0, EN) = (0, 0, 0)
116+
1: (E1, E0, EN) = (0, 0, 1)
117+
2: (E1, E0, EN) = (0, 1, 0)
118+
3: (E1, E0, EN) = (0, 1, 1)
119+
4: (E1, E0, EN) = (1, 0, 0)
120+
5: (E1, E0, EN) = (1, 0, 1)
121+
6: (E1, E0, EN) = (1, 1, 0)
122+
7: (E1, E0, EN) = (1, 1, 1)
123+
So the valid arguments are from 0 to 7.
124+
$ref: /schemas/types.yaml#/definitions/uint32
125+
enum: [0, 1, 2, 3, 4, 5, 6, 7]
126+
101127
bias-pull-down:
102128
oneOf:
103129
- type: boolean
@@ -270,4 +296,13 @@ examples:
270296
bias-pull-down;
271297
};
272298
};
299+
300+
i2c0-pins {
301+
pins {
302+
pinmux = <PINMUX_GPIO8__FUNC_SDA0>,
303+
<PINMUX_GPIO9__FUNC_SCL0>;
304+
bias-disable;
305+
mediatek,drive-strength-adv = <7>;
306+
};
307+
};
273308
};

0 commit comments

Comments
 (0)