Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1746999lqs; Sun, 16 Jun 2024 02:52:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHsLAjX0ZTwA85fRLnqZgE99r9IWbpMx/fMUbCIPu9eLvRkYW251Q8YLpT11eO7HqmBNLByn6soj5njwNHBx1IeWnkBlpBZj3rzzJNNw== X-Google-Smtp-Source: AGHT+IEEpDXWHjSKNJeVzSbw9pnqUUbjhHnSrwOlSrQC0l1LLkgWPbuxeOqeeUfcx3tqj23zp4qI X-Received: by 2002:a17:906:16c8:b0:a6f:33a2:eaad with SMTP id a640c23a62f3a-a6f60de5e0emr510200366b.71.1718531570020; Sun, 16 Jun 2024 02:52:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718531570; cv=pass; d=google.com; s=arc-20160816; b=QPu4KuUmUIFXoBJpaxddWgnwbWK7z66e9OIGtEJAEPzDgASclM+ynNBeoJUzKMFqBO XJgz51SfFAC3hjodfFGSCNx+BWvinialFNIo5Ef/ByQIxrzgD+Vvc5VvUv0YcX6rakKI HFbW8NXHuRtKp3KbwkYKH2B1f5HdkdlkRz7sWmyvkJJEM0DxmVHbO4jkMnv+uzJhCIF3 vTwDQDCkh3QPVXq1Q5OM0FaQRTDT5DVN3pc+kK4+nrqHLN8fvXzBy+yLxo84Ed+c+zwA Lp0Ur1h1tX1yYlcGQHsL/5JzNkFaYiwHWfAi/5UFLhj8BUD/wPQL1/RJWN8O80YQYXaD Zt1g== 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=GKTZuZsWgG4U6fxLMx1cgYwrM7Q/BtT3yyk8jGRBk/s=; fh=0+39JEzRgLCK7WXoNxI8El3MiYx888PiU43h6kxdnqk=; b=C37rbqp0D1KKg/wnVtv3HepUVy6EN/Ahhg2itIIYoBAK3L3gp8kJL/qC3NIrvvmauP 8zSj4I/mTOL2VSqWlNB62wl7D8L3ZXgqJgD45Ome9Kw/IqgqX2PT9N7b/+HP828iZ+hh I7/v1b8N1c+2Esr2Zv40LaYpMI0Mit1aKPdSXf9tbOl6N3E+We2FlfhwRcdvx290bQuM hUOpj3p0gz7u51H1z3XDJdC2lnYoTpoaTgzS5wLfqck+FhgSRots7mq6jgTcVGglsq// 9dzKUEFYVKDZFgrz2OG1I7HjBznzxeDWOIaWVUaMp2aEZSDEYKdIH4aEyawk6dOL0Y5h DG1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nJAI7oGz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-216223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56df6a38si356918866b.639.2024.06.16.02.52.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 02:52:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nJAI7oGz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-216223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 8EFD31F21509 for ; Sun, 16 Jun 2024 09:52:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43E1B1850BC; Sun, 16 Jun 2024 09:52:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nJAI7oGz" Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 F034E16D9B5; Sun, 16 Jun 2024 09:52:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718531559; cv=none; b=kVQz8H2Xvxy/HPQhwDUvkz5IUcT+5+5bYIf2ND/+dBoKsG0/fAy75ckyuJiux+1ibHFhtE+zzduWpHpF2JGxTZCuJhGJ9MKDhEfoItoxmXPvJ/79+xrkz+opIsP7lA907Da7Y5/nF1SWb5+qDrHe9SwysMuN+TahiKpC3aInv5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718531559; c=relaxed/simple; bh=YZHKZATojJ2HK+Z+DAwC+6Oa+5yLu6I/Vp6L8JR97K8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t3DuM6f2FKFw2hW5qGZ/2GMbfY/GCYXhZCPjd4XJJ/gwF0OJqgvV2tQhe1mIcqKX9IzwvVdwiwtX5AK1TQkGn2/EtE1meTPdvRD4E5NKsflwOc1Kzfoy4NSw/ONyuYG6Qwbo+mFtFgD5gk3trEnJ0Lq/IWzjqXNymqBxogA9y5I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nJAI7oGz; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-7042a8ad9f5so2998946b3a.0; Sun, 16 Jun 2024 02:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718531557; x=1719136357; 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=GKTZuZsWgG4U6fxLMx1cgYwrM7Q/BtT3yyk8jGRBk/s=; b=nJAI7oGz+L7oP1RPvFqw2Mnl08cW8DDj1j4FLDeJqFwX3l1VwWxPQw1Q2wbXNVlEPo HNdlSvFLZzPN9YDnlw+F0F3jHyaDVhWj3an23iP01bR8SyFFP5zCUqXdlWPbEdIhm3rv rVfpbbcnYg5RJTs62lh6m0ZOmB163mMRcfYG0fzrU539Tnbi83AwKCqYlS5EFF+WMCFR k82xF3A+o3Yv6+037JYuzmbY7gmsg0QaMCGBPB1pAbnX02lsu9LTTuukT0fh+Lymoak6 ylu3sQmyEU4h3v1jyB/FKBDPRPZMqWO6pCitwtE2fcaJtBYAmTP55ffur5B1bqBjFN+M 2UpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718531557; x=1719136357; 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=GKTZuZsWgG4U6fxLMx1cgYwrM7Q/BtT3yyk8jGRBk/s=; b=uQOFCFT62zircLiv6JSv4+Di6jX7gpLbieFylDFfpYJGhn8nZ1ZCllsUF1xfIIoQ1l TO7hJwvMfgnsG900tRIQossNPb73VKLhXemNFHHkTlD9u7Ej2mykVzexL0WZ1GFN0bms mc4M2vHHi6hv859Efho6Ei6tBc7svTo5x0gPmmvDdxvx1/75323woe1nZ8Rq8Oeqfkx7 dpKme1bjz66Th3EnObrKcQXizzScmjC3Dm1Eq9gR6wnxMPF6sPrVP4VpJovHc2bSrC+7 6rUfNdfm7IT55h42PlboZ8u/qr3updGLnAPKa2emIGEXfeC85LlTENqahL/ndl717CmO XkZw== X-Forwarded-Encrypted: i=1; AJvYcCXkoMTB6XtshD9mK1RfXnHYmAfxUaXslHB4MtSc0KLdsMKUShvZAN0Kv8p8/sptZyaw/JRN2K0Qq1zMVyqtJ1rAdZtaeTil8eEigC4+NZdFCKOHKLcOkNdUMSqDmwcuWXVVSw2e6qvOUdaP7GVVuNLGPLr3uxVxIsvHjpMfIQnv0gYF92mv X-Gm-Message-State: AOJu0YyWPMaKqSK/Ffa+/IHX3Utb1L+RMSJrgA2DWvRAPwr1HmBVsP5k NBcs1bDuM+3e9RKwKpRvR8z9xfusolC4UUG/0NiuwPc2Jw/Vw2+N X-Received: by 2002:a05:6a21:7887:b0:1b6:a7c5:4fad with SMTP id adf61e73a8af0-1bae800c9d4mr11339816637.26.1718531557033; Sun, 16 Jun 2024 02:52:37 -0700 (PDT) Received: from fedora.one.one.one.one ([2405:201:6013:c0b2:ea4b:30e0:4e3a:ab56]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-705cc9891b9sm5891275b3a.95.2024.06.16.02.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 02:52:36 -0700 (PDT) From: Animesh Agarwal To: Cc: animeshagarwal28@gmail.com, Daniel Baluta , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] ASoC: dt-bindings: realtek,rt5514: Convert to dtschema Date: Sun, 16 Jun 2024 15:22:19 +0530 Message-ID: <20240616095223.260786-1-animeshagarwal28@gmail.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert the RT5514 audio CODEC bindings to DT Schema. Make bindings complete by adding 'spi-max-frequency', 'wakeup-source' properties. Signed-off-by: Animesh Agarwal Cc: Daniel Baluta --- Changes in v2: - Added ref to spi-peripheral-props.yaml and dai-common.yaml. - Added missing properties 'spi-max-frequency' and 'wakeup-source' - Moved maintainers list abouve description. --- .../bindings/sound/realtek,rt5514.yaml | 70 +++++++++++++++++++ .../devicetree/bindings/sound/rt5514.txt | 37 ---------- 2 files changed, 70 insertions(+), 37 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/realtek,rt5514.yaml delete mode 100644 Documentation/devicetree/bindings/sound/rt5514.txt diff --git a/Documentation/devicetree/bindings/sound/realtek,rt5514.yaml b/Documentation/devicetree/bindings/sound/realtek,rt5514.yaml new file mode 100644 index 000000000000..7fbf7739c371 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/realtek,rt5514.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/realtek,rt5514.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RT5514 audio CODEC + +maintainers: + - Animesh Agarwal + +description: | + This device supports both I2C and SPI. + + Pins on the device (for linking into audio routes) for I2C: + * DMIC1L + * DMIC1R + * DMIC2L + * DMIC2R + * AMICL + * AMICR + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + - $ref: dai-common.yaml# + +properties: + compatible: + const: realtek,rt5514 + + reg: + maxItems: 1 + + clocks: + items: + - description: Master clock to the CODEC + + clock-names: + items: + - const: mclk + + interrupts: + maxItems: 1 + description: The interrupt number to the cpu. + + realtek,dmic-init-delay-ms: + description: Set the DMIC initial delay (ms) to wait it ready for I2C. + + spi-max-frequency: true + + wakeup-source: + type: boolean + description: Flag to indicate this device can wake system (suspend/resume). + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + codec@57 { + compatible = "realtek,rt5514"; + reg = <0x57>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/rt5514.txt b/Documentation/devicetree/bindings/sound/rt5514.txt deleted file mode 100644 index d2cc171f22f2..000000000000 --- a/Documentation/devicetree/bindings/sound/rt5514.txt +++ /dev/null @@ -1,37 +0,0 @@ -RT5514 audio CODEC - -This device supports both I2C and SPI. - -Required properties: - -- compatible : "realtek,rt5514". - -- reg : the I2C address of the device for I2C, the chip select - number for SPI. - -Optional properties: - -- clocks: The phandle of the master clock to the CODEC -- clock-names: Should be "mclk" - -- interrupts: The interrupt number to the cpu. The interrupt specifier format - depends on the interrupt controller. - -- realtek,dmic-init-delay-ms - Set the DMIC initial delay (ms) to wait it ready for I2C. - -Pins on the device (for linking into audio routes) for I2C: - - * DMIC1L - * DMIC1R - * DMIC2L - * DMIC2R - * AMICL - * AMICR - -Example: - -rt5514: codec@57 { - compatible = "realtek,rt5514"; - reg = <0x57>; -}; -- 2.45.2