From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BBEF03B994F; Sun, 6 Sep 2026 03:52:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788666766; cv=none; b=o/SnNKza6VjMtU4jb0xm1VA5ubjPPTTzZDFRkQPjjBPpFmsSbFKO1v41ZvNQf/ZOaSDZexex3+jYQKddoda/jyrd84v6UAgd5oTNlz67hkkvKXNEGjIgzqVrNmvmpjLQWxIPXgXoEBsa+W7cO7qSWEi3E0iD56XkZpH5NlWsJ0w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788666766; c=relaxed/simple; bh=7Yq5ub7q0MZf9nnKm7SAIuTh3wlNo4yVu/BiB/oqTiI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=eNxWWdE7/59YXojaTofZ9xFTwWZXJMd4LxZkqCrgdSNpn8opWMiTAKXCJZ6v5c2xwDCgsE8/CfWbG2bskDB9FNTjAzjonWXsYeFmqiLR7pTVAf4dS/sUhAVCntxA3aPs/PfbxSt98tcno9lA1laTjzQ1Jn9EQa722Vu0rBbXVGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f35VY/W9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f35VY/W9" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4EB02C2BCB8; Sun, 6 Sep 2026 03:52:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788666766; bh=7Yq5ub7q0MZf9nnKm7SAIuTh3wlNo4yVu/BiB/oqTiI=; h=From:Subject:Date:To:Cc:Reply-To:From; b=f35VY/W9Y6xjBhYfYDCcla5TmEeg09rIJRpQmEwxM8OW/3hYvJlv168hiCM2HSctw WIcDSaTpgd+5ieEKurgx/RyP5iDoV3D+nGcESc0Np6ge9Qu83fzSkaeWWXzkTFOh/r j5JvNaBvnLVOwtonlr2mytBgHFAn+HWPc3412g84HLm0jX84w8eUpB+kr5EJpy4VxB F6NGGp3YUX+T0JAbev0cv/eh17DcPu5NxFn8nlJNBzQqaECiu9RNaMxBwL+BzCtbMI x2anqbBwJs2Tv60U692XlNs5RJTPb/FQaOXD6aff6lfXlpEtZmiIqullBPU0NtgLcS Go6GS6sTWZQvQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 241BAC79F8C; Sun, 6 Sep 2026 03:52:46 +0000 (UTC) From: George Moussalem via B4 Relay Subject: [PATCH v2 00/10] Flatten USB Controller Nodes on IPQ SoCs Date: Sun, 06 Sep 2026 07:52:39 +0400 Message-Id: <20260906-ipq-flatten-usb-v2-0-dab83120b10a@outlook.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/3WNQQ6CMBBFr0Jm7Zi2BBBX3MOwgDKViUixLY2Gc Hcre5fvJf/9DTw5Jg/XbANHkT3bOYE6ZaDHbr4T8pAYlFCluKgCeXmhmboQaMbV96iroTKyMHl dlpBWiyPD76N4axOP7IN1n+Mgyp/934oSBRZamlxWou+pbuwaJmsfZ22f0O77/gVl3Di3sAAAA A== X-Change-ID: 20260825-ipq-flatten-usb-c7d7f15f3966 To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Thinh Nguyen , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Varadarajan Narayanan , George Moussalem , Konrad Dybcio X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788666763; l=3251; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=7Yq5ub7q0MZf9nnKm7SAIuTh3wlNo4yVu/BiB/oqTiI=; b=hPAyGLZNl5MlOY4uQBGhMsqP6taHHPd2AINyGncH0wyppAMhPXGwBtUpputzCuRmtnCQ54mcZ LPHsGQPXTNLBVR+5ntWRV2qN41gmG04VjhIPan3PsVTg3y28dfDYEPC X-Developer-Key: i=george.moussalem@outlook.com; a=ed25519; pk=/PuRTSI9iYiHwcc6Nrde8qF4ZDhJBlUgpHdhsIjnqIk= X-Endpoint-Received: by B4 Relay for george.moussalem@outlook.com/20250321 with auth_id=364 X-Original-From: George Moussalem Reply-To: george.moussalem@outlook.com Add ability to pass the UTMI clock rate to the DWC3 core to calculate the right values for the period and frame length adjustment. This is required for USB controllers on chipsets where the computed values for the period and frame length adjustment differ from hardware defaults based on the UTMI clock rate. Flatten usb controller node and update to using latest bindings and flattened driver approach. In addition, set the right UTMI clock rate and override any clock rate inherited from the bootloader. I've split these patches from a larger patch set to add USB3 support on IPQ5018 and IPQ5332 SoCs where these patches are required to ensure new functionality is added to the new flattened driver and binding model. link: https://lore.kernel.org/all/20260812-ipq5018-usb3-v2-0-8f355d7ff0ef@outlook.com/ Signed-off-by: George Moussalem --- Changes in v2: - Dropped the "qcom,select-utmi-as-ref-clk" property from the binding and DTS nodes since it is no longer needed. If the UTMI clock is available, the glue layer will pass its clock rate to the core unconditionally. - Added separate patches to move the DR mode to the relevant board DTS files as per Konrad's request. - Picked up RB tags - Link to v1: https://lore.kernel.org/r/20260825-ipq-flatten-usb-v1-0-5c1f3170bbe9@outlook.com --- George Moussalem (10): usb: dwc3: core: Allow glue layer to pass reference clock rate usb: dwc3: qcom: Add support for selecting UTMI as reference clock arm64: dts: qcom: ipq5018: Flatten usb controller node arm64: dts: qcom: ipq5332: Flatten usb controller node arm64: dts: qcom: ipq5424: Flatten usb controller nodes arm64: dts: qcom: ipq6018: move DR mode to board DTS arm64: dts: qcom: ipq6018: Flatten usb controller nodes arm64: dts: qcom: ipq8074: move DR mode to board DTS arm64: dts: qcom: ipq8074: Flatten usb controller nodes arm64: dts: qcom: ipq9574: Flatten usb controller node arch/arm64/boot/dts/qcom/ipq5018-rdp432-c2.dts | 6 +- arch/arm64/boot/dts/qcom/ipq5018.dtsi | 51 +++++------ arch/arm64/boot/dts/qcom/ipq5332-rdp468.dts | 6 +- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 57 ++++++------ arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts | 12 +-- arch/arm64/boot/dts/qcom/ipq5424.dtsi | 86 ++++++++---------- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 95 +++++++++----------- arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 4 + arch/arm64/boot/dts/qcom/ipq8074.dtsi | 110 +++++++++++------------ arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi | 6 +- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 40 ++++----- drivers/usb/dwc3/core.c | 6 ++ drivers/usb/dwc3/core.h | 2 + drivers/usb/dwc3/dwc3-qcom.c | 9 ++ drivers/usb/dwc3/glue.h | 4 + 15 files changed, 230 insertions(+), 264 deletions(-) --- base-commit: 32b6ef9a5d0eca44f9cd91f52f4faa89f145a0de change-id: 20260825-ipq-flatten-usb-c7d7f15f3966 Best regards, -- George Moussalem