From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52143C4332F for ; Fri, 15 Dec 2023 06:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cN8MECUs2tPCxjFC94ND/7iIyG5XbqvsnRAXB3kXSXs=; b=IwgAIacc+MzQ4M HbzH0xUkv+cZoh5cQfU7Bsb+q0gE8AxG02C+bw5GT/pWNF6wA7MSJWaGYwlduHknx0tvCCDolANF/ VZrWhtMOoxY2WUbJwKE9KD1pzhDGfmgiF758TnxrOpk0/c63gVWkaeI+ZjkUaUcQxm/MTn5+FpAxq 8khsDms64GnS8tO6SzU4SRwqRNfHJoF/YeueC7Zbe8iD4GV08hb2lI2Yz+W15uKxjTb2JWZEv0Hz8 K09EOQVoKD63GXPchtz3t4jdQDaUgpfWbMjGCxQdDMV0xIzaYeUCf0OE5Ymc2wwsOYd6hxnYnCGVP 0O8FK/lekf8ifZNy7fEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rE1kR-002CCp-0e; Fri, 15 Dec 2023 06:32:35 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rE1kN-002CBf-2y for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2023 06:32:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1702621951; x=1734157951; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mC9legAL+Rsc0CkW3ITeHlMZ6XHUNb1Q1BzbBa9AnFE=; b=OeuLvM5CQjEhyhP59swyELoWhSVXfm2QUjjvGAJLPibRadMQk9DeY1sO 1hJcmlgJFCvdxCroMua7DvTXxL//qhU/48ZAoxYaxfLhUBg64pqqVGxLP j2W138wKV29EWEX3hU9GwnM7sUgMpdtDpp+QCauXX4jQ6zTaQdJs6RhEq tShlfgTT7NLAHjzxhqmOd1M+xScZoGciwzzSfAusQrYxaV6hrDMIn6vsI ADyDi/meBb2534lzQw5u1zmVRCavFDAiIko/hbjU5/e0CLoVqaTkvqt31 TQlUhmWzi8zHU6H3fVcOPzC2n7ONSPBTGgfzvmFyFDxcsCxjrYLVnMds7 A==; X-IronPort-AV: E=Sophos;i="6.04,277,1695679200"; d="scan'208";a="34522247" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 15 Dec 2023 07:32:27 +0100 Received: from steina-w.localnet (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id DB001280075; Fri, 15 Dec 2023 07:32:26 +0100 (CET) From: Alexander Stein To: "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-arm-kernel@lists.infradead.org" , Xu Yang Cc: dl-linux-imx , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [EXT] Re: [PATCH 3/4] arm64: dts: imx93: add usb nodes Date: Fri, 15 Dec 2023 07:32:27 +0100 Message-ID: <3198956.5fSG56mABF@steina-w> Organization: TQ-Systems GmbH In-Reply-To: References: <20231214112442.2412079-1-xu.yang_2@nxp.com> <8309719.T7Z3S40VBb@steina-w> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_223232_343262_3E8CBDA5 X-CRM114-Status: GOOD ( 23.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, Am Freitag, 15. Dezember 2023, 03:12:43 CET schrieb Xu Yang: > Hi Alexander, > = > > Hi, > > = > > thanks for the patch. > > = > > Am Donnerstag, 14. Dezember 2023, 12:24:41 CET schrieb Xu Yang: > > > There are 2 USB controllers on i.MX93. Add them. > > > = > > > Signed-off-by: Xu Yang > > > --- > > > = > > > arch/arm64/boot/dts/freescale/imx93.dtsi | 58 ++++++++++++++++++++++= ++ > > > 1 file changed, 58 insertions(+) > > > = > > > diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi > > > b/arch/arm64/boot/dts/freescale/imx93.dtsi index > > > 34c0540276d1..bcf4861cfede > > > 100644 > > > --- a/arch/arm64/boot/dts/freescale/imx93.dtsi > > > +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi > > > @@ -171,6 +171,20 @@ cm33: remoteproc-cm33 { > > > = > > > status =3D "disabled"; > > > = > > > }; > > > = > > > + usbphynop1: usbphynop1 { > > > + #phy-cells =3D <0>; > > > + compatible =3D "usb-nop-xceiv"; > > = > > compatible first. > = > Okay. > = > > > + clocks =3D <&clk IMX93_CLK_USB_PHY_BURUNIN>; > > > + clock-names =3D "main_clk"; > > > + }; > > > + > > > + usbphynop2: usbphynop2 { > > > + #phy-cells =3D <0>; > > > + compatible =3D "usb-nop-xceiv"; > > = > > compatible first. > = > Okay. > = > > > + clocks =3D <&clk IMX93_CLK_USB_PHY_BURUNIN>; > > > + clock-names =3D "main_clk"; > > > + }; > > > + > > > = > > > soc@0 { > > > = > > > compatible =3D "simple-bus"; > > > #address-cells =3D <1>; > > > = > > > @@ -1059,5 +1073,49 @@ ddr-pmu@4e300dc0 { > > > = > > > reg =3D <0x4e300dc0 0x200>; > > > interrupts =3D ; > > > = > > > }; > > > = > > > + > > > + usbotg1: usb@4c100000 { > > > + compatible =3D "fsl,imx8mm-usb", "fsl,imx7d-usb= ", > > = > > "fsl,imx27-usb"; > > = > > > + reg =3D <0x4c100000 0x200>; > > > + interrupts =3D ; > > > + clocks =3D <&clk IMX93_CLK_USB_CONTROLLER_GATE>, > > > + <&clk IMX93_CLK_HSIO_32K_GATE>; > > > + clock-names =3D "usb_ctrl_root_clk", > > = > > "usb_wakeup_clk"; > > = > > drivers/usb/chipidea/ci_hdrc_imx.c uses 3 clocks: "ipg", "ahb" and "per= ", > > see imx_get_clks(). How is this supposed to work? > = > I have sent another patch to get this clock. > https://lore.kernel.org/all/20231214112622.2412321-1-xu.yang_2@nxp.com/ Okay, but that adds another clock which is not mentioned in Documentation/ devicetree/bindings/usb/ci-hdrc-usb2.yaml at all. I guess some compatible- specific constraints regarding number of clocks should be added. Best regards, Alexander > = > > > + assigned-clocks =3D <&clk IMX93_CLK_HSIO>; > > > + assigned-clock-parents =3D <&clk > > = > > IMX93_CLK_SYS_PLL_PFD1_DIV2>; > > = > > > + assigned-clock-rates =3D <133000000>; > > > + fsl,usbphy =3D <&usbphynop1>; > > > + fsl,usbmisc =3D <&usbmisc1 0>; > > > + status =3D "disabled"; > > > + }; > > > + > > > + usbmisc1: usbmisc@4c100200 { > > > + compatible =3D "fsl,imx8mm-usbmisc", "fsl,imx7d- > > = > > usbmisc", > > = > > > + "fsl,imx6q-usbmisc"; > > = > > This means you are compatible to fsl,imx7d-usbmisc. Which means you use > > register MX7D_USB_OTG_PHY_STATUS in USB misc (USBNC). But i.MX93 RM Rev= . 2 > > (04/2023) lacks this and other registers. > = > Some registers in USBNC are not shown. The internal RM has these register= s. > = > > > + #index-cells =3D <1>; > > > + reg =3D <0x4c100200 0x200>; > > = > > reg after compatible. > = > Okay. > = > > > + }; > > > + > > > + usbotg2: usb@4c200000 { > > > + compatible =3D "fsl,imx8mm-usb", "fsl,imx7d-usb= ", > > = > > "fsl,imx27-usb"; > > = > > > + reg =3D <0x4c200000 0x200>; > > > + interrupts =3D ; > > > + clocks =3D <&clk IMX93_CLK_USB_CONTROLLER_GATE>, > > > + <&clk IMX93_CLK_HSIO_32K_GATE>; > > > + clock-names =3D "usb_ctrl_root_clk", > > = > > "usb_wakeup_clk"; > > = > > The same as for usbotg1 applies here. > = > Okay. > = > > > + assigned-clocks =3D <&clk IMX93_CLK_HSIO>; > > > + assigned-clock-parents =3D <&clk > > = > > IMX93_CLK_SYS_PLL_PFD1_DIV2>; > > = > > > + assigned-clock-rates =3D <133000000>; > > > + fsl,usbphy =3D <&usbphynop2>; > > > + fsl,usbmisc =3D <&usbmisc2 0>; > > > + status =3D "disabled"; > > > + }; > > > + > > > + usbmisc2: usbmisc@4c200200 { > > > + compatible =3D "fsl,imx8mm-usbmisc", "fsl,imx7d- > > = > > usbmisc", > > = > > > + "fsl,imx6q-usbmisc"; > > > + #index-cells =3D <1>; > > > + reg =3D <0x4c200200 0x200>; > > = > > The same as for usbmisc1 applies here. > = > Okay. > = > > > + }; > > > = > > > }; > > > = > > > }; > > = > > Best regards, > > Alexander > > = > > -- > > TQ-Systems GmbH | M=FChlstra=DFe 2, Gut Delling | 82229 Seefeld, Germany > > Amtsgericht M=FCnchen, HRB 105018 > > Gesch=E4ftsf=FChrer: Detlef Schneider, R=FCdiger Stahl, Stefan Schneider > > http://www.tq-/ > > group.com%2F&data=3D05%7C02%7Cxu.yang_2%40nxp.com%7C10ff5a35f53f4047ae1= d08db > > fca99c38%7C686ea1d3bc2b4c6fa > > 92cd99c5c301635%7C0%7C0%7C638381577622080432%7CUnknown%7CTWFpbGZsb3d8ey= JW > > IjoiMC4wLjAwMDAiLCJQIjoiV2 > > luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DVlpRPcnJTm= ywfS > > amaGB1Ev8aPN2Hi596VbbRNGXF yis%3D&reserved=3D0 -- = TQ-Systems GmbH | M=FChlstra=DFe 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht M=FCnchen, HRB 105018 Gesch=E4ftsf=FChrer: Detlef Schneider, R=FCdiger Stahl, Stefan Schneider http://www.tq-group.com/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel