From patchwork Wed Jan 31 11:43:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13539332 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 6E888C47DB3 for ; Wed, 31 Jan 2024 11:37:24 +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=fbZulEk+gaomYKSwRoY5R81zNTx3HHSQUQ0i8QtQ4Ko=; b=OYzv9/Suei2NXz PRlUZysuAEy6cdJBJfbzS5BpNtgjxWHSzYOCY4DI8ItQpN9d06Np+zMM992O+PdM7G1GUE9HvsYFk hFZNE/QsqTYzZhvMMWgKr6iY+ktXCCEZIqR03sdIW85anciqdhwIN/TGQM2WaYM0C9E/jpoFzOtPh UpIz6YRE4e/2xQ+ofmTQvT7M9u4RKNARjNb0uWCciE6bHubz0VItKJccmGWw82FtrjGzh51Y3jdCt 9qM4GdQ7hCW+ErC7nqcZ3eTdUFiiCER6ANmy7hrZ8qwEiHS6Eys23oZTaa+Q3f1mxjWDJHUkdaIJ/ HUB5lGU0saJByr+RuEQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV8u2-000000039ay-3Ey7; Wed, 31 Jan 2024 11:37:14 +0000 Received: from mail-he1eur04on20601.outbound.protection.outlook.com ([2a01:111:f403:260f::601] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV8tt-000000039T3-1U6W for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 11:37:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XQNEpo4aoOmgIkBl+WXYRaeaZeuIvsgzK6NrbWP/Tw+gvv0ICBgJjnCAXAu8CzLSzzdKSeBdPVCHsVXJo6klRtnlXvctLRTblo8LnfTZpko7clJzMg4kUhI1QUsLLAwHDGodHINAslObKwNMbDEPb85PJVn7C1x+iB1CgYxVo0i7LVIhK8XswQmOXs0NunQGfC5697omdQfsS5t6+d9PL3lgskQNx+COLKfZGWczT+wq2+EeXY/7U0sF/9q6JWvTllH1JlLDn5siZagnJf5xvCFNyQRP+3J8d4lr5DtNGiezPgDb/IsiuxdOFzQMyenXtrNDQKQGhRY1eF+EKHUwUQ== 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=V+YVE0y3rIeSllMgG1nDbmN/MjXDbSJd6RTrrXsNtjk=; b=la5qwpgMsF9JCbssp3MvZutMC9c6vPy4lN0o6CqDqzfWR439cyCWdKPNCnBB/HoKavqpbzUVtzHnRU/Bq2JTx0sJ2PqXsSBFK5er4PoPTJc4487XS4/BRyNXD+3a6r74ZYXOCkY7mCq7XfznA7HApM+GUB2IkmYJFjZuar3EuMzq9gW5hZa+fWi1UNskMke28Ioq5cQDTy2B8d+s3zWYuhL+h75mDDJ8fHf4MCcr+q+71osKQPFmlD+eNcMCHho74iQ43EGAWhiJjzy/BgFS/mSnrSHwFhxtjDZ7M+ZJhp1IEHcXcHjUFK4lOydAsmC8GKVEo2ykT4+8VG1tEyPDig== 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=V+YVE0y3rIeSllMgG1nDbmN/MjXDbSJd6RTrrXsNtjk=; b=JdjjU/8D4G2LXVoRNCNpShviFsUP1v/6Om8jKTRETElDMOGphmrJWWSCQC5TMMOG1mvpUHsO/Lh04NgJ3ijvwdrfmrfCqIExW2Vrx67B5uyhK3AxjMuPJq5WNtMQq3jZpFiiTC3w57Ow0h4uxIm7gkpKlPBkGBjRW9VRi3cIYrE= 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 AS8PR04MB9093.eurprd04.prod.outlook.com (2603:10a6:20b:444::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.23; Wed, 31 Jan 2024 11:37:02 +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.7228.029; Wed, 31 Jan 2024 11:37:02 +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, peter.chen@kernel.org Cc: linux-imx@nxp.com, jun.li@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 3/8] arm64: dts: imx8ulp-evk: enable usb nodes and add ptn5150 nodes Date: Wed, 31 Jan 2024 19:43:19 +0800 Message-Id: <20240131114324.3722428-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240131114324.3722428-1-xu.yang_2@nxp.com> References: <20240131114324.3722428-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR02CA0107.apcprd02.prod.outlook.com (2603:1096:4:92::23) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS8PR04MB9093:EE_ X-MS-Office365-Filtering-Correlation-Id: 36368d51-842d-49a3-2464-08dc2250f10b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dT6SggXDMu1Qm5piXKujk2Lu/qi4KrvaNJkPozXGgiQnqHTZGS1lNRrIP7d1Na31nHs+PCUh6t1TBfiykTef8zvS+ieSPUSCBgtPf0H2OZIsmGDERPcNQNtAghN9VmJ9d8ukHonfDWGJsl9g49Mjr2AW77nnM7Fe2a7VzS4wOGl3ZXr4+MfIN5FiQ6T+A7jyE+8tvJxki2QYnUunHwTAHjXIKIKcxtcq2xWGTJsVNrk4tUolD4zM8/A2B85Q4oVSqTUfsF8i/j0UQNHgoLBg0QbwLuOPtlaqVb/dJoLLdz6ZmcB7eCg9wLOshyqa2GkHsq4Phg644b2KxdT6VavbGmmAfyuXkvQI65p4gxdtwiAAdWaTn7k9noikoexh7KL+GeIPOZxqrE2uMS96Zw2NQJk9y/+igq93RMadzf8oQ1vict9s3zNVCXFW2DSr5v1ItQJ3x05UXC9wbt61BRhACs3bV4wsUczG+wRS3zWhX8vp6FX9T8CoPxtsomEqdvQ13xfjL3DhbhsraCGZo+WCdGQ1V+RWFp+PtY6k5mJ8bmcoheZPZqfl2YiKCaBzanf+K2VVVlpA7oYsa3DuGVbxd6UuoYEsWk8JcDgTGMVOy8Ss0L3B4PeegOwuuaC/Ost4Pq2EqtkK2E1IdypiMxuFV/K7oc9+L6Y5L7xHTq7Jc7H3vubGVwmEPYgFhBswBpYu 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)(136003)(346002)(376002)(396003)(39860400002)(366004)(230922051799003)(186009)(64100799003)(1800799012)(451199024)(26005)(1076003)(2616005)(41300700001)(38350700005)(316002)(66476007)(66556008)(478600001)(36756003)(6512007)(52116002)(6506007)(6666004)(83380400001)(6486002)(38100700002)(66946007)(5660300002)(8936002)(7416002)(2906002)(86362001)(8676002)(4326008)(32563001)(414714003)(473944003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jBzqpPwwRi/e84IPrAxLnz4AvBe+T1Bg4iPoJ+tjjVZk8yILF1NZkUoo9V8ee6L1WYm9E11+sIkLvyz76orBUDC2AsB54jMyfR9alAg31klUE2gt7M+RTcXcWoZQE+hV1AjKkWLwNz0oBxX1Wx/GYKeM6el8FO6HVJi3dgt8Teeylc/yGiIXEnXPpyspuo434DYp4uejG2K0quLs6iftXN3dO9d6lLiWfK72JotRvAvLQoYmjx3XgKjumtjL9EW9TyoY7z21sa/IjItcH/efLne+zcoG6XIo0sFCzeJWrQKbba95fxJxyqcBd/Macs3IAd3j6T73zFAkQ6uF0qoszrCFrJXA9D8mOAzEtPZQjLS/lLkGENZLKj09wX37fM5OEL4WGTsqKpMK3sMcUbvdYd8/bFYj8dK8Uoa/TvuycESlRPOH0/m4sv7tNSp+StxNnzFJJqIDhb7tyq/xWMRZ2VfgkMgnoX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jJ29zngsWXxFcB/lfhGehK2HS1QAEaVo/n13ebTpKoJ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 36368d51-842d-49a3-2464-08dc2250f10b X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2024 11:37:02.1791 (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: F4vNU09dXmsQaBNBYoI48B1BCm9Mm0sekHSlRWaR1sbpBu7BrYbZUYVubN45j9IhxJLVKo3MSEd2gnshNmfM9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9093 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_033705_433628_DBBB8472 X-CRM114-Status: GOOD ( 10.86 ) 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 --- 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