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 0E65F40243B for ; Mon, 20 Jul 2026 16:03:06 +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=1784563389; cv=none; b=QsqTAT1PFGNxIA7tErPfgJeoH/luDtS79O5735Xz3uABeJf8g8GRMohUdDlmaj3C3Sl1UTN/nI5szoCugwfrrWiZ34gWZ7m686EnJhr9GnGNtt64AuPHkT/rGRzNy5lOcYc0o2Ob6C4fiGVZXUWYetf8AUjsIXlf2W4HKhxjQuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784563389; c=relaxed/simple; bh=x5pIpQTqT43aoADx2ozOgXrGhd1juh0zKdMcgoIzjUM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gKQZXBRkZFd21Ei37AA9i/a2f/HY1E2wq+i8MszL5PuH6RhSZprO5B1dkLDfEyxcmiqSbytr4vcDrrpHAXFUtOTTOEw+sOtnmZ2t03zvy/BKxeABiEqAFkMNUVaW3eJ3yIvaZfbC3oXeZ4f3kGtDnW1kwOac4ezRCMXXtkYF1fU= 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=A4yHN37X; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=hOd1oNGs; 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="A4yHN37X"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="hOd1oNGs" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66KFw0fn4152987 for ; Mon, 20 Jul 2026 16:03:05 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=ZnLw6LJTmjD 6gqEe5yuLzfxaduC43i/V6PDPyqb3vo4=; b=A4yHN37XyEY1mIITfTlyOMJM7pO wuLNbXxEHq3DcQ/YGhOAmMGwqhmiR0LwzTl1CqOt2a36sdrC88ZmfJd2YUwdZ3zu 2U1aItouHONfB/aFeWWF6qGHMqbmktAZluC5ndd/cfw+AUg7pBxvyNhQbjSVaIB6 uwvCuGSqdUDA6qO6ZvBqPaKx01V5JVoJc6JvPqmEeTOcY6b6E2pQF/frGexxl5Zc sREgsDZpYSfA22dqKlT8qaUtryf4/9lEPXd/Dm116mfYCKMYq71rRrW1M9iDqJf5 SI5atJAnVRF0phJd9BpcQvPZuRU9vLulhYpm9SNHsQinC+hs+Qsc9rTdEsg== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fhfpg26n7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 20 Jul 2026 16:03:05 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-38e25e4b41cso6225920a91.0 for ; Mon, 20 Jul 2026 09:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784563385; x=1785168185; 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=ZnLw6LJTmjD6gqEe5yuLzfxaduC43i/V6PDPyqb3vo4=; b=hOd1oNGsTlOPot0aMiPHHc0Ryk1hMokJ9p22x6hrsgHre2nFYKz8/sVNIhxxHrHCCa RpbenDAJyPzCT6Qc57HTLr8v10BDHZHldnemONgPV+aFU8pbxCacc8bLw2y8A4LiEs9F oH5WxP93W6ONiZYNY3Hyjl/3MUELCs0Gn7RQXK55la74+On7jE2x9i5XRgD06XqL4u92 vq4SbcTFQ4dLPQMrfSnOkh+UBM5yatGITEZfSRRz1H1Dd5jgtnhENrDhZ/d7CKW0h0kD /wjIcWz5Hrv3PTF3uJyTaBAUL1iYBN5d58sADQmE+TI+grP5JUy9BRdXp8Z+lHHo63uG 1qWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784563385; x=1785168185; 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=ZnLw6LJTmjD6gqEe5yuLzfxaduC43i/V6PDPyqb3vo4=; b=DxvDnnCxIscJZ73tNE64Qf4y66IwZzTXV6cGWyaNCJVoi82Sj3EZ6qNvCK6j8UMcqf lg7l41w8xAr7+CWlluWl8hRSJQRgnPYgH89v1twDEWHIp4hlh9dtw30b+YkT7hPr6eiU deVue+B8b5BO2QBlJKpp7U1bXSBaAlaoCtFrFPDf7Ocf8yGenlzykBJkBPO2BYk2i0ZI UoPzvOco6Q81P/4m6CvNUWNOsWiA2dkp8MBdRbat/vki1nJJKu/ePf7lWKaWNCzrtDlx kqrxaGhPec2vZTIuYtLI1KL6E5nmSn641Q+Rt8zlcqPWCD7RunsKRjKJEEKMT8w5llwj 2B5Q== X-Forwarded-Encrypted: i=1; AHgh+RrSQby75/WfmpRju2MnfPn3xaOKUpd6jQlWPm2+mmrvpqfoka7aaQ1Q/lh6T+9C2w40kJgSnf+pWQyPPyM=@vger.kernel.org X-Gm-Message-State: AOJu0YzD1TdKqaYvI5hfMOVE9sA75y9SD+sL4jHplo+ShbJMkGtD0Wz6 uS6L7N9WtxG2Adl7X1txPAr+6wgmMVxDA5GafZ57cXqDuEZBGv8/STzSadkggzm/jcXlpBfcPvY 9ZCzCTFKcTxru3vlToHyN4XsXBslsl8nUArztZ23IHU849QOagS4kGAyOTch44A/4pDQ= X-Gm-Gg: AR+sD11PKRgmVhhWPFaj5yvW0DyZUafSrUBhAMjHoBdfzgokqzcNuRWwYB+xcrPaVeO oIyCNewU5dBUPvWODmobkuwfUw0ntJP12zYu0QZaOZhssc7eEMll5yndoEaKtJhtBlEdKc7ToF+ wkK4/XG9ul6WkZ70KjgeXv272gypU3GqhmZaDsawMiqTwIwcYaWFnGhtCB6etbP8YMwP1cwB+NH fwU692TsITw/k5+MAMynYjT3YHhte/iVosqiL/0Uk/GZtEkGjgLmMGPKu75rHdIa09vWNkyUdOW 96zFbOI8ulbxF3t6rusZT1cbDN6ElUFfMFSjaHLq47b3mx8fcBWalu3jFJgfa0CussxxzWac7AW SbBZjrRbHMVy6D7xatEJLI1JoBwu6pzeENsG6 X-Received: by 2002:a17:90b:1345:b0:37f:fda5:8d9a with SMTP id 98e67ed59e1d1-38e4b56dd52mr14740768a91.25.1784563384519; Mon, 20 Jul 2026 09:03:04 -0700 (PDT) X-Received: by 2002:a17:90b:1345:b0:37f:fda5:8d9a with SMTP id 98e67ed59e1d1-38e4b56dd52mr14740698a91.25.1784563383862; Mon, 20 Jul 2026 09:03:03 -0700 (PDT) Received: from hu-mohs-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-31429fe1014sm37616115eec.7.2026.07.20.09.02.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 09:03:02 -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 Subject: [PATCH v6 1/3] ASoC: dt-bindings: qcom,q6apm-lpass-dais: Document DAI subnode Date: Mon, 20 Jul 2026 21:32:24 +0530 Message-Id: <20260720160226.1026440-2-mohammad.rafi.shaik@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260720160226.1026440-1-mohammad.rafi.shaik@oss.qualcomm.com> References: <20260720160226.1026440-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: AW1haW4tMjYwNzIwMDE3OCBTYWx0ZWRfX1Sg29AA/3TpU NVejuoRl1JM1Q4wB0/qQpZPGD4eMxA3LtuvOd+hVPLEGaGphA2O+8+OC+gyPbKNWwzwXf9pq52t fwdL3fSvegHV+zkxd84DN/7sLGe77jo= X-Proofpoint-GUID: FiwfYVkfIIm05JWw7g0SOyeCzU0CiAgN X-Proofpoint-ORIG-GUID: FiwfYVkfIIm05JWw7g0SOyeCzU0CiAgN X-Authority-Analysis: v=2.4 cv=c+6bhx9l c=1 sm=1 tr=0 ts=6a5e46b9 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=NrbrONOL4QpDeGKfLFoA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzIwMDE3OCBTYWx0ZWRfX6zjtofrVgkGt +EYTPSuevzPkGZze5Rtu+AfBjERY5QgxspSCHHRc+Lt7D9n6FhJN+cHa7dPWFLl/YSgS3/tM5es WicgwuVTFEgiHeVupZQPgKePXgEJ5MMHjKk3KwHMlJgGfz5kPcteaAT/nW4MHBSL98HUyJlBHF/ ulqOel6H9yXk2sjlNGpwpIGut1nwNTQeg7UP/b/v/hwhorEazw5XcVd75EZeR5/SdcWX9GpehxH S2nTafUH8LCaDlWR3/y6azPPQkP0GBVUWKuGDNgsCyyrCL2VeNjfRAFBePLKqXiaVg+Pb1RmgGj S1gUWG1jwM0iWGualJR1+X0CkEr7hXGbReVXG4RyZHivCH9mjHm8B4ZNnbUxGbh988kLaK8O/Ot i3+lHeg9QAAiNEaIRFRv1Z4FWOmwito9xfutf0Wwn6BJxsSpruXU7jrTRZe7gE8vH5MLY93GMV/ 7WGEiC4u+6vO7yvBqQg== 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-20_03,2026-07-20_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607200178 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 | 53 +++++++++++++++++++ 1 file changed, 53 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..cde52c6f6761 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml @@ -21,6 +21,46 @@ 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 bit clock + - description: MI2S external bit clock + - description: MI2S master clock + + clock-names: + minItems: 1 + items: + - enum: [bclk, eclk, mclk] + - const: mclk + + dependencies: + clocks: [clock-names] + + required: + - reg + + additionalProperties: false + required: - compatible - '#sound-dai-cells' @@ -29,7 +69,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