From patchwork Tue Feb 27 12:35:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Javier_Garc=C3=ADa?= X-Patchwork-Id: 207207 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2666369dyb; Tue, 27 Feb 2024 04:40:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVEuCwrs70NxhNfyO3WAf58FNysi60nJrNf53b91/FH8j0bLPGahi6owvR4tu7bsviSnUUymZPrJzE37rqtLYpnsVFheQ== X-Google-Smtp-Source: AGHT+IFlzFg/iaN0u1vibS+gHZjeUlZ6kZaX01l/uzzTZeI28b2jphsjhYbYsuHff+ysLARoLNUQ X-Received: by 2002:a17:902:650c:b0:1db:d811:732a with SMTP id b12-20020a170902650c00b001dbd811732amr8072973plk.37.1709037600114; Tue, 27 Feb 2024 04:40:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709037600; cv=pass; d=google.com; s=arc-20160816; b=gTgxWIb1AIrXymDj/P9P2ChK5m64OzU70+mntIofnu3Rt/o/RfzcIqQJ6O9z6hyZHa 7DBAUMLYuTx4+HK4l3QPBO0uoG3+C+yiSgSIO8z4r8p6gckh4SWkG7dXDoOFHK9MvoBR MHba1cwS+chHKd1Hohkl/ICNWdz6cC2kiL1Dh7mhQmHPvbNvRJRfUF1RouUdSHEeueVx Cxb55Zrnq3R8puRLHZjGEZGzFYTB8eyxVBPlZtO4e68V3g0MX2QPqmaOC6VNL2VbNMk4 oONp40KFj2trs4SgJnVIAAS1kfxQSmy+57iZRYa9nrfgctdTDPqU44at0aYB1PDGoZsS OhHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ulSh+zGZ8+dyF926zcKrRhp4LS8bqP+HSdasdk27iBg=; fh=mH+bEjMf4fc4zU4WpwbOHlzvezuuZlyiB9MudQvhGi4=; b=cQ6k29w67fDPni5xKiFe4BAKkkffzD46yyC0xDRWgrGK5M0SHtOsx+d6FP3b40KqQ5 sgAlK6nW4JBNJPQlm2xqntA2YsH4IJ1uqEU4Je1A2FhXqV/+8stTbNS+vAAjh8IsRSjj XqioQLyyTQjvHYuEb6bLJuz253879reDSVOr0u9HsXlc65gNVoeQ7IAhm3Dw2iatmK2N VB3ok6uyksIrROnCkZ+VoB2RA7pBUY61bJY9hU4LCOwhjsfLzzCfcTwVz2bCaHs5rOpy QdNI/p7keIaLkKf4K4VUy+ZaCfwSiXNEDCU7CRk53II0fakFHPXm2Vy8RZ6rtyfUOP7i bBXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@udima.es header.s=google header.b=SORrIfKN; arc=pass (i=1 spf=pass spfdomain=udima.es dkim=pass dkdomain=udima.es dmarc=pass fromdomain=udima.es); spf=pass (google.com: domain of linux-kernel+bounces-83245-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83245-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=udima.es Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n16-20020a170902d2d000b001dca8522501si1391745plc.276.2024.02.27.04.40.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 04:40:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83245-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@udima.es header.s=google header.b=SORrIfKN; arc=pass (i=1 spf=pass spfdomain=udima.es dkim=pass dkdomain=udima.es dmarc=pass fromdomain=udima.es); spf=pass (google.com: domain of linux-kernel+bounces-83245-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83245-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=udima.es 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E291B28401A for ; Tue, 27 Feb 2024 12:39:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 838AA13AA4A; Tue, 27 Feb 2024 12:39:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=udima.es header.i=@udima.es header.b="SORrIfKN" Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 823CD13A258 for ; Tue, 27 Feb 2024 12:39:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037569; cv=none; b=qySezkxrjohLkXPERo+9VwJrPad/9hjzjQsajCc3Zve4bWOr2Li/D4ALz0MvJJ/9/8QzAa5CBMSLAz0OPYxL6jah1MurAEa5T6CkjefUkHbmV8gy7gsduwbf3XBDF6RbYZ436QBDvFyApWrBNLaxaL2Xh3s1i9OPNhLVIjCComQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037569; c=relaxed/simple; bh=IglaxdcZLU76jtprsOmWHg7k//GQ0hgdjNnuOUMEAVE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=A3ROdBuzCQVO3XyjpU2reQgynp0VGjTBDesod398heupWtxqo/1PyzidZfy9VlTFOXu9yVdbkkZ73E440frYPIPJ6ueCOiAjHQIpY+cXgEY+PMS8rB+etHubGD8Ls6ngnzY1+vdiuyOQg/CRLwjAexFiKBPi1vhcHSeRI7dXdfU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=udima.es; spf=pass smtp.mailfrom=udima.es; dkim=pass (1024-bit key) header.d=udima.es header.i=@udima.es header.b=SORrIfKN; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=udima.es Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=udima.es Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-33d26da3e15so2379279f8f.1 for ; Tue, 27 Feb 2024 04:39:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udima.es; s=google; t=1709037564; x=1709642364; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ulSh+zGZ8+dyF926zcKrRhp4LS8bqP+HSdasdk27iBg=; b=SORrIfKN823y17rLyenkBj+/iROfbZGuBLb81Yrk6DPdYExXqlvZphXiwfPPLFETNg tUk+Ke1aN29TvDYVkdjy/kpv3ZucL2PLbnwoZLpeW7jH3bWzvyyTK2pIsher5NvZQbp0 ZVi4yObKoBeatg8talaP0a8S1IGCquZJiS+wA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709037564; x=1709642364; 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=ulSh+zGZ8+dyF926zcKrRhp4LS8bqP+HSdasdk27iBg=; b=SYhjBZZXHqOE5A6Qom2NyRfVlRc000EfaGfe9rCaFEa5StNgwcm8AKQKSnxA9UAOR0 oV5nkWkzi4gCn93iMbEGIH8hzsa2y7JotaL+EdU1/Po8ZLA+7qi1IcUezpriBhQ8E6sT ZWIPDGmoAyh5ED5YRQALmKmQYZX81CIAnFdvdzqSrTjVjnBnUn2tlGDgrbhXxM75e0YW U6jljCsF/28pUp2fHUQzKkyz6qZgCE37Y7fW4ASobtmRD9FIj/9oHVRlYKdF42hAFW/5 90zpZ4TQB9zJjeKF2NqQCATsDUlz1hTkOxeviADji8Fk14YK/YT8QH8cnUzfPYM823tz jFXg== X-Forwarded-Encrypted: i=1; AJvYcCVEG6rfCprNzjNnz+jOxYFrRo9UpcoMZWa22sKXJKdVdl46Rdxcn7mCWI4xGmr4RV3DSQUHFNIPHC2BjSch/Qgqi6Is3fZ6VGZiix6H X-Gm-Message-State: AOJu0Yz31ZE60O4Becndsogw3dxd4vHS3pT1n4OOMvIuoZ81fZtOAKOf zCPd7PSXkDrJlQaFjhVvbVu+n+SsDDDKhQftzya4LWIGoQ1bcULpk6i+TPUlbrU= X-Received: by 2002:adf:d1c3:0:b0:33d:7ec9:f5d0 with SMTP id b3-20020adfd1c3000000b0033d7ec9f5d0mr9918938wrd.2.1709037563746; Tue, 27 Feb 2024 04:39:23 -0800 (PST) Received: from portatil76.udima ([79.116.0.170]) by smtp.googlemail.com with ESMTPSA id bw1-20020a0560001f8100b0033af3a43e91sm11444061wrb.46.2024.02.27.04.39.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 04:39:23 -0800 (PST) From: =?utf-8?q?Javier_Garc=C3=ADa?= To: Cc: daniel.baluta@nxp.com, javier.garcia.ta@udima.es, Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Convert the Imagination Technologies SPDIF Input Controllerto DT schema. Date: Tue, 27 Feb 2024 13:35:55 +0100 Message-ID: <20240227123602.258190-1-javier.garcia.ta@udima.es> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792055810668657034 X-GMAIL-MSGID: 1792055810668657034 Convert the Imagination Technologies SPDIF Input Controllerto DT schema. Signed-off-by: Javier GarcĂ­a --- .../bindings/sound/img,spdif-in.txt | 41 ---------- .../bindings/sound/img,spdif-in.yaml | 80 +++++++++++++++++++ 2 files changed, 80 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/img,spdif-in.txt create mode 100644 Documentation/devicetree/bindings/sound/img,spdif-in.yaml diff --git a/Documentation/devicetree/bindings/sound/img,spdif-in.txt b/Documentation/devicetree/bindings/sound/img,spdif-in.txt deleted file mode 100644 index f7ea8c87bf34..000000000000 --- a/Documentation/devicetree/bindings/sound/img,spdif-in.txt +++ /dev/null @@ -1,41 +0,0 @@ -Imagination Technologies SPDIF Input Controller - -Required Properties: - - - compatible : Compatible list, must contain "img,spdif-in" - - - #sound-dai-cells : Must be equal to 0 - - - reg : Offset and length of the register set for the device - - - dmas: Contains an entry for each entry in dma-names. - - - dma-names: Must include the following entry: - "rx" - - - clocks : Contains an entry for each entry in clock-names - - - clock-names : Includes the following entries: - "sys" The system clock - -Optional Properties: - - - resets: Should contain a phandle to the spdif in reset signal, if any - - - reset-names: Should contain the reset signal name "rst", if a - reset phandle is given - - - interrupts : Contains the spdif in interrupt, if present - -Example: - -spdif_in: spdif-in@18100e00 { - compatible = "img,spdif-in"; - reg = <0x18100E00 0x100>; - interrupts = ; - dmas = <&mdc 15 0xffffffff 0>; - dma-names = "rx"; - clocks = <&cr_periph SYS_CLK_SPDIF_IN>; - clock-names = "sys"; - #sound-dai-cells = <0>; -}; diff --git a/Documentation/devicetree/bindings/sound/img,spdif-in.yaml b/Documentation/devicetree/bindings/sound/img,spdif-in.yaml new file mode 100644 index 000000000000..d201293d63c7 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/img,spdif-in.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/img,spdif-in.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Imagination Technologies SPDIF Input Controller + +maintainers: + - Rob Herring + - Krzysztof Kozlowski + +properties: + compatible: + enum: + - img,spdif-in + + reg: + description: + Offset and length of the register set for the device. + maxItems: 1 + + interrupts: + maxItems: 1 + + dmas: + maxItems: 1 + + dma-names: + items: + - const: rx + + clocks: + items: + - description: The system clock + + clock-names: + items: + - const: sys + + '#sound-dai-cells': + const: 0 + + resets: + items: + - description: Should contain a phandle to the spdif in reset signal, if any + + reset-names: + items: + - const: rst + +required: + - compatible + - reg + - dmas + - dma-names + - clocks + - clock-names + - '#sound-dai-cells' + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + spdif_in: spdif-in@18100e00 { + compatible = "img,spdif-in"; + reg = <0x18100E00 0x100>; + interrupts = ; + dmas = <&mdc 15 0xffffffff 0>; + dma-names = "rx"; + clocks = <&cr_periph SYS_CLK_SPDIF_IN>; + clock-names = "sys"; + + #sound-dai-cells = <0>; + };