Currently, the output-impedance can only be set to default, minimum or maximum or via a nvmem cell. In cases where there is no backend for a nvmem cell, a value can not be set. Add a DT binding, 'ti,output-impedance-ohms', for specifying the output-impedance in ohms, between 35 and 70. Like the existing properties, it is mutually exclusive with the nvmem cell and with ti,{min,max}-output-impedance. Signed-off-by: Steffen Trumtrar --- Documentation/devicetree/bindings/net/ti,dp83867.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ti,dp83867.yaml b/Documentation/devicetree/bindings/net/ti,dp83867.yaml index 833540743bdf..557d2517a72e 100644 --- a/Documentation/devicetree/bindings/net/ti,dp83867.yaml +++ b/Documentation/devicetree/bindings/net/ti,dp83867.yaml @@ -53,6 +53,16 @@ properties: items: - const: io_impedance_ctrl + ti,output-impedance-ohms: + description: | + MAC Interface Impedance control to set the programmable output impedance + to a value between minimum (35 ohms) and maximum (70 ohms). The PHY + has 32 settings in this range; the datasheet does not specify the + impedance of each setting, so the value is mapped linearly to the + nearest one. + minimum: 35 + maximum: 70 + ti,min-output-impedance: type: boolean description: | @@ -133,6 +143,12 @@ allOf: required: [nvmem-cells, "ti,max-output-impedance"] - not: required: ["ti,min-output-impedance", "ti,max-output-impedance"] + - not: + required: [nvmem-cells, "ti,output-impedance-ohms"] + - not: + required: ["ti,output-impedance-ohms", "ti,min-output-impedance"] + - not: + required: ["ti,output-impedance-ohms", "ti,max-output-impedance"] required: - reg -- 2.56.0