From nobody Wed Nov 27 21:44:26 2024 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF6D581727; Mon, 7 Oct 2024 20:56:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728334608; cv=none; b=hMDvulT2THdVbXdJ61MTyYzbYSLUhlx09vtbFVI+Nsa/jI4HQDW1RqJULLVxvdz3qz0BsaNHPJG7Uhmt0cv70O0OC1rjLBrt2GXjv+rkPFYOfYq7UYrYJCHl7EghaTt8Z9TOE/LiXSuVRuZjapgUzpHWptNUJfrdSrNG7EamhcI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728334608; c=relaxed/simple; bh=dG3wyWFYMaVjIoBouzybQY61wSiQbiFq+z2YFtPd6K8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DxKAacKqr0KdYkwIZCzrqbe9JhpMiq/zAaDocWdqaaezpMQ9d/26O4jyIKxufmwDfrnfv0Y8rO8OJfVlDADsvv3IfkZW7hMFQDn0IDRPO9U2whBxH+A/ZlrjKFyEPYK/T9kzzqvtehPCjt3mOhx/70c/cYzt96Bf/tfu5F/eOs8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b=23gYOwKs; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b="23gYOwKs" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date: Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GZcppo/vr41EkgOQmncX32v6I2fliWs5FAMuIky+p1c=; b=23gYOwKsdLSS64TgJgBvg8Kivj g/hn6mW9PFej/UkXzXTlB5XF5wr6UibV9TRXEcUwP9jxU5U6jytziOI//vRM8fvM8jAK2thD/P+hm fZQPU5kGOFEMRCFuPDsYM83MhRHfbYxxNwwHPw4gCS7Vvri1Pu4g6LQw1rILqFPHVFxByK2y2/u8g zarvW8w728SlNlw1yDT/6tH1a4sqTzVC7ctSCkYl1IEedS78Szh5f3e9KSpbX0xh15IN1wfQd33Ix qlZAhQE9LyWUkgmfCOexqU/Wrnxn6AVlefFwmNZxecNXdUPW4FeSNlfKDynqudDYh21k6nisGXEcW rPu5+4yg==; Received: from i5e860d18.versanet.de ([94.134.13.24] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sxuma-0006Ib-DA; Mon, 07 Oct 2024 22:56:44 +0200 From: Heiko Stuebner To: lgirdwood@gmail.com, broonie@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH v2] ASoC: dt-bindings: rockchip,rk3036-codec: convert to yaml Date: Mon, 7 Oct 2024 22:56:39 +0200 Message-ID: <20241007205639.2477635-1-heiko@sntech.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Convert the binding to yaml. The codec seems to be from Innosilicon, but the compatible has ever only been rockchip-based, as they sythesized the codec for the rk3036. So the yaml file gets a name matching that compatible. The only other notable change is the addition of the #sound-dai-cells property, that is always required. Signed-off-by: Heiko Stuebner Reviewed-by: Rob Herring (Arm) --- changes in v2: - add Rob's review - add missing blank line above the allOf .../devicetree/bindings/sound/inno-rk3036.txt | 20 ------- .../bindings/sound/rockchip,rk3036-codec.yaml | 58 +++++++++++++++++++ 2 files changed, 58 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/inno-rk3036.txt create mode 100644 Documentation/devicetree/bindings/sound/rockchip,rk3036= -codec.yaml diff --git a/Documentation/devicetree/bindings/sound/inno-rk3036.txt b/Docu= mentation/devicetree/bindings/sound/inno-rk3036.txt deleted file mode 100644 index 758de8e27561..000000000000 --- a/Documentation/devicetree/bindings/sound/inno-rk3036.txt +++ /dev/null @@ -1,20 +0,0 @@ -Inno audio codec for RK3036 - -Inno audio codec is integrated inside RK3036 SoC. - -Required properties: -- compatible : Should be "rockchip,rk3036-codec". -- reg : The registers of codec. -- clock-names : Should be "acodec_pclk". -- clocks : The clock of codec. -- rockchip,grf : The phandle of grf device node. - -Example: - - acodec: acodec-ana@20030000 { - compatible =3D "rk3036-codec"; - reg =3D <0x20030000 0x4000>; - rockchip,grf =3D <&grf>; - clock-names =3D "acodec_pclk"; - clocks =3D <&cru ACLK_VCODEC>; - }; diff --git a/Documentation/devicetree/bindings/sound/rockchip,rk3036-codec.= yaml b/Documentation/devicetree/bindings/sound/rockchip,rk3036-codec.yaml new file mode 100644 index 000000000000..7570cc1375ca --- /dev/null +++ b/Documentation/devicetree/bindings/sound/rockchip,rk3036-codec.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/rockchip,rk3036-codec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip RK3036 internal codec + +maintainers: + - Heiko Stuebner + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: rockchip,rk3036-codec + + reg: + maxItems: 1 + + clocks: + items: + - description: clock for audio codec + + clock-names: + items: + - const: acodec_pclk + + rockchip,grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The phandle of the syscon node for the GRF register. + + "#sound-dai-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - rockchip,grf + - "#sound-dai-cells" + +unevaluatedProperties: false + +examples: + - | + #include + acodec: audio-codec@20030000 { + compatible =3D "rockchip,rk3036-codec"; + reg =3D <0x20030000 0x4000>; + rockchip,grf =3D <&grf>; + clock-names =3D "acodec_pclk"; + clocks =3D <&cru ACLK_VCODEC>; + #sound-dai-cells =3D <0>; + }; --=20 2.43.0