Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp835938lqo; Fri, 17 May 2024 03:06:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcj4fU7iivPKo09YFDleQxrtr4B17I9XmGw/XsLKxmgNEXB7xCIgqa1P5ryuVGU32cqa0I3TuOHAA8f3wnTwjep9+noLSSMYRSrPYOHw== X-Google-Smtp-Source: AGHT+IEHp7+j6014bWAzwCGWwRkDlV13E5PpMfe+szzLVB9QPE6PCXlDsC9GOzfMxvLdU9KX92Y3 X-Received: by 2002:a05:6a20:4323:b0:1af:58f8:1190 with SMTP id adf61e73a8af0-1afde0d5a81mr29489771637.12.1715940414417; Fri, 17 May 2024 03:06:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715940414; cv=pass; d=google.com; s=arc-20160816; b=THeeE1fbbwyhhLjP7rv9c7XotmH3rhzAjstkDdSTQwpzqrPS7PJBMaESOgKyjsblEU 1x28Us0xT0TJnmApIsUbBmnItWBRhCEZ83ffYk+TwoEHqMysi0Q6Gbx/NMd4s2K7XDdp wks4/EHZAGe2zatfKVFdoj+80NShnMqcyxEtrNfiGMLyDgdhU/2C3gyjSK4EX+UeN3V+ 5q5bhiEHcO5Zhwz3HjdRwtbTyydAkPQUH3/RoFD1DrZW7K5L6YIfNh5MZE3RkTS8YAIe dU7G4dWZ8m3fh3zVxtQtnXvmUdAg7Du6cCYW0YACuXFjaBlF1/L7k2IQZjtLA7OT39c1 ltwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:to:from; bh=0DUVuqJHd5cxHihEJoVEr/1IRDtXx3vLJ58HEyYpoiY=; fh=GPNlrx+KEFkEzYtXZ6NEdM3tzm0co+FAcNkYSnNdsYQ=; b=iQbOTj0ujV7trCYsqgHvl4Zv6ZuhGpyA0a3GskXDLABYBL7oHJwUq+YK9nsktB80D9 mV4SFEIS454lu8HwsfMOvJ8BiOW3uG8+nuCnHrXIdYvg34r2RmYgkA5GVS/2/ad0l0Fr QoFGa5t216hSAMvLliwVF+rkhfkTF35VXi4ixHqhxo63qiReun5WdSp4W4v3p9kuiKOj lcVIsbWG1CMFRLR4prgO06qtCEPIqQYRr/hS2llI7Fm7KMtminaSMdmLCMD1wMpJgPga B/YGuEHXhXeM4zBHr/lYgXwl+vsTTDKb2fRw0UEmiLD7nacm6QoNMA497n+MACXPmYgD cQWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-181975-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aee57fsi74760b3a.172.2024.05.17.03.06.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 03:06:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181975-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-181975-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A07BA2817E8 for ; Fri, 17 May 2024 10:06:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 607F62C861; Fri, 17 May 2024 10:05:44 +0000 (UTC) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 578542E646; Fri, 17 May 2024 10:05:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715940343; cv=none; b=vAJV4o7CuK1Er41xFnlXYsB5OVqaHlKIXIkRoELCMQ4jHsta4KELMqd0a62IDfHCwpg6bNlMRdE9CAUnhBEuSE+T5BPQfyR7bATq7DR3erDCXcuinwDaYXFKMTsIRJqcYh1B1JS5uirhOusY9V+lHcsc0gHJaCfuUJCTgQesl7Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715940343; c=relaxed/simple; bh=6MSGlKBYOtbIfBrOwKOEfO+LalxWOYW7++dbVZ3bZ5A=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=m0XQWL6el3WZlrOIHV8hodfJkGrCZFwdkUo8EBqTHkM6MDO5M+H18WuhJBEvj2mnPgihGYzwUV99djq2SnOfFOse/86SyK2/y8Y7FIZQTLepM3r1bEV319RxkBksFCv4C9b/b0VGP6L7nDvQk/iE4MIF1HfwT56WyRhsU1QcBuI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; arc=none smtp.client-ip=92.121.34.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D0A601A04A4; Fri, 17 May 2024 12:05:34 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 86D221A0F4C; Fri, 17 May 2024 12:05:34 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id DFB7B1820F76; Fri, 17 May 2024 18:05:32 +0800 (+08) From: Shengjiu Wang To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shengjiu.wang@gmail.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 1/2] ASoC: dt-bindings: fsl,mqs: Add i.MX95 platform support Date: Fri, 17 May 2024 17:45:45 +0800 Message-Id: <1715939146-13031-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1715939146-13031-1-git-send-email-shengjiu.wang@nxp.com> References: <1715939146-13031-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: In order to support the MQS module on i.MX95, a new property "fsl,mqs-ctrl" needs to be added, as there are two MQS instances on the i.MX95 platform, the definition of bit positions in the control register is different. This new property is to distinguish these two instances. Without this property, the difference of platforms except the i.MX95 was handled by the driver itself. But this new property can also be used for previous platforms. The MQS only has one control register, the register may be in General Purpose Register memory space, or MQS its own memory space, or controlled by System Manager. The bit position in the register may be different for each platform, there are four parts (bits for module enablement, bits for reset, bits for oversampling ratio, bits for divider ratio). This new property includes all these things. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/fsl,mqs.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/fsl,mqs.yaml b/Documentation/devicetree/bindings/sound/fsl,mqs.yaml index 8b33353a80ca..a2129b7cb147 100644 --- a/Documentation/devicetree/bindings/sound/fsl,mqs.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,mqs.yaml @@ -23,6 +23,7 @@ properties: - fsl,imx8qm-mqs - fsl,imx8qxp-mqs - fsl,imx93-mqs + - fsl,imx95-mqs clocks: minItems: 1 @@ -45,6 +46,22 @@ properties: resets: maxItems: 1 + fsl,mqs-ctrl: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 6 + maxItems: 6 + description: | + Contains the control register information, defined as, + Cell #1: register type + 0 - the register in owned register map + 1 - the register in general purpose register map + 2 - the register in control of system manager + Cell #2: offset of the control register from the syscon + Cell #3: shift bits for module enable bit + Cell #4: shift bits for reset bit + Cell #5: shift bits for oversampling ratio bit + Cell #6: shift bits for divider ratio control bit + required: - compatible - clocks -- 2.34.1