Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp383545rdh; Tue, 13 Feb 2024 22:41:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW1yuGhYnKdBF5qrLd6P8jrfiEz3cjn6RnwhFB5ylzriDljImW2LdyROvQ0lkGdsb6a0akQB1yz/VVQHo55j1fe58LWn5lhf7KmgCPhtg== X-Google-Smtp-Source: AGHT+IHAT4t2VNtWaiaUIXM5zohLnhblrU52BoA5ApXsW3mWmQzWlRhbzpGJfoTwk5MUAHkukGHs X-Received: by 2002:a17:906:2e89:b0:a3c:c29d:924f with SMTP id o9-20020a1709062e8900b00a3cc29d924fmr885645eji.71.1707892887966; Tue, 13 Feb 2024 22:41:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707892887; cv=pass; d=google.com; s=arc-20160816; b=QfFJVHx02djsyailOacUqbnqFhb93w1xcCKxiib1RjVbaNJ0e47Otvht+Vf4V8P7Mg uJkCJNsJ7KoUaO/lYoznwk16AmsfAu/8qMkRwYkvstoPG1waHfWUsRnaQnk38Uk4+U/n 0ezSYayNc1cd99IZYeT23Ff2djC1Vv7hc+mTa+bCpkR5AV/CH34bB8XNN0zqnHkvNe73 PwphPfiTDFkkNkzbiwRENQDxR1N8Rr9PFU8qHmCL14GRis7SxQ1NJT1vNR7lwzuKOrvV +s2sQ9Ba/VLxGv5UPkt1HJGjymftyMJfCx5gg76iRyfVBDXmqND9TF5XkLzLaIi3uvei 7XYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=G6+ect9ed1h2x7e4W5zvZVnIdjWiTfnrtox4TorYtFs=; fh=dpc9okMsPMhd3PIh0yKzmvezpwKVp4WW4UdDfp4hkxw=; b=BSSXassV0M5zYxrnayAumCddD9vTCo3iFcF7FsQAQN17w1t+ZrJFxVwfi5FI5uV+w2 i6GegVTG3yWkfGTmUVHmjB4BSjesXArXeGj5BvZss/OD01fwkUMig164/h731b8IUj6j GDzWIVu0B0L/LtSG4WYF9St+2dAjNwNH+fKk/PK5Ma+zzQUq+Tj4KDFvoiVqvx0AwWKO YuMRWpCJGSy69jhr2xR0nJRgSwzzLSaUolAKcY1EG6LhRo79xFz9BmsnBwoGjGW6ZsLX fPpQdkFFTCP/V0/zLANLB3pZGm1vw5gK27bNJr6AOvvTmg5ULYJHyeXj1NSX7IicMY5Z UxBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=FSncoOkU; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-64805-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64805-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com X-Forwarded-Encrypted: i=2; AJvYcCXwY3pKgetK4pFcVdHN41ukjxxFLbCKYdeFeZVxQdXlnVywwn0TFZ3C7c/oPPYhgihmcWZHdUsY7WJsGcmqIXE/ly2qYhrxNgoD9wFGFg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r19-20020a170906365300b00a3d36da3a4dsi494154ejb.322.2024.02.13.22.41.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 22:41:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64805-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=FSncoOkU; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-64805-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64805-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8736F1F21761 for ; Wed, 14 Feb 2024 06:41:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1A4D12B8A; Wed, 14 Feb 2024 06:40:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="FSncoOkU" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 C92CA12B6C; Wed, 14 Feb 2024 06:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707892818; cv=none; b=mHxG0wMCFx3ltxNDwgzWkpToYKMi+fnUshpFafqXaKaLzHcxe4FFZ9Ou3/oM4/htwIGkrbT5G86Vus/4ZKWGkIClTp4bN1i5ORL/41RTqa6dgAF8vsVRNjhCzixJfvPN1e48pHpotVyQ1IDqVxBLokpN0SKyrhqLxmxAUlR8bXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707892818; c=relaxed/simple; bh=wsHVfr8hdZBYZbP2L9EO1WVTmS/EVBmRVwV/3aRh+cQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:To:CC; b=auyhQVlpjDI2o0iiPVotAa/HxqOwFw/KnsSKR7QNwTXJCRdVO9EqiwR1I1HegDpnxGyXuMLFCHBrLhVCtoGw9d7GjmZdlH5YMN2Ro3uZkZuxPrNrS2eiZTCgppL3hZoCPCIaVPQICWc/r5aOaqZW6r3LKcs0X/BFkzWMwmOW/sY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=FSncoOkU; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1707892815; x=1739428815; h=from:date:subject:mime-version:content-transfer-encoding: message-id:to:cc; bh=wsHVfr8hdZBYZbP2L9EO1WVTmS/EVBmRVwV/3aRh+cQ=; b=FSncoOkUqcdbw6ryAhUeDYsgK/U/h7zWOTJxONx7sUlw+VU1rJ3PN4H8 tIDvSpBQB2gvlPQtzW1Y9+ZadJyfVIg6qK6A5kFzDdPisLCGVJGrA1tA9 EtRcvq0i+IvcuudBQpnzDjx+1MSXeywenmcT3UX0booabf0p2y33WAtnP jlYAw3t1i+xQwxEDIcCsDBdbdRinxXon9pYYiKeIY1yz7pFYQEtDrrpNe KgasEPlLdnp+zg8rfxwDxy3HHWuMsdIcxqlZRA7vK8chh6X28lvUluMQH jhO0/tynSuETTN6sEkW+A7rV9GqPobfSf4wYkNAWd/arWiH2VZLx2znod A==; X-CSE-ConnectionGUID: Ym+jSPJASQmf8byUSlOr0w== X-CSE-MsgGUID: B+vCBEvPTBmYybQn1ZsH9A== X-IronPort-AV: E=Sophos;i="6.06,159,1705388400"; d="scan'208";a="17663685" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 13 Feb 2024 23:40:14 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 13 Feb 2024 23:40:12 -0700 Received: from [127.0.0.1] (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 13 Feb 2024 23:40:07 -0700 From: Balakrishnan Sambath Date: Wed, 14 Feb 2024 12:10:06 +0530 Subject: [PATCH] dt-bindings: sound:atmel-at91sam9g20ek: convert bindings to json-schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20240214-at91sam9g20ek-wm8731-yaml-v1-1-33333e17383b@microchip.com> X-B4-Tracking: v=1; b=H4sIAEVgzGUC/x2MywqDMBAAf0X23IVsDNj4K8XDqltdaqwk4gPx3 xs6tznMXJAkqiSoiwuibJr0O2ehRwHdyPMgqH12sMY6Y8khr54SBz9YIx/cw7MqCU8OEzrj+kz bemLI/RLlrcf//Wru+wcz//ayawAAAA== To: Claudiu Beznea , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nicolas Ferre , Alexandre Belloni CC: , , , , , Balakrishnan Sambath X-Mailer: b4 0.12.4 Convert atmel-at91sam9g20ek-wm8731-audio DT binding to yaml based json-schema.Change file name to match json-scheme naming. Signed-off-by: Balakrishnan Sambath --- .../bindings/sound/atmel,at91sam9g20ek-wm8731.yaml | 60 ++++++++++++++++++++++ .../sound/atmel-at91sam9g20ek-wm8731-audio.txt | 26 ---------- 2 files changed, 60 insertions(+), 26 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/atmel,at91sam9g20ek-wm8731.yaml b/Documentation/devicetree/bindings/sound/atmel,at91sam9g20ek-wm8731.yaml new file mode 100644 index 000000000000..f6330707fe1b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/atmel,at91sam9g20ek-wm8731.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/atmel,at91sam9g20ek-wm8731.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel at91sam9g20ek wm8731 audio complex + +maintainers: + - Balakrishnan Sambath + +properties: + compatible: + const: atmel,at91sam9g20ek-wm8731-audio + + atmel,model: + $ref: /schemas/types.yaml#/definitions/string + description: The user-visible name of this sound complex. + atmel,audio-routing: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: A list of the connections between audio components. + minItems: 2 + items: + enum: + # Board Connectors + - "Ext Spk" + - "Int MIC" + + # CODEC Pins + - LHPOUT + - MICIN + atmel,ssc-controller: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of the SSC controller + atmel,audio-codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of WM8731 audio codec + +required: + - compatible + - atmel,model + - atmel,audio-routing + - atmel,ssc-controller + - atmel,audio-codec + +additionalProperties: false + +examples: + - | + sound { + compatible = "atmel,at91sam9g20ek-wm8731-audio"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pck0_as_mck>; + atmel,model = "wm8731 @ AT91SAMG20EK"; + atmel,audio-routing = + "Ext Spk", "LHPOUT", + "Int MIC", "MICIN"; + atmel,ssc-controller = <&ssc0>; + atmel,audio-codec = <&wm8731>; + }; diff --git a/Documentation/devicetree/bindings/sound/atmel-at91sam9g20ek-wm8731-audio.txt b/Documentation/devicetree/bindings/sound/atmel-at91sam9g20ek-wm8731-audio.txt deleted file mode 100644 index 9c5a9947b64d..000000000000 --- a/Documentation/devicetree/bindings/sound/atmel-at91sam9g20ek-wm8731-audio.txt +++ /dev/null @@ -1,26 +0,0 @@ -* Atmel at91sam9g20ek wm8731 audio complex - -Required properties: - - compatible: "atmel,at91sam9g20ek-wm8731-audio" - - atmel,model: The user-visible name of this sound complex. - - atmel,audio-routing: A list of the connections between audio components. - - atmel,ssc-controller: The phandle of the SSC controller - - atmel,audio-codec: The phandle of the WM8731 audio codec -Optional properties: - - pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt - -Example: -sound { - compatible = "atmel,at91sam9g20ek-wm8731-audio"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_pck0_as_mck>; - - atmel,model = "wm8731 @ AT91SAMG20EK"; - - atmel,audio-routing = - "Ext Spk", "LHPOUT", - "Int MIC", "MICIN"; - - atmel,ssc-controller = <&ssc0>; - atmel,audio-codec = <&wm8731>; -}; --- base-commit: 0dd3ee31125508cd67f7e7172247f05b7fd1753a change-id: 20240214-at91sam9g20ek-wm8731-yaml-404ddddbb91a Best regards, -- Balakrishnan Sambath