From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 819E844CAE0 for ; Fri, 24 Jul 2026 18:25:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784917514; cv=none; b=TRuPlQiBOFqCmtP8aTWZBN3UpeksNOpUSvrlDJngNAA2irdnUGFQVucIPqlBDbFZ0z8/BSd/m75OzXHUBXdNJSgmcXUuNRMaBs0/RDxHgxJbxJuCmCU2Vzu3GcpT/VhTKkeHEWqbfYzoJl1RpCVLbVgHiIhuhs9nSDPsooAII8A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784917514; c=relaxed/simple; bh=fplq4MhiYbjZ4gR4KmwJS2Gi90zzUaka3YGluovCwTg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=to39p3MsW5R+03Fy+/XzxGVdSeY2KfZGybWQMc35fFkx3dRMBwzMXTSLLATLOcfVH+8kQB0dROZrjnEb3ghJe/0pyCrxoJJlAJk8xYT3k6JnjtJrjM0n+pyRLXUt8Xv6KrBF3QIHM0eO48L4UrbxnFiCjx3G7JbMFq94CFPSHHY= 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=o4SdRi0H; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=X5lcuFEs; arc=none smtp.client-ip=205.220.168.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="o4SdRi0H"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="X5lcuFEs" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66OGqT0A3793003 for ; Fri, 24 Jul 2026 18:25:12 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=2Boq2riYmih qWiWhhoyaoL47R0UXWhEOQX4/mmtxBxY=; b=o4SdRi0HVRtn1DQM9PQMXSDDD88 d1ybj0+92oxGebYkNGXjV93hqAYQVwUNlyTlKiA2kCuDftNDQzd1N1dafNxm2P2W DaCWhyErW0czdgxiWTNfF/fFpalP1NYGPXzh35RTWq7KtSL0dmcQyiQvAJBGTHLp 9yG5TSh7Ft5qOutp/uE2PxzHg3ixmLUSgugRKwmtIzTqo+w5HyEV7i7WJofonK91 e702KIKKnBktZUX0sK5Sm+mvcq+hasCLiey6Hyf0UGARsQnWAfjsJUBCmXxPzjkB iWjtrUShWJbdk0e2/HnRULWV2H1J0ebXBRU2qCqWGwgwuGDuQN1V5eqRUHA== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fm8cf17wu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 24 Jul 2026 18:25:12 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-cb5ea36f969so768571a12.2 for ; Fri, 24 Jul 2026 11:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784917512; x=1785522312; 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=2Boq2riYmihqWiWhhoyaoL47R0UXWhEOQX4/mmtxBxY=; b=X5lcuFEsH6dVeaV6UAxOlUxIx5kPL8vJANpn1bCp1cdvAjihXarW/9IUC75dKOzy85 brtIdA6p//aqTyYaZRsZVxH5Qhlw/6DyseJJI+c8yepTGNe9kZW7tmMRPPKJV9ZWAQ2U 7RDFbV7/dTtjwF6OtaCMEkKnHoSIidJQM80xHXW+07Ac/XZXm7REPMboBN3gZjX72Ix2 RtwZnO5p8DY/jXb4kmYpP23EDKkMHrtbH/9L8pMqVo1mJA9EZG5ExG/cYX5aDpyVkVX8 A/Adob3YKjeoTKqKi5o/6w6qnYd9oggjMI3YqqQZYvvsKRwBQNtfvHr112o8f35lYsBe lKvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784917512; x=1785522312; 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=2Boq2riYmihqWiWhhoyaoL47R0UXWhEOQX4/mmtxBxY=; b=a4hcXeRkylBwwpfCskIUgr2NutcohWyfyfRzK6PEdXPJzW7yMzuni1P7c9+9bd755g ROt5zg93ZTFIlsZV/PBEpftyTB1jlHNP1t3iyQ28IJdUu3H1t23SWUBV3d5toryH0RBF j/pXJXX5gdSv1zQGjmV5gkzqRymCcIEW8fpD5DqN9tVc22wCM05qiHFLdWIo8i/tz93L 3bkv3tmqsmH2R0y8ua/7EiexqsbsnCd6jAS4vCC3Ut7SJohdAl42QFN4LPel4QhdZuTF xFpvnaS4NHl7VDz3ZI9G+2VFdalMnoppJtxziYVlU9R/m3gt5ZFjHvxDXbCwz9NwW0Lk 1UbA== X-Forwarded-Encrypted: i=1; AHgh+RpJn8rMHVy11TM0rGscL8FjTkx+Ugxj30Yodvt6RZMDeoa3vBETRo3f8g42YWEfjMEhBTNECEtBUkmpDb4=@vger.kernel.org X-Gm-Message-State: AOJu0YzwkzhYiiG+Qk4hL01AM0jCfOkbho0SdxO4ONlMdrpGPPTf2xbV PUH8JyK6t/BphaEYtrci7kjclmK+p1nCw1flvhwdhI0W7mWuYg6jZd1yAu/Gd9mKNCFfWRUmOa8 T+o4CeKM0Qo0ipa3eqFtK6q5uTusr+krQBdBahVmgzm7KSVJusvDrjdjW3rPH94+HyJo= X-Gm-Gg: AR+sD13d2gvsf3vbPJljuLGutmVbameoqNEH5qk+DCsu8ywJuXWTelF56wkE6XwfcMx KbfFAppGx50TFGOjStMFM7u1EIVYd5qPotGq1ssrRPKJbYGTR+G8Zg34oG62XrQg95sOZRg4cqL h9JnTGn7NqBMwzwyRea095wdXFDRw4y5hXeNGb5SDl7I0pLH/x9gdOdOApd1ru7QJQpZ2UAqsOo GUGVXmG35ThiiEg6CAd5LhfQgK00V2S+M8/avJayWUkeCq1OydmsNhCDW8TAF66EZbAlbfAVSLL QvkztGQjDZBR+IxX5SoB9dB3UvuqpdTuXPPFG/WvVBPhCmM1GbHYi0eXMQublliYQ2W9n6pXh/x u5hoGuhCXgtB6TGpa3uDoI0JCuHKTiE4ayERG X-Received: by 2002:a05:6a21:4613:b0:3b4:b216:2b26 with SMTP id adf61e73a8af0-3c44af76896mr9889585637.5.1784917511917; Fri, 24 Jul 2026 11:25:11 -0700 (PDT) X-Received: by 2002:a05:6a21:4613:b0:3b4:b216:2b26 with SMTP id adf61e73a8af0-3c44af76896mr9889571637.5.1784917511518; Fri, 24 Jul 2026 11:25:11 -0700 (PDT) Received: from hu-mohs-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-314bc5a67f3sm1669324eec.29.2026.07.24.11.25.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2026 11:25:11 -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-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v7 1/3] ASoC: dt-bindings: qcom,q6apm-lpass-dais: Document DAI subnode Date: Fri, 24 Jul 2026 23:54:44 +0530 Message-Id: <20260724182446.1484894-2-mohammad.rafi.shaik@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260724182446.1484894-1-mohammad.rafi.shaik@oss.qualcomm.com> References: <20260724182446.1484894-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: AW1haW4tMjYwNzI0MDE2NSBTYWx0ZWRfX17Yzqu/EABiM aXDAwRB1efrjFQaMeV+mWwwc8lVmCmHkYPfGDpOVVpm+zdB9x3xntU11V2mJCgSBKIF9c8EMb1e WR+J5b/9Qww4Qe3pWUbDM2F6vKyCUKM= X-Proofpoint-GUID: -M1duH4QFXRHw-rdBhrMFd09PAlqu_fO X-Proofpoint-ORIG-GUID: -M1duH4QFXRHw-rdBhrMFd09PAlqu_fO X-Authority-Analysis: v=2.4 cv=er/vCIpX c=1 sm=1 tr=0 ts=6a63ae08 cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=3jZq6FF4vXrVA1D6PBYA:9 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI0MDE2NSBTYWx0ZWRfX81JUgeMgT0ZC TQy3n6KkkJ4Fiyr/Lw0cLC1qtbB3OECjVsqyojf5Y1u8sLuDhDpCoNofRQLfXNulcmYZ89hJBq4 bKNgWiQYEzeLP6f69pzoJbORRIA8j0y/ch5hI/4C9opkW/yt0oDRn2Ve0qqM05+4dH0OGjh9NTb AJY+zsGbaFjv0uqZs36ZqKoBwsPBtSndrTcfRz++PT3f7ih4i6RZDcUhZPNAUHUXNJ/nwgSm6iL Lb4FleLCTCKN3Iymo9JcUuTCl4NeWCK1f3MLsMsd8KgtXrehraZKcVrBNGHwqaFa7VaICCfO+3p NyT//+R1g4Jo9exmWWmA0Cpi/BBIRNuEadazPDDpA6/5vBIGQRKjYiXKUzYoxsD9olp/3wKFMc3 bENaKHReO97AJKZIpp76cqsCmT0FusdEbf3fJe5Y/jpjrildSKbhucSKDlOao8VXQH2nAgrQocA 4so4Jd1R0kgwTK2/BHA== 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-24_04,2026-07-24_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 impostorscore=0 spamscore=0 clxscore=1015 bulkscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607240165 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 Signed-off-by: Mohammad Rafi Shaik --- .../bindings/sound/qcom,q6apm-lpass-dais.yaml | 50 +++++++++++++++++++ 1 file changed, 50 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..4878c424ef03 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml @@ -21,6 +21,43 @@ 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 + maxItems: 2 + + clock-names: + minItems: 1 + items: + - enum: [bclk, mclk] + - const: mclk + + dependencies: + clocks: [clock-names] + + required: + - reg + + additionalProperties: false + required: - compatible - '#sound-dai-cells' @@ -29,7 +66,20 @@ 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_PRI_MI2S_IBIT + LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_CLK_ID_MCLK_1 + LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "bclk", "mclk"; + }; }; -- 2.34.1