From patchwork Wed May 29 10:10:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13678609 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 F0109C25B75 for ; Wed, 29 May 2024 10:11:20 +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:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=IC1mA8Ui4eR9eF7+EoczmVeCAB83AbWhuQR9vtgiSvo=; b=DTASa9Ry808OjmcYspYSxoeiPg EeOPK+1fLKyUGSvCalpsuvY/4jljCwRzKpbtb61XpyxYT2mNwa8qNXGLKAeFPqZQugZP17S5Cusue ic+lDtQ5ZIdfgwE5+nat+B5ulTQgoHK4rRQapM4OgGRuwNTnHygGKrnx1s2AkXY/Hy1WY0oIj//hR sUz6JZIswYLqoRtUrn6PQw1cK0cZuGNlNG1/+GD8Jm+aePtucMIVV5l1mfenaIDXknKfbDXmfb7eu L1Ns7o09icL1HlE5rJEP4jlBUbazHpaX3A5DuocdbyuLYU0K/ScSapFo7Yhi3UOeYaUPoty7DYzNy vKb7oX8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGH7-00000003kRw-25vX; Wed, 29 May 2024 10:11:17 +0000 Received: from mail-he1eur04on2070a.outbound.protection.outlook.com ([2a01:111:f403:260f::70a] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGGv-00000003kKB-0j4I; Wed, 29 May 2024 10:11:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZtoVfnd/Veu0UvQ4pZFXYWuUO3sktgNHV10ELzS+rW46oN+Jxsdf6APz2AkbFhX+i9uv/Uk8/c6EwCPY9YtLNGgtcGZ6xJUX2WTnY1thMjc+3o34Rl2OV6G9THIxZNgK5/HhBUnbnIeNITFHPQAcn99dIxluFzEs0fiVZA7gkGTfI0ShDeMhgcP3ZQnL0OyoSEfjOp7u1s0wo7qamEBLAbPv0jZtB8sgPgP0i8Lg7AcBE1Zn6EMjmaDlV/3/aNRwbJGCCI4t0U71z0DN1UwWhjUzRC9aFZ6V4xqlC/zheN2huK1qLZz5m9gOddmNkZKGRQI5pvwTtvbJcfX14hyneg== 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=zW/oIU6gplpCND+scqdT0ht7jRnXkj+EfCZev5q34yU=; b=kyonD4dQeqntH5CBcJ6hPKpL7AGfXK1gbIhOZi3WU9xB+FBmqvdFnBfSRAiW6nhYOOph6fQVaIALC2+ZjUdFKPYTI1Y76qDwZPS90t6Ue0MdfPklBb/3dQok+Wf/vMBC9zm+h8NuXIgJkR4Y0RYiMnQnTny7yeOkg4kudZaV3+eG7qEhZE+I9hIKjAsz2mJO/vdpISsV0kG7ah9AnCNgHmUgaU2JltjXWD7oDWW1Kh48rkKuZBMPqMegq4Bp9vkrk6O05sHIfsww4l3/WC4AkSrjG8oFhdtwDKGC9MYoOpKVHCOZFl1KLBSZeRqk+NxbT92sjc8wqclc28DdiWU+cA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cherry.de; dmarc=pass action=none header.from=cherry.de; dkim=pass header.d=cherry.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cherry.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zW/oIU6gplpCND+scqdT0ht7jRnXkj+EfCZev5q34yU=; b=X+NvYrjC/rH5xpIEBzjDOhZTxDAdV5V7FdrE+HlhOaB062gsE780X8FG+dICsClcg6GcMpJXBstC8lOYiDx9ayC0eg7dN38R50kfzFHhKbhw6GEghw2vnrzEUpzR9PWJRmuHtNVGrnSQphNggylC5tAzhE/oaIv1maBc5YjbaIk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by AM9PR04MB8811.eurprd04.prod.outlook.com (2603:10a6:20b:40a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.19; Wed, 29 May 2024 10:10:53 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%4]) with mapi id 15.20.7633.018; Wed, 29 May 2024 10:10:53 +0000 From: Farouk Bouabid Date: Wed, 29 May 2024 12:10:30 +0200 Subject: [PATCH 1/6] dt-bindings: pwm: add dt-bindings for mule pwm-over-i2c controller Message-Id: <20240529-buzzer_support-v1-1-fd3eb0a24442@cherry.de> References: <20240529-buzzer_support-v1-0-fd3eb0a24442@cherry.de> In-Reply-To: <20240529-buzzer_support-v1-0-fd3eb0a24442@cherry.de> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Quentin Schulz , Heiko Stuebner Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Farouk Bouabid X-Mailer: b4 0.13.0 X-ClientProxiedBy: VI1P194CA0043.EURP194.PROD.OUTLOOK.COM (2603:10a6:803:3c::32) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|AM9PR04MB8811:EE_ X-MS-Office365-Filtering-Correlation-Id: cf285f66-809f-499d-d025-08dc7fc79de2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|52116005|1800799015|7416005|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hYTFO7W+/yrGzWHuJHu7qBkCj8wAJgf?= =?utf-8?q?LYJG1dc+zprY+OkeZlDz0Oxk32bM9KfrjpGMvEvGZ2JN5Y4ZUQfMBdGxlDrAYCQNC?= =?utf-8?q?KGrOx2gi4xucDCRnP5mJ/i8JmIGGFvCWKl2Phz+1d+7uCR03W+kzW7QXldp3CVzYQ?= =?utf-8?q?RLhOzFaPOM96He7viTEruJEUeG5zOR7rmHSDnT0nNBn0NL3OGuWNHz1pWIG59ADpj?= =?utf-8?q?kOyqmxiP/+YKimY+TZqmPVpr1JDgNyQoWcSJMas7TQm6SfdkAgLdfppMMlvvNfBhs?= =?utf-8?q?lH/5rvDuZWAxmHPv+k6jTa3IMubpbijp7hZFkjif86OrdH1SVCrKcbf+A+XbSJjdp?= =?utf-8?q?R8OUSsM0ms4J6fY+QU3F3RpVcQhwv0DN36XS5EeltiUdNgkGp2ud+80MVB+WG1MuP?= =?utf-8?q?x786Wly9s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CL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6382.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(52116005)(1800799015)(7416005)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?PfkTTlYizTPcvJ6LxBnMCFZBTwFP?= =?utf-8?q?4iVydNYzal7ia5CXgK5xsopy/dE3uvbGyRL2UZH9Qi1de9VWp8J9ABcKNxT/osEYL?= =?utf-8?q?DzFAGx8DicKan4hO8XNaYRB/eF5pLke/JcK52pnW6rFYrM4qCDHQ2liGetBU06ySi?= =?utf-8?q?aXUq/DSfHWadpaZHR/AKY7oCGBhIqMJQ9dpNIzEnGx2BMBOBsjdl3M3K191IEZ7oZ?= =?utf-8?q?2lO4FVmUhna0mSfQRKt6hGiMHTl/SnhZYSHHOYQ/UQPIN4RCHN51iwvGOG2Le71zq?= =?utf-8?q?ghKDcgIaSpFSC8bBnxQs2xxxlxY5Md4GEULlHrtmjMr7CDbGmWOvW+wN3bD4OWKNc?= =?utf-8?q?ZS8TP3HrFKnFSTw147i9brRWsXJYiNlFLVgoa0YKcQGTm+pAQMh5bGNUdiVjPDCI9?= =?utf-8?q?7W1flNS9DObHFn4HiSUJT85JUJ4a0BJ9C2xP8+E2aUcsSGSHPvBMzHBin/vv0kBu1?= =?utf-8?q?n5JGD+UuXe70oDvLXi/WBj+YlIM5FxLCbIKJZRT7j/xNxoE8bRwF6J1dJDI2cGtmr?= =?utf-8?q?mAcbLr8eM7/dWbVCynZ6aViKWP5qSh7Q+FCI/Pxfd09ArgY0FJZc3orT6Q0wJAsRA?= =?utf-8?q?2wLu/00grB5OEBwGaYpx2wpIYJGTS114VAxmLg5JnE6BfxoDG6ni7avHRQLzUlb8L?= =?utf-8?q?cZpz3/8ILifkut32Pf09PJE4T6ucEUHHKmaqs7nfMsg8IHVRrVTLPDX+xXEiI0cn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ossTenant-Network-Message-Id: cf285f66-809f-499d-d025-08dc7fc79de2 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 10:10:50.5013 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5e0e1b52-21b5-4e7b-83bb-514ec460677e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QeGRL68mkUo1E65yp8dBtKxzAsfM3rTYYt1LpkMskNfchjslELQQNom1TIOvMlA2pZRRtasR2hC3lbh8+lhpJiljVbO2lqq/GtzmUu1vLxk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8811 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_031105_269584_8DF96973 X-CRM114-Status: GOOD ( 12.00 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Mule is a device that controls a PWM output signal based on I2C commands. Signed-off-by: Farouk Bouabid --- .../devicetree/bindings/pwm/tsd,pwm-mule.yaml | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/tsd,pwm-mule.yaml b/Documentation/devicetree/bindings/pwm/tsd,pwm-mule.yaml new file mode 100644 index 000000000000..71a940a2a644 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/tsd,pwm-mule.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/tsd,pwm-mule.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mule PWM-over-I2C controller + +description: | + A device that outputs a PWM signal based on I2C commands. + +maintainers: + - Farouk Bouabid + - Quentin Schulz + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + const: tsd,pwm-mule + + reg: + maxItems: 1 + + "#pwm-cells": + const: 2 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pwm@18 { + compatible = "tsd,pwm-mule"; + reg = <0x18>; + #pwm-cells = <2>; + }; + };