From patchwork Thu Mar 21 08:14:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13598479 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 8294BC54E68 for ; Thu, 21 Mar 2024 08:15: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=9YsLrRBb0XBTxpj4X1mWsiOmO+SMsp8nwYjuqCVQyGE=; b=pPC7wekpnpDiPl ntJ1cWZeq83Mvk9XkANBtEvTXJPlW2mM1MtDqG7bpioXYv29Ww3Ze/T7JbMiIxb+xW0HpyB8pGyHH ZpnQIDv+OaPqYedMNEFrpJ1tsd7ZBAlI6yz+OI1K8IvRCxLvMEJVWA1IuGReZmU4n2x59++VHzkhK p6h+qfYKcTXpA1UC3P+6mvrPuCbDXR41If/7als0vRfgQAd103OxYjjm1rqFEYi2tZ902Ndy6KwZX jzvLaNtw3kCD5OkrwORUGPVMmT157iDWe7YzSCVUntza8+lBlt0RR+KpzRnWpYf16LifrdE3+4CYp 1sgoSfP4CojSG0GxNTLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnDZX-00000002Gez-1Bn9; Thu, 21 Mar 2024 08:14:47 +0000 Received: from mail-vi1eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2613::600] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnDZP-00000002GVu-3wex for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2024 08:14:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c8fVORMwCkUH00uJfNbQJ7iHLkl2DZ4Iy4ApzI4oqfilK5vK4CF29DhEZ2OwsWo6xWZ4lnvbXt0YdqLqhTEvwrK2j0VPXyM0xhO69NWNws8s+Yn4GXyBiIF9P9SS44NbZQbG6Uhzq/Fx8TS37m4stGagXCod5JqV7+3t2QOPtuTu/y5uINEulpySUeTtItPu/lxlCza7m+WZuSj6hZ05c4sc8pcheRuJuEwTAFywNa28Bee1iJB14lgJWc3mmEAav4MpoXNMZFTOKbcQ9yAjAjBVPJuo0UHnLCDhfJ9Wg9i8W7Szfxr1W/8Rjx2uK0IBniQ2lCp/uBPdm+6tQ9H6MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=INvSDznwF/5DPIzfj6/4g0ohrALxDNaVURXKeAXtrC8=; b=is1+ok5E75L0Xpf59Bd7f2vXy7rt1nSNPfV08fOZJZoYYU7W5gXxonQmX4PkrBArVOLOYvoGc2/kiJWxj8geZmIwLbCDEhNStglmDOuGiQ/yKlHQmVVdFsit8wRJtmUxyz5v0dIs/CP3ZreOt7X+xsb6CeuuKKhUkPLJ4PXuT5ZYVO1Yz6lpmdLQ0XHv7+kRppyvrJR6FdYB0wE8MFmy4Mno47oECIq7p/gRqvhBi9Z8AglV3HmekzvazcxhLvgZu6j9kY8PUUdHtay4qhp0vkfw8BhBy79LiqkMJWNv0Khvfm7ca/vCCL9jW4SatYdt5NFphbjgOjY429REuD+RGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=INvSDznwF/5DPIzfj6/4g0ohrALxDNaVURXKeAXtrC8=; b=SlwWUv/abrIsuVqZtvN3EEi6ukjQpqU6E/zo03M20/VNODBsHxPemyc7pDgEKAFVALo7M4fZA0oI7vXJJOvsq75XVTXPFPZZ+9cff+PR1gAlM1gs2iJ6CxBzc/yySM9VrEizMNJg6uMvfz8++tQrUq49hdwwy7kZBIqrn+pzfes= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by AS8PR04MB9191.eurprd04.prod.outlook.com (2603:10a6:20b:44e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.30; Thu, 21 Mar 2024 08:14:35 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::d45f:4483:c11:68b0]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::d45f:4483:c11:68b0%7]) with mapi id 15.20.7386.023; Thu, 21 Mar 2024 08:14:35 +0000 From: Xu Yang To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, conor+dt@kernel.org Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, peter.chen@kernel.org, xu.yang_2@nxp.com, 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: [PATCH v10 03/11] arm64: dts: imx8ulp-evk: enable usb nodes and add ptn5150 nodes Date: Thu, 21 Mar 2024 16:14:31 +0800 Message-Id: <20240321081439.541799-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240321081439.541799-1-xu.yang_2@nxp.com> References: <20240321081439.541799-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR02CA0022.apcprd02.prod.outlook.com (2603:1096:3:17::34) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS8PR04MB9191:EE_ X-MS-Office365-Filtering-Correlation-Id: 4d726d0b-b036-43d2-0717-08dc497ef1a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YQv3f4mIhBwPFwZYSil+g7McDcnHpnBGbKDAc03Rr5sNlcxbp7cNBfxz3eUb6EuVu7GDRoAezsc6NSWnRJWOVMBW1VOO076yr1cS3YMxHJwXdIR4zGPDctU1YZClneFH660EUEuMa/x5MnEzUGAdrSohJqOc/rJWlBO9XXAO8pNDjFvB0j1x4UrrgB/o1yATq7xrdc2JtC3lrF5/wJjLFl7CZw9CqQACU21Ug9HrbDWJZRfyLDC38NmJe+vpcLKYQvCem3iV/G8Rnj19q4HZjs1wDbBTsinorFMXw5Ng2bUzbJSNKC0POUFCAlEjWCW+yHPNNuzmpJqgJiY0kNrduGXx5PAJ0KNh31uTY36ePUNykQVx3yefcXaqZo41Fcfdya1RszEEzF5NPTS683Ru533MG8WNfLNIMzh/3xAM1VgThyiqLshh6WjhH2/nVZCkBZPdUKmdw3EhVmdi6uNjJD+2TeCFAKB4hJAuqTENFNO5/US3mD7cLHRb/oMY2pM4zsLhei0c26sQExXNbmELwMPu7TFrtXBZXHG10Kc9sDsrsz7+FrJFeJwW1x0NaQ65NFX9eTM8f9U1jCGY7q83UXRMpcRiBY1kl0p/JrSRt15POBN2DiOR8yyeXT/5Iivle1Mbk5Sctu1Uo5nDjY8kcLoufdbOUH7A+z369Xplk+ceRxIz86cuQoINICgkuTAlvB5sD8BXhBSmWtwlqY4hyw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(52116005)(376005)(7416005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rzlJnLBaHjN664fqX/0AEOozu+hTaGVdUsYKTEYrF3E8zLDciHN9fqFiZ5hcnXZvodNYzkM6zdqpHSX9i+4pPkm3QtsRbvYsYZUfyg7wohPQQdmGfPwwSlR2IY91ZA2BIOUcPNqcuKfVSGRl61pRu8r2mjzyu+2THcDmtEVChAxoNHwlzP9pV2aBcDNQcAS2If/sbz7RM2OXtiYYRPNhGvOmwuFxBNW5lQo+k/5/0wFDMNIJH8rl33t3OgwXT/1S2PzvzWN1OFpdTptBMJ7kVHcG7Pe1muCW+5KvoIoUGQ3jGrib9wC/kl/v+kfiOU4hZOXAWrt24yuhZYHjTMujLK8PIyLR7cNGS4z7SchKsIH//0TpN3nVR4IiEpsqOlPnF38A5ceexejVrhddNt9AdkRjsboTU9ryNXiRBc7TMcg615sQL2BcSiJ1/Fv+A+SMqLmz7lp+HB65JBITN57w1dcyXa3E8VH9U5j4JBxjm4F1vczNxBau0lgnneCXWSdOkJFd/UbrIG6HJc78y+CLxiOSKQDsJuSC2r/N4OTDKpm4gyVt/VudGG3wtKmV3phfe8OIA1dWpz36lZPDvpY2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717-08dc497ef1a5 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 08:14:35.1615 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: v02exq2GOXd/tE5uvWG96KijG+XrEI+xYqM0AGBBAsrRjWMD2kRyArdVe8V4Mjhs4d2wyN0JJtLb3tKTNcIZKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9191 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240321_011440_075145_2C5A665C X-CRM114-Status: GOOD ( 10.81 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable 2 USB nodes and add 2 PTN5150 nodes on i.MX8ULP evk board. Signed-off-by: Xu Yang --- Changes in v2: - fix format as suggusted by Fabio - add PTN5150 nodes 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: - no changes Changes in v10: - no changes --- arch/arm64/boot/dts/freescale/imx8ulp-evk.dts | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts b/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts index 69dd8e31027c..bf418af31039 100644 --- a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts @@ -133,6 +133,64 @@ pcal6408: gpio@21 { gpio-controller; #gpio-cells = <2>; }; + + ptn5150_1: typec@1d { + compatible = "nxp,ptn5150"; + reg = <0x1d>; + int-gpios = <&gpiof 3 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec1>; + status = "disabled"; + }; + + ptn5150_2: typec@3d { + compatible = "nxp,ptn5150"; + reg = <0x3d>; + int-gpios = <&gpiof 5 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec2>; + status = "disabled"; + }; +}; + +&usbotg1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb1>; + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; + over-current-active-low; + status = "okay"; +}; + +&usbphy1 { + fsl,tx-d-cal = <110>; + status = "okay"; +}; + +&usbmisc1 { + status = "okay"; +}; + +&usbotg2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb2>; + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; + over-current-active-low; + status = "okay"; +}; + +&usbphy2 { + fsl,tx-d-cal = <110>; + status = "okay"; +}; + +&usbmisc2 { + status = "okay"; }; &usdhc0 { @@ -224,6 +282,32 @@ MX8ULP_PAD_PTE13__LPI2C7_SDA 0x20 >; }; + pinctrl_typec1: typec1grp { + fsl,pins = < + MX8ULP_PAD_PTF3__PTF3 0x3 + >; + }; + + pinctrl_typec2: typec2grp { + fsl,pins = < + MX8ULP_PAD_PTF5__PTF5 0x3 + >; + }; + + pinctrl_usb1: usb1grp { + fsl,pins = < + MX8ULP_PAD_PTF2__USB0_ID 0x10003 + MX8ULP_PAD_PTF4__USB0_OC 0x10003 + >; + }; + + pinctrl_usb2: usb2grp { + fsl,pins = < + MX8ULP_PAD_PTD23__USB1_ID 0x10003 + MX8ULP_PAD_PTF6__USB1_OC 0x10003 + >; + }; + pinctrl_usdhc0: usdhc0grp { fsl,pins = < MX8ULP_PAD_PTD1__SDHC0_CMD 0x3