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: 1905043 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=udima.es header.i=@udima.es header.a=rsa-sha256 header.s=google header.b=SORrIfKN; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=devicetree+bounces-46377-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TkcWW0w4Bz23cb for ; Tue, 27 Feb 2024 23:39:51 +1100 (AEDT) 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 2F9651F26360 for ; Tue, 27 Feb 2024 12:39:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08B1413AA20; Tue, 27 Feb 2024 12:39:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=udima.es header.i=@udima.es header.b="SORrIfKN" X-Original-To: devicetree@vger.kernel.org Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 7A0A631A66 for ; Tue, 27 Feb 2024 12:39:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037568; cv=none; b=EFXXKaoKWOJBrhyyiZcCYWf+NEyL1Ia/bSchI2enHONw8pVQ5aauBte54eMkDQEG1xjGg/QZ6lTH/T6GJHUr/VQhisaI9yIiNSpVhQN6GxV6mwpoHnOVgB4F1LUfGqv96a2j//ljchPaEE/c+OPayHziXYJJn1tlnbQYnM/Yw0A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037568; c=relaxed/simple; bh=IglaxdcZLU76jtprsOmWHg7k//GQ0hgdjNnuOUMEAVE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=USVqAWLVa+tdLvMA2FpGNHxgnp9KgsikbvlUtRxk9blUhUJ/eAXte3Uh2Z6KE7Nx2DnChqj8phfmpCzt1c662LvkWYiDTsvImApfNHZvie3VP8rNlYpESxnw4n/qOPGi2ZyApEJc0g4V6MoKIva9sz7CQqQWZaoERrHJXHnQIts= 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.43 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-f43.google.com with SMTP id ffacd0b85a97d-33d90dfe73cso2856864f8f.0 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=RKiuAOpCB3/Epw/IlIzc40MIUXcEjiVuEXz2Alck3bW7bouV84+uvwexZ+FZqkrJ14 PLAFREdsOKO4aFJV/onwNQ4Jz+1yl1nUpY3lA3hMUbS5Lj/99I9jKsLqhfbQA85FOt2j xIX7CMID8d0pFllgBPGdMQML112UB9hn8awmNQGfQe0WjzqzriuJYFrHMosin+GIoL+j UgcP9ZQV2+m2h2aKHwcm7SmnZHEtFCfV3+N/Gd3F2lnWpOM2WE/vLa04XXL7HUwIoutD PS0QI0lKEFxHn9wr2Qj2/f+NwcdCiUIZVSZsXYnEfmUibz6tJIe3cn2BbYLhCZRVKdKv 3kKw== X-Forwarded-Encrypted: i=1; AJvYcCUpxOojGeLSGRUyHGQz7vkPmf12f9CmpfLcQ5A3CRLm9K2sQ6wivL1iETeBwepkAj3KVDViLLY3AOz+GdHQbhoKGT5mSl22/meSaQ== X-Gm-Message-State: AOJu0YyfuP5XJzQdKVDJ1J7cVQrdmHjdG8crgmZ5rxtBEDzpKaGZ6QKC riC5tgP6ReNfu/Cx3eJzXl2U80xXWWlJ7r+ufEWMXN2uxhXBMSGO3i7tkivQmKI= X-Google-Smtp-Source: AGHT+IEmHNL+YaOOg3Qorj9DIRtr3BjF7dDzlkl0TJwo1yMeS3zmaiUNv0d+QEC07JdkBi5KsJphoQ== 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: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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>; + };