Skip to content

Commit 4a1baee

Browse files
sheharyaarbroonie
authored andcommitted
ASoC: dt-bindings: tegra30-i2s: convert to dt schema
Convert NVIDIA Tegra30 I2S binding to DT schema and add "clock-names" property used by multiple tegra i2s blocks in arch/arm64/boot/dts/nvidia/tegra132.dtsi. This is not a required property by the binding. Signed-off-by: Mohammad Shehar Yaar Tausif <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9b4f416 commit 4a1baee

File tree

2 files changed

+67
-27
lines changed

2 files changed

+67
-27
lines changed

Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/nvidia,tegra30-i2s.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NVIDIA Tegra30 I2S controller
8+
9+
maintainers:
10+
- Thierry Reding <[email protected]>
11+
- Jon Hunter <[email protected]>
12+
13+
properties:
14+
compatible:
15+
oneOf:
16+
- enum:
17+
- nvidia,tegra124-i2s
18+
- nvidia,tegra30-i2s
19+
- items:
20+
- const: nvidia,tegra114-i2s
21+
- const: nvidia,tegra30-i2s
22+
23+
reg:
24+
maxItems: 1
25+
26+
clocks:
27+
maxItems: 1
28+
29+
clock-names:
30+
const: i2s
31+
32+
resets:
33+
maxItems: 1
34+
35+
reset-names:
36+
const: i2s
37+
38+
nvidia,ahub-cif-ids:
39+
description: list of AHUB CIF IDs
40+
$ref: /schemas/types.yaml#/definitions/uint32-array
41+
items:
42+
- description: rx (playback)
43+
- description: tx (capture)
44+
45+
required:
46+
- compatible
47+
- reg
48+
- clocks
49+
- resets
50+
- reset-names
51+
- nvidia,ahub-cif-ids
52+
53+
additionalProperties: false
54+
55+
examples:
56+
- |
57+
#include <dt-bindings/clock/tegra30-car.h>
58+
59+
i2s@70080300 {
60+
compatible = "nvidia,tegra30-i2s";
61+
reg = <0x70080300 0x100>;
62+
nvidia,ahub-cif-ids = <4 4>;
63+
clocks = <&tegra_car TEGRA30_CLK_I2S0>;
64+
resets = <&tegra_car 30>;
65+
reset-names = "i2s";
66+
};
67+
...

0 commit comments

Comments
 (0)