Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1935522lqz; Tue, 2 Apr 2024 02:07:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUphYZ6RNZe6rhKoM2GzJQKdMQRbgeqNMCEHwRC7nc0N3KVvpf2ZPmsd9C/CniDuB9fSxBrUdjOfwRAEJkpGmSL0bypmTh6J8OjlZ+jww== X-Google-Smtp-Source: AGHT+IFBCX/p9dtbjKRL8GBdWEXRt4Kr+z1sRFhcZuKZXUDbJdrTyF/3tV0C6MKY1WmagrH0mUrP X-Received: by 2002:a0c:f8d2:0:b0:699:211f:91b0 with SMTP id h18-20020a0cf8d2000000b00699211f91b0mr79432qvo.23.1712048871551; Tue, 02 Apr 2024 02:07:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712048871; cv=pass; d=google.com; s=arc-20160816; b=MYbxKnfQZp30aUsFktY1Gfhaalul+DGcOTCTlMRdIR9Q6iR0kqCk1CuOuLCo2gbxD2 3wV8ldmjbxP7xkAGBuNwjZEhxkRsmA9phnCzxHmMKbs/sfZSmhWM8kv4xywrtNcSHGoB srQEsS/b8EwMX8RDCGOCwJCdyzu6xsBZ0dV3DOf4/WybaDtYKNeemqmVGQw/4uSOtuLg kV80qHfU8UM4AgMZ8I/2wRDwBtIacE7CXe/7gaJNslP0tmO3t0d6Ei3hryNZ9vG+DynN v9vkOJrZjbVvmYXjquiMjhrV5rNFxZtsCoP0POomi4ts5z3h6WoDjnJRjkqkjp5PGPHP aElQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=v7Irp6bBJXCNebn36Vh9yPqqXllV/JsIy2dz+cR9M1U=; fh=YZTmL06L1bSk4aX9detxkup7daRQrQ6o4X0pWvVq48U=; b=UrDbEWnfCgzyAIqN45YY1HhPpoH92RoKF8o86Mokh3RPyr5XVE86t/AO2bnkr8BVWY lFjT9ky5AO7ZdCg1hzOsOPGga/CTwuD1AgT/s1gzvBB4ZcbJSd0gHO/R2AQe5fxVeQBa WNPdI+qEUpck2+sCiBozptDc4CN/sQm4v4w1eVytGUqPda9SOJUFlGFyIISeNos6dPu5 Ze4sCoumtgBDDJrYTtamxGx9EiMNw/PKahcqwrAd/YT03yUm4Axt2W+gx1QPUrYhJZEm /+WRj/Bdl6cFXKRDd3BBsrLDqtxGoO4KStoeKIe4ONCH99wyhtNS9C+n9YgkXc1O18Rf 8n7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@yeah.net header.s=s110527 header.b=i71bd1oB; arc=pass (i=1 spf=pass spfdomain=yeah.net dkim=pass dkdomain=yeah.net dmarc=pass fromdomain=yeah.net); spf=pass (google.com: domain of linux-kernel+bounces-127607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yeah.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g17-20020a0cf851000000b0069693dc8599si11336082qvo.52.2024.04.02.02.07.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 02:07:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@yeah.net header.s=s110527 header.b=i71bd1oB; arc=pass (i=1 spf=pass spfdomain=yeah.net dkim=pass dkdomain=yeah.net dmarc=pass fromdomain=yeah.net); spf=pass (google.com: domain of linux-kernel+bounces-127607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yeah.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 872531C22471 for ; Tue, 2 Apr 2024 09:07:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25D7057323; Tue, 2 Apr 2024 09:07:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=yeah.net header.i=@yeah.net header.b="i71bd1oB" Received: from mail-177132.yeah.net (mail-177132.yeah.net [123.58.177.132]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95E0D17C7C; Tue, 2 Apr 2024 09:07:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=123.58.177.132 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712048854; cv=none; b=H2KPJc4ArfWlywywBpiK5fXZT/ywu5/OdV173FMnzUUsm6fJGb4DmXNmpFOHq/ABnSlEhSG3bfNYxahyhDCWzaX/zixaaYJ9IP11ueX1AcosZgulAaNb7gHIw5piYpj21GhdfQI+ZNWWMzmw55sOBaxCEjHU9za3GIdkMmifP1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712048854; c=relaxed/simple; bh=D6WrjkDPoDGOGRdjF9W8yG6nCD7d5fEpEm8TrvcfTFM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l8QHvE/k0T4ionf6WF5jY6ICOopuXlt2e6T00J8UaNVDiVcQpWEfEfpCx/n++28Y5eFdjn5e3gt25w5If524pZCj90OF13TkDf5+ju7YRPtmyLKmdTmL7MMq5i1CLHFEYzcawo7O/8jLZTtIhDAOAUaznomcN5lwc9pTWUVzd1s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yeah.net; spf=pass smtp.mailfrom=yeah.net; dkim=pass (1024-bit key) header.d=yeah.net header.i=@yeah.net header.b=i71bd1oB; arc=none smtp.client-ip=123.58.177.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yeah.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yeah.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yeah.net; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version: Content-Type; bh=v7Irp6bBJXCNebn36Vh9yPqqXllV/JsIy2dz+cR9M1U=; b=i71bd1oBVnbF2weU2rijlRWhD80QnleM+MIkGvEuKtUZ0fiSSP1mr6DnM7Jruk 5ZVPZVq9CmyjchKiLVd3k4jlC/UBPbafA1tdsuqOu2pbx/iZbbgGtcLSxuyfSPOl XahU3ZEsKYmpjll6AxDnGAPOgRzkRPNwLUA5Y5Yqi8y2s= Received: from dragon (unknown [223.68.79.243]) by smtp2 (Coremail) with SMTP id C1UQrABHrxi1ygtm5xGoAg--.42276S3; Tue, 02 Apr 2024 17:07:02 +0800 (CST) Date: Tue, 2 Apr 2024 17:07:01 +0800 From: Shawn Guo To: Xu Yang Cc: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, conor+dt@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, peter.chen@kernel.org, jun.li@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v10 09/11] arm64: dts: imx93-11x11-evk: enable usb and typec nodes Message-ID: References: <20240321081439.541799-1-xu.yang_2@nxp.com> <20240321081439.541799-9-xu.yang_2@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240321081439.541799-9-xu.yang_2@nxp.com> X-CM-TRANSID:C1UQrABHrxi1ygtm5xGoAg--.42276S3 X-Coremail-Antispam: 1Uf129KBjvJXoWxCr17Jw4kuF4DGF1ktrW7XFb_yoWrAF4DpF ZxC395Xr4xXr13Aa98JF17GF93C3ZYgFy09rnFg343A39ruwsxJr45Kr1Ygr1qkFsrXw4a qFWv9rWIgwnFgw7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jqlksUUUUU= X-CM-SenderInfo: pvkd40hjxrjqh1hdxhhqhw/1tbiDha0ZVszYdVKJwAAs4 On Thu, Mar 21, 2024 at 04:14:37PM +0800, Xu Yang wrote: > There are 2 Type-C ports and 2 USB controllers on i.MX93. Enable them. > > Signed-off-by: Xu Yang > > --- > Changes in v2: > - remove status property in ptn5110 nodes > - fix dt-schema warnings > Changes in v3: > - no changes > Changes in v4: > - no changes > Changes in v5: > - no changes > Changes in v6: > - no changes > Changes in v7: > - no changes > Changes in v8: > - no changes > Changes in v9: > - use compatible "nxp,ptn5110", "tcpci" > Changes in v10: > - no changes > --- > .../boot/dts/freescale/imx93-11x11-evk.dts | 118 ++++++++++++++++++ > 1 file changed, 118 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts > index 9921ea13ab48..ecc01d872e95 100644 > --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts > @@ -5,6 +5,7 @@ > > /dts-v1/; > > +#include > #include "imx93.dtsi" > > / { > @@ -104,6 +105,80 @@ &mu2 { > status = "okay"; > }; > > +&lpi2c3 { > + #address-cells = <1>; > + #size-cells = <0>; > + clock-frequency = <400000>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&pinctrl_lpi2c3>; > + pinctrl-1 = <&pinctrl_lpi2c3>; Do you really need "sleep" pinctrl state? > + status = "okay"; > + > + ptn5110: tcpc@50 { > + compatible = "nxp,ptn5110", "tcpci"; > + reg = <0x50>; > + interrupt-parent = <&gpio3>; > + interrupts = <27 IRQ_TYPE_LEVEL_LOW>; > + > + typec1_con: connector { > + compatible = "usb-c-connector"; > + label = "USB-C"; > + power-role = "dual"; > + data-role = "dual"; > + try-power-role = "sink"; > + source-pdos = ; > + sink-pdos = + PDO_VAR(5000, 20000, 3000)>; > + op-sink-microwatt = <15000000>; > + self-powered; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; Have a newline between properties and child node. Shawn > + typec1_dr_sw: endpoint { > + remote-endpoint = <&usb1_drd_sw>; > + }; > + }; > + }; > + }; > + }; > + > + ptn5110_2: tcpc@51 { > + compatible = "nxp,ptn5110", "tcpci"; > + reg = <0x51>; > + interrupt-parent = <&gpio3>; > + interrupts = <27 IRQ_TYPE_LEVEL_LOW>; > + > + typec2_con: connector { > + compatible = "usb-c-connector"; > + label = "USB-C"; > + power-role = "dual"; > + data-role = "dual"; > + try-power-role = "sink"; > + source-pdos = ; > + sink-pdos = + PDO_VAR(5000, 20000, 3000)>; > + op-sink-microwatt = <15000000>; > + self-powered; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + typec2_dr_sw: endpoint { > + remote-endpoint = <&usb2_drd_sw>; > + }; > + }; > + }; > + }; > + }; > +}; > + > &eqos { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_eqos>; > @@ -156,6 +231,42 @@ &lpuart5 { > status = "okay"; > }; > > +&usbotg1 { > + dr_mode = "otg"; > + hnp-disable; > + srp-disable; > + adp-disable; > + usb-role-switch; > + disable-over-current; > + samsung,picophy-pre-emp-curr-control = <3>; > + samsung,picophy-dc-vol-level-adjust = <7>; > + status = "okay"; > + > + port { > + usb1_drd_sw: endpoint { > + remote-endpoint = <&typec1_dr_sw>; > + }; > + }; > +}; > + > +&usbotg2 { > + dr_mode = "otg"; > + hnp-disable; > + srp-disable; > + adp-disable; > + usb-role-switch; > + disable-over-current; > + samsung,picophy-pre-emp-curr-control = <3>; > + samsung,picophy-dc-vol-level-adjust = <7>; > + status = "okay"; > + > + port { > + usb2_drd_sw: endpoint { > + remote-endpoint = <&typec2_dr_sw>; > + }; > + }; > +}; > + > &usdhc1 { > pinctrl-names = "default", "state_100mhz", "state_200mhz"; > pinctrl-0 = <&pinctrl_usdhc1>; > @@ -222,6 +333,13 @@ MX93_PAD_ENET2_TX_CTL__ENET1_RGMII_TX_CTL 0x57e > >; > }; > > + pinctrl_lpi2c3: lpi2c3grp { > + fsl,pins = < > + MX93_PAD_GPIO_IO28__LPI2C3_SDA 0x40000b9e > + MX93_PAD_GPIO_IO29__LPI2C3_SCL 0x40000b9e > + >; > + }; > + > pinctrl_uart1: uart1grp { > fsl,pins = < > MX93_PAD_UART1_RXD__LPUART1_RX 0x31e > -- > 2.34.1 >