Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63F40EB64DC for ; Tue, 18 Jul 2023 07:57:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AE79F866AC; Tue, 18 Jul 2023 09:57:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="GgrOxYNZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EA8C884715; Tue, 18 Jul 2023 09:57:35 +0200 (CEST) Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 93F93866BC for ; Tue, 18 Jul 2023 09:57:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eugen.hristev@collabora.com Received: from [192.168.0.125] (unknown [82.76.24.202]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id CE8D36607028; Tue, 18 Jul 2023 08:57:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689667053; bh=rNyDNGqM7M+ntq1K5zVCEibBH9zKfeyvciP9Q50jhWY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GgrOxYNZVUjPizJNthZwNL86yusD8drPsx8STN+p1SuVlIvYW89uAXcSkMWKhnwYJ a4TDRXGY7Nl4xLwvdLHZb2auevqZExUJ1Fl/q6cAyWZ38KdUghHgc6aR5AifKkzP97 driPh5DqK/1Ql36IV851Bb1Mpg6b6BfEhwOZVw9Vw9aTbVDQQAeYqrXWh/qGkl9ulm 5N+JRcFgQIeFMbwdnjxVtDN0bxH4a/AOSA5nvGOtevLanl0KpnBD3/C8LzuVkNHVNW 7jrsckiSy8CkJbZQcx3G4Lrh/vUd+/6XJcQElUCE6UcWu7sjb8ngtFKImKbqlNohFY wZ4v9nRZjXRXQ== Message-ID: <25f30df0-55df-d263-aa68-a6af4d7f0151@collabora.com> Date: Tue, 18 Jul 2023 10:57:30 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/2] arm64: dts: rockchip: Sync DT from linux-next Content-Language: en-US To: Jagan Teki Cc: Kever Yang , Philipp Tomsich , Simon Glass , Jonas Karlman , u-boot@lists.denx.de References: <20230717154239.3098885-1-jagan@edgeble.ai> From: Eugen Hristev In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 7/18/23 10:44, Jagan Teki wrote: > On Tue, 18 Jul 2023 at 02:36, Eugen Hristev wrote: >> >> On 7/17/23 18:42, Jagan Teki wrote: >>> Sync the linux-next from below commit, >>> commit <1642bf66e270> ("arm64: dts: rockchip: add USB2 to >>> rk3588s-rock5a") >>> >>> Also rops the duplicate usb nodes from rk3588s-u-boot.dtsi >>> >>> Signed-off-by: Jagan Teki >>> --- >>> arch/arm/dts/rk3588-edgeble-neu6a.dtsi | 1 - >>> arch/arm/dts/rk3588-edgeble-neu6b-io.dts | 66 +++ >>> arch/arm/dts/rk3588-edgeble-neu6b.dtsi | 359 ++++++++++- >>> arch/arm/dts/rk3588-evb1-v10.dts | 720 ++++++++++++++++++++++- >>> arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 13 - >>> arch/arm/dts/rk3588-rock-5b.dts | 578 +++++++++++++++++- >>> arch/arm/dts/rk3588.dtsi | 112 ++++ >>> arch/arm/dts/rk3588s-u-boot.dtsi | 119 ---- >>> arch/arm/dts/rk3588s.dtsi | 499 +++++++++++++++- >>> include/dt-bindings/ata/ahci.h | 20 + >>> 10 files changed, 2346 insertions(+), 141 deletions(-) >>> create mode 100644 include/dt-bindings/ata/ahci.h >>> >> >> [...] >> >>> }; >>> diff --git a/arch/arm/dts/rk3588s-u-boot.dtsi b/arch/arm/dts/rk3588s-u-boot.dtsi >>> index c703e41802..f8c10227b0 100644 >>> --- a/arch/arm/dts/rk3588s-u-boot.dtsi >>> +++ b/arch/arm/dts/rk3588s-u-boot.dtsi >>> @@ -13,103 +13,12 @@ >>> status = "okay"; >>> }; >>> >>> - usb_host0_ehci: usb@fc800000 { >>> - compatible = "generic-ehci"; >>> - reg = <0x0 0xfc800000 0x0 0x40000>; >>> - interrupts = ; >>> - clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST_ARB0>; >>> - clock-names = "usbhost", "arbiter"; >>> - power-domains = <&power RK3588_PD_USB>; >>> - status = "disabled"; >>> - }; >> >> No, this has to stay, the new nodes in kernel break usb2 on rk3588 >> platforms in U-boot. >> In u-boot, the PHY is not a clock provider. Hence the breakage. >> Only when the PHY becomes a clock provider you can remove these nodes here. > > Not really, clock provider in PHY driver is already fixed in Mainline. > > Here is the ROCK5B test. > > U-Boot 2023.07-00367-g43479b8a69 (Jul 18 2023 - 13:10:42 +0530) > > Model: Radxa ROCK 5 Model B > DRAM: 16 GiB (effective 15.7 GiB) > Core: 305 devices, 27 uclasses, devicetree: separate > MMC: mmc@fe2c0000: 1, mmc@fe2e0000: 0 > Loading Environment from nowhere... OK > In: serial@feb50000 > Out: serial@feb50000 > Err: serial@feb50000 > Model: Radxa ROCK 5 Model B > Net: No ethernet found. > Hit any key to stop autoboot: 0 > => usb start > starting USB... > Bus usb@fc800000: USB EHCI 1.00 > Bus usb@fc840000: USB OHCI 1.0 > Bus usb@fc880000: USB EHCI 1.00 > Bus usb@fc8c0000: USB OHCI 1.0 > scanning bus usb@fc800000 for devices... 4 USB Device(s) found > scanning bus usb@fc840000 for devices... 1 USB Device(s) found > scanning bus usb@fc880000 for devices... 1 USB Device(s) found > scanning bus usb@fc8c0000 for devices... 1 USB Device(s) found > scanning usb for storage devices... 2 Storage Device(s) found > => usb tree > USB device tree: > 1 Hub (480 Mb/s, 0mA) > | u-boot EHCI Host Controller > | > +-2 Hub (480 Mb/s, 100mA) > | USB 2.0 Hub > | > +-3 Mass Storage (480 Mb/s, 100mA) > | SMI Corporation USB DISK AA04012900007464 > | > +-4 Mass Storage (480 Mb/s, 224mA) > SanDisk Dual Drive 040130e3ee554b7078843f4eb331646 > > 1 Hub (12 Mb/s, 0mA) > U-Boot Root Hub > > 1 Hub (480 Mb/s, 0mA) > u-boot EHCI Host Controller > > 1 Hub (12 Mb/s, 0mA) > U-Boot Root Hub > > Thanks, > Jagan. Oh, this is neat. I will try it out, and let you know if I see any issues. Thanks