From patchwork Sat Jun 22 18:21:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Animesh Agarwal X-Patchwork-Id: 13708374 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9E4B0C2BB85 for ; Sat, 22 Jun 2024 18:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From: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-Owner; bh=0kSS06er1VarQnO16XXiZ+cNjn4u2G2NLIQN3unM0EE=; b=hgSha+CC6CN3nYVxhMGZS+Axzk zx5qnOK5nnDDchvmqcKJGxM94wIA0Hl164PKMl7kM5aOC+90eZBLTpTQ7gWvq1U8zr81QOC/HidVp YUo8c2XpJ2hoH1Ye4lrvP+d+uYCwZG26/AEIfrNrcul1YVuZ9QBST8UapGTHcEVBTFdJrn5dT+/Hx 1VshnqzVSpWRfwnmUj305yU6xz+H9PwyM6qlDUHuVDjIWqLbb4nJNFMm4Z57hdmhzRa77Pu28weu+ 0AgRFZj8JPYVv8Y94jy5L5l8u9g9KH52vafEdjHw6tyajSAi+175sht6BSWQXTAZ9XVRUi8E3iI+/ /aaOQSUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sL5Ns-0000000Cagr-0U5Y; Sat, 22 Jun 2024 18:22:44 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sL5Nm-0000000Cafw-3uma for linux-arm-kernel@lists.infradead.org; Sat, 22 Jun 2024 18:22:40 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1f4a5344ec7so20673625ad.1 for ; Sat, 22 Jun 2024 11:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719080558; x=1719685358; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0kSS06er1VarQnO16XXiZ+cNjn4u2G2NLIQN3unM0EE=; b=bqg1NhsdTvO0GSMTFBeAq8AdopLZ/vc84IqtgFH7gzzfWzd1yedBJyTwteWwLFEJLQ rcI++2EziAPTkgj87q+E6qBCxamXdm2axhNh8HxPng8OC+Km0NmO9YC3e+ko+kKQx+II RsdpdZ26O1NkNL+xG/AKtB3lQ4fWO7Yli9ANrh+hghfcWOM2KRjKDnyIJL8FWkPsc/7A mW4zkYGDx1rxrSw3PO7BwNGsU7aqWNDll6mNo9Vti+wEJyYiUnepjE0bfLq5T8B66mka 9Pl4FpFikhKVQD51tlPcxdm1sp4BAXyzeA5HBZDj85qT6qCH2mEw7JZTGIZZaWUWH041 ahSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719080558; x=1719685358; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0kSS06er1VarQnO16XXiZ+cNjn4u2G2NLIQN3unM0EE=; b=pvB6e4DMDmUrqWKViN+QDtYgN8cGlvYswvXulG/n6O44itq8Si7/IshKjd5JuFrhBV oklQSUZ4DxDsV2CZ3q49kXSkGMmfTawvGf5uA5n3d2ebIAfWDhh07UlRGKwWwNSub5v1 Yw8PVQwAjUN/+Sq36UwftaYybDwJwwIxr5prU0LrYr6Ms/o6CKmvvpOdZ/vnvA/u8jsa Akl/tjfJqJGHcFZDluH/l2YdJOaWq0L9fiBi8os18fQqHsYjUaJi0VHMYWh1PLNxlK4J LJCnuR8JzOzmVmKJ5r20paqlZDmhaJjuDNh+tQl0YyVGXBRA319OlJ7qO3EIBPctMUMF 82hA== X-Forwarded-Encrypted: i=1; AJvYcCX61R+TmtzVaKk989610smiFViXD9QPLoVfRdNI58bTbe2sAk/lG1be8cPCEmxzV0SUqJFsetwiRBLosDfWk52/VEmuiMQaVFrEjlM2vmhYRpsehvY= X-Gm-Message-State: AOJu0YzHq4Z7XeekhhdbaBK7Yagegk2A9ubuxwo3rIjzvrjx+IEz9MEO HCVnetMmHXYsDA1RBOhAI7H+mh8uyqYYkGoCp9RtDyzGs3cuWXOu X-Google-Smtp-Source: AGHT+IFSi6Zl6roN+pMwkndNjWlqH2oNq/bbNLK+UAZlb4vSoJGqMkxrLST790YOyh4/Jg6sPZ2R1g== X-Received: by 2002:a17:903:a46:b0:1f9:fe14:592f with SMTP id d9443c01a7336-1fa0f8cd95cmr18266495ad.17.1719080556950; Sat, 22 Jun 2024 11:22:36 -0700 (PDT) Received: from fedora.one.one.one.one ([2405:201:6013:c0b2:ea4b:30e0:4e3a:ab56]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f9ebbc7b8asm33794545ad.300.2024.06.22.11.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jun 2024 11:22:36 -0700 (PDT) From: Animesh Agarwal To: Cc: animeshagarwal28@gmail.com, Daniel Baluta , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: dt-bindings: fsl,imx-audio-sgtl5000: Convert to dtschema Date: Sat, 22 Jun 2024 23:51:56 +0530 Message-ID: <20240622182200.245339-1-animeshagarwal28@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240622_112239_001651_40B16237 X-CRM114-Status: GOOD ( 16.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the imx-audio-sgtl bindings to DT schema. Make bindings complete by adding audio-cpu property. Signed-off-by: Animesh Agarwal Cc: Daniel Baluta --- .../sound/fsl,imx-audio-sgtl5000.yaml | 108 ++++++++++++++++++ .../bindings/sound/imx-audio-sgtl5000.txt | 56 --------- 2 files changed, 108 insertions(+), 56 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/fsl,imx-audio-sgtl5000.yaml delete mode 100644 Documentation/devicetree/bindings/sound/imx-audio-sgtl5000.txt diff --git a/Documentation/devicetree/bindings/sound/fsl,imx-audio-sgtl5000.yaml b/Documentation/devicetree/bindings/sound/fsl,imx-audio-sgtl5000.yaml new file mode 100644 index 000000000000..906dcecb73b7 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/fsl,imx-audio-sgtl5000.yaml @@ -0,0 +1,108 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/fsl,imx-audio-sgtl5000.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX audio complex with SGTL5000 codec + +maintainers: + - Animesh Agarwal + +properties: + compatible: + oneOf: + - items: + - enum: + - fsl,imx25-pdk-sgtl5000 + - fsl,imx51-babbage-sgtl5000 + - fsl,imx53-m53evk-sgtl5000 + - tq,imx53-mba53-sgtl5000 + - fsl,imx53-cpuvo-sgtl5000 + - fsl,imx53-qsb-sgtl5000 + - karo,tx53-audio-sgtl5000 + - fsl,imx53-voipac-sgtl5000 + - fsl,imx6q-ba16-sgtl5000 + - fsl,imx6q-ventana-sgtl5000 + - fsl,imx-sgtl5000 + - fsl,imx6-armadeus-sgtl5000 + - fsl,imx6dl-nit6xlite-sgtl5000 + - fsl,imx6q-nitrogen6_max-sgtl5000 + - fsl,imx6q-nitrogen6_som2-sgtl5000 + - fsl,imx6q-nitrogen6x-sgtl5000 + - fsl,imx6-rex-sgtl5000 + - fsl,imx6q-sabrelite-sgtl5000 + - fsl,imx6-wandboard-sgtl5000 + - const: fsl,imx-audio-sgtl5000 + - const: fsl,imx-audio-sgtl5000 + + model: + $ref: /schemas/types.yaml#/definitions/string + description: The user-visible name of this sound complex. + + audio-cpu: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of an CPU DAI controller + + ssi-controller: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of the i.MX SSI controller. + + audio-codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of the SGTL5000 audio codec. + + audio-routing: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: | + A list of the connections between audio components. Each entry is a pair + of strings, the first being the connection's sink, the second being the + connection's source. Valid names could be: + + Power supplies: + * Mic Bias + + SGTL5000 pins: + * MIC_IN + * LINE_IN + * HP_OUT + * LINE_OUT + + Board connectors: + * Mic Jack + * Line In Jack + * Headphone Jack + * Line Out Jack + * Ext Spk + + mux-int-port: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The internal port of the i.MX audio muxer (AUDMUX). + enum: [1, 2] + + mux-ext-port: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The external port of the i.MX audio muxer. + enum: [3, 4, 5, 6] + +required: + - compatible + - model + +additionalProperties: false + +examples: + - | + sound { + compatible = "fsl,imx51-babbage-sgtl5000", + "fsl,imx-audio-sgtl5000"; + model = "imx51-babbage-sgtl5000"; + ssi-controller = <&ssi1>; + audio-codec = <&sgtl5000>; + audio-routing = + "MIC_IN", "Mic Jack", + "Mic Jack", "Mic Bias", + "Headphone Jack", "HP_OUT"; + mux-int-port = <1>; + mux-ext-port = <3>; + }; diff --git a/Documentation/devicetree/bindings/sound/imx-audio-sgtl5000.txt b/Documentation/devicetree/bindings/sound/imx-audio-sgtl5000.txt deleted file mode 100644 index 2f89db88fd57..000000000000 --- a/Documentation/devicetree/bindings/sound/imx-audio-sgtl5000.txt +++ /dev/null @@ -1,56 +0,0 @@ -Freescale i.MX audio complex with SGTL5000 codec - -Required properties: - - - compatible : "fsl,imx-audio-sgtl5000" - - - model : The user-visible name of this sound complex - - - ssi-controller : The phandle of the i.MX SSI controller - - - audio-codec : The phandle of the SGTL5000 audio codec - - - audio-routing : A list of the connections between audio components. - Each entry is a pair of strings, the first being the - connection's sink, the second being the connection's - source. Valid names could be power supplies, SGTL5000 - pins, and the jacks on the board: - - Power supplies: - * Mic Bias - - SGTL5000 pins: - * MIC_IN - * LINE_IN - * HP_OUT - * LINE_OUT - - Board connectors: - * Mic Jack - * Line In Jack - * Headphone Jack - * Line Out Jack - * Ext Spk - - - mux-int-port : The internal port of the i.MX audio muxer (AUDMUX) - - - mux-ext-port : The external port of the i.MX audio muxer - -Note: The AUDMUX port numbering should start at 1, which is consistent with -hardware manual. - -Example: - -sound { - compatible = "fsl,imx51-babbage-sgtl5000", - "fsl,imx-audio-sgtl5000"; - model = "imx51-babbage-sgtl5000"; - ssi-controller = <&ssi1>; - audio-codec = <&sgtl5000>; - audio-routing = - "MIC_IN", "Mic Jack", - "Mic Jack", "Mic Bias", - "Headphone Jack", "HP_OUT"; - mux-int-port = <1>; - mux-ext-port = <3>; -};