Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2036982rdb; Mon, 9 Oct 2023 10:21:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGc2EcuxZAtEgmLvR6bkNrM9O7dw3fRZVYXJVrzzLPnr+FwZ0mAbKg+auXhrSSRRbErIvmw X-Received: by 2002:a05:6358:7e07:b0:142:fba8:dcfc with SMTP id o7-20020a0563587e0700b00142fba8dcfcmr17400333rwm.16.1696872117881; Mon, 09 Oct 2023 10:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696872117; cv=none; d=google.com; s=arc-20160816; b=A/0Z8pD402OBT3G55NQEdQkSVjl+3YPlj4qRyyRH8uMdu8/ihutae3z5gabjoQ5X46 amnZpeE6Nk/w1ZFj8a0889GzROYW7Za+pmT6FGt8Dbkghc1qqbFTd5+AOWCkNeEFeJGN ixuE0NZb33xEpBSg5De57zPwofaSKp50YVFiHjhgFYz2x8khR9Ta+2zmSMdshLy7U4Oh xX0ruR/KKnYs41fhvW8fmfItQKUpxH9g4+KmK4kY6Ra4It+jW4QAhWhq58dWgRExMcJw JhHo7CLhnO7zbYtBI45LJQyJQQiVfqGJXLp+9ywkbaXNKjZ/dW+KTxZjVwt/d0HRoemu E+ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aowa6Gutki1jwqBdH7qxbTBpUtThwjs4VbSYWoI2SwQ=; fh=wKO7TIKEXV68ub1mpXHVcpGl+ZCWFQyPtk/ec+f4RMI=; b=avD2wbCDB9uydAZx4O3BmWQTQUwOYG/MBJhyLfGRqUkzEoadwxFJqof4eVAhB1zE9d wLlhzVxloDDvIN9x5U/YjCu386ZESfknehC1cWPN+omnCq1KSZd510ReWULjueCc///H NRYNWuTTYI4yyLf5Bi/vv8Yljt7rCWqsWFvbj184yQNlBW83zBw4B46/cxxNpgVp0fn6 Bs4fNb/aYcxNjUlPAaRM7imP2r50AEeMh0try5LPjo5GW5Ti1mVz+hmMQXs1iyYrQVFF YbNpOC7BLa8LV02wa+VajxdFWTLeSyC7WusIt1VcheWh61pzFBaUkkn9apH00YR/hoKb rMjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=D6SkAtHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id lt24-20020a17090b355800b00276c22ca6a4si12114397pjb.147.2023.10.09.10.21.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 10:21:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=D6SkAtHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E188581C0C9D; Mon, 9 Oct 2023 10:21:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377519AbjJIRVi (ORCPT + 99 others); Mon, 9 Oct 2023 13:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377398AbjJIRVh (ORCPT ); Mon, 9 Oct 2023 13:21:37 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19E5A9D; Mon, 9 Oct 2023 10:21:35 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-211-168.ewe-ip-backbone.de [91.248.211.168]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 5B2B0660576C; Mon, 9 Oct 2023 18:21:33 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696872093; bh=S3Q3wy3S+Hlg0M67reAdf08JdB1Ll1t/5ni1XvqOXYE=; h=From:To:Cc:Subject:Date:From; b=D6SkAtHwOoXNxqzVn/7sMVWmnmHRbRZ/USejYVfZ264H+7yfrFBHrElQIqgTSPTdp Z8D6WuFZQT3XyF98CQ+juDjeRGHbtSOIQODxWR6UyVHZy1bmNwV+Ar1WXByeFMPWPu bGran28Kk15KiGDQniX6OSdyc6xUh4wPp9cDtTrDAcpX+E5KzsrWZQ2jfB5DZznM8Z aIr9iRFhCbVO3UMx45ie0gbMxbcgPAYqR0i7yfwYPJRkJKpTVOMYDcA7hctVQpSGu7 iWoCf1WvkVLtd1HzNDmuw2Sn6CUEyOrEXq7/9oV1+aHPoQfQnKKBtRT6yEwoLVm9cc iekRuMlXC/NNA== Received: by jupiter.universe (Postfix, from userid 1000) id 1ADE84800CB; Mon, 9 Oct 2023 19:21:31 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner , Greg Kroah-Hartman Cc: Thinh Nguyen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v3 0/3] RK3588 USB3 host controller support Date: Mon, 9 Oct 2023 19:20:08 +0200 Message-ID: <20231009172129.43568-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 10:21:51 -0700 (PDT) X-Spam-Level: ** Hi, This adds RK3588 USB3 host controller support. The same DT binding will be used for the two dual-role controllers, which are also DWC3 based, but using a different PHY and don't need the extra UTMI/PIPE clocks. The series has been tested with Radxa Rock 5B, which uses the controller for the upper USB3 port. The patch enabling &combphy2_psu and &usbhost3_0 for this board will be send separately once this series has been merged. Changes since PATCHv2: * https://lore.kernel.org/all/20230720173643.69553-1-sebastian.reichel@collabora.com/ * update binding, so that "utmi" and "pipe" clocks may only be used on RK3588; at the same time do not allow "grf_clk" for RK3568, which does not have a GRF clock for USB3. Changes since PATCHv1: * https://lore.kernel.org/all/20230719174015.68153-1-sebastian.reichel@collabora.com/ * use same compatible for USB3 host and drd controllers (Krzysztof Kozlowski) * do not update reset-names (Krzysztof Kozlowski) - note: I dropped reset-names property, since there is only one reset line anyways. Binding could stay the same, since the reset-names property is optional * use "ref_clk", "suspend_clk" and "bus_clk" instead of "ref", "suspend" and "bus", so that they are the same as in RK3568 (Krzysztof Kozlowski) * rename handle name to "usb_host2_xhci" (Michael Riesch) * use RK356x style DWC3 binding instead of DWC3399 style - required adding an extra patch, so that the DWC3 core supports enabling the UTMI/PIPE clocks -- Sebastian Sebastian Reichel (3): dt-bindings: usb: add rk3588 compatible to rockchip,dwc3 usb: dwc3: add optional PHY interface clocks arm64: dts: rockchip: rk3588s: Add USB3 host controller .../bindings/usb/rockchip,dwc3.yaml | 66 +++++++++++++++++-- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 21 ++++++ drivers/usb/dwc3/core.c | 26 ++++++++ drivers/usb/dwc3/core.h | 4 ++ 4 files changed, 112 insertions(+), 5 deletions(-) -- 2.42.0