From patchwork Mon Dec 18 08:54:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13496400 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 5D6ECC35274 for ; Mon, 18 Dec 2023 08:49:56 +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=8/8kVLrdiiD6hgHLdfU129iW+WDkfz0+8o+X40qAP1M=; b=J8ohjJfn6WhYiD WFytmpOrlVIzXq7Kl3nmQwRZ+VjE2KbxsP/A5UySvUn8WhO/ILm2yJQMBIsUjFzfJM/WIDuL1t83o IRV/BxqbERSRjtVLCtpY0oWqT+W7/PgoU+pJPLdCa62Iijd+QyXR8a26EGBGKvYWIBa6/SJCAXDI6 6ue86hKvers5rMfUSZiZhbJhuR6ApZj6j7vr+ksxYcZw4TiijJOAXmchM2NNHE/ygWHw83HhGJXIY 0F2LS45qHZ7s2AYGJ5+zGF8Qa3CO6eAku80P5sRIVfeQ8mUOkx/iTArl4Y0SG6y/fhUo7DUsFYtWG LBDAsW/stnxcQJ7VTrQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rF9JV-009Wid-1W; Mon, 18 Dec 2023 08:49:25 +0000 Received: from mail-am7eur03on20600.outbound.protection.outlook.com ([2a01:111:f403:260e::600] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rF9JN-009WfC-2o for linux-arm-kernel@lists.infradead.org; Mon, 18 Dec 2023 08:49:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZgytHd1fnJxLNyCIcdXJr4LX0sJwcenJvk959lnfJgJVdxcsk7i3waQDkRXrDEIvzN53/LRR6xxKuRQaWNq3vKI8C1eB4KbS/3S0PROKtv52JdU/UqLRBS0606rLP3bpsEm7858HfsUSh8xQEXqZ+iSisw4r6NRd8OVbvx7bNfdrNi2ZMjotm+xzaRQ6zYTass8wLUZ2RqjPN+BjRsh+0Nd3DNEVGpM4P57EoU84Nmlry7oNzEKxPtciKBr0nD+mfNb77tK6NKZ3UmM8dQnJse1QQcE5IT1fpKVW4xI5I41Eb9I/4d12liuJwhaFyV5NA2CizFkvJkxsnTsIgRvvCQ== 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=jRrYZbH1/b1Im/s7G6R6eYdCwduO9PBuIxDPdz7B3Hc=; b=VthIwRAL6i1A3qgVwCgDpw7EeXGd8F5sdtygEHGH11ASD+VqEPFkeL6GAHwjkot7TU6R17e6tHA1Zczqaslm1mPQrtrCokNeNHJW/fFSOYtzytbZ5vyetnr7BTBqAIi/etGPyxpMjP5K+fXXNB704ymYmCQJT3tIPHgOTnPTeRnMsJ0pL6S/Y3dncidOI6wLbbnxgwetgkbc+cs7xTe65CzaNG0qAAQRRcHQTXksMXPutjn6FHmdc2rI8BkJmVSuYbOpwccCqGxOrQjWBfXP4UgZ0lEv3VMw8ulX9bbUc+czVyL9AxcQWrwYT44LbnNLo86vk2jgmGKvqHqZ4GCWCQ== 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=jRrYZbH1/b1Im/s7G6R6eYdCwduO9PBuIxDPdz7B3Hc=; b=ctqR+raa0NYo/F5H5MR+erUImzCiSi1rX9I1UbRWT6vPBV2b+cUNrDo3/Tx25KrFE5mGAD5+ypU3gjrD6MkZNQUN6oPgUBloaFlLzqKrquR1eHajDjlF+3PhH1Fw//eifDSooI2t7ATYXy2fz+StZ3Us6mYRHBrKhgvuCKZ7Lvc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) by GVXPR04MB9803.eurprd04.prod.outlook.com (2603:10a6:150:111::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.37; Mon, 18 Dec 2023 08:49:10 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30%7]) with mapi id 15.20.7091.034; Mon, 18 Dec 2023 08:49:10 +0000 From: Xu Yang To: gregkh@linuxfoundation.org, 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 Cc: linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com, linux-usb@vger.kernel.org Subject: [PATCH v2 2/5] arm64: dts: imx8ulp-evk: enable usb nodes and add ptn5150 nodes Date: Mon, 18 Dec 2023 16:54:53 +0800 Message-Id: <20231218085456.3962720-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231218085456.3962720-1-xu.yang_2@nxp.com> References: <20231218085456.3962720-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0189.apcprd01.prod.exchangelabs.com (2603:1096:4:189::15) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|GVXPR04MB9803:EE_ X-MS-Office365-Filtering-Correlation-Id: 7938dcd6-045d-40f2-6006-08dbffa633e9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O6Uvz+6YUJNNt/DGOCATZQAjuMJSmV57LNRCKwJS/46M29PS5gGE5Uoeh5zQttr+d2d9ofy9FxpsQgePcDtf0ll10BimRiewOG6yd7DOPHZTi3OymSMRxWNeSnICBGrdVYwJdP3bZCnzrFhR3tXmvwM3jWwAIOJ6v9oFNTaRtv9RMA+h7YYkgrS6BxcHOFy6SRG+DMm9Ov8BIcU/3fdsZqWhLQcVVAevx7s9bUQesPgiZSIegc3gR1nbxYIEZTRDoM1Ba1GYRL2iWvaVdVP+3P0bC5NGBO8zDDPM38r+0fswMbQk072KBcqL7Col6C2LO6OUV7iOVEZ7FHiJx5nISCAWG45GbVJJOjcCLaSjDLbEcz+zqgEENOVu3oaGUGb8ISuwQ6Ly0it3BdV4imJbmHxpsUDyBgYqQQ/b5pBSlosBFw3jMBjUEA52Wzs+pF2y+3qd8okEXG+NNV0Yu+lcKXTwmqRiIDj780p8OpEkSX3wSX92KvfkK1whrVmF80wbJfhzElhPXFYaQ97o/gd3lBhkvCatKg4TwHNeLFK5ges9E1ka/Usetxu7Tpqz3lNts7iz0NWjEK2chtufy0FTrsDlEbvpS90WioqcHD1xLQsEM8dQXFfSOg1irHUXf7PAbPvr5zeRG1oR/i60W5bF9Dg/GxyTu25yIk6QWttp1M6XWmQ70X1pQR++VIJeyncI45WQe0NULR6fVVnIK8PX+Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB5146.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39860400002)(346002)(366004)(136003)(396003)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(6486002)(6666004)(8936002)(8676002)(4326008)(1076003)(26005)(2616005)(478600001)(86362001)(83380400001)(6512007)(52116002)(66476007)(316002)(66556008)(66946007)(5660300002)(6506007)(38100700002)(7416002)(36756003)(38350700005)(41300700001)(2906002)(32563001)(414714003)(473944003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eBuzrFhnLl+0QnQZPEq8Ic/IYXyAsNC8QuaG3uZwUfbuy7/efN+sk8SbYjI/2Y+dxjeuX7CNKXlb1FKuv6FkvHX1Q58lR2grcUJhwM1OskHT4qe6FNBbBeyUEHSGh1e09H5VX5JILnLtnQffvAGYNXEmS0aLgpZ4Qa7c4EXxud0q9vBMGQNcZ7uvWiVl+en8//8vjeUbzcbg6deXq8EYhGnTFlg0AXhjMnR0Avupb3WoxOIVdZEt4OGzSf8NW1hVswNR02/fXWS2rBdyzJ+4IuuoDG3+9M6yVZ7WAwHR3veaaBwP7rmlonl0dWyykM+b7SEP59KJ1BwXqDYcwuJvtogd4M6ipGs3DdXE2hII+sWOl7YFgbD2NpSx3EVFcMEz1JMWYzFK4YPF2RQ56wEzveePWSOUNIxCoYhz6bNHAoh/neKb4ptut2B4bXd8aogPf0/+0tsgftFXaF72WXFuEt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fkqOEsgjzMFKUMaktSEYxp/n3Ui/1JAZBfgD/keZvJG20Z1RXj X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7938dcd6-045d-40f2-6006-08dbffa633e9 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 08:49:10.5840 (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: 87rOOjaA3rczNrmH6KPbo2Cj4PmBV9j2JQqG4czMo81qy1c4FmhK+vqOTKG3QU7SNEulRGWb3mSULaobgDiVFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9803 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_004917_910292_3534CC3F X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. 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 --- 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