Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2358199pxm; Sun, 27 Feb 2022 19:17:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDT7jlxLUvuK6uP2R6pkisA80o6QDUof1yqr15TgIa+fN0+anD5aXKIL5bJvhvZMX1ukF3 X-Received: by 2002:a17:90a:f3cf:b0:1bc:6732:3db7 with SMTP id ha15-20020a17090af3cf00b001bc67323db7mr14403059pjb.199.1646018220552; Sun, 27 Feb 2022 19:17:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646018220; cv=none; d=google.com; s=arc-20160816; b=aO4J7o08zRX6IPEGouJWLLKBdiTJAnoW0/otCq/uieBQ9GbM1ScugFO/W9EkBEwoDD bLgiPUfdEVhY/u612uzKI7r1bai01PlpLb7EwjoD02ROymIR3oBY44u1rdKOVEQqXi8d deD57pDdwPnG3bezbVfMseU31QFu6iPeJwM0NU+B+k4oGqU6QSrGa0sM/DC6pZ0oWJx5 J5Sn2VSj3PMhhyzsJPG3ga1aA6xJXeGVvl1cHN0eQX+c9pkIMTqDKWupVpKY7xv62dM9 Iizsz+xXhYqnvXubJ5ChEyBqkE4M6pQCqAFv9403JeiqqgkwfEHgAOHiDIUYfICCyaz4 yU9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cZ9QMnKlNqSU27RKVmQdYv0oOCGNcDDfO8PVwoF5xyQ=; b=VGsLQctTn52T3GrlmgE8SnsaosFdRXaIKrLDmsjWT5oY0ZPxXDpti85/HJqxMGP5wG recpSTkAfRDTMP352DVY/bsEInucBK5M7v9WVNG+UiJfgv9CrKfFe0OpH9WJHB9q5ES5 YzQEvuMyt+upOrVseAFipBhEAnCxDVPumjM6ETCNyURVdP97brNjvymqY7LmMDRuZzPT GYBCbNM0I/OSwXBnri/n+tzsxixfk3LcA4JBHX7UUjfF2DkDHXGqlIZF7r5eKVP7zDLt /js0ySHHoolRDVhSJtFkleT1NEM02ZUcESoUlMKMIAg1G188h5qVgKADExMJgLPVROI6 gvrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mMmUILbT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a63ea09000000b00378b439c5d6si1099802pgi.35.2022.02.27.19.16.44; Sun, 27 Feb 2022 19:17:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mMmUILbT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232107AbiB0WpJ (ORCPT + 99 others); Sun, 27 Feb 2022 17:45:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232100AbiB0WpI (ORCPT ); Sun, 27 Feb 2022 17:45:08 -0500 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3453A52E4A; Sun, 27 Feb 2022 14:44:31 -0800 (PST) Received: by mail-yb1-xb35.google.com with SMTP id j12so16960671ybh.8; Sun, 27 Feb 2022 14:44:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cZ9QMnKlNqSU27RKVmQdYv0oOCGNcDDfO8PVwoF5xyQ=; b=mMmUILbThtIsXV6Pu18EK0OgQ0rPIotUagZulWrczHBjjJXOn6hFNCvbt8cct9W//5 mJ2xGwXRrFPc19EkvUTl7O1gDGJayclhyDgPQKBUrI5MAbCm04jC7KsP088ak61awBJH o45gcDhw0QI7KPEkjpItrAoVjDtoA6XtPdFaR/NqO0EdcxevD1s5zgLhnYT9IOB4iHH5 tK1QsB9MLVGH4vsSeBF+e+/zEscon3hg+GBZ7BfpqTcV35U+AhKHgvTHmGLuod54nMFA CbH3UZEUWGqvvaNDdyTwTit2RWICqFbh70bBLKcBsZfo+FFomxnhp/ozmA6wlEMj8WFW 4x/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cZ9QMnKlNqSU27RKVmQdYv0oOCGNcDDfO8PVwoF5xyQ=; b=vf+YOekn8SmsjeHtYkUx1alYrZJi7/GU5ZzjWGM3OMXSIjHs5O6W6/0HO6c2i5zg7y q0w8zKcXcevuwtjvz8ON+b4w2fQKzpnSRXNCJkrIXGEFLoKgKgyOk/EoBkR7+lLqYffq f69Y9qmZgltBvkkfqNwvDL5jKRCQ3Y54sLGHcqUMdwQDLMCacSp5G9nQg60/+a5adeiT +W5yNCbBzsGotEa1dfrXfteQV50e1JCDf/TY0oofp9guJpi5nhDHyvsAFHdkZolPSG1X R0zcO2dseiwI22PNVXhJTnfClkMxE0bmY/LpzTY8evJmFTs2LBVF395viNTblcjdURHn /fLw== X-Gm-Message-State: AOAM5309G9wEsawU9A4SYYi6TeDavOj5/f+eNivA87RdqlFbbV10UDMY q6oBozzzVW8LNrEXsP1+gAv4bg3NNW1kDDpfG3k= X-Received: by 2002:a25:5d0:0:b0:61d:932b:6fc0 with SMTP id 199-20020a2505d0000000b0061d932b6fc0mr16650730ybf.585.1646001869946; Sun, 27 Feb 2022 14:44:29 -0800 (PST) MIME-Version: 1.0 References: <20220227153016.950473-1-pgwipeout@gmail.com> <20220227153016.950473-6-pgwipeout@gmail.com> <7b20fccd-4394-da3c-6556-4732d67cde3d@gmail.com> In-Reply-To: <7b20fccd-4394-da3c-6556-4732d67cde3d@gmail.com> From: Peter Geis Date: Sun, 27 Feb 2022 17:44:18 -0500 Message-ID: Subject: Re: [PATCH v3 5/7] arm64: dts: rockchip: add rk356x dwc3 usb3 nodes To: Johan Jonker Cc: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , "open list:ARM/Rockchip SoC..." , Michael Riesch , devicetree , arm-mail-list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 27, 2022 at 12:50 PM Johan Jonker wrote: > > > > On 2/27/22 16:30, Peter Geis wrote: > > Add the dwc3 device nodes to the rk356x device trees. > > The rk3566 has one usb2 capable dwc3 otg controller and one usb3 capable > > dwc3 host controller. > > The rk3568 has one usb3 capable dwc3 otg controller and one usb3 capable > > dwc3 host controller. > > > > Signed-off-by: Peter Geis > > --- > > arch/arm64/boot/dts/rockchip/rk3566.dtsi | 11 ++++++++ > > arch/arm64/boot/dts/rockchip/rk3568.dtsi | 9 ++++++ > > arch/arm64/boot/dts/rockchip/rk356x.dtsi | 35 +++++++++++++++++++++++- > > 3 files changed, 54 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3566.dtsi b/arch/arm64/boot/dts/rockchip/rk3566.dtsi > > index 3839eef5e4f7..0b957068ff89 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk3566.dtsi > > +++ b/arch/arm64/boot/dts/rockchip/rk3566.dtsi > > @@ -6,6 +6,10 @@ / { > > compatible = "rockchip,rk3566"; > > }; > > > > +&pipegrf { > > + compatible = "rockchip,rk3566-pipe-grf", "syscon"; > > +}; > > + > > &power { > > power-domain@RK3568_PD_PIPE { > > reg = ; > > @@ -18,3 +22,10 @@ power-domain@RK3568_PD_PIPE { > > #power-domain-cells = <0>; > > }; > > }; > > + > > +&usb_host0_xhci { > > + phys = <&usb2phy0_otg>; > > + phy-names = "usb2-phy"; > > + extcon = <&usb2phy0>; > > + maximum-speed = "high-speed"; > > +}; > > diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi b/arch/arm64/boot/dts/rockchip/rk3568.dtsi > > index 5b0f528d6818..8ba9334f9753 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi > > +++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi > > @@ -99,6 +99,10 @@ opp-1992000000 { > > }; > > }; > > > > +&pipegrf { > > + compatible = "rockchip,rk3568-pipe-grf", "syscon"; > > +}; > > + > > &power { > > power-domain@RK3568_PD_PIPE { > > reg = ; > > @@ -114,3 +118,8 @@ power-domain@RK3568_PD_PIPE { > > #power-domain-cells = <0>; > > }; > > }; > > + > > +&usb_host0_xhci { > > + phys = <&usb2phy0_otg>, <&combphy0 PHY_TYPE_USB3>; > > + phy-names = "usb2-phy", "usb3-phy"; > > +}; > > diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi > > index 7cdef800cb3c..072bb9080cd6 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi > > +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi > > @@ -230,6 +230,40 @@ scmi_shmem: sram@0 { > > }; > > }; > > > > + usb_host0_xhci: usb@fcc00000 { > > > + compatible = "snps,dwc3"; > > compatible = "rockchip,rk3568-dwc3", "snps,dwc3"; > > compatible strings must be SoC orientated. > Add binding like you did before. Okay, should this go in the core yaml, since it's not really handled by of-simple? Also, should I add in the compatible for rk3328 as well? > > > + reg = <0x0 0xfcc00000 0x0 0x400000>; > > + interrupts = ; > > + clocks = <&cru CLK_USB3OTG0_REF>, <&cru CLK_USB3OTG0_SUSPEND>, > > + <&cru ACLK_USB3OTG0>; > > + clock-names = "ref_clk", "suspend_clk", > > + "bus_clk"; > > + dr_mode = "host"; > > + phy_type = "utmi_wide"; > > + power-domains = <&power RK3568_PD_PIPE>; > > + resets = <&cru SRST_USB3OTG0>; > > + snps,dis_u2_susphy_quirk; > > + status = "disabled"; > > + }; > > + > > + usb_host1_xhci: usb@fd000000 { > > > + compatible = "snps,dwc3"; > > compatible = "rockchip,rk3568-dwc3", "snps,dwc3"; > > > + reg = <0x0 0xfd000000 0x0 0x400000>; > > + interrupts = ; > > + clocks = <&cru CLK_USB3OTG1_REF>, <&cru CLK_USB3OTG1_SUSPEND>, > > + <&cru ACLK_USB3OTG1>; > > + clock-names = "ref_clk", "suspend_clk", > > + "bus_clk"; > > + dr_mode = "host"; > > + phys = <&usb2phy0_host>, <&combphy1 PHY_TYPE_USB3>; > > + phy-names = "usb2-phy", "usb3-phy"; > > + phy_type = "utmi_wide"; > > + power-domains = <&power RK3568_PD_PIPE>; > > + resets = <&cru SRST_USB3OTG1>; > > + snps,dis_u2_susphy_quirk; > > + status = "disabled"; > > + }; > > + > > gic: interrupt-controller@fd400000 { > > compatible = "arm,gic-v3"; > > reg = <0x0 0xfd400000 0 0x10000>, /* GICD */ > > @@ -297,7 +331,6 @@ pmu_io_domains: io-domains { > > }; > > > > pipegrf: syscon@fdc50000 { > > - compatible = "rockchip,rk3568-pipe-grf", "syscon"; > > reg = <0x0 0xfdc50000 0x0 0x1000>; > > }; > >