| 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 <[email protected]> |
| 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 |
}; |