devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tim Lunn <tim@feathertop.org>
To: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org
Cc: Tim Lunn <tim@feathertop.org>,
	linux-arm-kernel@lists.infradead.org,
	Chris Zhong <zyw@rock-chips.com>,
	Conor Dooley <conor+dt@kernel.org>,
	Heiko Stuebner <heiko@sntech.de>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	Zhang Qing <zhangqing@rock-chips.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2 3/3] dt-bindings: rockchip: Update rk809 example with audio codec properties
Date: Wed, 17 Jan 2024 00:21:02 +1100	[thread overview]
Message-ID: <20240116132102.3272682-4-tim@feathertop.org> (raw)
In-Reply-To: <20240116132102.3272682-1-tim@feathertop.org>

Update the example provided to include the properties for using
rk817 audio codec.

Signed-off-by: Tim Lunn <tim@feathertop.org>

---

Changes in v2:
- Fix missing include and pinctrl for codec example

 .../devicetree/bindings/mfd/rockchip,rk809.yaml          | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml
index 9b9d670708ce..fee8338b230b 100644
--- a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml
+++ b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml
@@ -147,6 +147,7 @@ additionalProperties: false
 
 examples:
   - |
+    #include <dt-bindings/clock/px30-cru.h>
     #include <dt-bindings/pinctrl/rockchip.h>
     #include <dt-bindings/interrupt-controller/irq.h>
     #include <dt-bindings/gpio/gpio.h>
@@ -161,10 +162,13 @@ examples:
             clock-output-names = "xin32k", "rk808-clkout2";
             interrupt-parent = <&gpio3>;
             interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
+            clock-names = "mclk";
+            clocks = <&cru SCLK_I2S1_OUT>;
             pinctrl-names = "default";
-            pinctrl-0 = <&pmic_int_l_pin>;
+            pinctrl-0 = <&pmic_int_l_pin>, <&i2s1_2ch_mclk>;
             rockchip,system-power-controller;
             wakeup-source;
+            #sound-dai-cells = <0>;
 
             vcc1-supply = <&vcc_sysin>;
             vcc2-supply = <&vcc_sysin>;
@@ -309,5 +313,8 @@ examples:
                     };
                 };
             };
+            rk817_codec: codec {
+                rockchip,mic-in-differential;
+            };
         };
     };
-- 
2.40.1


  parent reply	other threads:[~2024-01-16 13:21 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-16 13:20 [PATCH v2 0/3] dt-bindings: rockchip: Add support for rk809 audio codec Tim Lunn
2024-01-16 13:21 ` [PATCH v2 1/3] dt-bindings: rockchip: Document rk809 support for rk817 " Tim Lunn
2024-01-16 17:06   ` Conor Dooley
2024-01-17  9:22     ` Tim Lunn
     [not found]     ` <72ed509c-f754-4e65-a65e-130185777c53@feathertop.org>
2024-01-17  9:22       ` Krzysztof Kozlowski
2024-01-17  9:58         ` Tim Lunn
2024-01-17 15:29           ` Conor Dooley
2024-01-18 15:21     ` Chris Morgan
2024-01-17  7:43   ` Krzysztof Kozlowski
2024-01-16 13:21 ` [PATCH v2 2/3] dt-bindings: rockchip: rk809 fix existing example Tim Lunn
2024-01-16 17:07   ` Conor Dooley
2024-01-17  9:29     ` Tim Lunn
2024-01-17  7:43   ` Krzysztof Kozlowski
2024-01-17 10:00     ` Tim Lunn
2024-01-16 13:21 ` Tim Lunn [this message]
2024-01-16 17:09   ` [PATCH v2 3/3] dt-bindings: rockchip: Update rk809 example with audio codec properties Conor Dooley
2024-01-16 19:52 ` [PATCH v2 0/3] dt-bindings: rockchip: Add support for rk809 audio codec Rob Herring
2024-01-17  9:42   ` Tim Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240116132102.3272682-4-tim@feathertop.org \
    --to=tim@feathertop.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=heiko@sntech.de \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lee@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=robh+dt@kernel.org \
    --cc=zhangqing@rock-chips.com \
    --cc=zyw@rock-chips.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).