From patchwork Mon Feb 1 19:41:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12059843 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,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=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 2644AC433E0 for ; Mon, 1 Feb 2021 19:42:38 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BC60964DBA for ; Mon, 1 Feb 2021 19:42:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BC60964DBA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=vKTFBC/Obb6VuTgJ12usRupB03inz+iRU0H5Klx2Yv0=; b=RFl1EZ1FrImCHenMQgq96Xr8zo ePDvQzCdpqjTxZzkQc7X+LCcK8U7yeXrG4dkq1rnC03ex4spxw7923Cp8vGC1WotEKT1NHGtJrW3R XUUEaZatovxjvvV2BUaEwEKaMrUl7mVY+yUlWjo9lNmjLE/bEDJ1vDNeuanHCfRshFBYyvkEBq9kj fIyXcJ4ZaSDvVdmxWp6YnOfOYo72w4eOJvUD7dDxSKxHkKKt4wPU0IVP91+ovkbqC2DxfwW8P5nZO x6hmVoWjH8OgF/cV3xiCN/C42Bn9b9/nQA49gga3tRGWQW5Sq6VJXH8ayPhdhBvobjKBtSRAGu1T0 b8NN27bA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f4c-0000hy-GC; Mon, 01 Feb 2021 19:41:22 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f4Y-0000gA-Gr; Mon, 01 Feb 2021 19:41:19 +0000 Received: by mail-ed1-x52a.google.com with SMTP id s3so6564191edi.7; Mon, 01 Feb 2021 11:41:18 -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; bh=Vudz7Jq3CovoiOUmAZDu7pX1ATasm53I9HD8Bq8Ch+U=; b=uRRkmtSb0gkM4AwKwMZrg0TnMdgcY+sOAQP5H0Fgg6DCU/zZ+a03NzSE+iRuYcT0zh 3TmaXRqIJijh6ZUxMY/gKL6NfU6RZAmNm2BO+9WnFeqcON1TgvuIG0R7mnYbWyV2aOwS ccNJCoVu3YMd3prw7pg9vYw8Cc2+UJtNtT2WqLetlTKigTmmg91QPm3bDHVyd0E2i20s +wD81KaOSpoinlgmaaW97zaW248dDcGmVyV4zIjpds20LwjuuIdo87Cm7OdUwG0DDTWQ 91Ya4IFiC/VjouZG7rHa0T60S93zO/AkxgDs6yfWE+fClD+Cag/g1QNheHM9+ZqFqFsd RVmA== 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; bh=Vudz7Jq3CovoiOUmAZDu7pX1ATasm53I9HD8Bq8Ch+U=; b=JVa/2RJ5nqh5qQVB+HaWARNngP4iubUeeSJb7aAJa3wvSIAj/94n+F1nhtNSD4r0qy lZzEw8fZqnYsjBSAldE9KHSYD56Vy1hesCANJZKwItHuFnedYZvE8bWEICdwSFY3qHWT Vyc5dJ4JttBd0cbXtv3TSMi+fKjj5s5roXRwmgjVWaW+cGzLGKrtOqRVOnoFkxup6MUV EXtDeHskzATnkDGC/k9KuLaSQjdCbcQsz5JJSPMsEYFad8fl6co1dYkYWEhVhRfFCwjW de/OTytFa4oFBKwFqObkZDXwt125FRcTQgs+ZONK28/bhXyOpHizNRfuucEBgLQkXP/J MuTA== X-Gm-Message-State: AOAM532Nl7iLpz6F0Nm6I+ILLyUKcIdPUHYjLqThjEt4WIYmIfAQspye 6c/PZWQuOirS/KhhnPFHrrM= X-Google-Smtp-Source: ABdhPJxSZTnKN9WR55MOnNEgcHmJn9O9hya7WEb4ex42obOcKRcFi5f4yDoWnP2PHvnNEchyZtNDKg== X-Received: by 2002:a05:6402:1bde:: with SMTP id ch30mr20541649edb.151.1612208477429; Mon, 01 Feb 2021 11:41:17 -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.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2021 11:41:16 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH v1 1/5] dt-bindings: usb: convert rockchip,dwc3.txt to yaml Date: Mon, 1 Feb 2021 20:41:01 +0100 Message-Id: <20210201194105.32673-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_144118_576090_7FD4D6B7 X-CRM114-Status: GOOD ( 17.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, balbi@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In the past Rockchip dwc3 usb nodes were manually checked. With the conversion of snps,dwc3.yaml as common document we now can convert rockchip,dwc3.txt to yaml as well. Added properties for rk3399 are: resets reset-names Generic properties that are now also filtered: "#address-cells" "#size-cells" ranges Signed-off-by: Johan Jonker --- .../devicetree/bindings/usb/rockchip,dwc3.txt | 56 ----------- .../devicetree/bindings/usb/rockchip,dwc3.yaml | 107 +++++++++++++++++++++ 2 files changed, 107 insertions(+), 56 deletions(-) delete mode 100644 Documentation/devicetree/bindings/usb/rockchip,dwc3.txt create mode 100644 Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml diff --git a/Documentation/devicetree/bindings/usb/rockchip,dwc3.txt b/Documentation/devicetree/bindings/usb/rockchip,dwc3.txt deleted file mode 100644 index 945204932..000000000 --- a/Documentation/devicetree/bindings/usb/rockchip,dwc3.txt +++ /dev/null @@ -1,56 +0,0 @@ -Rockchip SuperSpeed DWC3 USB SoC controller - -Required properties: -- compatible: should contain "rockchip,rk3399-dwc3" for rk3399 SoC -- clocks: A list of phandle + clock-specifier pairs for the - clocks listed in clock-names -- clock-names: Should contain the following: - "ref_clk" Controller reference clk, have to be 24 MHz - "suspend_clk" Controller suspend clk, have to be 24 MHz or 32 KHz - "bus_clk" Master/Core clock, have to be >= 62.5 MHz for SS - operation and >= 30MHz for HS operation - "grf_clk" Controller grf clk - -Required child node: -A child node must exist to represent the core DWC3 IP block. The name of -the node is not important. The content of the node is defined in dwc3.txt. - -Phy documentation is provided in the following places: -Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml - USB2.0 PHY -Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt - Type-C PHY - -Example device nodes: - - usbdrd3_0: usb@fe800000 { - compatible = "rockchip,rk3399-dwc3"; - clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>, - <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_GRF>; - clock-names = "ref_clk", "suspend_clk", - "bus_clk", "grf_clk"; - #address-cells = <2>; - #size-cells = <2>; - ranges; - usbdrd_dwc3_0: dwc3@fe800000 { - compatible = "snps,dwc3"; - reg = <0x0 0xfe800000 0x0 0x100000>; - interrupts = ; - dr_mode = "otg"; - }; - }; - - usbdrd3_1: usb@fe900000 { - compatible = "rockchip,rk3399-dwc3"; - clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>, - <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_GRF>; - clock-names = "ref_clk", "suspend_clk", - "bus_clk", "grf_clk"; - #address-cells = <2>; - #size-cells = <2>; - ranges; - usbdrd_dwc3_1: dwc3@fe900000 { - compatible = "snps,dwc3"; - reg = <0x0 0xfe900000 0x0 0x100000>; - interrupts = ; - dr_mode = "otg"; - }; - }; diff --git a/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml b/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml new file mode 100644 index 000000000..681086fa6 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml @@ -0,0 +1,107 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/rockchip,dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip SuperSpeed DWC3 USB SoC controller + +maintainers: + - Heiko Stuebner + +properties: + compatible: + enum: + - rockchip,rk3399-dwc3 + + clocks: + items: + - description: + Controller reference clock, must to be 24 MHz + - description: + Controller suspend clock, must to be 24 MHz or 32 KHz + - description: + Master/Core clock, must to be >= 62.5 MHz for SS + operation and >= 30MHz for HS operation + - description: + Controller aclk_usb3_rksoc_axi_perf clock + - description: + Controller aclk_usb3 clock + - description: + Controller grf clock + + clock-names: + items: + - const: ref_clk + - const: suspend_clk + - const: bus_clk + - const: aclk_usb3_rksoc_axi_perf + - const: aclk_usb3 + - const: grf_clk + + resets: + maxItems: 1 + + reset-names: + const: usb3-otg + + "#address-cells": + const: 2 + + "#size-cells": + const: 2 + + ranges: true + +patternProperties: + "^usb@[a-f0-9]+$": + type: object + + $ref: "snps,dwc3.yaml" + + description: + A child node must exist to represent the core DWC3 IP block. + The content of the node is defined in snps,dwc3.yaml. + + Phy documentation is provided in the following places. + + USB2.0 PHY + Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml + + Type-C PHY + Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt + + unevaluatedProperties: false + +additionalProperties: false + +required: + - compatible + - clocks + - clock-names + - "#address-cells" + - "#size-cells" + - ranges + +examples: + - | + #include + #include + usbdrd3_0: usb@fe800000 { + compatible = "rockchip,rk3399-dwc3"; + clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>, + <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_RKSOC_AXI_PERF>, + <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>; + clock-names = "ref_clk", "suspend_clk", + "bus_clk", "aclk_usb3_rksoc_axi_perf", + "aclk_usb3", "grf_clk"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + usbdrd_dwc3_0: usb@fe800000 { + compatible = "snps,dwc3"; + reg = <0x0 0xfe800000 0x0 0x100000>; + interrupts = ; + dr_mode = "otg"; + }; + }; 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: 12059845 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,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 8E18BC433E9 for ; Mon, 1 Feb 2021 19:42:39 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 34B3A64EA8 for ; Mon, 1 Feb 2021 19:42:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 34B3A64EA8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=laE1+EFx021vnzkhG9mLwdLX/+PA2qTstScU8OqV0uU=; b=jOjySyWNJaTDbiXhDm/QEvzKdu /4WJifyqDa96IPoc3RTamAVeIm/QyZI4JEETFBDIyronLU2r+nVSpTpJle4hb4ofWPoi0G9EKz97o pMXR1S+PQRFGdEoXMaDXRzjKZosJC6GLTilGkfhU+/i4i+3CirNMFJsC2/rWMLzb2TONQdjpSmP9H 7ttAwl0WR2EJnw0GFUn2TqK+B+kIyca19j1OGc9QmhBGMN9W04YMW5TVoV0vC8vlHL79gtGWPjXPB 7u3qZSolngDSqVp29+b6POPb5+SZGC4XcUyafc3c9Ulkt2BFAZh7NDONm+yiW9TDZrPye+4HYR4Y5 pKL1sY4w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f4f-0000in-9O; Mon, 01 Feb 2021 19:41:25 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f4Z-0000gG-An; Mon, 01 Feb 2021 19:41:20 +0000 Received: by mail-ed1-x536.google.com with SMTP id y8so5137467ede.6; 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=DMdnqP9CBF5JLCoouqr3DPF6oraIYMdw71MhK62EjKrxtj6OzkRfLZOuL0dqAZEwWC S3IL1dyY1PYRbgQA5Rid1MbX4cjwT7EQzi5LTC3913dPmHJeT4T4uEOv5IQq/m6OCUi9 TC/ylaTG7wTuDmDasl5VZDT9h3vJawDBETuXr7PxvT152ODukddms5Jb1qoieOFPCbv+ Tc069IPns2GKdgURm3KqlqmaF7w7GT2MtRFJrQ6B7m1VOWUANPYreX0H8JzqESRAg2JS D4VQUgMU7JRuFnq1Mteih86FiKeCq9E0hQY2nWCPcT6jagTCnRYPXMs0J8A0NRrqUInW 00/w== X-Gm-Message-State: AOAM531WEp8Bz6DwIl/H/OoIMqmSLsDe/1hIR5bHoOFIioaJZhi+m5/s 8CmJb9nl1jWmgA29NTDj0h0= 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_144119_433374_B3D1EE20 X-CRM114-Status: GOOD ( 12.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, balbi@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12059847 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,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 66C94C433E0 for ; Mon, 1 Feb 2021 19:42:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 00BE664EA8 for ; Mon, 1 Feb 2021 19:42:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 00BE664EA8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mR/430e4AR5Oz9ECk5SCzI5yOWa747jw6D7VGh+Or3c=; b=ZUnsyuByVirRmn2UPmKItaONY+ 0xAXd379uBVxexh8Q12A1uCt3QUbi3XzFu5OoHTYOp45cUvJ9w9rd2oH2u9p06AOitCsz4JFfB5Kl WLWlz+pSktV/j9mxY/uCxVBkR8QQUWS++onJdhhH2cjcvoSVKPKV4y3x3xlmHtmx614EmTEwyrMbr Lzj9rZXKjCK+5e8ze6QrnIw4alvx55SIJtxxxcro19l9nPMymdDYpHYzOMcGUafEJJJIy7C2Kx03G xzi/IyusFBET57z/CbVNi4UC0TF9AIcviOGDwYw+YG0VdMJTvVTyI3eu0xJXhyQiR9inOHhmmIE0i GpT3opWA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f4k-0000kM-EZ; Mon, 01 Feb 2021 19:41:30 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f4a-0000gZ-I7; Mon, 01 Feb 2021 19:41:21 +0000 Received: by mail-ed1-x530.google.com with SMTP id f1so20250563edr.12; 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=DUZ2th2akMgZXbhWAwF/Rtcar/hbaUZaN5WHosC7d0E=; b=FpMiGYgOnjuHnqzhenAl+dL9jsvG4qjBPhjQSn+4DFsiE1JbaMcJ2J0lfmBzrmPWyc XBubKNA99rgSNCJNCFgCQF/aUeqgBiofpmcFXgs85iB4Kl/ypAXEpUl4IQlsYgDBozLJ KOD1XWL+irKNEUnIVqrefzUD452xosSNYvblX9/TkeeIBEscfzcm1suUMnVfduZ1hbIe M8de96kFqguI2YJR3kgUyBKTKUEnpum/+sufyBS8qq1R5SWeIGX9Nd4w5B6cJlIiCaLE 7yEJqpRkMkPrVe4CitED5PDO+gogW9+AiU4GZVvrqN1ZH6R/Hx3OK6JHKmAjz7LhDdW+ jn9A== 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=DUZ2th2akMgZXbhWAwF/Rtcar/hbaUZaN5WHosC7d0E=; b=PwjReBvHL4+sc2jdDDA+IOu0gP1H+ojGBCHD3uHoKAPVuVfCT4NLTTA5xyy/gNdQED Wfbm1LOOKUbWfI9kCoeSO7sajkBxjROucLBytKQeJ/czrqNOZMKgfyDC62UO1+AeLCQk CO+TY7EO6et5HS7B7bplG5zGFvDt0aKWfkX+lK3uIh1naODkl75n5EnbmTrYVnz67ci4 /eEDdteSyzRQq5LBl49Bh521BQBYN46EGY4MbHpOdo2PmHjPQjQnQ+/NppPLcKQz9Ioo eFbuNuB5lpz0PItQ682rZtQ2oXIk3as2b7kSk7Drd53nLEOwrvLY4126ODaqZ3ynE64f hZTg== X-Gm-Message-State: AOAM532pXZPGjOuKY7a/hsbBwNlzdqiPrVP5FKku7SzLCQk5NR6fWpe1 LziRgTo4lEl0hBAZbMLTzcWikNqcDno= X-Google-Smtp-Source: ABdhPJwUQXBgh7rOTE/IACXYOLiBGDAt4h5HEasE30HrnMCW6UEC67IVNg1/Tdp65F3x0MVLj/nOZA== X-Received: by 2002:a50:e04d:: with SMTP id g13mr7090744edl.358.1612208479118; 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.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2021 11:41:18 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH v1 3/5] usb: dwc3: of-simple: add compatible for rk3328 Date: Mon, 1 Feb 2021 20:41:03 +0100 Message-Id: <20210201194105.32673-3-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_144120_618370_8E000613 X-CRM114-Status: GOOD ( 15.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, balbi@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Cameron Nemo Add a compatible to be hooked into by the Rockchip rk3328 device tree. The rk3399 compatible cannot be reused because the rk3328 SoCs may require a specialized driver in the future and old device trees must remain compatible with newer kernels. Signed-off-by: Cameron Nemo Signed-off-by: Johan Jonker --- drivers/usb/dwc3/dwc3-of-simple.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index e62ecd22b..93bc34328 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -171,6 +171,7 @@ static const struct dev_pm_ops dwc3_of_simple_dev_pm_ops = { }; static const struct of_device_id of_dwc3_simple_match[] = { + { .compatible = "rockchip,rk3328-dwc3" }, { .compatible = "rockchip,rk3399-dwc3" }, { .compatible = "xlnx,zynqmp-dwc3" }, { .compatible = "cavium,octeon-7130-usb-uctl" }, 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: 12059851 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,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 9DD7CC4332B for ; Mon, 1 Feb 2021 19:42:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 52DBD64ED1 for ; Mon, 1 Feb 2021 19:42:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 52DBD64ED1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8nWKCLJiOGIbEiky95vgUmVI/AK2CKOQNA5qMHbCz38=; b=KB74vJFAahD6B8s6y+xunGdxdO cpvrVIb+g8k8T4WioPWvtkCAbKbzAZnapY5mHpnj8E4tlY/LxsW7JoTCoyQ7S5zpK1QXE3kO+3oVS DOHGxXN7bld0ohKNMdKOdkQCGIYNOE16zKX03npfc1HWAGhcrTyx4fo7ZnGJXO/l7pH/rQYchLFCQ AkedwNPjibHBdfMjzZHkNGFirU8Z/ASJu323wX6NH5N9RJj9jJ1NlJF3w2B1M8WvwIEa+d+5T8TkG JByTJ7iYQoUsynDLF0GBkghW13MIa8+ynXW5xxB9FKey2Lk6+qmktSuyO3/tpBYwZUlv/dqfxywZ9 sse9if5Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f4p-0000mR-4S; Mon, 01 Feb 2021 19:41:35 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f4b-0000gx-CZ; Mon, 01 Feb 2021 19:41:22 +0000 Received: by mail-ed1-x532.google.com with SMTP id f1so20250629edr.12; Mon, 01 Feb 2021 11:41:20 -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=Df4+MliTnAkxaIKkKz77FBFZsI0j2qNlEMYKcfdPUY2IpZuhkBFXMzY4J8TqETkYLW tXyHvXQ2ghuvAeS+OpU7AM0YDlb1RY0cSqaLj+/X+F5tgiv/a9/LureKPrTPzb/xkTwO N+ZIgi27R4wQxvdDGZW/CcPqS/KPGsbnLhic6wzh892W6rN2rpULsprnqpME2hbNYaYD OsKG/AmOg8BZNvvIebv2D53/xoAdl018KXZ2vwcHnEUnk1jNC3nq4VDSdfOkknKcZ3u2 +GM/nD0D5AfBwASw5rAULIfwEE901n/qQnSd/YxyQ2bjWHWccbmPMnnL5XN4kjcUVeMy zGlw== X-Gm-Message-State: AOAM5306YOsk2zq4Xwl3rl9Y/RIhsBr0d2CpRaKCr1Y8CMSP1qG/Qp5C pi6Xtrx/1qjFW6kr//dwhDY= 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_144121_466238_0E9F7AE9 X-CRM114-Status: GOOD ( 12.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, balbi@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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>; From patchwork Mon Feb 1 19:41:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12059849 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,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 ECF67C433DB for ; Mon, 1 Feb 2021 19:42:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B5F3B64EA8 for ; Mon, 1 Feb 2021 19:42:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5F3B64EA8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pMANh18QQybdhj7hNMVGtsYfdEaXiwJgPFAXtBGY+LM=; b=bemJ4t7MMPzLZatH1zKr/XDAWB r1svyUsrJei3o+KRAkJ+9jyiUK7aWf0XBPl8Slf1H8LDcJV93UGEsf7oi3UkhVj1FUXsVX9oieSDP 6MPEi7Qg5GjZq7qpj58deAIk4b8Hc4qM3gYz5tyBUPvJ8cGw1yFzZaJktWaC3RcGDqVGvQ9ZUkQtK BE9y3e6zPSwbMHQ+wPmPY7IJD6NDO6M15J7RkQPb42aeuXfNJqMXAsROB57t+xK+LhMdaTEtD3Ie6 H1HLYEdsh8InLDob5WnD7DG/9qRNgmjTDZtrYtopoBdfAASU+YF4445DgaejXM2BuKzKhXQJKu3nY nphyq/Ug==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f4r-0000ne-F5; Mon, 01 Feb 2021 19:41:37 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f4b-0000hH-Gq; Mon, 01 Feb 2021 19:41:22 +0000 Received: by mail-ed1-x52a.google.com with SMTP id s5so7394317edw.8; 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=mllDDoFqrKsaQ7KlxScyjYXTToCMmRRcsUF13aNpIwo=; b=lOq2v9Lwl5m1ENUAEOwokF4SpIw39mkXEtSS3xvZQt9PTK8ta89rTe4PBQbsZ+1K2d DA7GGQISOUJMllrvPP5H5VbogNvgccK2OMJsUzr4NCgoNg3pNM8k0SGe+HRI8ttTVNRH LZlK6nRYuj/Bk8mvyaqPEduEYzgv9Vdfy8Seta5HjZXOydQEStn68fVG/QVtRhjVRmL0 sqN8AB4o0ndeL5qczfEq5827rQTijdZmfblpnV3iCm+pJg+dHMNx2ML7unBR7fHa4Ebb YpCoO5mtYRvneAXajWTTNuBt3UETAsXfqkWKszKElZKvLbSSrFmixl3+izQzyswgNXn+ xbzA== 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=mllDDoFqrKsaQ7KlxScyjYXTToCMmRRcsUF13aNpIwo=; b=FpFmUXzbuYVODeCXzJCNs28ZoCqPZ83+2XajqDLL5l3bDp6aveMa1zQkDmYWt0a07g VaLaBkNUf9tu4c97K9v9Nbc81nNosgxJBLKlJBSdZZ7ApfuoNuN2ODQU0TFx9HRq1lwR z+OPcULpem78uLPY8RqzPYbx9XpbyT863Lb8fWOAxkHK7xukAfTn/jzujFaQGwlbLRKP OCdOu4Oy1QRp3tw+w83v/SH8tLqSn7u7gWT2a5BSZ+qIACshum342Hx68d+476BxSiX6 x1x2kz6u0eJ15/H5A5qILHOEm9xlMkZTMa0eCQ0PaZhmUAAPby0zMt6D8oVHjaphnKmv mNkw== X-Gm-Message-State: AOAM530ZBZnCAEFJ9pd2kP+37Je9Z9WvVIxzu5yOxSwiAKViXw2uuahP nKPapYR0BXMFUTkdtVAbJx8= X-Google-Smtp-Source: ABdhPJzflGvb9KJYZGMytp1I8l3QpW1wrHny5906kgyPSsIc4FpU96o1x39WcYNA3eK15Jfh5c97ZQ== X-Received: by 2002:a05:6402:11d3:: with SMTP id j19mr20525720edw.314.1612208480752; Mon, 01 Feb 2021 11:41:20 -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.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2021 11:41:20 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH v1 5/5] dts64: rockchip: enable dwc3 usb for A95X Z2 Date: Mon, 1 Feb 2021 20:41:05 +0100 Message-Id: <20210201194105.32673-5-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_144121_668379_E9DBF3A0 X-CRM114-Status: GOOD ( 12.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, balbi@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable dwc3 usb for A95X Z2. Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts b/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts index 30c73ef25..b26c653c6 100644 --- a/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts @@ -357,6 +357,15 @@ status = "okay"; }; +&usbdrd3 { + status = "okay"; +}; + +&usbdrd_dwc3 { + dr_mode = "host"; + status = "okay"; +}; + &usb_host0_ehci { status = "okay"; };