Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp571436lqp; Wed, 12 Jun 2024 09:37:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkXFgU72v6TUC5tq6jlnQ/8sHq7EFBfQuP5Pnc9QnYArTuPpkI6AFNsZ+IoRPeS+3mMlL5dtEz6UxUnKAhO+Xl0nTMg50Gc5ibuDiHcQ== X-Google-Smtp-Source: AGHT+IE/GE/z/Mk2zZ2dfQxBESx02jcSYo8BXBdAunxI2IErgGPTjbcigOv5m0mU3cEPaxY3/goc X-Received: by 2002:ac8:5743:0:b0:440:5809:a562 with SMTP id d75a77b69052e-4415ac52b9amr21394431cf.53.1718210267088; Wed, 12 Jun 2024 09:37:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718210267; cv=pass; d=google.com; s=arc-20160816; b=JwtXBrVnA0T4t9f2A34nwk9Yj46WxDXiqK7h2dH+Me43zk0+ZBEZlZVzYCIYQdump4 pUjXGDsVmorGA3MJR/ZK2LGDyzn99aWkCBrHe6unPvZTR/Vee0HcgcMa8en7N7RaVVi+ lSs9LmccITMCaj7Dzwv0ZOdUR3Cf+6mrDTOAEVA17S/GOlH70DI3SNcFAyQuAeGZ+qBN OoeEg44xCJAuPGpg4ShKvE1k8ohuW0wpYfGBlMC/se8PxxxVc9jBbkYVu3JxMTaV5eWa qycrSEkLeknuktlQuMIhFu4sGdIE/mU6wn2JVExJ4voIRS2CB9HGkxEP3ihnvCrrtm0S gpFg== 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=12/jhHkXdDAL+9rJ1s3aaCTv3iaFjJjz+V4lIsM94NY=; fh=bEOoitNH92Xub3vfnsQLZ9FjtzlAXLwAmTxV3FtsVuM=; b=qIPyDNKtLjdjcs4a1ZJY1icLhhqH7eTUp6dofLha1ZTPu88oDPO2+M3UpCP+KI1PVb q1VeottZULt+pruL2sIzRmPXScJ+kOLaPIVmhqbm1QmtJ6gNlPjH9pnhwzqMn1FiXGcO VkGDMpd8TnCzAWkl4sRTWjk4YdYzIveB8gAY79d/Tlu+Gqh1Q2MQMy9oQt5//IrUoNyF Ke/lnyuo3mjGDT+GmcAe8uU7NcFfUlChGknHxxDfsCeT3C4qIKC8W/7Km7evAUV3FdMM 91pee3DuWVYdCsTOR+lChMip8J4+ry3WaGGF24k+RyjCY8sTEtjhlf26wLUbM0l6V9Fh 6P8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gXbrMDLs; 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-211923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-4415725b28csi29657191cf.108.2024.06.12.09.37.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 09:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gXbrMDLs; 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-211923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211923-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CA9AA1C216A8 for ; Wed, 12 Jun 2024 16:37:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB012181B86; Wed, 12 Jun 2024 16:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gXbrMDLs" Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (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 7C23522094; Wed, 12 Jun 2024 16:37:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718210255; cv=none; b=M+UCSquaWmRl7Wt05J5xiP2iCsliE6UiaP9/qu9GKp7HkswP1haJinwIZWiXSg9vHCMoxboOUqH6MwXgRp3z+Q6CmoYcsERe9Xh8qeALuMVhzn3PnF04kcf6KvYg9K+imO/FH/oBn4Zy4BiM8eUwBasVLBASZc8GFBrPpw4eF9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718210255; c=relaxed/simple; bh=obA7dlhSLgFk6GyFI/xPqD4492ZshW5iL6G2Dk15AU8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e7znp07iVB30muBIKM1JMqeL8xsx7hfXq6ZAAChldGswa2uwIKIoc5+mRtnRyt0KVT7SDm811AOgqnrb6kjwh4HJb5kKI5A76BVhFHNHeEgTdxgO7f9BfZy1mTD0CrX44nNvkN7AvcU5vcmwTiler1C5VHElkPUIimDO3mQ93Pg= 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=gXbrMDLs; arc=none smtp.client-ip=209.85.222.180 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-qk1-f180.google.com with SMTP id af79cd13be357-797dcb558ebso113156585a.2; Wed, 12 Jun 2024 09:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718210253; x=1718815053; 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=12/jhHkXdDAL+9rJ1s3aaCTv3iaFjJjz+V4lIsM94NY=; b=gXbrMDLsJeDgN+yYQfnB+ktxcDeGMxgvndNFeEIkziVcufztCyPMmiQfUt4QgFy/SH tfddgE8EQsL2OnAznGP3pf1w0UhGkaJe59izCnffSqzvszW8kB7b54Jrl065KBP9F2f8 F/73FMHVHrjUOAPLM/L6VsYFYSqrGJNhsSMKaubF1FmFGoqSuFw3fy94ta7hZ2VCS6BY vBIT11iIMTkxwUPlIDFwstlMIFZXtruTs1PS9oK3sIleHBFQhZNxG9M0AU+DuTA1YRPp 2bgI1al/7liC6ec0q3fQXSp9qDhvbu/8WnB3AqsKO8PYcd3tAqpQMu6J0iwPDIvUNIwh q6Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718210253; x=1718815053; 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=12/jhHkXdDAL+9rJ1s3aaCTv3iaFjJjz+V4lIsM94NY=; b=I4opOWoxW0L/kmYeA5ZrAwQWfxbwqdLF3imLbMBAfZ5CdruXIOsvnVzs++/559pO3/ qdJmrwJdGI3N1IinqnPsufPUma08svqAZK8hSjjB0YCTFJwsAFwvb4pkYsZdDhhIc4Xb phCqU56L+wZEjdKufOcO7Y3a0+JZsx5aAZLhTmo4FtfqBQorQA+vJD2wfTMy9ccqg7KI gYSkSnpJpEIRz2PyfOfanZL3B5Vbk6+4U9TDUBjCdWykh5AvZCFBAviklLchQyhgvZ71 s1Sz1ZOk7rCsmNJYGj7EqlVyv77RYfHiOYTMoxkWwzy2jZuxfE6GwuOCqsSm/m7HA9Xi BGNg== X-Forwarded-Encrypted: i=1; AJvYcCXLVCYdC6/BBQiuevhjYudCgfM0Mbglaii3KHiUjKze5wUm931a807UaapHfRRJ2uawQuZQWw6v6Aj5ZDBowPc4kALWBVK3BphoVY6EvczkrOkEqIcrXmCv6MtL7zhKllcjJRlSeri6q97gtcQKS19uAbFmc6EN78XFvLurb7g3M7OPEoWG X-Gm-Message-State: AOJu0Yw+K+5r5jbBk/ZyR8j3USCmPSH2O2E16G+UMRDpuVanNQL2KA9k JKbuz+qwtfXe/p9x2brePZYZznqVD7szVTHs4EhdYo5IMeNCSeyB X-Received: by 2002:a05:620a:1a1e:b0:795:1e16:b22f with SMTP id af79cd13be357-797f604746dmr274415385a.33.1718210253302; Wed, 12 Jun 2024 09:37:33 -0700 (PDT) Received: from sheun-Legion-5-15IAH7H.phub.net.cable.rogers.com ([2607:fea8:bad7:5400:f2b7:e8f6:98dd:a423]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79532813a2dsm615143685a.20.2024.06.12.09.37.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 09:37:32 -0700 (PDT) From: Abdulrasaq Lawani To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org Cc: Abdulrasaq Lawani , skhan@linuxfoundation.org, javier.carrasco.cruz@gmail.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] dt-bindings: sound: Convert max98088 to dtschema Date: Wed, 12 Jun 2024 12:36:50 -0400 Message-ID: <20240612163730.515819-1-abdulrasaqolawani@gmail.com> 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 Content-Transfer-Encoding: 8bit Convert the max98088 audio codec txt bindings to DT schema. Signed-off-by: Abdulrasaq Lawani --- Validated with dtschema and tested against `nvidia/tegra30-lg-p895.dts`. .../bindings/sound/maxim,max98088.txt | 23 --------- .../bindings/sound/maxim,max98088.yaml | 47 +++++++++++++++++++ 2 files changed, 47 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/maxim,max98088.txt create mode 100644 Documentation/devicetree/bindings/sound/maxim,max98088.yaml diff --git a/Documentation/devicetree/bindings/sound/maxim,max98088.txt b/Documentation/devicetree/bindings/sound/maxim,max98088.txt deleted file mode 100644 index da764d913319..000000000000 --- a/Documentation/devicetree/bindings/sound/maxim,max98088.txt +++ /dev/null @@ -1,23 +0,0 @@ -MAX98088 audio CODEC - -This device supports I2C only. - -Required properties: - -- compatible: "maxim,max98088" or "maxim,max98089". -- reg: The I2C address of the device. - -Optional properties: - -- clocks: the clock provider of MCLK, see ../clock/clock-bindings.txt section - "consumer" for more information. -- clock-names: must be set to "mclk" - -Example: - -max98089: codec@10 { - compatible = "maxim,max98089"; - reg = <0x10>; - clocks = <&clks IMX6QDL_CLK_CKO2>; - clock-names = "mclk"; -}; diff --git a/Documentation/devicetree/bindings/sound/maxim,max98088.yaml b/Documentation/devicetree/bindings/sound/maxim,max98088.yaml new file mode 100644 index 000000000000..e4a2967e1e81 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/maxim,max98088.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/maxim,max98088.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAX98088 audio CODEC + +maintainers: + - Abdulrasaq Lawani + +properties: + compatible: + enum: + - maxim,max98088 + - maxim,max98089 + + reg: + maxItems: 1 + + clocks: + items: + - description: master clock + + clock-names: + items: + - const: mclk + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + audio-codec@10 { + compatible = "maxim,max98089"; + reg = <0x10>; + clocks = <&clks 0>; + clock-names = "mclk"; + }; + }; -- 2.43.0