Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6242324rwi; Sun, 23 Oct 2022 21:17:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6fziDCU7192naUL1hHvNo+iXebIg27FxvItHOozrT1CppksjwqHVtPab7Lo25xLexFJzkz X-Received: by 2002:a63:1d5a:0:b0:46e:d157:39ef with SMTP id d26-20020a631d5a000000b0046ed15739efmr10353766pgm.231.1666585060037; Sun, 23 Oct 2022 21:17:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666585060; cv=pass; d=google.com; s=arc-20160816; b=E1QRY0IvT4WFQdElZuAacspNLlcfj1QhH7f/zRa8cP5S1ATJkOMdnFUFwiJNTKbQYS 5AYvPyMmAqdFhsiCbFmUNCdRssbI36lyb4IUPxFpE7aSJZ5bGKaJwU606EMJEprGPznQ m6i9LuiPdkwwosSxsrPrL21CuZHNaRMHz8Ji05Iaii0c+imqILRyYPoQPQz9QaROI+e9 ZiefmIJMeA/CtUMdji3ZdWr4Aj79nBGq8WZ4fHax+ynkRSw0AOzBVKfMWNyOQ2Ovd7UG Ew/PxDrK0DmZZG+EG9PzshSQbqdYOT7Khx7nQxpaUaCL4Hjbvy6GtFI8vZ2XOBRmyLzk Vd3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AIE8t1AQh/TYo6wZj/b7tgEOcuRmTY1MDCdfZExBjFQ=; b=jtypC9dZr39ajEUUi/ubamEpTSN3u4byzQNWK86AoplPYYtMD0yhArFBkAHUM6yyRD obv74nrUWoYm3S90R86D4dcJg7yEXaiGIxegmqU2TzwJS09z76/2O8bOPK+MqdbKZBWc iKc540etTm1XP8JVTwrQh1ukpWBPOYskIbfxRbB4NkeR05rCs7ufA/973pSSM6UlksTK FWNELUE9ZuC+3half9GDyVrwGmdE9KnCvyz6wSOPq7zDJNLDW9+JXCCR0Pk3ktw4QWQM bEyKhxhcAULJDqJYMURkdLycmz0i8NZ5yQ4uoh9kFV0xLWoZ34ZUYFpewFp6cusUoNsP rwjw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=iXgVbVR+; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r28-20020a63a55c000000b0043934d930e4si34467566pgu.297.2022.10.23.21.17.28; Sun, 23 Oct 2022 21:17:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=iXgVbVR+; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbiJXDNB (ORCPT + 99 others); Sun, 23 Oct 2022 23:13:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbiJXDMt (ORCPT ); Sun, 23 Oct 2022 23:12:49 -0400 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2052.outbound.protection.outlook.com [40.107.103.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 919A07548E; Sun, 23 Oct 2022 20:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LsScf00KdoWPxoEgVTFlgxog8MXkUFG3v/T7jugvHzFapg0XKvdboy4/Mts7bIoFQgjQg8GPI6CQj8DnbEoL3RoTbP9grMsNmGOs0JwzTXuyRbcR0ELtH09/glo2j+EA4aokR2mlaM32HyeFasJ4Sc11SZRLNy1NfxgFiFHSEoiI+Sr3t2BwquCJVlWPZr4zOkM0Lh1Ur1oRmqp+tFwzJsvlRAd4tmDTfL1+gonEYWJLRWAIY00oCQ4AWmulzi/sSFcHeNvaTABBuukaV5m6XvOxQKqh14vyXD1cjYBGnG744LszF/8nx0iAhwrVou8P9jpGfVfosHky/a0TkDBa/A== 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=AIE8t1AQh/TYo6wZj/b7tgEOcuRmTY1MDCdfZExBjFQ=; b=iMsg6YONZaAEMk6UcbyNLOfOBqFEtbnAqlOTN7kkDSkAfJQDISyqp0aojl0M7L7/MYGBR659qWyzvShmgizDITLhli8okX6OtKNhN5+U0HPYKEYnkwXDuXDfG3hSt6Ih/SA9wFClwiiRNW1p8ShiypnJy2ADcpb+EhMT2TCg7Mx3xpww2giwk2r4ntLT/rRZ9HIA6RzLgmAN4H4H5whdqayyNkifl5TtXoOL6PKeeVtmurrrr2k/czD1JbXY4HCkNdvyzH5Vkwy9XgGeralMpQ32gUlwjUwKM67wdWhKKBFZaq9b3K05x74tzej4fya66UuwvClS6m4OLukhSghj/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AIE8t1AQh/TYo6wZj/b7tgEOcuRmTY1MDCdfZExBjFQ=; b=iXgVbVR+1xfm0i9oGkEWBYinh/6rYcXYmx77ySkQCNcUvOj8sRYA11gjsLqfChe99zrSZFKjzb6m2vGeApc7D/2fRXKei79uKYq+iM9uu1Fx1Y0+agpYZ2VqF1U1stVchbLnJO3n0KuGoFEuk7CclZiUPv8Re+35F97hjdvuu/w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PA4PR04MB9416.eurprd04.prod.outlook.com (2603:10a6:102:2ab::21) by AM9PR04MB8340.eurprd04.prod.outlook.com (2603:10a6:20b:3e0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Mon, 24 Oct 2022 03:12:36 +0000 Received: from PA4PR04MB9416.eurprd04.prod.outlook.com ([fe80::9344:660:a20d:8a85]) by PA4PR04MB9416.eurprd04.prod.outlook.com ([fe80::9344:660:a20d:8a85%7]) with mapi id 15.20.5746.021; Mon, 24 Oct 2022 03:12:36 +0000 From: "Peng Fan (OSS)" To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Clark Wang , Fugang Duan , Peng Fan Subject: [PATCH V2 04/15] ARM64: dts: imx8mp-evk: add pwm support Date: Mon, 24 Oct 2022 11:13:40 +0800 Message-Id: <20221024031351.4135651-5-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221024031351.4135651-1-peng.fan@oss.nxp.com> References: <20221024031351.4135651-1-peng.fan@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0042.apcprd02.prod.outlook.com (2603:1096:3:18::30) To PA4PR04MB9416.eurprd04.prod.outlook.com (2603:10a6:102:2ab::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9416:EE_|AM9PR04MB8340:EE_ X-MS-Office365-Filtering-Correlation-Id: 1ee1d40d-fd8f-4c03-436b-08dab56d998c X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: htsYLgJgs2hxqHuM4VvxEVNdXrbuVZ/5/nP6wSUT/fNcmnou1+X6JUegNzuNgsKuEYUzPrhvo/fVwy0/jV6Ry+OJorDfBcj3yEYYThkJPPcwqEQe8W4beQ5I/V5SNInM0LbxOKMKeun9MqlZ/3Q9bSxJaSdF8Pmn9El5PV21oW19rBjhM1pw28gtZo8B3rIYINnBc0OOLa9bUYaHfsRTTE1X6TsKWoLJWWvAJ0ciOxmhfzCpU1YqBfMLbitU9k9MHmXhHntaoSZE0rer8P426IPwUGZVCiQP5C5xxSFZo7W12gTpeamEFhr3Z2uRmIxfv/AP4P5ZRPW3lYe1ZjZZnMKPB46CLdTKF3hgA8/Fd+5Luh3HPLVILmJ7/FwGHT/iq/eKzTNhtjbiqCOZvtZDj58jx1CWTZ1FYhbuUDCtKkxhhPudaHoEiWyHkl+5qZ60h7Ayv1FrsqAH3FURQr7egXOydYD20Pq9R0vmLeRj6Wn6yTL3hGFgIKidWRYheOJyCXYG7XKXhvZIejF4ImHe0H/rDF9/EMBjFEQgCvgeRi6hxuPULBsX1N0fTRyoMRr52Kj6gh3boWc98YxichalgQtiBx7eMMtnzCPD/6V4p57DVcYB29t9aWuG0pJ7vfRUKKsd+1y8BZUTlYeqng6DiDOzF0WjUY4GFY3Oyn2YeUfHz7GBhFgWqdkVt431LDkdPNDYkupbTywENlDCnJRysMQxCGNp6mlxPVofAkL56zuS0DYX3ZOWCDmU3kn5/tE+NSonHe7W2BMyLcjk1M66CFXIKxkpUAD4KytmN7Hirah5PsESkxGWis5cUx1f6R3DkxXvKWzkObWaB/nbkeXgTJzzaEr5QAosaAYi0spwCFM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9416.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(136003)(346002)(366004)(39860400002)(396003)(451199015)(2906002)(41300700001)(52116002)(86362001)(54906003)(66476007)(66556008)(66946007)(316002)(4326008)(8676002)(8936002)(5660300002)(1076003)(186003)(2616005)(6512007)(26005)(6486002)(478600001)(6506007)(38100700002)(38350700002)(6666004)(32563001)(473944003)(414714003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?NhsqerEpskhsrrP2wjWQDd3RQseH22QLw/Gt39Nbz4WghHr6vy1G15eiFWby?= =?us-ascii?Q?EKj7Q9iWv+NNqG1QmsIAsqQPz8g8bS/HKK08TZtkuuXyBrxY/0yLd7i1E+1l?= =?us-ascii?Q?9uYMIWKY6wXUI3/3o5PHsC8yFPWfIjpv8/6QdIzwdAgBqt+YyuP1hm+VqJGk?= =?us-ascii?Q?W5AdDtJXQnIlU1+c2JaPILwPumca3TbnmyVfGBMVrb3AWpJ/e3QfATYxKbVm?= =?us-ascii?Q?tG7DNdVpo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?= =?us-ascii?Q?sjSKcqEYMuIlBEIJHNUIYnZz3ZejuFWmRCnePVmP+k5fuYmIJvIhDSIv1ZxN?= =?us-ascii?Q?VQ9lbWHy+068juCMIj2JgcP+nG/dEZs5Qnn5NtuyYzYbeRaDa1gHnheYJays?= =?us-ascii?Q?2XwX/pLStVhjinGvBAp5gENxOUi6It6/rNkuLVwOPJVyXLkNYMTQKo9mrqZc?= =?us-ascii?Q?bMc/SgVvF5qe9pVUx2f53EvSvrtLy+6QeW7aQbFDY2SGKn9dMevb8qpn9ONU?= =?us-ascii?Q?5EG2BBxylYjZE7bt55nfnzTPjtpdQFWTVrvXDq4u0jFj+IOWVOiQgWx8Kdey?= =?us-ascii?Q?K1MbD+JZ65GJBJPffB2TEf37+CT4OThFDNA2V0moFfZKMszONivxHqoajhb9?= =?us-ascii?Q?HmzHLpk+Bg1oXmsCUCugqJboF2pML0vLGunwrp7s/oZ/YXWdt+cNoHfyvIWm?= =?us-ascii?Q?6MQwwT2FI5z9hd84p/9CSnbO5sUv8rQRX7yuh/85?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ee1d40d-fd8f-4c03-436b-08dab56d998c X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9416.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2022 03:12:36.1171 (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: 9se3FG9POImjD4DDKdoMmHDOOp5TR19w7npFOM8KaRGnwPkd+1XBK68L3X+dIJaoGHWy9vScmu50zWXYbauMiA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8340 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Clark Wang Enable pwm1/2/4 support. Enable pwm1 on pin GPIO1_IO01 for DSI_BL_PWM pwm2 on pin GPIO1_IO11 for LVDS_BL_PWM pwm4 on pin SAI5_RXFS for J21-32 Acked-by: Fugang Duan Signed-off-by: Clark Wang Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 36 ++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index a4cddc5a8620..316390f917a4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -406,6 +406,24 @@ &pcie { status = "okay"; }; +&pwm1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm1>; + status = "okay"; +}; + +&pwm2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm2>; + status = "okay"; +}; + +&pwm4 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm4>; + status = "okay"; +}; + &snvs_pwrkey { status = "okay"; }; @@ -583,6 +601,24 @@ MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x146 /* Input pull-up. */ >; }; + pinctrl_pwm1: pwm1grp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO01__PWM1_OUT 0x116 + >; + }; + + pinctrl_pwm2: pwm2grp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO11__PWM2_OUT 0x116 + >; + }; + + pinctrl_pwm4: pwm4grp { + fsl,pins = < + MX8MP_IOMUXC_SAI5_RXFS__PWM4_OUT 0x116 + >; + }; + pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { fsl,pins = < MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x40 -- 2.37.1