Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7254629rwi; Mon, 24 Oct 2022 11:56:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7jqOM0Abqhm9megNcI4vqdtrcP25S9fu1jQoTiw6beaFmsrIUBCnWzuzchZqhq61rDxf5p X-Received: by 2002:a17:902:cccc:b0:178:a9b3:43e6 with SMTP id z12-20020a170902cccc00b00178a9b343e6mr34243205ple.92.1666637795678; Mon, 24 Oct 2022 11:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666637795; cv=none; d=google.com; s=arc-20160816; b=JGzu0H+vPWGW71kKdr1a3itao8dw097aqZBH/oLDSTw/vr5RW4rVCT7fjv/q8s9LH5 F4IzBK3N0sDru3iBWRvyQuNwN3DifnKgSQCniO2Qlcb+oYZptywd+Mo11lqsECwBMPDM P4XMSd1YTMfm2mvW6SeFbhdQ+NryynuqB4r0DfDNGQ/k8zgOd2LqVTQW003tfmJBb8D0 5F1aJ0g6oGToPuB2Bdg1iuv1O4TSK09fGgVfpOiYGNJYXxW54hjR7vKqUP4ZP+f6yRz3 oDFC3PZHO7v3nNkiBnxC60fqF3BoXoENlx6F9TGInaGCxZKaZ35RwGG2JwMVmIwbv3Ev lUxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=D1QJpXK1XRrw6Q/9Xed/YwKuxJUdaTLfNru9WimmTgE=; b=aJ5siLnCHzFLFpzFLotNf1Kl5gVe1BuJS9hgwpeE6XVk/62Afm+t6NbhZs5hh/+5mr SbohWkjDOc19PaFABwlxkqk/JVU+W5hBHIu3d+DdLL8ikAgPjLmtFAzgRu1hUZP2wOUg yvPCFOSfSPkFrx3Mp5iHxzTlQruS+CpQl0E05PmDMlg7ElVeHcb5JeapZdM80L/NFjXd hJnkA8lj/v1xNacDISzO5A5hCdMnswQvbFf40VG6sFZ0NmEFihJvrXVt3sOCVioh6xjC BUUOTVsZ9Fw/8CxzHr1Ba3moA48ynN3wAVGdYZ5kPdIxI3ILumieWnsSuWGjk+jZ1wdJ t/Xg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jd21-20020a170903261500b0017532e01e57si263521plb.200.2022.10.24.11.56.22; Mon, 24 Oct 2022 11:56:35 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230298AbiJXSoS (ORCPT + 99 others); Mon, 24 Oct 2022 14:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbiJXSnh (ORCPT ); Mon, 24 Oct 2022 14:43:37 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 18BC414EC50; Mon, 24 Oct 2022 10:25:51 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 81C431474; Mon, 24 Oct 2022 07:16:54 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 91F0C3F792; Mon, 24 Oct 2022 07:16:46 -0700 (PDT) Date: Mon, 24 Oct 2022 15:16:43 +0100 From: Andre Przywara To: Icenowy Zheng Cc: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , soc@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v2 06/10] ARM: suniv: add USB-related device nodes Message-ID: <20221024151643.23217a25@donnerap.cambridge.arm.com> In-Reply-To: <20221012055602.1544944-7-uwu@icenowy.me> References: <20221012055602.1544944-1-uwu@icenowy.me> <20221012055602.1544944-7-uwu@icenowy.me> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 Wed, 12 Oct 2022 13:55:58 +0800 Icenowy Zheng wrote: Hi, > The suniv SoC has a USB OTG controller and a USB PHY like other > Allwinner SoCs. > > Add their device tree node. Looks alright to me, checked against the manual, also compared against some other Allwinner USB DT nodes. Also passes the binding and DTB checks. Just one small question below, but nevertheless: Reviewed-by: Andre Przywara > Signed-off-by: Icenowy Zheng > --- > No changes since v1. > > arch/arm/boot/dts/suniv-f1c100s.dtsi | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/arch/arm/boot/dts/suniv-f1c100s.dtsi b/arch/arm/boot/dts/suniv-f1c100s.dtsi > index 0edc1724407b..a01541ba42c5 100644 > --- a/arch/arm/boot/dts/suniv-f1c100s.dtsi > +++ b/arch/arm/boot/dts/suniv-f1c100s.dtsi > @@ -133,6 +133,32 @@ mmc1: mmc@1c10000 { > #size-cells = <0>; > }; > > + usb_otg: usb@1c13000 { > + compatible = "allwinner,suniv-f1c100s-musb"; > + reg = <0x01c13000 0x0400>; > + clocks = <&ccu CLK_BUS_OTG>; > + resets = <&ccu RST_BUS_OTG>; > + interrupts = <26>; > + interrupt-names = "mc"; > + phys = <&usbphy 0>; > + phy-names = "usb"; > + extcon = <&usbphy 0>; > + allwinner,sram = <&otg_sram 1>; What is this "1" for? I see it all over the other Allwinner SRAM properties, but can't find any documentation about that number, nor can I see that it would be used in the code. Does anyone know? Cheers, Andre > + status = "disabled"; > + }; > + > + usbphy: phy@1c13400 { > + compatible = "allwinner,suniv-f1c100s-usb-phy"; > + reg = <0x01c13400 0x10>; > + reg-names = "phy_ctrl"; > + clocks = <&ccu CLK_USB_PHY0>; > + clock-names = "usb0_phy"; > + resets = <&ccu RST_USB_PHY0>; > + reset-names = "usb0_reset"; > + #phy-cells = <1>; > + status = "disabled"; > + }; > + > ccu: clock@1c20000 { > compatible = "allwinner,suniv-f1c100s-ccu"; > reg = <0x01c20000 0x400>;