From patchwork Mon Jul 15 20:29:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 1960834 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=rM3CqCwm; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=147.75.48.161; helo=sy.mirrors.kernel.org; envelope-from=linux-pwm+bounces-2818-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [147.75.48.161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WNDPV4WZzz1xqc for ; Tue, 16 Jul 2024 06:31:26 +1000 (AEST) 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EB7BFB22858 for ; Mon, 15 Jul 2024 20:31:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D539861FDA; Mon, 15 Jul 2024 20:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="rM3CqCwm" X-Original-To: linux-pwm@vger.kernel.org Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011000.outbound.protection.outlook.com [52.101.70.0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 926C614006; Mon, 15 Jul 2024 20:30:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.0 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721075418; cv=fail; b=u4DZ8fwwsr/kYPHkQFYAt2srb6gwxbpsSSQEJYAM12bYGdI71xX75U4QgNpU4jzsFhC7CxPrw0I+B3Y9FGiZ2c4UIfSQrVG3/O8Sne2QMRECSmFfEiS3YQ5JL9k6DS/26TYt6ZVPXydrfkL5G9vjPV6fZwPZiyQiAB+70Wh/7L4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721075418; c=relaxed/simple; bh=EYq4UmROgcf2kp996A2qObnm2JDQgEcIztlzSGwqmwU=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=phSN+ZT0vZarobjIQUxheJ2B1qyYbr3/H9bPPhjqCI2yenk4ldf7WnOxuzSk0DOEMA4yPUrYfJiDnb71SMfqvgkEJYy1Pqnqz28gRRT/U2j/DmNwq5B5b6v0TcEg8O7hYgJw3ObhouFohdzyXV3qhQJkU6uvKC91ds9tatB5pQg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=rM3CqCwm; arc=fail smtp.client-ip=52.101.70.0 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uLu8dEJ3+ib2fEV8humRhUTC8LtAeP+L6HOC/Pb5EI7ONsVQAcKQXYUdkAVpang7/JsB+Pdei+wmNdBQPQRlfzs2IoVwwFkd2PlTYvBB3Qor00SpQEqTe8+d0lKLbFoBdJUd9jr51sbuD+q1JuY5lD/Kb+fzfPuws/ABuKHVUT+SU3D/czIuDYGqxXJLkGb3LS/M1Z/ongyQUqB+/dr0kWvgk2X2HJgoIY7C5Y4N1NUQLnD4xad5Q2Mwduy343Jjt/KNku1fPh1vipbvwHIj2RR8YcYLhsH4zBgLZhoB/fF7Z/dQhRpw7G6mZj92im89P6VcPzJUK0dOsXMpah+/Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Y3LXMhAxy1uaCy/H3lKnkrVBBgWQ5UWrtuj07D+pooI=; b=bKVvNFoM6vKIVAnI3M8/Eq/xwSOHx9H4JM4GwNzn3t0ZA8ylOb5mbTCVXibS6GDjJ2deCnDTqHUj0TBIWfItNsb+0ojl7ngu6i6R5sVwX6uePKLvNS7FVALOD6OmiqV8O/fCf94MkA/gRqYyatpzP4qoivsIip6EFModaB+zZqDY445UREOg4w1NnRmZ0BZC2GebyMG7nlEEFx1N44+lk7JWEOGTrr+XO1sBMaYcgIrx1hG8EwsmCjXsJSxHmh3c03cp539UdC5yEHov/orXImcwBbTibN+OGBEFQsMgarVd9Foftybml89hkQynh07VmnFel1ZP+Dh9ygpP4vvW7w== 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=Y3LXMhAxy1uaCy/H3lKnkrVBBgWQ5UWrtuj07D+pooI=; b=rM3CqCwm7qOwhbm9XEEZWUQDkePF9pyGfkMvKzVAXpttXTFKphr18iJp8XHPsexwebNiyreRHyt9KTIuC5Cxm+qYb7nzvCid+xXLCO1e/5Kk1X1nM3mt9f2LwkJhepQsJMOCiYpfrkMXIxtE5xozpc5ArruoZjjiblvPFKolTaA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA4PR04MB8031.eurprd04.prod.outlook.com (2603:10a6:102:bb::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29; Mon, 15 Jul 2024 20:30:11 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.7762.027; Mon, 15 Jul 2024 20:30:11 +0000 From: Frank Li Subject: [PATCH v2 0/3] pwm: imx: add 32k clock for 8qm/qxp and workaround a chip issue Date: Mon, 15 Jul 2024 16:29:49 -0400 Message-Id: <20240715-pwm-v2-0-ff3eece83cbb@nxp.com> X-B4-Tracking: v=1; b=H4sIAL2GlWYC/y2MwQ7CIBAFf6XZsxjAlhZP/ofpQejW7qGUgMGah n8Xicd5eTMHRAyEEa7NAQETRdpcAXlqwC4P90RGU2GQXLa85wPz75V1Wl9QcWm1kVCePuBMe63 cx8ILxdcWPjWaxG/9+0JUPwnGWTt1vVKz1mYwN7f7s91WGHPOX0dbRSGUAAAA To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Philipp Zabel Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, pratikmanvar09@gmail.com, francesco@dolcini.it, Frank Li , Liu Ying , Clark Wang , Jun Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1721075406; l=770; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=EYq4UmROgcf2kp996A2qObnm2JDQgEcIztlzSGwqmwU=; b=OMj1GRCuwOY6n/cmk+3899zZAd2caZQJxy5AUwO84sQHAIxqXqdFNtacv3n21kzE8le0lk2k1 OQFLhypPsukDYtaLW5h4kwvxlMHQ01+0S3SW/B/MuGWttC3ilMUlORK X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR03CA0166.namprd03.prod.outlook.com (2603:10b6:a03:338::21) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-pwm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA4PR04MB8031:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f2df061-9d4b-4c93-0059-08dca50ced1e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?htfahLcz6q5vOUScKc+U8uF6rSg2XfO?= =?utf-8?q?ZbW6HaSo3binYV4yEoBEcSuroNT5/J1aGJI/4JsAcokVs5W3rvcRiDDrK8g6+q7dW?= =?utf-8?q?tjojBGHEb4uxelZUuuAT7zOooQQlJKwnmunwMoYvW6LwGEQnu9BVLoAC/LIYDGuUg?= =?utf-8?q?LOnJuXieja2CZ/x/CtpqTvwFYRZGchN5PA4+oi9O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zjVI?= =?utf-8?q?0r3R0hNOOqzpFz4FBCzPeydLbqe6pMXVfH/8jSzS3EPJuHsKLxc/gsFfgdjSQ6h7c?= =?utf-8?q?RW57eyN+ybhbjNuGs0fj4blnj/OsnV3FZSWvuC8/Jz2xIPuOvRAygReFWOcWiIp0i?= =?utf-8?q?7ImVm7co1LuU16QDt5xJnjUXS1SYwJTtKIb0YQzVcWHBi3c9bNEtLNLbf8quGstjz?= =?utf-8?q?tUfInDUtH1IfAD8DYid2g6uCz2A8Hrj/UGOnxMR7rk3jUj5yT3oTjqNo=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(52116014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Z1Y/fzQO8Dp4jpSOr8ozXGMj/H1r?= =?utf-8?q?H5DTr6LNpah5IHIMRJ3PWzAHnk1QQSXg+CLx/xgY4NBhbm1E2H+Zb/xw2W1pUntMp?= =?utf-8?q?OcuPm0y8dnuLniG4TIb62x2AU0EbZqkDTGAXAJbe1/nmKWm7jK4AUruzibMBDqXQK?= =?utf-8?q?EhWUate2O1zOOdCUs72K620e2j2XvHSb8RF114P9yh6gnpBPDIkyyrmHXyxTSSEna?= =?utf-8?q?PLNR6hqM16DURq0kJ58j4td6sSdwX65xgjRGugiAReL43BVjMXc9H6Oy1RuDJk2sQ?= =?utf-8?q?hZ/R7IT7U+1ywQrXmef2Y9Ul3NTvWLh+32rzf8DZg58Ueev/hFsNVl6zF3RCPc533?= =?utf-8?q?A78+6lh/2fkrpOhjlZV5+FqLy/ekM0SJtQm741HwltLNkXnSC4UC04/8m1oJtGJtO?= =?utf-8?q?vftvZlbiZH/G0lmzPwfjtRH0/RII+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8tf41KyzoXTp0e3rkrqAS2FlMOnX?= =?utf-8?q?QVe5EFXSvwqazQd99V/uZy1lTcpGa3li4PgcDjLagTKEv3pqt+rm5QgwShU5wCWQs?= =?utf-8?q?ryd/58sVtzuVNSfo1uonuqO8McgwpziW4oWGVUr3nwiXb/EuaqmAFgD/ajFr2XFr8?= =?utf-8?q?5SqGUQ3Y4RF+3LdlXdWbM2tM1euHh+5JA9U9cJN8c7oK4hH6pqxzCUYA=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f2df061-9d4b-4c93-0059-08dca50ced1e X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2024 20:30:11.7176 (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: Jz0HFpvSIlJRrr1Z6XUTwLHUN5yRMcXnyBAhYMMrFCunDvFeKpVDaa4bhzH7gmdhmPF140+Hbsl+3WsDdrjC/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB8031 Signed-off-by: Frank Li --- Changes in v2: - See each patch - Link to v1: https://lore.kernel.org/r/20240711-pwm-v1-0-4d5766f99b8b@nxp.com --- Clark Wang (1): pwm: imx27: workaround of the pwm output bug when decrease the duty cycle Frank Li (1): dt-bindings: pwm: imx: Add optional clock '32k' Liu Ying (1): pwm: imx27: Add 32k clock for pwm in i.MX8QXP MIPI subsystem Documentation/devicetree/bindings/pwm/imx-pwm.yaml | 4 ++ drivers/pwm/pwm-imx27.c | 78 ++++++++++++++++++++-- 2 files changed, 76 insertions(+), 6 deletions(-) --- base-commit: 472fa0e0d7d03574177fc83dc15ad9da15db4ce0 change-id: 20240708-pwm-5993e602c9b2 Best regards, --- Frank Li