From patchwork Mon Feb 1 19:41:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 374442 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED90AC43381 for ; Mon, 1 Feb 2021 19:42:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D2D7264EAB for ; Mon, 1 Feb 2021 19:42:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232164AbhBATmE (ORCPT ); Mon, 1 Feb 2021 14:42:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231665AbhBATl7 (ORCPT ); Mon, 1 Feb 2021 14:41:59 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82F74C06174A; Mon, 1 Feb 2021 11:41:19 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id s11so20299362edd.5; Mon, 01 Feb 2021 11:41:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VqBtzEvAwNKiwVYCrfCe2jfiFhnACOLKHc4Xbe7Gosc=; b=GdxxfM5G06yroEWjLqtPD4kPmnDUkQ3xWGnxslPz0GFCgNmobccwnyM02eyfY95jFa 2TwDRK43sMe9pkNWJDBE5ShS0RqKz4zg5Ye7mCXQtyxmkowfyBe5nOTR33icBwDerEoV vSoxMXV3eKOcJbtJIyIMCG+sr3tlIO4SECl/fdby6NW4oYFLJ57oYCTTwkEgdV7gWFsX l/K5ISUWrlo2oWyg1lB1+XEWi4Ch+EfB62y5GVAD0iwUJ/MqVtg5GahiWkeuMvB5FBip aW0fgTYgqp+poC/QEZfDmWb/GyOh5TNvomoZiO3HUAIFVPZknPHLQ8qT5sy2xJX8x7UN ng4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VqBtzEvAwNKiwVYCrfCe2jfiFhnACOLKHc4Xbe7Gosc=; b=CN/k3Q2xkvC/4AuNgmyQ4/g1Q/johhPJTYMBlXxjT8koEuy6sry0P2emAW49H5Veo0 aGXNTRue2lAPm+//9Kd63Wi2fwIGJ7v/BO+9uvmaXqDi7hXRrpcMWIB9PJy7hgHhhTF2 07MKYsWg4qL7HHiRXGhzgTZ/6FXVRYADH73YBv+pxFZLCvHCNsQuCZsrVzamQtUGz73o c47vIRry97pNGzXSjGAQNXeSWQg+Vseib6958KRGN0WOrVKc7SdETKp4fYx3QOZP8B7k D4FhsKjPn+YE2qvFvooZZjT/eU2cJi4SAY2+D9UD4W+7QzG9DAlRGJEil8ra0S4q2W2r 0Qjg== X-Gm-Message-State: AOAM532pB6j/lyGf6WGK+HTIYVkQz2CoV0uuZ7wVtu2YWrSQBNA+OHhV SZOIdinROqFVDoGEkqRjq94= X-Google-Smtp-Source: ABdhPJxPoBbnKGy9ZsZFVlQb7gmSL256Hs0FuaKI09XIprF+AOL90+g2tF8xnMRdc2ztysdU8IaQYQ== X-Received: by 2002:aa7:d58b:: with SMTP id r11mr2741013edq.241.1612208478309; Mon, 01 Feb 2021 11:41:18 -0800 (PST) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id du6sm6702799ejc.78.2021.02.01.11.41.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2021 11:41:17 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, gregkh@linuxfoundation.org, balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/5] dt-bindings: usb: dwc3: add description for rk3328 Date: Mon, 1 Feb 2021 20:41:02 +0100 Message-Id: <20210201194105.32673-2-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210201194105.32673-1-jbx6244@gmail.com> References: <20210201194105.32673-1-jbx6244@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add description for "rockchip,rk3328-dwc3". Signed-off-by: Johan Jonker --- Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml b/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml index 681086fa6..f4de1b2ee 100644 --- a/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml @@ -12,9 +12,11 @@ maintainers: properties: compatible: enum: + - rockchip,rk3328-dwc3 - rockchip,rk3399-dwc3 clocks: + minItems: 3 items: - description: Controller reference clock, must to be 24 MHz @@ -31,6 +33,7 @@ properties: Controller grf clock clock-names: + minItems: 3 items: - const: ref_clk - const: suspend_clk From patchwork Mon Feb 1 19:41:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 374443 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E054BC43381 for ; Mon, 1 Feb 2021 19:42:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B356764EA8 for ; Mon, 1 Feb 2021 19:42:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232208AbhBATmJ (ORCPT ); Mon, 1 Feb 2021 14:42:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231754AbhBATmB (ORCPT ); Mon, 1 Feb 2021 14:42:01 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26662C0613D6; Mon, 1 Feb 2021 11:41:21 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id g10so2002776eds.2; Mon, 01 Feb 2021 11:41:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=X2oJ/oS9W6B6NjUjWeyWWEJnoptgHKF+k6enHUja9os=; b=U/v8lwUONcQVdPmXvuzDftJuNNKgu/kZIz9dZstTYnJVBjMLk//Jn9D8cQh0YhZjW9 QniU2yKt7T6i+fXOik+J34btYypV3PLqYArdrta1pvoF0vh0XzC2yX0+eukut0IS/ZSC TlAXhCWmoJei5Wa6wKZ2oeUgVXZ774eFQUlUdjjhcRwrcvnTaoZDiJnW8QOn1qQ0+hjA fuP8375zh0z0DiLvPTRpOwFFToLepqUJHXbr27apOBCjUMbkXemrB0dORU+Bo5hCWfYy j8ixwlMOUyO7segg/AE5AlCmepc/dT040V0Gi9zqz0jNjVRrokOU4OaHGgHVOPZZ8ZbT PrLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=X2oJ/oS9W6B6NjUjWeyWWEJnoptgHKF+k6enHUja9os=; b=lrHHUDqwqDToqpF5NfIgQNIaFkHSiuCIKWzdEFJvoxvFsQdhchDn8mW2ip/VIJmANs 5qDABo35NRt6wVCfJDr7zkTXXUF9snvPO67CQClQn+0NDxRG5Ex24K2JLLhd7r0dvub5 wt5+xtQhHC3vcyOf+Lkh/1kokLQb82XT6iedOxUdqkfZkuikWkv3BRDy6NgQy/2BJ+d7 lbspEVsIl/kR8Hgbe6tDNWOzUUjEIxwU3tu/2qgKJ1tClEoKy7Z8+RyKxkViQVOqoASv mhJy5OjO0G4X0hbkhTZN/xRDWNXHvU/j+EFmkgSXjo7RJBrMZApz3H53vukE6FnpHR5R fMsA== X-Gm-Message-State: AOAM532piiZ4beMGWED0NBMPAMcagtD1FREHsoyOE2VkM070/UqVLsli e9krnTV5z4zEBIxHFc/dCoE= X-Google-Smtp-Source: ABdhPJw+3+upS6Y8szLFRK1M7jQuDS+kNgSwi9O2KTrM5d/ESlEqDOL9XgQ/Mnvc8ng0V8MdhhUQ0A== X-Received: by 2002:a50:ee99:: with SMTP id f25mr9033753edr.17.1612208479932; Mon, 01 Feb 2021 11:41:19 -0800 (PST) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id du6sm6702799ejc.78.2021.02.01.11.41.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2021 11:41:19 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, gregkh@linuxfoundation.org, balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 4/5] arm64: dts: rockchip: add rk3328 dwc3 usb controller node Date: Mon, 1 Feb 2021 20:41:04 +0100 Message-Id: <20210201194105.32673-4-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210201194105.32673-1-jbx6244@gmail.com> References: <20210201194105.32673-1-jbx6244@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Cameron Nemo RK3328 SoCs have one USB 3.0 OTG controller which uses DWC_USB3 core's general architecture. It can act as static xHCI host controller, static device controller, USB 3.0/2.0 OTG basing on ID of USB3.0 PHY. Signed-off-by: William Wu Signed-off-by: Heiko Stuebner Signed-off-by: Cameron Nemo Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index 17709faf6..2bb666d35 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -987,6 +987,33 @@ status = "disabled"; }; + usbdrd3: usb@ff600000 { + compatible = "rockchip,rk3328-dwc3"; + clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>, + <&cru ACLK_USB3OTG>; + clock-names = "ref_clk", "suspend_clk", + "bus_clk"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "disabled"; + + usbdrd_dwc3: usb@ff600000 { + compatible = "snps,dwc3"; + reg = <0x0 0xff600000 0x0 0x100000>; + interrupts = ; + dr_mode = "otg"; + phy_type = "utmi_wide"; + snps,dis_enblslpm_quirk; + snps,dis-u2-freeclk-exists-quirk; + snps,dis_u2_susphy_quirk; + snps,dis_u3_susphy_quirk; + snps,dis-del-phy-power-chg-quirk; + snps,dis-tx-ipgap-linecheck-quirk; + status = "disabled"; + }; + }; + gic: interrupt-controller@ff811000 { compatible = "arm,gic-400"; #interrupt-cells = <3>;