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

dt-bindings: i2c: hisilicon,hix5hd2: convert to DT schema

Convert the Devicetree binding documentation for hisilicon,hix5hd2-i2c
from plain text to DT binding schema.

Signed-off-by: Kael D'Alcamo <dev@kael-k.io>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

authored by

Kael D'Alcamo and committed by
Wolfram Sang
eb4faf63 d51e7cfc

+51 -24
+51
Documentation/devicetree/bindings/i2c/hisilicon,hix5hd2-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/hisilicon,hix5hd2-i2c.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + title: I2C for HiSilicon hix5hd2 chipset platform 7 + 8 + maintainers: 9 + - Wei Yan <sledge.yanwei@huawei.com> 10 + 11 + allOf: 12 + - $ref: /schemas/i2c/i2c-controller.yaml# 13 + 14 + properties: 15 + compatible: 16 + enum: 17 + - hisilicon,hix5hd2-i2c 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + clocks: 26 + maxItems: 1 27 + 28 + clock-frequency: 29 + description: Desired I2C bus frequency in Hz 30 + default: 100000 31 + 32 + required: 33 + - compatible 34 + - reg 35 + - interrupts 36 + - clocks 37 + 38 + unevaluatedProperties: false 39 + 40 + examples: 41 + - | 42 + #include <dt-bindings/clock/hix5hd2-clock.h> 43 + 44 + i2c@f8b10000 { 45 + compatible = "hisilicon,hix5hd2-i2c"; 46 + reg = <0xf8b10000 0x1000>; 47 + interrupts = <0 38 4>; 48 + clocks = <&clock HIX5HD2_I2C0_RST>; 49 + #address-cells = <1>; 50 + #size-cells = <0>; 51 + };
-24
Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt
··· 1 - I2C for Hisilicon hix5hd2 chipset platform 2 - 3 - Required properties: 4 - - compatible: Must be "hisilicon,hix5hd2-i2c" 5 - - reg: physical base address of the controller and length of memory mapped 6 - region. 7 - - interrupts: interrupt number to the cpu. 8 - - #address-cells = <1>; 9 - - #size-cells = <0>; 10 - - clocks: phandles to input clocks. 11 - 12 - Optional properties: 13 - - clock-frequency: Desired I2C bus frequency in Hz, otherwise defaults to 100000 14 - - Child nodes conforming to i2c bus binding 15 - 16 - Examples: 17 - I2C0@f8b10000 { 18 - compatible = "hisilicon,hix5hd2-i2c"; 19 - reg = <0xf8b10000 0x1000>; 20 - interrupts = <0 38 4>; 21 - clocks = <&clock HIX5HD2_I2C0_RST>; 22 - #address-cells = <1>; 23 - #size-cells = <0>; 24 - }