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 76F5F400DFC for ; Mon, 20 Jul 2026 16:03:01 +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=1784563384; cv=none; b=Z7HTXkgawxILbwWq0mfHTnvhKaZflLR6PJoSM1rYDhXY0PiV+MLrDF+g5oc5IQECKZ7XxRTySF0S1k2HM0lcWcr9VEY38FpzCYQnfvPiSAVtalSO4P+aDehF9j7ETb+8kdL/BGxPmujpR3g+OoD1dk4mmrelLeEwPjwCWkIwKzA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784563384; c=relaxed/simple; bh=sQl7WPJ5J5BoF002nBCIMZf/2vH/R29fDZ+vXQkKnNo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=MzPHWsKGNiQ2WDur6Jjr5ZuagDAqdk6IzzpGWKqMHaccSTsHZldvRKdhRcDK4kGd+Qmdxd0VFB1UHRG1mJ8tLXN7urf0OTHhkGpca71I4ua8O3TbGJzyiN4rF0fceQ0mvr56bqlisP4Dy7ACA42NHm159IJ0LE9bYeaZpfZhdiU= 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=K7aOBaWs; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=aTofNNaQ; 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="K7aOBaWs"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="aTofNNaQ" 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 66KFw1Wl3259623 for ; Mon, 20 Jul 2026 16:03:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=Salwr7ZkvoC+W+zP0O+9TJ cZbgxlmEgTJU1zU+SmQIc=; b=K7aOBaWsMXSEGRUmlJmnfnKGcRbX9y+oWuXlyD PTtQZtE2uWcSqscd7988pIr9sAb3Tslz1PbdqmI5uqB/kmY1TEvHIMRl7XOQBMAM zpRKdNupWwEE6/VCQdj92ANtQKy7idgqaCZiHs+ZZ4JPawdzLXxrWxSR+BR3ruzJ BakVElzaUN9EagwlI7UC/YyxrK3Z2OU2yclLS+TITxfjvPnasTF9bZpJcTEKUa5D MfZai4pObhgUFKL4aCyiPd+eJdcuF9GbCSV/+lJBLh4RznW1Ont/P1xM4RKBccn9 LDqMFp8haO8b4u9hZJXEFX+wfICQCwNus5q6LkDH307rEhXQ== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fhfdcj8af-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 20 Jul 2026 16:03:00 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-c9151bf6ce7so11241799a12.3 for ; Mon, 20 Jul 2026 09:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784563379; x=1785168179; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Salwr7ZkvoC+W+zP0O+9TJcZbgxlmEgTJU1zU+SmQIc=; b=aTofNNaQttXYqqd4ZzWJsOStCJea0prlApW8wvd6kWH0hB+QJ6t89wNiE0NIexkgwq yMEs2QWxu3in8b6qqrlavZ6pHx+JSGTObMQkUzdCzg4K+NtaEhTx7g1IWqFJMJ+yc4Si yRWrXUppo2/KxVmn8+4t2ds4wzcNFpaJxUVsIl68t+v3TNeVwgTK/x6FsP6XY/Pam16U 3VaHBShlSa9uLifJ9tSq73Z3ZL1Z8E5/4grbzg2eGHP9NwbeFTIfF0seqjwNsOPSeSO9 gEZEadECRbnxS/cN3mpBi6NnymDrtZUE2dS8f0aS0yuGdIv6+g4wMVfmDgaBkbkLMP9c Lhig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784563379; x=1785168179; h=content-transfer-encoding:content-type:mime-version: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=Salwr7ZkvoC+W+zP0O+9TJcZbgxlmEgTJU1zU+SmQIc=; b=Vw+QOHBtRBHZMgsdAn5e++XFGSXa5Qi7J8P0VgsqsJB/rdx7E6XtGn5NRxsYg3Pn/0 WflN4LM9EhDQVrsY/VSgOIfXj/J/ZSdTfBihmhGfmszUG3z+Jm0E/Hig5sMHmAXUP+vU lskcXKAwvGEVvyTG3TVe7iaK5r5rxqQOBEYvdZCQqyHRrzGikucPCyeUrYm4Bz5XOKSY HtJeHS3VACwz+DoE+4AkQyBJ2WLUF7v76awt21FfIAppulxZ7DJoYoBha6EdrZ6/UDGJ WhPqwMmaEXkdrJMQv/tjLfFztOInPF7o/zmuwUABTQQCjM/mwxJ++y2vE61UkUlpadit 7Tgw== X-Forwarded-Encrypted: i=1; AHgh+RoXQlnJsJmz7ZaPB8fhg8qeDlBscOpq2M65rNKqpu63+dGO26OA4P4yUf3awoanqfN4f6OPB/rZzulipwI=@vger.kernel.org X-Gm-Message-State: AOJu0Yy2fIcwd2RsNWuQ11zYEY4Q53wJ/wZ5g2XR9ixcZJFn3IL1tnOO FtHAtNzHTMiv5WoL5nD8TpK2+zm/z8xSesKzSIE2PwX8ezuz6viVRgYPGpnbzB9kqTsW008qmVu g6aLNGzEZ1QyR0RMkjeHs7Z0vx5ZROI3X5W/aWj2lkLXRNMJq33SFc2daiyJLo7R2UoE= X-Gm-Gg: AfdE7clRqPvf7nte4DSTAZlFNm4zm6cS6Jm2FRXcgdJX61JYqSleHFEvtZpmGihW9ww TGA52ta+jJn0jOQI8T0rgSqdl0kgA3OWt4wWi8aqzCM3WcorqwuvJvblMMVsT5Q1RRcUR0Z11GS RUtonNJsvh7KowlkNuyiNMoHWpg4cHOJIxXnfIdsh5S/2jHvikK/Accmb7ri3lXGSST7IGjSn0W RkWoc7ls59EKcbI1PNK/v0Qqw9uMWL/j7+WE1bPg78rD+yHdSGOkTQiFuyH5aDeMmMQtvLEgRR8 bK3qpX4WKepsQBCMWswJsSovWbczwGcaWp1imHZhAw9wTPeBpFKbGW5TjoNM+o7v1IRvp/5B0fE WYipkAGPvkKLsVBNMagXz96tAQHP37PYld+Ao X-Received: by 2002:a05:6a21:6b16:b0:398:8870:b58f with SMTP id adf61e73a8af0-3c3ad5d463fmr15393350637.14.1784563379260; Mon, 20 Jul 2026 09:02:59 -0700 (PDT) X-Received: by 2002:a05:6a21:6b16:b0:398:8870:b58f with SMTP id adf61e73a8af0-3c3ad5d463fmr15393291637.14.1784563378650; Mon, 20 Jul 2026 09:02:58 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 09:02:58 -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 Subject: [PATCH v6 0/3] ASoC: qcom: qdsp6: Add MI2S clock control Date: Mon, 20 Jul 2026 21:32:23 +0530 Message-Id: <20260720160226.1026440-1-mohammad.rafi.shaik@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: oJm02FrXnNvu59My_a4qUHyiGzK43aLA X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzIwMDE3OCBTYWx0ZWRfX93x743EQDVyI GnccsJ1oUBPLV39RyshEth/BH1Ab41Ya7xfeJPHu2ex4oPQRqUBI/xxc2Kp6vPVx/uk5oHpsgVc 4VNhnZitqMFw76ZBSWbZLoCGUYbcSxlTqORMFGjIGjxkZjn3TuZSrsVuuLPYzvBDzJ5jVWDNpfS H3zBZjmWFEM4/iv5+WTVTDD/LCfgrWHoMyRhQsoyuPgFvhXXhpF2Y5vC5WS24FbuUrEJlp9M/vo E0g1XyX/FbZewSj2HNb0bFQuEcvZVEXX7nWfJYZqmUtG3Ec4MpAWCXdiL/dH0SqU502d6e+M1CC K+ptPGHfQQLFVcU+eyqLjAJvO3tKfWV3eDxbghnDH/AMdCx5HIEcrFUsMSAynbV9YNXmcAPmBCj squ2/XIgSH4h5WGgwcfXunHOt8K4Eg1WUhrwT1hG/8Fx813tiEoXGotMohYBL/UDXnCSInguWmb 2cJlascwG/ehqy3Av6g== X-Proofpoint-Spam-Info: AW1haW4tMjYwNzIwMDE3OCBTYWx0ZWRfX/Lcofiytb/On PAKiIE/89bR8IU1fqYRTAhHu5qcoo9tcybWKTIjnqRX+U5WO36/HMqm76zF0RqvTCd6iIQbBJ5b vr1rAMfSFmyAFOoM+W80MwcwF4FGQ70= X-Proofpoint-GUID: oJm02FrXnNvu59My_a4qUHyiGzK43aLA X-Authority-Analysis: v=2.4 cv=bv58wkai c=1 sm=1 tr=0 ts=6a5e46b4 cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=BifR_v5mCn8YSut0XsEA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa: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 Add support for MI2S clock control within q6apm-lpass DAIs, including handling of MCLK, BCLK, and ECLK via the DAI .set_sysclk callback. Each MI2S port now retrieves its clock handles from the device tree, allowing per-port clock configuration and proper enable/disable during startup and shutdown. 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 bit-clock 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. Enhances the sc8280xp machine driver to set the boards spacific configurations. --- Changes in v6: - Addressed review comments, reported by Krzysztof. - Resolved all sashiko comments. - Link to v5: https://lore.kernel.org/all/20260714145250.2473461-1-mohammad.rafi.shaik@oss.qualcomm.com/ Changes in v5: - Addressed review comments, reported by Krzysztof. - Resolved all sashiko comments. - Link to v4: https://lore.kernel.org/all/20260711125740.3083236-1-mohammad.rafi.shaik@oss.qualcomm.com/ Changes in v4: - Addressed review comments from Mark Brown. - Resolved all sashiko comments. - Link to v3: https://lore.kernel.org/all/20260706132009.1496321-1-mohammad.rafi.shaik@oss.qualcomm.com/ Changes in v3: - Addressed all review comments from Mark Brown. - Fixed OF node reference handling, clock configuration, and sample-rate handling issues as suggested by Mark Brown. - Added proper error checking for DAI configuration APIs as suggested by Mark Brown. - Added SENARY DAI support alongside MI2S DAIs as suggested by Val Packett. - Link to v2: https://lore.kernel.org/all/20260608023011.942228-1-mohammad.rafi.shaik@oss.qualcomm.com/ Changes in v2: - Added a detailed commit description to clearly explain the need for this change. - Improved the machine driver based on Neil’s feedback. - Link to v1: https://lore.kernel.org/all/20260309111300.2484262-1-mohammad.rafi.shaik@oss.qualcomm.com/ --- Mohammad Rafi Shaik (3): ASoC: dt-bindings: qcom,q6apm-lpass-dais: Document DAI subnode ASoC: qcom: q6apm-lpass-dais: Add MI2S clock control ASoC: qcom: sc8280xp: enhance machine driver for board-specific config .../bindings/sound/qcom,q6apm-lpass-dais.yaml | 53 ++++ sound/soc/qcom/qdsp6/q6apm-lpass-dais.c | 194 +++++++++++++- sound/soc/qcom/qdsp6/q6prm.h | 4 + sound/soc/qcom/sc8280xp.c | 251 ++++++++++++++++-- 4 files changed, 480 insertions(+), 22 deletions(-) base-commit: 0718283ab28bc3907e10b61a6b4be6fefa1cbb2f -- 2.34.1