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

dt-bindings: i2c: Convert Synquacer I2C to DT schema

Convert the Socionext Synquacer I2C binding to DT schema format.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221209171658.3352119-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>

+59 -30
-29
Documentation/devicetree/bindings/i2c/i2c-synquacer.txt
··· 1 - Socionext SynQuacer I2C 2 - 3 - Required properties: 4 - - compatible : Must be "socionext,synquacer-i2c" 5 - - reg : Offset and length of the register set for the device 6 - - interrupts : A single interrupt specifier 7 - - #address-cells : Must be <1>; 8 - - #size-cells : Must be <0>; 9 - - clock-names : Must contain "pclk". 10 - - clocks : Must contain an entry for each name in clock-names. 11 - (See the common clock bindings.) 12 - 13 - Optional properties: 14 - - clock-frequency : Desired I2C bus clock frequency in Hz. As only Normal and 15 - Fast modes are supported, possible values are 100000 and 16 - 400000. 17 - 18 - Example : 19 - 20 - i2c@51210000 { 21 - compatible = "socionext,synquacer-i2c"; 22 - reg = <0x51210000 0x1000>; 23 - interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>; 24 - #address-cells = <1>; 25 - #size-cells = <0>; 26 - clock-names = "pclk"; 27 - clocks = <&clk_i2c>; 28 - clock-frequency = <400000>; 29 - };
+58
Documentation/devicetree/bindings/i2c/socionext,synquacer-i2c.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/i2c/socionext,synquacer-i2c.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Socionext SynQuacer I2C Controller 8 + 9 + maintainers: 10 + - Ard Biesheuvel <ardb@kernel.org> 11 + 12 + allOf: 13 + - $ref: /schemas/i2c/i2c-controller.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: socionext,synquacer-i2c 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + clocks: 23 + maxItems: 1 24 + 25 + clock-names: 26 + const: pclk 27 + 28 + clock-frequency: 29 + minimum: 100000 30 + maximum: 400000 31 + 32 + interrupts: 33 + maxItems: 1 34 + 35 + required: 36 + - compatible 37 + - reg 38 + - interrupts 39 + - clocks 40 + - clock-names 41 + 42 + unevaluatedProperties: false 43 + 44 + examples: 45 + - | 46 + #include <dt-bindings/interrupt-controller/arm-gic.h> 47 + 48 + i2c@51210000 { 49 + compatible = "socionext,synquacer-i2c"; 50 + reg = <0x51210000 0x1000>; 51 + interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>; 52 + #address-cells = <1>; 53 + #size-cells = <0>; 54 + clock-names = "pclk"; 55 + clocks = <&clk_i2c>; 56 + clock-frequency = <400000>; 57 + }; 58 + ...
+1 -1
MAINTAINERS
··· 19310 19310 M: Ard Biesheuvel <ardb@kernel.org> 19311 19311 L: linux-i2c@vger.kernel.org 19312 19312 S: Maintained 19313 - F: Documentation/devicetree/bindings/i2c/i2c-synquacer.txt 19313 + F: Documentation/devicetree/bindings/i2c/socionext,synquacer-i2c.yaml 19314 19314 F: drivers/i2c/busses/i2c-synquacer.c 19315 19315 19316 19316 SOCIONEXT UNIPHIER SOUND DRIVER