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 EBC473E0090; Sun, 6 Sep 2026 04:47:01 +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=1788670022; cv=none; b=GKnDqdXbkI5T3m+U9XcyGyOh81RAwQzxi8At2Om1hJypsiI4LzGIjo4TqBB8ZXOiD8fjGDgDBLR/7SqW+noxAEZD1zWBI8rgRfTNjcFPxUFuYz+mH+T1DuHwSnBgpU6me0nkXsLj+xaptEf1dkor6kpM94YLvqsWmcPyYhekqIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788670022; c=relaxed/simple; bh=DYnvjyUMNurv4oidNp7Ai8v++lNDC917FZknQTTjveU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nETwBHR8z18hCtnVHTB3cNBud9N5aaBcgQtTYNaZQB1P9gmGQcbvsevV2JDO1YIJ4crdvPULZf1OfrHHZ0Hd4gFx9z1Ew83+wIgIUJj2ux6ktX6Z+KehV5/thVaYTlaRHmOOSTmMEdPkuFpeZbe9kxS2K+y3kwcJ2MAm+TBKznc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YPs+66km; 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="YPs+66km" Received: by smtp.kernel.org (Postfix) with ESMTPS id 44A95C2BD04; Sun, 6 Sep 2026 04:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788670021; bh=DYnvjyUMNurv4oidNp7Ai8v++lNDC917FZknQTTjveU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YPs+66kmzrGbQXS5+aBBIm/0qGq3a28EqjcPwRsPHbNI1V1R4f4zDpV0KlweUUwVU SHD4FJM1deorP2rREBJJVOzClhTp7XjpHwWwJqE3cGlgm80v6QJ5KswD8TVrjq0b4k vthgl9QlI/l5bCHfJJXkka9lkTdJ23cVxeDvkqtz7/gcK262pdEbEixtuihDWAbDqP ULZXM1Q5YAmFwrqJXjdjks1vE3soKL6R60amqqAtFxNWr0Y6Evf+R6o2JWZaA+nBC1 oKyvMFXE3zCaL4FYBxNm/ILKYGqSMGJ3T0hwq0bhh4SnDlEcATqp33EQdxpnXmIvGG S1NUyNwgcxBOw== 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 31772C79F9E; Sun, 6 Sep 2026 04:47:01 +0000 (UTC) From: George Moussalem via B4 Relay Date: Sun, 06 Sep 2026 08:46:46 +0400 Subject: [PATCH v3 07/10] arm64: dts: qcom: ipq6018: Flatten usb controller nodes 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-v3-7-13e4e0f63123@outlook.com> References: <20260906-ipq-flatten-usb-v3-0-13e4e0f63123@outlook.com> In-Reply-To: <20260906-ipq-flatten-usb-v3-0-13e4e0f63123@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 X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788670018; l=5041; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=QMYZOel4Z7ohvK/v1QgPC715UMdbY7FAiCKD4hgbqKc=; b=1JmXJB/g03B3GX1/U7rJmh5iWYzqjYyFt/UUrB9VYljlqwhmNNP4iNhA0pD/vnlkGbTvYL8yR QyKuP1yzHHlDnUp76U2bejdaq1hxCAIQo9wzPZ/Nnv3xwDF8e3eDmih 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 nodes and update to using latest bindings and flattened driver approach. Signed-off-by: George Moussalem --- arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts | 6 +- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 93 +++++++++++++--------------- 2 files changed, 44 insertions(+), 55 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts b/arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts index a366be17c251..dfc3aac955e8 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts +++ b/arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts @@ -48,10 +48,6 @@ flash@0 { }; }; -&dwc_1 { - dr_mode = "host"; -}; - &tlmm { i2c_1_pins: i2c-1-state { pins = "gpio42", "gpio43"; @@ -88,5 +84,7 @@ &qusb_phy_1 { }; &usb2 { + dr_mode = "host"; + status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index c02110ad9cb0..4f5f8b628bf2 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -423,12 +423,10 @@ pwm: pwm@1941010 { status = "disabled"; }; - usb2: usb@70f8800 { - compatible = "qcom,ipq6018-dwc3", "qcom,dwc3"; - reg = <0x0 0x070f8800 0x0 0x400>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + usb2: usb@7000000 { + compatible = "qcom,ipq6018-dwc3", "qcom,snps-dwc3"; + reg = <0x0 0x07000000 0x0 0xfc100>; + clocks = <&gcc GCC_USB1_MASTER_CLK>, <&gcc GCC_USB1_SLEEP_CLK>, <&gcc GCC_USB1_MOCK_UTMI_CLK>; @@ -441,26 +439,25 @@ usb2: usb@70f8800 { assigned-clock-rates = <133330000>, <24000000>; - interrupts = , + interrupts = , + , ; - interrupt-names = "pwr_event", + interrupt-names = "dwc_usb3", + "pwr_event", "qusb2_phy"; resets = <&gcc GCC_USB1_BCR>; - status = "disabled"; - dwc_1: usb@7000000 { - compatible = "snps,dwc3"; - reg = <0x0 0x07000000 0x0 0xcd00>; - interrupts = ; - phys = <&qusb_phy_1>; - phy-names = "usb2-phy"; - 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 = <&qusb_phy_1>; + phy-names = "usb2-phy"; + + 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"; }; sdhc: mmc@7804000 { @@ -668,21 +665,18 @@ qpic_nand: nand-controller@79b0000 { status = "disabled"; }; - usb3: usb@8af8800 { - compatible = "qcom,ipq6018-dwc3", "qcom,dwc3"; - reg = <0x0 0x08af8800 0x0 0x400>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + usb3: usb@8a00000 { + compatible = "qcom,ipq6018-dwc3", "qcom,snps-dwc3"; + reg = <0x0 0x08a00000 0x0 0xfc100>; clocks = <&gcc GCC_SYS_NOC_USB0_AXI_CLK>, - <&gcc GCC_USB0_MASTER_CLK>, - <&gcc GCC_USB0_SLEEP_CLK>, - <&gcc GCC_USB0_MOCK_UTMI_CLK>; + <&gcc GCC_USB0_MASTER_CLK>, + <&gcc GCC_USB0_SLEEP_CLK>, + <&gcc GCC_USB0_MOCK_UTMI_CLK>; clock-names = "cfg_noc", - "core", - "sleep", - "mock_utmi"; + "core", + "sleep", + "mock_utmi"; assigned-clocks = <&gcc GCC_SYS_NOC_USB0_AXI_CLK>, <&gcc GCC_USB0_MASTER_CLK>, @@ -691,31 +685,28 @@ usb3: usb@8af8800 { <133330000>, <24000000>; - interrupts = , + interrupts = , + , , ; - interrupt-names = "pwr_event", + interrupt-names = "dwc_usb3", + "pwr_event", "qusb2_phy", "ss_phy_irq"; resets = <&gcc GCC_USB0_BCR>; - status = "disabled"; - dwc_0: usb@8a00000 { - compatible = "snps,dwc3"; - reg = <0x0 0x08a00000 0x0 0xcd00>; - interrupts = ; - phys = <&qusb_phy_0>, <&ssphy_0>; - phy-names = "usb2-phy", "usb3-phy"; - clocks = <&xo>; - clock-names = "ref"; - tx-fifo-resize; - snps,parkmode-disable-ss-quirk; - snps,is-utmi-l1-suspend; - snps,hird-threshold = /bits/ 8 <0x0>; - snps,dis_u2_susphy_quirk; - snps,dis_u3_susphy_quirk; - }; + phys = <&qusb_phy_0>, <&ssphy_0>; + phy-names = "usb2-phy", "usb3-phy"; + + tx-fifo-resize; + snps,parkmode-disable-ss-quirk; + 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