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 BBDCE368941; 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=Votr/NcpCjYWqo0GkdmsD0StIXiX5I+uED8XXyv/qvP4LZNcMl7DEKsE48bhpyfsCAy7a7j4jEuSf+g25wMQDrwhBi80wSWhlOGNGHTNGgTqnRzqBNGeFFzvV7pKhzF+w/eHldE2JK0KN0mm13ZfoR8HBoVNf3d11q6Kx8irCCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788666766; c=relaxed/simple; bh=YUIor8yMS9GKkHFUZ11ZoJQm/DvRtyUy5+W583C/if8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WxK0iT+ia2zFvcMMxvV4BxcxdkN/N79fLHlgPDIavkcXlqR2G46FksyuI7Hx2pZ1ZRzdmvtL15e6SBrI+r3ZTSo3poSpM8O+XdpPWd/c/s++eWxwQtdEpMw/M8GNPe7rjUUwAUQkup1nsS0usPe72nN/SN4M2jPSWt/vYtD5kDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TlsBjnqi; 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="TlsBjnqi" Received: by smtp.kernel.org (Postfix) with ESMTPS id 7A550C2BD00; 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=YUIor8yMS9GKkHFUZ11ZoJQm/DvRtyUy5+W583C/if8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=TlsBjnqiGLDntGNtz3YQwhk1MYjx5C1v0RHCb+pMzqN1IS9VSnTOeFfv70RbzRPuc ZYBCC2PA8swj18pL9HH56M/9OCxWSTbkka0/rResmdVRg3uJUSLj7NZXy84+IyXbK2 5VtFXShje8KdT+m+SVSIK7dEUSp5RPgCj/GS9SL8AOdwJzTb6V+xmXX6V0+8G+h36r hUa0XJSq4iqyt0Ipctj100XN1sb+WGLwCoa/i17z+N3YhzwhLdIhH5b/dEwcT2BE35 moQh2kf/17jffDWpZvByhaq9h32iqQGFvEkbZcZVJA1NHhNohII4eVyZnzXKOfXrQc lF1lWk80zM2dQ== 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 62784C79F91; Sun, 6 Sep 2026 03:52:46 +0000 (UTC) From: George Moussalem via B4 Relay Date: Sun, 06 Sep 2026 07:52:43 +0400 Subject: [PATCH v2 04/10] arm64: dts: qcom: ipq5332: Flatten usb controller node 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 Message-Id: <20260906-ipq-flatten-usb-v2-4-dab83120b10a@outlook.com> References: <20260906-ipq-flatten-usb-v2-0-dab83120b10a@outlook.com> In-Reply-To: <20260906-ipq-flatten-usb-v2-0-dab83120b10a@outlook.com> 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=3451; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=PYOFo1aWcJ8CI++Ruzl5x/cryb7/w2wzFL+6CGLmDk4=; b=NpmCX88gzmh8l3vQslzOqwEELCIhjYjVsqyyGLvD1cippDnctpTiyVhvcEmsCUYv6eaQKab5Z jl66sDydZt3DWKbF9qxM5RVm+VtnuA+IzZ8rN+Hyw5XNjKZHaXjXm97 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 From: George Moussalem 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. Signed-off-by: George Moussalem Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/ipq5332-rdp468.dts | 6 +-- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 57 +++++++++++++---------------- 2 files changed, 28 insertions(+), 35 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq5332-rdp468.dts b/arch/arm64/boot/dts/qcom/ipq5332-rdp468.dts index c224ffc65b08..25a70cd884c0 100644 --- a/arch/arm64/boot/dts/qcom/ipq5332-rdp468.dts +++ b/arch/arm64/boot/dts/qcom/ipq5332-rdp468.dts @@ -90,11 +90,9 @@ spi_0_cs_pins: spi-0-cs-state { }; &usb { - status = "okay"; -}; - -&usb_dwc { dr_mode = "host"; + + status = "okay"; }; &usbphy0 { diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi index 74d9de8d7641..b8c54c75b161 100644 --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi @@ -493,16 +493,9 @@ qpic_nand: spi@79b0000 { status = "disabled"; }; - usb: usb@8af8800 { - compatible = "qcom,ipq5332-dwc3", "qcom,dwc3"; - reg = <0x08af8800 0x400>; - - interrupts = , - , - ; - interrupt-names = "pwr_event", - "dp_hs_phy_irq", - "dm_hs_phy_irq"; + usb: usb@8a00000 { + compatible = "qcom,ipq5332-dwc3", "qcom,snps-dwc3"; + reg = <0x08a00000 0xfc100>; clocks = <&gcc GCC_USB0_MASTER_CLK>, <&gcc GCC_USB0_SLEEP_CLK>, @@ -510,34 +503,36 @@ usb: usb@8af8800 { clock-names = "core", "sleep", "mock_utmi"; + assigned-clocks = <&gcc GCC_USB0_MOCK_UTMI_CLK>; + assigned-clock-rates = <60000000>; - resets = <&gcc GCC_USB_BCR>; - - qcom,select-utmi-as-pipe-clk; + interrupts = , + , + , + ; + interrupt-names = "dwc_usb3", + "pwr_event", + "dp_hs_phy_irq", + "dm_hs_phy_irq"; - #address-cells = <1>; - #size-cells = <1>; - ranges; interconnects = <&gcc MASTER_SNOC_USB &gcc SLAVE_SNOC_USB>, <&gcc MASTER_SNOC_USB &gcc SLAVE_SNOC_USB>; interconnect-names = "usb-ddr", "apps-usb"; - status = "disabled"; + resets = <&gcc GCC_USB_BCR>; - usb_dwc: usb@8a00000 { - compatible = "snps,dwc3"; - reg = <0x08a00000 0xe000>; - clocks = <&gcc GCC_USB0_MOCK_UTMI_CLK>; - clock-names = "ref"; - interrupts = ; - phy-names = "usb2-phy"; - phys = <&usbphy0>; - tx-fifo-resize; - snps,is-utmi-l1-suspend; - snps,hird-threshold = /bits/ 8 <0x0>; - snps,dis_u2_susphy_quirk; - snps,dis_u3_susphy_quirk; - }; + phys = <&usbphy0>; + phy-names = "usb2-phy"; + + qcom,select-utmi-as-pipe-clk; + + tx-fifo-resize; + snps,is-utmi-l1-suspend; + snps,hird-threshold = /bits/ 8 <0x0>; + snps,dis_u2_susphy_quirk; + snps,dis_u3_susphy_quirk; + + status = "disabled"; }; intc: interrupt-controller@b000000 { -- 2.53.0