Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp704173pxm; Fri, 25 Feb 2022 17:46:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY+VUME5YojKqdWETWe7YNWq1+48a7VsFJSXLiFGA7+3VTbTn2Ayiu79AYsU1zg0SblgbN X-Received: by 2002:a17:902:d706:b0:14d:5b6f:5421 with SMTP id w6-20020a170902d70600b0014d5b6f5421mr9917104ply.96.1645839986061; Fri, 25 Feb 2022 17:46:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645839986; cv=none; d=google.com; s=arc-20160816; b=GA7cA5LNryTQfbijcQ/O8gjKOyz7VSZinPr6/5RgKUv4jT2AK9g3QnF3D1u49xL3PU jxPTwd8wi6hVfZR7zTTfZFQXscqDiuBaqhisiiQwQ435GRi4W7+1x1oKiXetY3aEZH6b tAO0lpTOJkKE4tz/VZhks6rZm/EZeKgKuiIJEdKEWDZmJwBqHt2ql9Io2219+x8plHOl ri2ILR0ZiO7w12i/ffZtGq9heTI9GcwS/SchL8iE8eqvoRJEE6aG8gGKLRtB9vc6dz0z z8Un2dO5Ma66m63uTF5hxbbMC9nGN3wvn29kro5Zw9HOSCuUxzD8QYb4eBWaIIu1spMu D9xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=idLLe3Bg4LF24zcJUztJfruP9rviMV/MQdx2SKITisA=; b=zcoS0q5d/Jw1P1KtfwloTDV+QwKspkIMD/jqsrNLObSNSEcFPjAQw7tHT0oA6fsLw/ +7UZblSTjfynrW2oVrZSUTbSzvt1IlYPPgDMGnd0x2AiuC+l+RNK/foleXLq6tB7U8QC MG2TEBezPmJ9E1x4v50AjLtc1uqPtJMRQ80U6mta6uT07wsuyBj2HFd2mUsZPgwqhWVR LXTlmlSppkul1kRfPybsIypIpILCikcmEQcGKHjw74uuBlNHYVXUwJB2JNixdvLP+0O7 YSR046Zo2wy9jx7g4oKTCTynBs29xwGno8az7rOsxW8Th7oGk7qMh8QT9zzixvtxuYit DX1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b="X/9D7Sgo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l6-20020a654c46000000b0036c1e25f69dsi3141077pgr.410.2022.02.25.17.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:46:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b="X/9D7Sgo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 136D424F59E; Fri, 25 Feb 2022 17:35:14 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241925AbiBYOzP (ORCPT + 99 others); Fri, 25 Feb 2022 09:55:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238735AbiBYOzK (ORCPT ); Fri, 25 Feb 2022 09:55:10 -0500 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50E092272CB; Fri, 25 Feb 2022 06:54:37 -0800 (PST) Received: by mail-qt1-x830.google.com with SMTP id s15so2597939qtk.10; Fri, 25 Feb 2022 06:54:37 -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:mime-version :content-transfer-encoding; bh=idLLe3Bg4LF24zcJUztJfruP9rviMV/MQdx2SKITisA=; b=X/9D7SgoZNXpKyJMlKxUSgUhPWyk42fgywEhpPUw2z/BV4DQZEhDIf/LdrFHvsmSJP 3DwLYkYmGQZYgqOJpiQOgnIQIRt8S5SXRdSM9Fk7oPHfHLxlJ5JalSvU3YVN9X9lsco1 lGyithf96rqpB0VcuXiWt4aH3n4ioClC4OqqD6H1UAKpI8kcaLs/DRNQiKQg7XG4WFgr 2pxt8M06llBuAJ4aF1dhU5ogBgZpXetM1dYoYCETQivLFGcecF9b2NKloXC/xnDDh62S slVwXvL7vxjB/X8JISta8L5fFuWWa+P6e16MWYRj+MNnpiKpF2kf/jly10XrV/cLlE6b wUog== 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:mime-version :content-transfer-encoding; bh=idLLe3Bg4LF24zcJUztJfruP9rviMV/MQdx2SKITisA=; b=UWYbXKqvNG/p8VmOl/H4I1/z633/3l3zmh30podCEv4tsFiNgz2f59fLHimdXevEZO j5AJ08OAUeiJb2BA0+X28GjDmvpwiWLRdTLxiCLwtXwRP8n3pEnUgY5/8KPy0rZnYHY5 RNB4qB0H+ZIV/VAG+Mc+624qfcNooYW6oPiMwKRxOIf5YA2Br13O7H3yZ448JZ6qaB1K 6+1BPjTbKeQ6oJ+Ns3p8jmZ+h3ZF1EQhVt6E/jK0yGI2KivodgNLaaNQ3+bxfM4aaTO+ FKqCXWi/coz1qxsw2HVn4tLledPiXJJDAt3LfbNEUlEHNnKdM/+0VW+aVp+cj0dGATuB qQnA== X-Gm-Message-State: AOAM532qG6qK+E3q9Md9ybTRvBi2xuPeiymm82yuYBxGxM4TvsLzZaaL nJKwQDHuML/nqsYOG4ElOOE= X-Received: by 2002:ac8:5e48:0:b0:2dd:aae2:9163 with SMTP id i8-20020ac85e48000000b002ddaae29163mr7054520qtx.95.1645800875662; Fri, 25 Feb 2022 06:54:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 06:54:35 -0800 (PST) From: Peter Geis Cc: Peter Geis , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Felipe Balbi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v1 0/8] enable usb support on rk356x Date: Fri, 25 Feb 2022 09:54:23 -0500 Message-Id: <20220225145432.422130-1-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,SPOOFED_FREEMAIL_NO_RDNS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Good Morning, This is my patch series that I have maintained out of tree until the combophy driver landed. Note, it is dependent on this series to function (aside from the rk3566 dwc3-otg port, which will work currently). This series is still dependent on Patch 4 of the combophy series, which has yet to be accepted. Patches 1 and 2 add the dt bindings for the grf changes necessary for this series. Patch 3 adds support to the grf driver to set the rk3566 otg clock source. Patch 4 is a downstream patch ported forward to shut down the usb3 clock when the controller is operating in usb2 mode. Patches 5 and 6 clean up the dwc3-of-simple driver and add the compatible for the rk3568. Patch 7 adds the dwc3 nodes to the rk356x device tree includes. Patch 8 enables the dwc3 nodes on the Quartz64 Model A. Please review and apply. Very Respectfully, Peter Geis Bin Yang (1): usb: dwc3: core: do not use 3.0 clock when operating in 2.0 mode Peter Geis (7): dt-bindings: soc: grf: add rk3566-pipe-grf compatible dt-bindings: usb: dwc3: add description for rk3568 soc: rockchip: set dwc3 clock for rk3566 usb: dwc3: reorder dwc-of-simple compatibles usb: dwc3: add rk3568 dwc3 support arm64: dts: rockchip: add the dwc3 usb3 nodes to rk356x arm64: dts: rockchip: enable the dwc3 nodes on quartz64-a .../devicetree/bindings/soc/rockchip/grf.yaml | 1 + .../bindings/usb/rockchip,dwc3.yaml | 7 ++- .../boot/dts/rockchip/rk3566-quartz64-a.dts | 37 +++++++++++++++ arch/arm64/boot/dts/rockchip/rk3566.dtsi | 12 +++++ arch/arm64/boot/dts/rockchip/rk3568.dtsi | 9 ++++ arch/arm64/boot/dts/rockchip/rk356x.dtsi | 45 ++++++++++++++++++- drivers/soc/rockchip/grf.c | 17 +++++++ drivers/usb/dwc3/core.c | 4 ++ drivers/usb/dwc3/core.h | 1 + drivers/usb/dwc3/dwc3-of-simple.c | 10 +++-- 10 files changed, 137 insertions(+), 6 deletions(-) -- 2.25.1