Skip to content

Commit 46dd17c

Browse files
artursartamonovsadipamolloy
authored andcommitted
dt-bindings: i2c: Add bindings for ADSP-SC5xx I2C/TWI
Add bindings for ADSP-SC5xx I2C/TWI Co-developed-by: Nathan Barrett-Morrison <[email protected]> Signed-off-by: Nathan Barrett-Morrison <[email protected]> Co-developed-by: Greg Malysa <[email protected]> Signed-off-by: Greg Malysa <[email protected]> Signed-off-by: Arturs Artamonovs <[email protected]> Signed-off-by: Philip Molloy <[email protected]>
1 parent b1e33b2 commit 46dd17c

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/i2c/adi,sc5xx-i2c.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Analog Devices I2C Peripheral for SC5XX Processor Family
8+
9+
maintainers:
10+
- Arturs Artamonovs <[email protected]>
11+
- Utsav Agarwal <[email protected]>
12+
13+
description: Analog Devices I2C Peripheral driver for SC5XX Processor Family
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- adi,sc5xx-i2c
19+
20+
"#address-cells":
21+
const: 1
22+
23+
"#size-cells":
24+
const: 0
25+
26+
reg:
27+
maxItems: 1
28+
29+
interrupts:
30+
maxItems: 1
31+
32+
clock-khz:
33+
$ref: /schemas/types.yaml#/definitions/uint32
34+
35+
clocks:
36+
maxItems: 1
37+
38+
clock-names:
39+
maxItems: 1
40+
41+
required:
42+
- compatible
43+
- "#address-cells"
44+
- "#size-cells"
45+
- reg
46+
- interrupts
47+
- clock-khz
48+
- clocks
49+
- clock-names
50+
51+
additionalProperties: false
52+
53+
examples:
54+
- |
55+
#include <dt-bindings/interrupt-controller/arm-gic.h>
56+
#include <dt-bindings/interrupt-controller/irq.h>
57+
#include <dt-bindings/clock/adi-sc5xx-clock.h>
58+
59+
i2c@31001400 {
60+
#address-cells = <1>;
61+
#size-cells = <0>;
62+
compatible = "adi,sc5xx-i2c";
63+
reg = <0x31001400 0xff>;
64+
interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>;
65+
clock-khz = <100>;
66+
clocks = <&clk ADSP_CLK_CGU0_SCLK0>;
67+
clock-names = "sclk0";
68+
};
69+

0 commit comments

Comments
 (0)