Commit 0cfe7615 authored by Rob Herring's avatar Rob Herring Committed by Mark Brown

ASoC: dt-bindings: realtek,rt5682s: Drop Tegra specifics from example

There's no need to complicate examples with a platform specific macro.
It also complicates example parsing to figure out the number of interrupt
cells in examples (based on bracketing).
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220126231358.1637174-1-robh@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2ce0d008
...@@ -21,6 +21,7 @@ properties: ...@@ -21,6 +21,7 @@ properties:
description: I2C address of the device. description: I2C address of the device.
interrupts: interrupts:
maxItems: 1
description: The CODEC's interrupt output. description: The CODEC's interrupt output.
realtek,dmic1-data-pin: realtek,dmic1-data-pin:
...@@ -94,7 +95,7 @@ required: ...@@ -94,7 +95,7 @@ required:
examples: examples:
- | - |
#include <dt-bindings/gpio/tegra-gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
i2c { i2c {
...@@ -104,10 +105,9 @@ examples: ...@@ -104,10 +105,9 @@ examples:
codec@1a { codec@1a {
compatible = "realtek,rt5682s"; compatible = "realtek,rt5682s";
reg = <0x1a>; reg = <0x1a>;
interrupt-parent = <&gpio>; interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
interrupts = <TEGRA_GPIO(U, 6) IRQ_TYPE_LEVEL_HIGH>;
realtek,ldo1-en-gpios = realtek,ldo1-en-gpios =
<&gpio TEGRA_GPIO(R, 2) GPIO_ACTIVE_HIGH>; <&gpio 2 GPIO_ACTIVE_HIGH>;
realtek,dmic1-data-pin = <1>; realtek,dmic1-data-pin = <1>;
realtek,dmic1-clk-pin = <1>; realtek,dmic1-clk-pin = <1>;
realtek,jd-src = <1>; realtek,jd-src = <1>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment