Skip to content

Commit eb4faf6

Browse files
kael-kWolfram Sang
authored andcommitted
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>
1 parent d51e7cf commit eb4faf6

File tree

2 files changed

+51
-24
lines changed

2 files changed

+51
-24
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
};

Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)