From patchwork Fri Feb 25 14:54:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 546151 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E6E0C433EF for ; Fri, 25 Feb 2022 14:54:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241933AbiBYOzQ (ORCPT ); Fri, 25 Feb 2022 09:55:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234901AbiBYOzK (ORCPT ); Fri, 25 Feb 2022 09:55:10 -0500 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D4C3225592; Fri, 25 Feb 2022 06:54:38 -0800 (PST) Received: by mail-qt1-x834.google.com with SMTP id q10so2601376qtw.4; Fri, 25 Feb 2022 06:54:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Y4cNWerRUjMHmiNUNzXBZ2mcrLA/Vini3LuGLiQPleI=; b=PgAb9Vvnd5VqlaSdbhbbFlCyY+VsHxaTb1cP3kGo+tTyJEzkdzxqIDlzpIjw0LxkOP jxQBmBAchI8onMnqvU45qs8To31xUP/Mx/UgdBsK5YU1ZXRDYvKGjR7O+7M5Rgk02l4r QUM/BdtfgwylJE5VGtpa292BB5fWiLWi79x6jaMizhhHReJ/HdlKQPZ4IXhNwMaUr8jA kMKxB8Tk/DUPsaX8ga0GuL3s2UkhESHM9anKsf6loE29gKDqSUe12KEMNjzPYQRp6e44 ha2zlE/c9PWNAr0zdllfa4BzLnWntkWfbHlwCRKpqomzgi2FHStpJR1NghxuUdw9I3Bx 0c7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Y4cNWerRUjMHmiNUNzXBZ2mcrLA/Vini3LuGLiQPleI=; b=XTBcqc9A+45cMmha9MG7/hEmPH3fpIWoBVlJP1Wc1qKzqpZyK90w+xJgpRcd14EQ6N VBE470FZYc2qvf0QHRcricsKZhNEpncBgX1GB7538EOxYgDDJ784d8pWgwaeo4qokjWz 5D81x/DGuYOxGuWLzR5cmfrgZ0xDXBU+JRvwPKQOQFfL9ISr9WSoJAfgfJchuk+B222U 2LgbfT7qE378B9uAlXkPnOnDy1Cq9xv5+U6qMfMJ0R8EW0nhDE3KrqZQuxe2I06t2isF olz7wq+XWL7Le1oLMuD3btVM/EIPkuVPC03tI5X1OO457zOFWStgcNFaTb5O9ahu5SdI 5E3g== X-Gm-Message-State: AOAM530yoJLB7qc9fSE83A6dQLeI0qxZ6Z1ylldSqG2+seXDz9WR8qdx wvw57G7ghgJpoSE5mVIxMDk= X-Google-Smtp-Source: ABdhPJwDmobbs+ADlqr7QCTKzhyLo+hHpMkIwplNNKdf8nURBCXqkP1dSLivP770Grqrgf6Ba9iSIw== X-Received: by 2002:ac8:4e46:0:b0:2cb:28cc:2157 with SMTP id e6-20020ac84e46000000b002cb28cc2157mr7131031qtw.167.1645800877716; Fri, 25 Feb 2022 06:54:37 -0800 (PST) Received: from master-x64.sparksnet ([2601:153:980:85b1::10]) by smtp.gmail.com with ESMTPSA id d202-20020a3768d3000000b005f18706845dsm1318292qkc.73.2022.02.25.06.54.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 06:54:37 -0800 (PST) From: Peter Geis To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Peter Geis , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/8] dt-bindings: usb: dwc3: add description for rk3568 Date: Fri, 25 Feb 2022 09:54:25 -0500 Message-Id: <20220225145432.422130-3-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220225145432.422130-1-pgwipeout@gmail.com> References: <20220225145432.422130-1-pgwipeout@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The rk3568 dwc3 controllers are backwards compatible with the rk3399. Add the device tree description for it. Signed-off-by: Peter Geis --- Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml b/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml index 04077f2d7faf..e3044e81cc72 100644 --- a/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml @@ -30,6 +30,7 @@ select: enum: - rockchip,rk3328-dwc3 - rockchip,rk3399-dwc3 + - rockchip,rk3568-dwc3 required: - compatible @@ -39,6 +40,7 @@ properties: - enum: - rockchip,rk3328-dwc3 - rockchip,rk3399-dwc3 + - rockchip,rk3568-dwc3 - const: snps,dwc3 reg: @@ -75,7 +77,10 @@ properties: maxItems: 1 reset-names: - const: usb3-otg + items: + - enum: + - usb3-otg + - usb3-host unevaluatedProperties: false From patchwork Fri Feb 25 14:54:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 546667 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 872D8C43219 for ; Fri, 25 Feb 2022 14:54:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241957AbiBYOzW (ORCPT ); Fri, 25 Feb 2022 09:55:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239280AbiBYOzN (ORCPT ); Fri, 25 Feb 2022 09:55:13 -0500 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0E6922558A; Fri, 25 Feb 2022 06:54:40 -0800 (PST) Received: by mail-qk1-x735.google.com with SMTP id bm39so4697897qkb.0; Fri, 25 Feb 2022 06:54:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SAvP0iQoBy21i3qD7tVUxZCHh5iSPEaSiol2a9udnKA=; b=aNLFGsj4FJmueFuo2LVRjfiHSM0zLdvJGEAw2sKF1E0sl1LCQd+CYUZnpd6yR47jhk Gwi3OgUlxLj3+Vr7WteCi5fJo+BRXUKp7qFfoakdnRNStlgxojsEyP4KJonfuXCAqNFA vAVprF126cPhPwk4JHZjgPBZnxbRS1nnQxEt4f1DjkxuyFc2vAp2ChwkJeOTS5L7PlDE awaAUe+FhpN3GfKlV93MNcP1TmDKrdqO0tgiLN6pG7BBUVORorVGLl5RnLR6lKdl1A7v zUJSY1NYonl8l+0whl+SWfiP2ISdXYYJqpTpE8mufcOi6+4ZO9k/vLXTTqYLbaRsrP+t JCRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SAvP0iQoBy21i3qD7tVUxZCHh5iSPEaSiol2a9udnKA=; b=cNFwSznCw2MkTdMwW5UVST5rCLpEYfBvD1VeTIR/mrEvOUFdHF4Jlys8m/FpE/fxco +sdOnxHrrdhz3LaweIqjBa/2XIu9m0DdAfaaVxod0qUPpnAMH4uRlmzmullbFXEGHRNL 3ynfLfuJKo7iDmJhYaTFm0v9liVsszQbeRMJqnyDk1qOfJsbNT7kmOzLQZw55i7QG5Th joWfQvEr6dP8oM3TIKCY4PyhERv1jtMqDR8IuvANWEtujMz241Q6kYVc273zEhC3Adci 9KY6zhiY07u7KG3/Tf0tZwmq0k3c1LRwJzim5nPuibZ90YrG/Ozfn/LwhIccrdj2YJmO d+Og== X-Gm-Message-State: AOAM532V+G880+cS41++gx9xheWh1PQ9ynDz1Bi3JoCORjTyjwtFjX9K nkdo303WL+rz79EnqBfpPhA= X-Google-Smtp-Source: ABdhPJyx3j8sQ1IUhKaQb6ADND8qxpw70u/EON/lG+Roz4kKFKjOLC80o18/WD04ZC5t7L6fH4HJRQ== X-Received: by 2002:a37:ac0a:0:b0:60d:d66d:e4cc with SMTP id e10-20020a37ac0a000000b0060dd66de4ccmr4938522qkm.10.1645800879750; Fri, 25 Feb 2022 06:54:39 -0800 (PST) Received: from master-x64.sparksnet ([2601:153:980:85b1::10]) by smtp.gmail.com with ESMTPSA id d202-20020a3768d3000000b005f18706845dsm1318292qkc.73.2022.02.25.06.54.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 06:54:39 -0800 (PST) From: Peter Geis To: Felipe Balbi , Greg Kroah-Hartman Cc: Bin Yang , Heiko Stuebner , Peter Geis , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 4/8] usb: dwc3: core: do not use 3.0 clock when operating in 2.0 mode Date: Fri, 25 Feb 2022 09:54:27 -0500 Message-Id: <20220225145432.422130-5-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220225145432.422130-1-pgwipeout@gmail.com> References: <20220225145432.422130-1-pgwipeout@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Bin Yang In the 3.0 device core, if the core is programmed to operate in 2.0 only, then setting the GUCTL1.DEV_FORCE_20_CLK_FOR_30_CLK makes the internal 2.0(utmi/ulpi) clock to be routed as the 3.0 (pipe) clock. Enabling this feature allows the pipe3 clock to be not-running when forcibly operating in 2.0 device mode. Signed-off-by: Bin Yang Signed-off-by: Peter Geis --- drivers/usb/dwc3/core.c | 4 ++++ drivers/usb/dwc3/core.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 18adddfba3da..032d40794fae 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1167,6 +1167,10 @@ static int dwc3_core_init(struct dwc3 *dwc) if (dwc->parkmode_disable_ss_quirk) reg |= DWC3_GUCTL1_PARKMODE_DISABLE_SS; + if (dwc->maximum_speed == USB_SPEED_HIGH || + dwc->maximum_speed == USB_SPEED_FULL) + reg |= DWC3_GUCTL1_DEV_FORCE_20_CLK_FOR_30_CLK; + dwc3_writel(dwc->regs, DWC3_GUCTL1, reg); } diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index eb9c1efced05..ea3ca04406bb 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -259,6 +259,7 @@ /* Global User Control 1 Register */ #define DWC3_GUCTL1_DEV_DECOUPLE_L1L2_EVT BIT(31) #define DWC3_GUCTL1_TX_IPGAP_LINECHECK_DIS BIT(28) +#define DWC3_GUCTL1_DEV_FORCE_20_CLK_FOR_30_CLK BIT(26) #define DWC3_GUCTL1_DEV_L1_EXIT_BY_HW BIT(24) #define DWC3_GUCTL1_PARKMODE_DISABLE_SS BIT(17) From patchwork Fri Feb 25 14:54:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 546668 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52DB7C433FE for ; Fri, 25 Feb 2022 14:54:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235031AbiBYOzU (ORCPT ); Fri, 25 Feb 2022 09:55:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241700AbiBYOzN (ORCPT ); Fri, 25 Feb 2022 09:55:13 -0500 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D8C7225592; Fri, 25 Feb 2022 06:54:41 -0800 (PST) Received: by mail-qk1-x735.google.com with SMTP id n185so4660080qke.5; Fri, 25 Feb 2022 06:54:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ART3VPTUZNh7t0v6KbRBSIgrQKQirMcxNBZ8VtKI13E=; b=JN4l4vqHFQn2xmpeWdDL8cBi2bcL/CO0OBjadfrloabBkBoq2Lrr5WiXGj1bkOq05b Q1rnwO+kcyDVeZB4Mrnfr/EH8tGTniLwBV67ca8rRS3c3IShRYML6alXCScbBjRDCSHc uYKLRdqCbmlkgRR9QXb2C+qqRCfVfs2r0AyvFPgMfatm6cUYtkllJOjaVSZsV0LELxv6 eIioSjVYeSq/kcmfxqO/YzfJh1tbtoThTcQA5pnJwIF83Znup0B/loRA145U0ex5TQSH U8V4wHzkgjmPC21g+fCn7ep/zkeyAoqsrqFd4oSXwvPZ95YgRf9ZHfZcHkdan1Jy5YeJ layw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ART3VPTUZNh7t0v6KbRBSIgrQKQirMcxNBZ8VtKI13E=; b=qGpD1hoP61htaforXeJsya2uezzhsLpG9T1pznyLESbb/BJKTjtsLJPAuP/Akr2T5g XMuiAj3a1sxk/1XTbwMJFbjcFC3qUjtfMQrzYxjeHM5qOJNcWoSSVPKL4tTkIVq9Qlfs AW7BiFJzvw5GYyyqgayRH/GIxbbuMggpBkiniO4mXzf+nEc5DvtcpAVL7Ztg6CsPBb1c SnRxXD8h657ndeErPQGNHYoP33FVpjxadtJgm+IgaVnvNVZJS5MNnqoBr5J2NBeBgDme x1EV36ekieG1oEXetPAKC6SB2zGiBVSnDpg2RN/b/PhL3FkemKdl2wLiUxFHgiVocx3X IHRA== X-Gm-Message-State: AOAM533T17PfBew4cNqrdY2aSkmOKHfwOJ8gqx8TfiNDLh3mVvmeBMyE BX5QJvmASkcy5VcIEFQExQg= X-Google-Smtp-Source: ABdhPJwNUKZeDezV9CEn8o8sUWC3HeQsS+FCZoNvXDfs5k9n5B5Xs8ZeYSVCKDv9LFgDmilOTwuEzg== X-Received: by 2002:a37:a795:0:b0:475:ce3f:ac76 with SMTP id q143-20020a37a795000000b00475ce3fac76mr5014946qke.193.1645800880760; Fri, 25 Feb 2022 06:54:40 -0800 (PST) Received: from master-x64.sparksnet ([2601:153:980:85b1::10]) by smtp.gmail.com with ESMTPSA id d202-20020a3768d3000000b005f18706845dsm1318292qkc.73.2022.02.25.06.54.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 06:54:40 -0800 (PST) From: Peter Geis To: Felipe Balbi , Greg Kroah-Hartman Cc: Peter Geis , Heiko Stuebner , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 5/8] usb: dwc3: reorder dwc-of-simple compatibles Date: Fri, 25 Feb 2022 09:54:28 -0500 Message-Id: <20220225145432.422130-6-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220225145432.422130-1-pgwipeout@gmail.com> References: <20220225145432.422130-1-pgwipeout@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The dwc3-of-simple driver is getting rather disorganized with the new inclusions. Reorder the dwc3-of-simple compatibles to be alphabetical. Signed-off-by: Peter Geis --- drivers/usb/dwc3/dwc3-of-simple.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 71fd620c5161..9dc6295df6b1 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -171,12 +171,12 @@ static const struct dev_pm_ops dwc3_of_simple_dev_pm_ops = { }; static const struct of_device_id of_dwc3_simple_match[] = { - { .compatible = "rockchip,rk3399-dwc3" }, - { .compatible = "cavium,octeon-7130-usb-uctl" }, - { .compatible = "sprd,sc9860-dwc3" }, { .compatible = "allwinner,sun50i-h6-dwc3" }, + { .compatible = "cavium,octeon-7130-usb-uctl" }, { .compatible = "hisilicon,hi3670-dwc3" }, { .compatible = "intel,keembay-dwc3" }, + { .compatible = "rockchip,rk3399-dwc3" }, + { .compatible = "sprd,sc9860-dwc3" }, { /* Sentinel */ } }; MODULE_DEVICE_TABLE(of, of_dwc3_simple_match); From patchwork Fri Feb 25 14:54:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 546150 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72AB4C433FE for ; Fri, 25 Feb 2022 14:54:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241969AbiBYOzX (ORCPT ); Fri, 25 Feb 2022 09:55:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241899AbiBYOzO (ORCPT ); Fri, 25 Feb 2022 09:55:14 -0500 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B6882272CB; Fri, 25 Feb 2022 06:54:42 -0800 (PST) Received: by mail-qk1-x72a.google.com with SMTP id t21so4650586qkg.6; Fri, 25 Feb 2022 06:54:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1aWUdNaxxdpw+lffSMBxQcG6QoqOdlZ2+Rp8zHx4iWQ=; b=CDm78T/7/AOeFBNhZ/Hsw/eFKprN/6WQC1KibaLR1X/6Xa+qSiMF2CebribEDB0grp 68EPufCJj+DgWCEknXnwUwPQLa4q6JEVqXI70BaI/bf1dXhAWAK1z707JLmWprxe7nmo Gakgea52/WJ2+8AvgQt/FBNF8Fm7J5N0bGA7oGKsxuMgHJHGegvzedoXHXz5Z379tacq nM+9rHWpUNigxtY7K0/20QQTmWwvYaPSRQu2q1kY+ZAonZMKWIPFyuxL/zL1Lll4IJ35 qmr6WwMC97V9KOvnR7eQkjCre7m4e06RQxD1PwOymh6AKiL70U4ma6grvazPYUaRt3CP kL3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1aWUdNaxxdpw+lffSMBxQcG6QoqOdlZ2+Rp8zHx4iWQ=; b=N3ucis/P3oYcLfZxZpmvIY01RCUFy+IbDfqbhq1tVu8ZFdko4YJs3D7/H0t26EvIkC b/ZCHM8A4gDvei7+XjgW2saL/KMkqAKHAEF1ZgjFKXyCt0/01RsPgdPG4WQTl6qwNGrA IhO8nNwvE66tI+tzhbZf9JWLoji4UPtospCwqR1zBlGQhgPHdDRFTZbImEoeORkQoXE7 P3X3CUhq7ae7HQRJy3iiJ2HqPb8q3dx5ZTbyAwcK4YCy/rXVArhslUDBaWLOqbbFpG8Y InxER5/JiWALpCiOsQ7/9uu6vSonR3+HBdQxjfjytO/22JSC/nHvT0P7SHNQpvQQU30z Xs7w== X-Gm-Message-State: AOAM531Sk4fX6VxzpcFWiC7VEG7aGlSWiVP5HFjih+ZVoavpKKgAvtww iOmTxOMroAwZSHUiM6QhzbY55TiQAcNxbA== X-Google-Smtp-Source: ABdhPJziU1O59hbevx/Nku3KuwwaXRY947GTXPKwNBjuKzU7SSBO7D/jEigjVZPZz+pHreartIQY+Q== X-Received: by 2002:a37:9a94:0:b0:606:8349:e9e8 with SMTP id c142-20020a379a94000000b006068349e9e8mr4966818qke.66.1645800881655; Fri, 25 Feb 2022 06:54:41 -0800 (PST) Received: from master-x64.sparksnet ([2601:153:980:85b1::10]) by smtp.gmail.com with ESMTPSA id d202-20020a3768d3000000b005f18706845dsm1318292qkc.73.2022.02.25.06.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 06:54:41 -0800 (PST) From: Peter Geis To: Felipe Balbi , Greg Kroah-Hartman Cc: Peter Geis , Heiko Stuebner , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 6/8] usb: dwc3: add rk3568 dwc3 support Date: Fri, 25 Feb 2022 09:54:29 -0500 Message-Id: <20220225145432.422130-7-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220225145432.422130-1-pgwipeout@gmail.com> References: <20220225145432.422130-1-pgwipeout@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The rk3568 dwc3 controller is backwards compatible with the rk3399 dwc3 controller. Add support for it to the dwc3-of-simple driver. Signed-off-by: Peter Geis --- drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 9dc6295df6b1..1d52a261af55 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -49,7 +49,8 @@ static int dwc3_of_simple_probe(struct platform_device *pdev) * Some controllers need to toggle the usb3-otg reset before trying to * initialize the PHY, otherwise the PHY times out. */ - if (of_device_is_compatible(np, "rockchip,rk3399-dwc3")) + if (of_device_is_compatible(np, "rockchip,rk3399-dwc3") | + of_device_is_compatible(np, "rockchip,rk3568-dwc3")) simple->need_reset = true; simple->resets = of_reset_control_array_get(np, false, true, @@ -176,6 +177,7 @@ static const struct of_device_id of_dwc3_simple_match[] = { { .compatible = "hisilicon,hi3670-dwc3" }, { .compatible = "intel,keembay-dwc3" }, { .compatible = "rockchip,rk3399-dwc3" }, + { .compatible = "rockchip,rk3568-dwc3" }, { .compatible = "sprd,sc9860-dwc3" }, { /* Sentinel */ } };