From patchwork Tue Jun 23 11:39:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11620461 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 625B990 for ; Tue, 23 Jun 2020 11:42:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B41520724 for ; Tue, 23 Jun 2020 11:42:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="d6pvCqMx"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="tplQMtta"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="MBl6WMP9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B41520724 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=H3j5jCFa+Qq2l8Td4JaV3KZjwfpM1WFl6DZ8A2Wk3T0=; b=d6pvCqMx0+y4a0IbX/QIHkbco3 CO1PF4Opk9yVu5cAg9cI1xUeExd4uQN2jhg/9Ntihl80f/WH/J6NV9CA0bocGzH1bDrXDecOPMAEj SsSmWwHtBsiKNGhIDy2iNdkZSYaIJ9rvmAzd0591TRM9OBMR0/7afomKH3Xx7cxLK1CpQzTyCfBoq 2Zt4O92JGElkJ400LdZT/+W1aCnsoqGGCGuFw0dfKBLV5xMK0WtQ1YxfrnmLmqJwhuxd+Xq5dYI/r FV9wzhJOKoYNoYehYU1GRl4nzI8k6XDQAvslgD9cFSaoC4xax4B5IjZ8aNAfvoChMhm2ZXNSpBFRs xio+PJUA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnhI3-0007Q1-E1; Tue, 23 Jun 2020 11:40:35 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnhHy-0007O2-IG for linux-arm-kernel@merlin.infradead.org; Tue, 23 Jun 2020 11:40:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=EQR5jz5Ak267spsKF3ptXzFmAIfZKKdNNqltK1FNhao=; b=tplQMttaor5FuOAFjFFu7Lz6Np ZypS1qS2F0bQ94uFBanU7lpPY1tvmaVm8baydCDtAS5A8GGaep1JQzoA6u8m8D1VfP7Y0iAVYMFsF g9G1GbFXE8N8cDkv1P+Agai9ImkDRCqHX8HHrUL9qpJMHVPo+vDEmiYcJXpuSk0HSKcTw37ZUMI/Z mFj4BQSvGIuzO+3c8q13PmQSqGIMQ+46Utfyje6vPBItLLjkKJCj/Kx2AAv1GHMwBXj7lPvgCxMjI so192CQqtHfXbOl4A38hFbPxnagTDsagBIL/3d6rpHGfBr7cSA8HATdPyuS/06PjEn1hoTM/Zp4DU 4QCKc/Bw==; Received: from conuserg-10.nifty.com ([210.131.2.77]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnhHt-0007dY-B8 for linux-arm-kernel@lists.infradead.org; Tue, 23 Jun 2020 11:40:29 +0000 Received: from oscar.flets-west.jp (softbank126090202047.bbtec.net [126.90.202.47]) (authenticated) by conuserg-10.nifty.com with ESMTP id 05NBdQcO015338; Tue, 23 Jun 2020 20:39:27 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 05NBdQcO015338 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1592912367; bh=EQR5jz5Ak267spsKF3ptXzFmAIfZKKdNNqltK1FNhao=; h=From:To:Cc:Subject:Date:From; b=MBl6WMP9adRnYFLrrJkyqoyppk+BUFmKK6oIMZCxoQgKR+qeQm87sOAI8TELXzp/p dE5cjfY6chpBz57ArwADg3D/AT8bFm/JnTMJHHdW0Z2nKmv94VxV/wYofC3qXj1sQd bLLaaBeA2oOlNHYEDraW1Q9nWCb8GPeCRRiEd0pb3eSsN8klDL7hyC9cidtcnoXdyC WpQzUXovcvwNIPmD2nETSwwZ9eipi0EFRHtI04RixvDXpFb1+dX6GgJYEOIENVVkEI XqC88Q7N7+9W/+kM0jC+e8nA7CiA0QdfNU/QkcKDXaPhUDXU09lYT4xb3znh+4gZpG tTjnZk1zCyS2Q== X-Nifty-SrcIP: [126.90.202.47] From: Masahiro Yamada To: Rob Herring , Frank Rowand , devicetree@vger.kernel.org Subject: [PATCH v2] dt-bindings: ASoC: Convert UniPhier AIO audio system to json-schema Date: Tue, 23 Jun 2020 20:39:15 +0900 Message-Id: <20200623113915.791386-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200623_124027_004513_F1E9A7D2 X-CRM114-Status: GOOD ( 17.83 ) X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [210.131.2.77 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: - , Katsuhiro Suzuki , Liam Girdwood , linux-kernel@vger.kernel.org, Masahiro Yamada , Mark Brown , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Convert the UniPhier AIO audio system binding to DT schema format. Signed-off-by: Masahiro Yamada Reviewed-by: Rob Herring --- Changes in v2: - Add schema for subnode 'port' .../sound/socionext,uniphier-aio.yaml | 81 +++++++++++++++++++ .../bindings/sound/uniphier,aio.txt | 45 ----------- 2 files changed, 81 insertions(+), 45 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/socionext,uniphier-aio.yaml delete mode 100644 Documentation/devicetree/bindings/sound/uniphier,aio.txt diff --git a/Documentation/devicetree/bindings/sound/socionext,uniphier-aio.yaml b/Documentation/devicetree/bindings/sound/socionext,uniphier-aio.yaml new file mode 100644 index 000000000000..4987eb91f2ab --- /dev/null +++ b/Documentation/devicetree/bindings/sound/socionext,uniphier-aio.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/socionext,uniphier-aio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: UniPhier AIO audio system + +maintainers: + - + +properties: + compatible: + enum: + - socionext,uniphier-ld11-aio + - socionext,uniphier-ld20-aio + - socionext,uniphier-pxs2-aio + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clock-names: + const: aio + + clocks: + maxItems: 1 + + reset-names: + const: aio + + resets: + maxItems: 1 + + socionext,syscon: + description: | + Specifies a phandle to soc-glue, which is used for changing mode of S/PDIF + signal pin to output from Hi-Z. This property is optional if you use I2S + signal pins only. + $ref: "/schemas/types.yaml#/definitions/phandle" + + "#sound-dai-cells": + const: 1 + +patternProperties: + "^port@[0-9]$": + type: object + properties: + endpoint: true + required: + - endpoint + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clock-names + - clocks + - reset-names + - resets + - "#sound-dai-cells" + +examples: + - | + audio@56000000 { + compatible = "socionext,uniphier-ld20-aio"; + reg = <0x56000000 0x80000>; + interrupts = <0 144 4>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_aout>; + clock-names = "aio"; + clocks = <&sys_clk 40>; + reset-names = "aio"; + resets = <&sys_rst 40>; + #sound-dai-cells = <1>; + socionext,syscon = <&soc_glue>; + }; diff --git a/Documentation/devicetree/bindings/sound/uniphier,aio.txt b/Documentation/devicetree/bindings/sound/uniphier,aio.txt deleted file mode 100644 index 4ce68ed6f2f2..000000000000 --- a/Documentation/devicetree/bindings/sound/uniphier,aio.txt +++ /dev/null @@ -1,45 +0,0 @@ -Socionext UniPhier SoC audio driver - -The Socionext UniPhier audio subsystem consists of I2S and S/PDIF blocks in -the same register space. - -Required properties: -- compatible : should be one of the following: - "socionext,uniphier-ld11-aio" - "socionext,uniphier-ld20-aio" - "socionext,uniphier-pxs2-aio" -- reg : offset and length of the register set for the device. -- interrupts : should contain I2S or S/PDIF interrupt. -- pinctrl-names : should be "default". -- pinctrl-0 : defined I2S signal pins for an external codec chip. -- clock-names : should include following entries: - "aio" -- clocks : a list of phandle, should contain an entry for each - entry in clock-names. -- reset-names : should include following entries: - "aio" -- resets : a list of phandle, should contain an entry for each - entry in reset-names. -- #sound-dai-cells: should be 1. - -Optional properties: -- socionext,syscon: a phandle, should contain soc-glue. - The soc-glue is used for changing mode of S/PDIF signal pin - to Output from Hi-Z. This property is optional if you use - I2S signal pins only. - -Example: - audio { - compatible = "socionext,uniphier-ld20-aio"; - reg = <0x56000000 0x80000>; - interrupts = <0 144 4>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_aout>; - clock-names = "aio"; - clocks = <&sys_clk 40>; - reset-names = "aio"; - resets = <&sys_rst 40>; - #sound-dai-cells = <1>; - - socionext,syscon = <&sg>; - };