From patchwork Tue Jun 23 11:40:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 191434 Delivered-To: patch@linaro.org Received: by 2002:a54:3249:0:0:0:0:0 with SMTP id g9csp973401ecs; Tue, 23 Jun 2020 04:41:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCaSzTvxqbNSSZUDZBTIq5VdqRMn1/8SCaDgTQQFLiQa+5ow5MS8iU/W9h4zTZD/mDzG8f X-Received: by 2002:a05:6402:b5c:: with SMTP id bx28mr21575721edb.145.1592912486788; Tue, 23 Jun 2020 04:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592912486; cv=none; d=google.com; s=arc-20160816; b=T4vJ3k66cxmp7u3XkYqVuxBdfxaeQbCjZdP9UDyOlRzRIcYdq8qqdOJQ+jCio04kGl 7PPgl7AzFqfHvjxj+/Kql3/YIbdDUp0Y0olt9yjDDEG22vhrAN9GOsk5SCho1ZTrcfE1 ttn7Xajm90er4iPnG/9/cTZJCloC9Y0kJSh9WHMKZX7QU9JAb6FZSya8CMG2BMGDYW4i vMpk0BPVbf7u6gAiG28z55NhnuSqRMtQ6t73K+KBfmC/gUNvYdof/1my6tClVl9Q+vkS GqcxTYDsFx26oVL2UqYWO+w8XahFS6/WD8/aNFsgE6a/JyKsF9ZRONLmjfke1zeV+HTP /7Xg== 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=PygYU/2RRMrfiio7nz6fPQ9Z7mq5YCkWc1Sf7EhnCkI=; b=Oq4OkB4Gpjjdh0BYcuZZwzibeC21+M7UOu2dpMwI3nOrxDFuPat0dQDwDem+i0A7/r qBz0XNZbzrwf+ZKrBeQeC5rh5WhfPHMMlyWDEBqq/CCd9AJdc9r7RgVCoOlL7jh6ZcwN RU9W1jzwpGlh6wEIbhkBVcc9NgkyLomaWeq9PuvJcZ0UG7iAEaSWKi+h+kRv4PASPd+3 x74lrLoH6hOm+xCFhMI1eu8wUraWWRjztevKZxZ7Cbr1VCQSw7hjBYbpQLNmTEc0Odu3 PaAlxjeQoO+J5O7PN2FPLcwB+2lOb4wZELNnggp0SCkWV+io1JA/hVXrg/MmtY0yaGnR drUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=sVizWFAT; 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 du7si14317688ejc.341.2020.06.23.04.41.26; Tue, 23 Jun 2020 04:41:26 -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=sVizWFAT; 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 S1732450AbgFWLl0 (ORCPT + 6 others); Tue, 23 Jun 2020 07:41:26 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:33479 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732245AbgFWLlZ (ORCPT ); Tue, 23 Jun 2020 07:41:25 -0400 Received: from oscar.flets-west.jp (softbank126090202047.bbtec.net [126.90.202.47]) (authenticated) by conuserg-08.nifty.com with ESMTP id 05NBe8ci003070; Tue, 23 Jun 2020 20:40:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com 05NBe8ci003070 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1592912410; bh=PygYU/2RRMrfiio7nz6fPQ9Z7mq5YCkWc1Sf7EhnCkI=; h=From:To:Cc:Subject:Date:From; b=sVizWFATWNcpy5d9L3all7xagM7c44OaE+nOQol8xIWPF1MVnRFYRK+KAyHkpv+Di K0ohhgAFzmEXqysWpfY+oy9zqY8dlFfcvS7uTwCnWxFtcA9BtjqO2tiz2Opou6yamU OQDbKdbG89dg+9GLB1EHru5JKHnKyuXLcpjRJm1jzx3444+h8jKKOvJtWjR1NcF06p ebdnrAdGVhto+zkF6R/d7tKHpxWO4gjBmdj4cWAkWl5Utk5NAF3uAOwWx66gkL8fcy trtsxYJwBvJj/kYN2jxwGKo7YronIzoFNQBUX5USckS9u6fIQKRCmGW7XmbVQefPgM 971JdwhmVLzhA== 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 v2] dt-bindings: ASoC: Convert UniPhier EVEA codec to json-schema Date: Tue, 23 Jun 2020 20:40:05 +0900 Message-Id: <20200623114005.791643-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 --- Changes in v2: - Add schema for subnode 'port' .../sound/socionext,uniphier-evea.yaml | 70 +++++++++++++++++++ .../bindings/sound/uniphier,evea.txt | 26 ------- 2 files changed, 70 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 Reviewed-by: Rob Herring 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..228168f685cf --- /dev/null +++ b/Documentation/devicetree/bindings/sound/socionext,uniphier-evea.yaml @@ -0,0 +1,70 @@ +# 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 + +patternProperties: + "^port@[0-9]$": + type: object + properties: + endpoint: true + required: + - endpoint + +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>; - };