From patchwork Mon Jun 22 12:03:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 191317 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp972385ile; Mon, 22 Jun 2020 05:04:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqtL08a7zia1dtmZodQTirOA+7ovU+8r0KpX3Zb0FGMfthRQbxjy3/xNI5/c3c/9bnXupg X-Received: by 2002:a17:906:1cd3:: with SMTP id i19mr14849648ejh.321.1592827495950; Mon, 22 Jun 2020 05:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592827495; cv=none; d=google.com; s=arc-20160816; b=dXkCEChtDwwtfy2S0dmEFdgmDmmtQlmxJWhkcAqGNOiGJCEYzskeABt5aAzDlw75DS JjnxmeP36s3cUbQeDnBl/77xZOKXZwcGy9sr185SkX/eHU2apxszBHcmBbn/QpTY2YBZ 6dJ71DR52UVhB54wr7tLVYtD0AAuy5YKoH2Xh2qrhuvMGykMsPvXwzT9WufVFO3FUAX3 LCvL8PH1Mn6Xy1QWbEze9j6WvPlxaVxTciTMfl1mucRbhqPKJNmDAgOPH+Cin01bvkKu PSgTKe11RTPG/7KZLkVr3XzFywFbD67y3R6uFXkTNWOzqamf8IDQkLV52Reg1xGzXogS FkIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=XT5p7CGO0IRfglTH035B6VnJfGMRKyJLc0ZZJHRD7vI=; b=erwxFh3FmoSo1FJfrZXKKvTX+tqirVAC3ee4QF4VmdWtdpoxIF/2r8qADZQDF1qF44 3e3u9LowpLl8rnCWUjkzpUZSJVBONBstFOyG1GnvCTIx4QbNCwnSxucvRKuROhoBdzbx Hw4qepiIqAtejLDDzeRh//tpukxZjZ5z3yqMfITTWHW1CyrQosLG/UaBbYPmRh6HvoVW 1bwTAPzB+yKMtvBcXeoHxg48/yrJZj6yJou8VdFM7mRAVTkIJlTHUqZ9DHaSb7HzJFC2 DCd4KG+uTa3P8uUs4el+gptBMFhV+cQiQvsJ6nXp3fCrMIgRaubB1GbCxYtUcf6XN2Ca O9uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=vxcnk++B; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jx10si8068427ejb.74.2020.06.22.05.04.55; Mon, 22 Jun 2020 05:04:55 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=vxcnk++B; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727973AbgFVMEy (ORCPT + 6 others); Mon, 22 Jun 2020 08:04:54 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:62665 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727835AbgFVMEy (ORCPT ); Mon, 22 Jun 2020 08:04:54 -0400 Received: from oscar.flets-west.jp (softbank126090202047.bbtec.net [126.90.202.47]) (authenticated) by conuserg-11.nifty.com with ESMTP id 05MC3SgG001221; Mon, 22 Jun 2020 21:03:28 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com 05MC3SgG001221 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1592827409; bh=XT5p7CGO0IRfglTH035B6VnJfGMRKyJLc0ZZJHRD7vI=; h=From:To:Cc:Subject:Date:From; b=vxcnk++Bh/HeR8KH8zvH64uyIKfNlEo5yYtjkH/52X7GM1W6grC2f/fYi44u3aO7Q Zc2ON3HRrNHrIwYGTB46c+hVPdBIm7VdJdRPcc0vBkE8AbS4NWlehCVdwMLA3ocXnd Fp4+7RwQrjN79zRVo/qK+/fuEDGxCGKISPdVIybR7Brvn/gY4LzKMnRS5+zWFSLvAx e2i8LWJkaUDzZ9+fC2LN3MqBFvdpx2HTj6FWUrQeljYW/wiBjM+SB0O6zjgA9uxkNb QWf8lMEh5XbIkTZScLcxASeXZ9n1+sgshBXwiDEQC6cw7q3+giUIxNaYP1pejGinkQ NPTj859DtiRwg== X-Nifty-SrcIP: [126.90.202.47] From: Masahiro Yamada To: Rob Herring , Frank Rowand , devicetree@vger.kernel.org Cc: Katsuhiro Suzuki , Masahiro Yamada , - , Liam Girdwood , Mark Brown , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: ASoC: Convert UniPhier EVEA codec to json-schema Date: Mon, 22 Jun 2020 21:03:20 +0900 Message-Id: <20200622120320.454535-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the UniPhier EVEA sound codec binding to DT schema format. Signed-off-by: Masahiro Yamada --- .../sound/socionext,uniphier-evea.yaml | 62 +++++++++++++++++++ .../bindings/sound/uniphier,evea.txt | 26 -------- 2 files changed, 62 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/socionext,uniphier-evea.yaml delete mode 100644 Documentation/devicetree/bindings/sound/uniphier,evea.txt -- 2.25.1 diff --git a/Documentation/devicetree/bindings/sound/socionext,uniphier-evea.yaml b/Documentation/devicetree/bindings/sound/socionext,uniphier-evea.yaml new file mode 100644 index 000000000000..7ac1c0140d5d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/socionext,uniphier-evea.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/socionext,uniphier-evea.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: UniPhier EVEA SoC-internal sound codec + +maintainers: + - + +properties: + compatible: + const: socionext,uniphier-evea + + reg: + maxItems: 1 + + clock-names: + items: + - const: evea + - const: exiv + + clocks: + minItems: 2 + maxItems: 2 + + reset-names: + items: + - const: evea + - const: exiv + - const: adamv + + resets: + minItems: 3 + maxItems: 3 + + "#sound-dai-cells": + const: 1 + +additionalProperties: false + +required: + - compatible + - reg + - clock-names + - clocks + - reset-names + - resets + - "#sound-dai-cells" + +examples: + - | + codec@57900000 { + compatible = "socionext,uniphier-evea"; + reg = <0x57900000 0x1000>; + clock-names = "evea", "exiv"; + clocks = <&sys_clk 41>, <&sys_clk 42>; + reset-names = "evea", "exiv", "adamv"; + resets = <&sys_rst 41>, <&sys_rst 42>, <&adamv_rst 0>; + #sound-dai-cells = <1>; + }; diff --git a/Documentation/devicetree/bindings/sound/uniphier,evea.txt b/Documentation/devicetree/bindings/sound/uniphier,evea.txt deleted file mode 100644 index 3f31b235f18b..000000000000 --- a/Documentation/devicetree/bindings/sound/uniphier,evea.txt +++ /dev/null @@ -1,26 +0,0 @@ -Socionext EVEA - UniPhier SoC internal codec driver - -Required properties: -- compatible : should be "socionext,uniphier-evea". -- reg : offset and length of the register set for the device. -- clock-names : should include following entries: - "evea", "exiv" -- clocks : a list of phandle, should contain an entry for each - entries in clock-names. -- reset-names : should include following entries: - "evea", "exiv", "adamv" -- resets : a list of phandle, should contain reset entries of - reset-names. -- #sound-dai-cells: should be 1. - -Example: - - codec { - compatible = "socionext,uniphier-evea"; - reg = <0x57900000 0x1000>; - clock-names = "evea", "exiv"; - clocks = <&sys_clk 41>, <&sys_clk 42>; - reset-names = "evea", "exiv", "adamv"; - resets = <&sys_rst 41>, <&sys_rst 42>, <&adamv_rst 0>; - #sound-dai-cells = <1>; - };