From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 2E3133C5DCD for ; Sat, 11 Jul 2026 12:58:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783774681; cv=none; b=pN1/Sf9qfr/NmHb2V5bBfc6Hk8ZjpPNm/eFqsVUfuykja+zBkx+Dys/XR251OW0gHD0GCETSpa/bHPGUkgi9h8GmROGrfNJkNwzanADa/mhfFOLKQK1DIvp+Fy6VaVqrYmyU4EgJDsVPyP3FvKgh2IleKuGtowGb28tCEjxeakQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783774681; c=relaxed/simple; bh=vBUE09K2ZJ0I6D7b7YeWJW4uNjwNJtT1FGpBYywnV+w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=eutQPEOrg4CDgn0x1nThpRPJ5YOY+bHBiMY/4uf6i/Kj6gURSdD0WyjA2lP9XI3RQGBQxU7Wd+JO4BYn4jp3wOD1n+4e8RGlwoSB9ZiTzxCQ4wta9ivTK5LdlIvCzNPTyuqtEMgQUobcHKnVS4mYLYq7AWVrbVxuaHaPEYpcjME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=jeJRKAlk; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ebNdNC+F; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="jeJRKAlk"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ebNdNC+F" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66BAo64b3476609 for ; Sat, 11 Jul 2026 12:57:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=cp4uLzOCic1 RRkGa7AiSR4wCQkdmgpEFJlMlPSR0hCk=; b=jeJRKAlk0IxnliHRBh6InvnuKnR IxlQmeA3YyRHgQuO76itsH6zBTB4ktp9S2sjtXVk+byihi/uya9p3YXAHSvh5r5R yzSZtvCcMP/49SaLTaY2DDNjpMRluJxEfhOLPge4UOr4cNH/PGkrN2UickXfHxmk gOg3iYAxxUCU3IS6Tg8izQvTz+rLcfiPBNE149zA9cc/S+Co5rlVnK9xiBvhBTgI 2GWgVdjaRZH//eQW1FcqmSQBgwArZwoyBHWKKfaxBX2ZlfirBINZT+FWXS0rDc71 FRY6T0LpW3sDIv+uKeKeB69jkzq3KI920jz/uwcVnBtFMX/JcSbFX/4Homg== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fbee9gu3f-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 11 Jul 2026 12:57:59 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-380a638fb5bso2046061a91.0 for ; Sat, 11 Jul 2026 05:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783774678; x=1784379478; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=cp4uLzOCic1RRkGa7AiSR4wCQkdmgpEFJlMlPSR0hCk=; b=ebNdNC+Fer8I9rxfxKnlh/ccCQbBaoPv5OELS6YD1wzRN6789lMLGbBkGABet6dhpx 3p2M4bV6JUk+avUDcERhtkhldnzD2srcb/wYXeXyunUlJsGxAMrEn4f4qtm8iWZ/CutH Xy/PAcZf/U1kGMhZa+NCJK8hHCfn5GcBJUn+nYER9CVj7JdK7fAAeE50+5OK+p1N6Ibc ovMncfmelWXGLmUn5M3E5NFdW0DOgq4ct2K3lgh2cJYuUdL/VUl72tx7kqXcwpQ+wj4q O/CveBNNg1dI0UmNpk35Xjtda4rz/hbD2+QCx+EX5WvsYK9qBGP6VbaplHXerVjKKIh7 Q6SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783774678; x=1784379478; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=cp4uLzOCic1RRkGa7AiSR4wCQkdmgpEFJlMlPSR0hCk=; b=jMNkwMuNofpOEQj1TYAlm74/eaHELsrdEReJ1Eh+zdPpEU+j4P95Q75FY1LGVGTEYG OAieRMqQbM0OureNqEiTJPkPbB9Fc9i9avCctCDxQP2Agjj5DMHkIMqZqFDf6/B0dA+l 8UgF5WEKZ+KLa6X31KiZGFfavGgDfLLroElQibpzX8iciCQywOHSdR9WOgjkNmJjBk1U gtkv/SGDglsEzXN0zOFCkqKZHEKM7L2KPEik4f7c8Zm2LCLPBoMlyKiu66EUM3VfntUf wp/kArlxgqmK7kxgF4xtCx5PQmLWfH2lnle11Rs8Iy7psVEnMiYNIZ+A20OGt2KVaBaK U8Ww== X-Forwarded-Encrypted: i=1; AHgh+Rpf6ezwCC4qqM07vXwRBTo+n3xew5dZAZNVN8t+jg+33uWO8fRxqURtg8bwDnqB/ZwlSsxKgzTDv9VLxVg=@vger.kernel.org X-Gm-Message-State: AOJu0YwOVGA+CptLN8+cbI00Cxi7F3D96a8CXgdTNfo20wr+JZgH71bo SA3+srOsiqrgoxFNVIfG/3SpIS5bauQqpLV23EDsu3jSv2pbwaQlgvLAdJ6hKs4Jbtftlz2l0NX D/sZ9Wl7O8sz4Wx8ejeVNGEcVy8kYROavCBYmdMDhRweZIcn92kwYX8huNZ0J9MM6FSo= X-Gm-Gg: AfdE7ckNrfHUlPETQnzn3UlHxcYXtZgGqMdh6TSUgZdgsMw6Tyr6oOnMnbh07Z7OpwM UVvdlN7X6yUZP5W1N+N7e+3F3BuWLTJqbxbCfUoX8DiBIf+Iky8dDk+F8cLa5itrVJrvAqSV2kK PuFLk6DEiLq8CWULe14GCTlfLFGgH042vDZadtcX5CvglqWpvfjy5i47WLLvWXJSjjDHK7UONd0 XDSk0ZqDXhcQeM9hUfrqZ7tXlKTX8OOgT/4mN3lBn8JhL2IeHPoB16Jrv37ZnPzPDS78qsTgaxO cC+idbhCNHYAtA+aeDGKBd3TMrYekZ7xLE73Lj9c1aNwvCg1f84BcrtJZ+7WWsE7wiz8NRe9lE6 JeES/AXo/dZC3uh3bHr8M4PgSdFShuXoYPsYmEBBTCKKTEeg= X-Received: by 2002:a17:90b:3d89:b0:381:2811:e8ad with SMTP id 98e67ed59e1d1-38dc7777abcmr2924089a91.23.1783774677945; Sat, 11 Jul 2026 05:57:57 -0700 (PDT) X-Received: by 2002:a17:90b:3d89:b0:381:2811:e8ad with SMTP id 98e67ed59e1d1-38dc7777abcmr2924073a91.23.1783774677496; Sat, 11 Jul 2026 05:57:57 -0700 (PDT) Received: from hu-mohs-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-313b9ca880fsm11185634eec.23.2026.07.11.05.57.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2026 05:57:57 -0700 (PDT) From: Mohammad Rafi Shaik To: Srinivas Kandagatla , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai Cc: Krzysztof Kozlowski , linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Krzysztof Kozlowski , Neil Armstrong Subject: [PATCH v4 1/3] ASoC: dt-bindings: qcom,q6apm-lpass-dais: Document DAI subnode Date: Sat, 11 Jul 2026 18:27:38 +0530 Message-Id: <20260711125740.3083236-2-mohammad.rafi.shaik@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260711125740.3083236-1-mohammad.rafi.shaik@oss.qualcomm.com> References: <20260711125740.3083236-1-mohammad.rafi.shaik@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNzExMDEyOCBTYWx0ZWRfX3OjEkNVaaH6m nMKCCHY/ryjZAltV5zSVl9UhJ9E2zuR7yN7BujlWPKfdG3s0jCSNbUHwdagbgeZxa4BfUDtfpP9 9fMbFMo6iqNoKz4S1vUqNQLdhgJqVyc= X-Proofpoint-GUID: FlMoJfdIEDzBD3W4eJP1zX0y5cksitpA X-Authority-Analysis: v=2.4 cv=a7UAM0SF c=1 sm=1 tr=0 ts=6a523dd7 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=NrbrONOL4QpDeGKfLFoA:9 a=iS9zxrgQBfv6-_F4QbHw:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzExMDEyOCBTYWx0ZWRfX+y+X6v3y7F8y kMlj9IjZZU6XZ7u8EU2JpWnLwutvCc3XBMzLZ9Oe7jv+sZexu3M0NrtQ9MzNHQ2UoX27R9DqZTk Pn9nHvFe+KQgkAgJHsFMr2JxS7qchj0mBp+3IbhKGooC+jgGMR7GLI9yo0Q50YcXfabrze2Tqln o96ABIJXq3Q/BJ+C3H48MjWtQFOJYjeSbaztOrYOLyxGwk4g2rhqkmka3cRUFEizRaZuAvbShYy C1ZW2QZ2VmxwcP9Amcmhi31Fjt64Bl6us0JbwQYKXK9NS0qwnSf6YSZyucZXPQjInKVEnL86urX iX7P2zExQN2u6MM0gtuYG7C6OeIqzr6sC6YCyjoEkAjKtBuwaSmHGf2pLZdxtKrPEHqrwJk3Yf8 7kudYqrK+nVNghL5iZUDsEkKM/Rg0vuSeuBRlzxPnP6OqB8LyaIGuoWlid6K3InVdyzq26Ie2az iOlpXqJl+RIT5XlGoTw== X-Proofpoint-ORIG-GUID: FlMoJfdIEDzBD3W4eJP1zX0y5cksitpA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-11_03,2026-07-10_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 priorityscore=1501 malwarescore=0 adultscore=0 clxscore=1015 spamscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607110128 Extend the qcom,q6apm-lpass-dais device tree binding to explicitly describe Digital Audio Interface (DAI) child nodes. Add #address-cells and #size-cells to allow representation of multiple DAI instances as child nodes, and define a dai@ pattern to document per-DAI properties such as the interface ID and associated clocks. On platforms such as Monaco and Lemans, third-party codecs are hardware wired to the SoC and do not always have an in-tree codec driver to manage their clocks. For these designs, clock line enablement must be driven from the platform side, and this series provides the necessary support for that. On QAIF-based platforms such as Shikra and Hawi, responsibility for voting I2S MCLK and BCLK has moved from the DSP to the kernel. This series introduces the required device tree binding support to represent and vote for these clocks from the kernel. Co-developed-by: Srinivas Kandagatla Signed-off-by: Srinivas Kandagatla Reviewed-by: Krzysztof Kozlowski Tested-by: Neil Armstrong Signed-off-by: Mohammad Rafi Shaik --- .../bindings/sound/qcom,q6apm-lpass-dais.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml index 2fb95544db8b..f3a8b12d7fc8 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml @@ -21,6 +21,49 @@ properties: '#sound-dai-cells': const: 1 + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +# Digital Audio Interfaces +patternProperties: + '^dai@[0-9a-f]+$': + type: object + description: + Q6DSP Digital Audio Interfaces. + + properties: + reg: + maxItems: 1 + description: + Digital Audio Interface ID + + clocks: + minItems: 1 + items: + - description: MI2S master clock + - description: MI2S bit clock + - description: MI2S external bit clock + + clock-names: + minItems: 1 + maxItems: 3 + items: + enum: + - mclk + - bclk + - eclk + + dependencies: + clocks: [clock-names] + + required: + - reg + + additionalProperties: false + required: - compatible - '#sound-dai-cells' @@ -29,7 +72,22 @@ unevaluatedProperties: false examples: - | + #include + dais { compatible = "qcom,q6apm-lpass-dais"; #sound-dai-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + + dai@10 { + reg = ; + clocks = <&q6prmcc LPASS_CLK_ID_MCLK_1 + LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_CLK_ID_PRI_MI2S_IBIT + LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_CLK_ID_PRI_MI2S_EBIT + LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "mclk", "bclk", "eclk"; + }; }; -- 2.34.1