Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: i2c: nvidia,tegra20-i2c: Specify the required properties

Specify the properties which are essential and which are not for the
Tegra I2C driver to function correctly. This was not added correctly when
the TXT binding was converted to yaml. All the existing DT nodes have
these properties already and hence this does not break the ABI.

dmas and dma-names which were specified as a must in the TXT binding
is now made optional since the driver can work in PIO mode if dmas are
missing.

Fixes: f10a9b722f80 ("dt-bindings: i2c: tegra: Convert to json-schema”)
Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Cc: <stable@vger.kernel.org> # v5.17+
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Andi Shyti <andi@smida.it>
Link: https://lore.kernel.org/r/20250603153022.39434-1-akhilrajeev@nvidia.com

authored by

Akhil R and committed by
Andi Shyti
903cc709 19272b37

+23 -1
+23 -1
Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml
··· 97 97 98 98 resets: 99 99 items: 100 - - description: module reset 100 + - description: 101 + Module reset. This property is optional for controllers in Tegra194, 102 + Tegra234 etc where an internal software reset is available as an 103 + alternative. 101 104 102 105 reset-names: 103 106 items: ··· 118 115 items: 119 116 - const: rx 120 117 - const: tx 118 + 119 + required: 120 + - compatible 121 + - reg 122 + - interrupts 123 + - clocks 124 + - clock-names 121 125 122 126 allOf: 123 127 - $ref: /schemas/i2c/i2c-controller.yaml ··· 178 168 else: 179 169 properties: 180 170 power-domains: false 171 + 172 + - if: 173 + not: 174 + properties: 175 + compatible: 176 + contains: 177 + enum: 178 + - nvidia,tegra194-i2c 179 + then: 180 + required: 181 + - resets 182 + - reset-names 181 183 182 184 unevaluatedProperties: false 183 185