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 9F5D240926A 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 (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66KFw00B3259585 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-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fhfdcj8ax-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-f71.google.com with SMTP id 98e67ed59e1d1-38e54b6556aso3229614a91.2 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=E33eH+qG1SbuqPP+NpJ++bgwFzExeA0z6ndvNzWLS+GecD4kA/Sh3cAQV4HGAhuJY7 ydf5JXTrwQ81gf/Zrw9oZSiZYH7oC6udVBUSgClsY4+pG3XKYBJpz5GT0661oJndw45P +0kYZXNIMPVuccE1dT+rJb3A9VmrA+7AZmShTSrpOj1ySmA7RgY5XS8eux9Tvfm+l+qZ Dtmj80hdOiXI2+ym492rC0JYfcss5wsjjWx+f6btetsQsaRKIZMM8kuFLTlOLLFqudwQ z2C5HtNOwUGpFygXYW83rt+cQjmaPrSKp9FrxIXgxSztIboi+/rcL063+P1vTBBi1Zqo SnnQ== X-Forwarded-Encrypted: i=1; AHgh+RqbWEsVRq7A12A9V3mNW7yotVRJcDMKxp9K4iltXjMXCFB/DfyBXVvqJAhRiq2+DPTNjezf5mzpCVkN@vger.kernel.org X-Gm-Message-State: AOJu0YyMQj4/PM2yGhgVAWKV/PRRLGPc9OdEQaCHgvHwPD1VSXSuRP9B UVejL9iwz25QIsBtvSd5teJbX+s+KAIxWrSL7V64px3snme2L//O2X6S/2/Bddu7zmQiHUCDzLw xv6y7BIKYPsVRMd6OFukt0VSiywjghHTxotLseaNhsJzoV0oA6fEK3mNrPMjN5q3a X-Gm-Gg: AR+sD10P1pz63NgVfWLrtnwFhofRjIao+6Lli3y7i7jApWgSPrNs10lvSmxMOuo6Ddm u0eopbZTFd0ZeZsOXP1NFAjKpAO3l5glMgo06RNDadywzXTPKVA8a5Xw1s+AjJ+Ih0MQg8sD6p9 MZ9y+pepu/V4CgMaA5FsAyF1pD3R1oUr5bzOzwzRMwg/7hfzte4TWb7eCeGz+mLFZ4dvJQfR8WC JWVH/OVZiL5K40LUcdTakKtS6aXnTe7PEdu+9lC6eKxuNkqpzWjFxydlimPybfdy2YPKsTmRTCK r5BeGOb+Q4vGVSmjf4jaWnlJBfuPT+AOBG5sbuH6rrhpkazcz0IrUWcsQeSsKubvUgkll+a9RMe uJZGrhuwleGARXoPpvTBuCpo+Rrtu9ATlBI5D X-Received: by 2002:a17:90b:1345:b0:37f:fda5:8d9a with SMTP id 98e67ed59e1d1-38e4b56dd52mr14740763a91.25.1784563384514; 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: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: d3SNA3WHJUT66QbaX-hFqBNLj92TUao1 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzIwMDE3OCBTYWx0ZWRfXwWOweX0il7k/ pG7ZSb2SxP70xKM8mbRblVirHd+LfZ4WtBuYGZP4Aequp9vjv+reO7BSGLD6oiq7Y7CCXFL0R+1 e61wBu+WwTEaMjYNsA8KxoRCnd2n7TGXQ5KImqmK6ioaYufagfdVksFBVslKmnLhVlhopg5LtKh 8F1ChhzGXPjJmtlGQ+57GbHyFtmyWRMWk/qFBi8/rTbb760H7RJtrpM15wHI5AskYs/cWi9WHP4 n5CvQQY4fwyUYu1pcYBjh+4dzgDOQCi1TishfZKsw4xVDvucImawCQxpQPJFMDDOMyHWvg7iNQr +BaMXmOeGxafQR4kgBCfjsJXqdAbW4Sta6iMdzZuQjHEWrTKgIl4Sjz59cCg85Q63wNu83ir1Hf YGDK8avVBkCTg7ookhuqpXfal5GuiMiLOCTR50Y8Z+yGQEtcgAmLNdCNKoUXVrfOYPlG0VpnYNP vrkPEJM6Sx/uIsZ6Nmg== X-Proofpoint-Spam-Info: AW1haW4tMjYwNzIwMDE3OCBTYWx0ZWRfX5nquXfv9fS6M xiq1/Wmq0yC60pKFMEooAaeS2XAl2ESOCGQvCQoP104LtB16NSfbnA8XO3YYwCpqnPa31wo6z8D 44iCzk4Ki9FHY71yPOlfBum20YH4uZU= X-Proofpoint-GUID: d3SNA3WHJUT66QbaX-hFqBNLj92TUao1 X-Authority-Analysis: v=2.4 cv=bv58wkai c=1 sm=1 tr=0 ts=6a5e46b9 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=NrbrONOL4QpDeGKfLFoA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 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 impostorscore=0 bulkscore=0 priorityscore=1501 spamscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 adultscore=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