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 7EBFE43CE6A; Thu, 1 Oct 2026 07:53:47 +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=1790841227; cv=none; b=nqQZef4BpvRSs0jZSGpWCugSryyzRWEGUrg2zTSJlQn+qkUOQ12vUe0+BvL5meRxGj0XFwwLY9lPREwzN0/GCwtbiITw96VxSzuaorFSF7m9tI9zq4cUOOM58q+BQxnpUTZ0NadzP2n1UgfodEs4hizr84fsuNwsar0RWSKcq0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790841227; c=relaxed/simple; bh=4w6+GW+2P0AqMS3tHgIC+zIGNdPd9ZGYDVWCh7x55J4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LeaTYDle3lFMxh1BYeAXYT0yZH+mpQ7Pcynmh99GSqKY4q8Ds6Gz5WTw/4qgEYmUmL+slQmNZsUISejTJwIdmVvlu0HZgDZuo6yTX+wec0bu5Cg656z7ilI+Eq3met+PayhMAG/vne2XwC64ZisAdq0MGsmfxU0wdbo/+fpxeAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NCthoOn6; 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="NCthoOn6" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3DEC2C4AF18; Thu, 1 Oct 2026 07:53:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790841227; bh=4w6+GW+2P0AqMS3tHgIC+zIGNdPd9ZGYDVWCh7x55J4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=NCthoOn6oGSVUtZfIRcX2rop99wZLLDSSRbrADA+wyjvuZeSBmAelF/dq6dOTWxhP 3+QbAsdcDvW9d1jH5+lDR/CpePWFMm/eVOfUqG+faN4NuajR56uGbzW4fcsZJ+dBw6 EoLC5Oa0+rjd/lvjpBtW5X4b80U0h91Qwyd0KZ+tHhiTsMhzPHedhYwqladF95VDur d+V5O4fg5c8dDTIByfMkZa3dBTXeA9tn1oInUlOd1s7Muly72pnySUIFUcv3K4Zxr+ qpbxrKW9pmd5yyf+dFT6PtqiyLgq/18NjMkP32uj7neme4YJs0y9Fl8iDGD5EmXhjX paJQuOqilQdGA== 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 13AE5CA5FA5; Thu, 1 Oct 2026 07:53:47 +0000 (UTC) From: George Moussalem via B4 Relay Date: Thu, 01 Oct 2026 11:53:45 +0400 Subject: [PATCH v4 2/8] 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: <20261001-ipq-flatten-usb-v4-2-486a4d5ede30@outlook.com> References: <20261001-ipq-flatten-usb-v4-0-486a4d5ede30@outlook.com> In-Reply-To: <20261001-ipq-flatten-usb-v4-0-486a4d5ede30@outlook.com> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Thinh Nguyen , Bjorn Andersson , Konrad Dybcio , Abel Vesa Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Varadarajan Narayanan , Kathiravan Thirumoorthy , George Moussalem , Konrad Dybcio X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790841224; l=3451; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=1qS4NT/cs8yQ4e0VcSryU3KkiLwYMVRQP8Vj+lpl+kk=; b=u5ie5O0RmdbFbWaBIJlzrQ4N3sEoDs9fpaanL8tqPv4itJfJdCjDys+qNfziCChtIAYYZS8zn pwVvzHmozAZCxgrPbW/ptkTn4zveqpgYbnNejhn+HTU2zJ+Qn6KztS5 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..25c32e966de9 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 = <24000000>; - 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