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>; + }; + }; From patchwork Wed May 29 10:10:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13678617 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 5B238C25B75 for ; Wed, 29 May 2024 10:11:47 +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=WHJEFNceFyOU0431CsbluFzO/zewlq12TGha7FxJ9GE=; b=Qml8gGQ0l0/b6xeuRcdTFBsIOW ObL4DUUaJuOLt51VM1IGWpAxl5rY5OiBwcuza8hl2wztGLoz/NJzuOQYjHHtY/espAi27caabRuqH cJIS3hTFzTOwi+QKmILBKUWBJlWkafjQ5YZ4QbOUpbZYYs/0Lta+gEjLZLN/hLF/u6BwsAdBMZ3OP 7SQuBADanLYLW1mcr4R4gYyP6qSt6mbrQR47fkwBGiQ1JJ8q17OTp+pbK5+reoBC0P0tv6+E2ySkR Uks2NgKhg4lL/ZbxO/vSKj5pwyZA6b71CDlyc0UzsOP7KtCZqDyWHeG8FutqqWWpJoIpig4KkuQeW pKRrXHIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGHV-00000003kgW-1jTE; Wed, 29 May 2024 10:11:41 +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 1sCGGx-00000003kKB-0prV; Wed, 29 May 2024 10:11:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vm2WU6PfTW1ja6IbTdyQy5TToFt3X0bgnCsFN8kpbzkU2UVvKxVCKakOU6vwbzxRShqsR1604z/AfPieXd2AdYbyjT+kj/J8CEA3WJ5v9n4kRpdDykSSUug46bljUG4Ad8C4yBcxqoKNh5mhh2Kq9ly53kFh3hOSVgoDTDwg1Xt28GVPfNm9vmRaNgKlzuTQd4c/5M2kBl0wqaFkZUlLhAADSjV9jx50uDngJO+f+tiYgrWW7yEIjqkckD47ftLoEhwf45dNRRmMlZnRajExPVe+3KhDvYRStsGBdSidbo2WauijpKxGH0vb9rLvvG9rOGgT+R2tgRE8+xXVlpYBrA== 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=T4twgtF8AlVCbeh1HQmFfwG+HUW+NPJvaQHfxGiRjt4=; b=JkJZQ6t/jC3ajQo161kuAA6v2QpKfnJOJkwFGbHnZ23lxgUEyUW2T6GAv5SrdLxORvrvZv1F3KANoiYvgvJ6aShTNW+4LTKQhI7KHHJRpYuNUB3HGVhZVTS6SKILgoRxA1DadksKjLWblTUVTu5Z8xeQR/GHmR2mjrvLNuCj9wS6axFQuOXZLHZlgmRa+NkEaQP0YVrXlhA8rqWH1GV2BMdc9DzNmbqxt/ep29xHaWG2SY6n59G/7CEx7/MeLSojdaEsZNC+TR1WYEyBTbGHCkzLDTS9y/uVgc1w5k4OiA54AAbsbUg22d4SqAibe2lRuZKTCkmYsJ9wucvCiTCdPg== 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=T4twgtF8AlVCbeh1HQmFfwG+HUW+NPJvaQHfxGiRjt4=; b=FcqTPa7bujQK7luWDGhmafQtlJg5+KR+++MH2FbiJLt5fPHVFx89C81wFzoKnsjZO2nshV9RVedJXk6zJmjkNnhSXzJmqYpGrRRzduiY9sDO1BSnaY4H/mxBKt9IPvlL13JGvMt2qXf5uAweG6stuUN9Dm9sxphIPkOghfP3Adg= 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:31 +0200 Subject: [PATCH 2/6] pwm: add mule pwm-over-i2c driver Message-Id: <20240529-buzzer_support-v1-2-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: dea58056-80e3-41bf-68ce-08dc7fc79e07 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?+wmVhpVVnnWark8Kh24Y89rIsaBstKd?= =?utf-8?q?Gx0Zb4nkQP4Gcl9VazI/4ZDhTqw7d9ChajYYSTNifk4JlA5ZVrv4zLov7x5z9ZQr0?= =?utf-8?q?KVNjLZLasyx3C/teCQrGN0y4l4jvfVjHeryjfYVx8xcsMyIFj2iDzPSUi/QMJmfLR?= =?utf-8?q?uKy4j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Jitw43STzPn3Ry0yYrZ23B3VHewMmQA3H7fkHGMuY5ZvKhUoZnFNZtlClZFx?= =?utf-8?q?yjgtC6hzD9AbMn8eEtTbDlelaI9K1lZB0q3zS8JW+1pbOIHUm4fqOEDQZJ/qsZ/8+?= =?utf-8?q?ISJO0gsFwkxqvuQoMyVaMi0IZN1E1LNXHT+4hiiaorNc4Cq8FpbUzmF3SYQG0+Fhm?= =?utf-8?q?mImQIxbkENy3R1r+DRM3emXQytl0+JyzfmLGaR6XEVprIfNTKQft08Fg60cUTBpqI?= =?utf-8?q?AFsaMf3fXyTIKgq2XTeK5H+QnvTt6hM95UQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL: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?nR+t3PJSjWQ4b5BBENX8tmjQdtrt?= =?utf-8?q?eZtfNquAvB+d5UHREDNuUVN6PdzbsajWF1zxuogkRrs7TYYfWjjz6C23HfMaHNeTM?= =?utf-8?q?tU2b170MYJ7WUGqdTP5D47f1P3DH/rIftsjTwsjtaRaYcLEoCEc118RN8kpE4l2ax?= =?utf-8?q?XPeC2Xcn1KgVmaVEFO94jAc02s94vZKdt0nxt2vfMwUe66MHD+VyV++RbjGckjKhA?= =?utf-8?q?JLFe6przbWLnHKp2s6O5ysmgmCSvUtEOkQPyOaAcc6KsLQheREPOpr6LiEDvFqrZ0?= =?utf-8?q?Fjz4trnKDKRuDol+LuF1AvvxhpcKKTqxK0hg1g6z5sDws5jPR2HFpRenmnNWNTdZY?= =?utf-8?q?RzFkydHf9jVbtdM2xc2U361EJL6WsmzdrUjwHbhHAlHYvL/9gNbdxVG6gcuVY3nCK?= =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45z7Txt134PiYu1Z3R3poTY7fmqTAkPgqaxAgbWps6FKpNXtk3hIHoDsT?= =?utf-8?q?x9q9mbtYjRnaQBGieKnI2DxU4WXMZ0dmj6h47Bbu+tmvw+2dG1usOnttfvk7Bt2+2?= =?utf-8?q?QK/XqkoBesXHpTq33f5iZuSqD9BAlkWKj6yk7aMMHgkswOL9Dsx6jtEgZVz3R4NvE?= =?utf-8?q?J0/7lkwFI6f14H8p963jlnQhaOiILzAd/Rv1ZiJ9MbJCaKgpQWFHYRBS3sPNCDTP9?= =?utf-8?q?S8eWRVxlI0jJWOuVlWn409iKrBDWMcpN8w=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: dea58056-80e3-41bf-68ce-08dc7fc79e07 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.7541 (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: IR5b+ixpk4cubhVhEXG0nLdlgDgiikNQEvDfbRZGzgnalq0iOwerLzZEv4VB29QOkjWXOuimTnQcqHWwBoZJpFUuzkmwJR/j3gvOE8K9Clc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8811 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_031107_368481_9842E1EA X-CRM114-Status: GOOD ( 22.18 ) 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 can output a PWM signal based on I2C commands. Add pwm driver for Mule PWM-over-I2C controller. Signed-off-by: Farouk Bouabid --- drivers/pwm/Kconfig | 10 +++++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-mule.c | 115 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 126 insertions(+) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 4b956d661755..eb8cfa113ec7 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -425,6 +425,16 @@ config PWM_MICROCHIP_CORE To compile this driver as a module, choose M here: the module will be called pwm-microchip-core. +config PWM_MULE + tristate "Mule PWM-over-I2C support" + depends on I2C && OF + help + PWM driver for Mule PWM-over-I2C controller. Mule is a device + that can output a PWM signal based on I2C commands. + + To compile this driver as a module, choose M here: the module + will be called pwm-mule. + config PWM_MXS tristate "Freescale MXS PWM support" depends on ARCH_MXS || COMPILE_TEST diff --git a/drivers/pwm/Makefile b/drivers/pwm/Makefile index c5ec9e168ee7..cdd736ea3244 100644 --- a/drivers/pwm/Makefile +++ b/drivers/pwm/Makefile @@ -38,6 +38,7 @@ obj-$(CONFIG_PWM_MESON) += pwm-meson.o obj-$(CONFIG_PWM_MEDIATEK) += pwm-mediatek.o obj-$(CONFIG_PWM_MICROCHIP_CORE) += pwm-microchip-core.o obj-$(CONFIG_PWM_MTK_DISP) += pwm-mtk-disp.o +obj-$(CONFIG_PWM_MULE) += pwm-mule.o obj-$(CONFIG_PWM_MXS) += pwm-mxs.o obj-$(CONFIG_PWM_NTXEC) += pwm-ntxec.o obj-$(CONFIG_PWM_OMAP_DMTIMER) += pwm-omap-dmtimer.o diff --git a/drivers/pwm/pwm-mule.c b/drivers/pwm/pwm-mule.c new file mode 100644 index 000000000000..e8593a48b16e --- /dev/null +++ b/drivers/pwm/pwm-mule.c @@ -0,0 +1,115 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Mule PWM-over-I2C controller driver + * + * Copyright (C) 2024 Theobroma Systems Design und Consulting GmbH + */ + +#include +#include +#include +#include +#include + +struct mule_pwm { + struct mutex lock; + struct regmap *regmap; +}; + +static const struct regmap_config pwm_mule_config = { + .reg_bits = 8, + .val_bits = 8, +}; + +#define MULE_PWM_DCY_REG 0x0 +#define MULE_PWM_FREQ_L_REG 0x1 /* LSB register */ +#define MULE_PWM_FREQ_H_REG 0x2 /* MSB register */ + +#define NANOSECONDS_TO_HZ(x) (1000000000UL/(x)) + +static int pwm_mule_apply(struct pwm_chip *chip, struct pwm_device *pwm, + const struct pwm_state *state) +{ + struct mule_pwm *priv = pwmchip_get_drvdata(chip); + u8 duty_cycle; + u64 freq; + int ret; + + freq = NANOSECONDS_TO_HZ(state->period); + + if (freq > U16_MAX) /* Frequency is 16-bit wide */ { + dev_err(chip->dev, + "Failed to set frequency: %llu Hz: out of 16-bit range\n", freq); + return -EINVAL; + } + + if (state->enabled) + duty_cycle = pwm_get_relative_duty_cycle(state, 100); + else + duty_cycle = 0; + + mutex_lock(&priv->lock); + + ret = regmap_bulk_write(priv->regmap, MULE_PWM_FREQ_L_REG, &freq, 2); + if (ret) { + dev_err(chip->dev, + "Failed to set frequency: %llu Hz: %d\n", freq, ret); + goto out; + } + + ret = regmap_write(priv->regmap, MULE_PWM_DCY_REG, duty_cycle); + if (ret) + dev_err(chip->dev, + "Failed to set duty cycle: %u: %d\n", duty_cycle, ret); + +out: + mutex_unlock(&priv->lock); + return ret; +} + +static const struct pwm_ops pwm_mule_ops = { + .apply = pwm_mule_apply, +}; + +static int pwm_mule_probe(struct i2c_client *client) +{ + struct device *dev = &client->dev; + struct pwm_chip *chip; + struct mule_pwm *priv; + + chip = devm_pwmchip_alloc(dev, 1, sizeof(*priv)); + if (IS_ERR(chip)) + return PTR_ERR(chip); + + priv = pwmchip_get_drvdata(chip); + + mutex_init(&priv->lock); + + priv->regmap = devm_regmap_init_i2c(client, &pwm_mule_config); + if (IS_ERR(priv->regmap)) + return dev_err_probe(dev, PTR_ERR(priv->regmap), + "Failed to allocate i2c register map\n"); + + chip->ops = &pwm_mule_ops; + + return devm_pwmchip_add(dev, chip); +} + +static const struct of_device_id pwm_mule_of_match[] = { + { .compatible = "tsd,pwm-mule", }, + { }, +}; +MODULE_DEVICE_TABLE(of, pwm_mule_of_match); + +static struct i2c_driver pwm_mule_driver = { + .driver = { + .name = "pwm-mule", + .of_match_table = pwm_mule_of_match, + }, + .probe = pwm_mule_probe, +}; +module_i2c_driver(pwm_mule_driver); + +MODULE_AUTHOR("Farouk Bouabid "); +MODULE_DESCRIPTION("Mule PWM driver"); +MODULE_LICENSE("GPL"); From patchwork Wed May 29 10:10:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13678608 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 52F22C27C43 for ; Wed, 29 May 2024 10:11:11 +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=HUQDP2H5rrd7FGuH+mjDSIz8cz1hAiz5AJ5TUus8qhs=; b=ggLuNWfhj8FbxrdqWstkSChBB/ kN6dC5oGy7Lz1yDuhX36DmhrOTDnG55f0bpwjtGS+s0V8JRaC/LKqVmnC+u/+XvUwyvTVn7g59KAc n5KRlJlX1C8okjMGePi2T5ENeGPs7LP+kCKrh+cIE/D65D0w+9sADx5x26K4waEpO7Sswu1Uqf3ab NB9AkEzt8homw0N6NU7sFoXTGtmzj9MbmNmgoqgDjsjve6UCjLzwJiIOR8UIFewjFBGLrsDTk58xE /k02tM0vejl+Gg3TlLcAXJPK4MknLjjv99K0MzGkHBkqYW6eMNpOp1+wnWDUwTgrfk2PgNWb1VwT7 M1XQ7J7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGGw-00000003kMY-2LXW; Wed, 29 May 2024 10:11:06 +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 1sCGGs-00000003kKB-2Y10; Wed, 29 May 2024 10:11:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=exfHCjlRG1geJKyY5AhPZzRnuQ4IoNI4iKc2gYdf8fvqzWeI6XVxpz7zSOFuGaVXPdM0ABnWvOG5nBJypQJcerTTot6kqaleWaI82voEh78f9IDyYYc8f+FB8j8+39KCKXUSO6KmVlOE/2U1hj1U7DbSFCmCRVkHLzq1Qdc7yfMuZcUOtenYadI0TTH9lu6awo97ZkBBxVwZdSRqyPOXZuIlcSOQBttowEerdPKco0LyuL4SDsrvJraoR2ACZO79rb21lXAH+VvyKvQ/hAb/s9iNMEF7uLvdxVMn0sZA1QDbnDx7Z5mzSeQaH+Y2ANqGNw2H0gj1i3HBFGjgruOibw== 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=U1jJiRoiElBzJxqW+tBes1orTvu25HSPL9hW3V570Y4=; b=kb62oZ5+kcRM/dovkmtrOqwCAE8Zb5OSYc4QJmteBSbMRIlyi33zvetqJPQplCe/yF0tEu64fha77vPFO+wIMwWpnHG4Orp7BM5mOUYvZ3LXe0zMKQ+LNWzTF+JcLu2ITQqNRHnXX9ptOoHFD8hAzUiHwDxDAs7XPXmORlfmQYycYivsq0fZCy5IGzTPJ2s9Eswbs/mEG+eMEc5sb0z5hqS1P0Wkup0qC+hW29XQwChDcY8GE1kaFpJkjPEH85bxfS9Lnm92SaMz0STVTQRbWKsO45SOd0zXEwhYdSJshU8pQHE+bo7WALa4l7ID7R8uCeKXSHmG4tKMJO9tC2nR5Q== 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=U1jJiRoiElBzJxqW+tBes1orTvu25HSPL9hW3V570Y4=; b=k1PmCy5k/PDn+sKgY0MZa3SsP3mzPDtiIhG8/c5DcdMvPvXGV7EMBijOfEI0TLAUEabc+0j/vGBRVnxlZA+UxRm2DgnytFD39aSWmKiIWEFeTVTrJXkEiS/b2EimcpfiBu9RdADe09TwPjNcwZQ7Qoi97s9vULgHqiQpB8Ju6HQ= 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:32 +0200 Subject: [PATCH 3/6] arm64: dts: rockchip: add pwm-beeper to rk3399-puma-haikou Message-Id: <20240529-buzzer_support-v1-3-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: 387c1acf-58f7-4990-70e7-08dc7fc79e2b 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?dnIMzKAQ0rmxoHl9CjGlENB7gDguDb4?= =?utf-8?q?P+dT5Ur4xO+yXJg4qNAWeu9kD8xrjefnDa9UcLC1lORY5RhvHV483qjnxC2QkLgi4?= =?utf-8?q?9xXLLNE9suY5M912JEAVhVBJLSYle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139KZHwknoejkqyG6Zk32k6KT/q?= =?utf-8?q?++SxcfqiYjOc09MxnFG9iBzoKoNkM8vXa70qppDhl3BL7zbPtOmf/l6Uu8NyiXJRn?= =?utf-8?q?zYHZVuuSjH4S+ua36zq8P0IGUsXW/1u0c5tm9RDb4KHoBKC6DG+0/a2z8d+nCVRDX?= =?utf-8?q?4IQ2teYIOq9aHYzTqiW5Qth9IResM1ZxizgSkM03hnrA3EGT47XBayVukejl8GJI2?= =?utf-8?q?JXJyqmebhTGMuvPuiouIOTCczDBHGSZZMSthi09ITQt6GtJNk8P1XZJyVKg8RDFYx?= =?utf-8?q?iLkpgvguHcf/0?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL: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?xa2nDgBPwt+HnVI/lOIDPlaW6l6e?= =?utf-8?q?8fs2v7Vso0+CivxI4PeSmDqIIYgxpI9wrB5irO1g2s+EINSH0/VQaS4lOjZe+1FGv?= =?utf-8?q?Su1GgkaQln6Ur2hlKGLemshc0BK8CuXa0zT4gCOl+D+sU4Mx+DxL+EJ9ChYK2yP+K?= =?utf-8?q?vw4aQugI7NicJwG4O2uYUXiLVbMFWVeKRt2YQL6tWf+ZTQEAzOE5MrF8nhC382iVG?= =?utf-8?q?RKVlQVt3x56p6wNG0lMPFCNPeJDlMwj7/uuf+8HngV+896++sWeFAIk5EU1L35bP8?= =?utf-8?q?UV39t12B8EeeRQ6mVLlNjx0oRXchvPRwIFY7ICzYwJMQYo0/0tGpyw6kvnRwcb0LT?= =?utf-8?q?Ql+ta8jG3UUGUBt2+9YuSgvrv4O+7190R+zPeGepOWAYqFp4x+tFSZm3HC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q?vQQjDgGeA7X+duB5vAE0N5gyp4CVEtIO3Rjqdutd0t2beeYWl3ooBE7bKOAdFiyen?= =?utf-8?q?s2kkeuJaXDcT5oq5I/K/tJq4b8eMra3HpVIeCIM8bGBj7CVaTBkFP7sGrz7a3Czi4?= =?utf-8?q?wQE8J4RySBqLRs5nqNQJXS4ju4yOtHHo4d5up91YQNkjURSstQmvvl0BluNZjnPFd?= =?utf-8?q?XvL6eeG99p54gjpSewCYcPsNjI9A0lPuOOE1ApnPq5uyiChxrxWK46AmGoB3D5vEI?= =?utf-8?q?30sHTuMVvHMM+30BkeOCZzEPd0Ryh/+Qyw=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 387c1acf-58f7-4990-70e7-08dc7fc79e2b 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.9715 (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: 2npFpS8JbcQaPBmjObijXY2IGdRKUuf79qeygShCYXr/gPvL1iSPFAXTS4CXukiM5l/iOkungCeQSU1VfU6vQk3X8e7YTQEml+hVjn6yMXI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8811 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_031102_695311_5A67B185 X-CRM114-Status: GOOD ( 10.57 ) 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 Add PWM-beeper that uses Mule PWM-over-I2C controller on i2c-mux (0x18). Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts | 5 +++++ arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts index f6f15946579e..3d57c606707b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts @@ -15,6 +15,11 @@ aliases { mmc1 = &sdmmc; }; + beeper { + compatible = "pwm-beeper"; + pwms = <&mule_pwm 0 250000>; + }; + chosen { stdout-path = "serial0:115200n8"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi index 69b57cde7d78..e3d2d27d4ca3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi @@ -11,6 +11,7 @@ / { aliases { ethernet0 = &gmac; i2c10 = &i2c10; + i2c11 = &i2c11; mmc0 = &sdhci; }; @@ -395,6 +396,18 @@ fan: fan@18 { #cooling-cells = <2>; }; }; + + i2c11: i2c@1 { + reg = <0x1>; + #address-cells = <1>; + #size-cells = <0>; + + mule_pwm: pwm@18 { + compatible = "tsd,pwm-mule"; + reg = <0x18>; + #pwm-cells = <2>; + }; + }; }; rtc_twi: rtc@6f { From patchwork Wed May 29 10:10:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13678618 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 05333C25B75 for ; Wed, 29 May 2024 10:11:55 +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=xJN6SVlwc3uWt/08bceZEtVckyBd0FdtNfZZQYVtOq4=; b=gyAv/oA2/iFZan7/6HnarMIixE +4FDr3dEE63KTsQ7jiNiTBoXri2AOfH2EWp6hDUI+QUwxU1tT7bVB0hCOXK9WBlJ+QVpyZTG+K/YO V9U100pDCSMflJ19xZucaIOb0NgEJdNtUxYDiUjqUUBghu4seA1BHIATiiVUCnOFj4osebRrGm7ap eFW0/Y/L9T+Lm1EyGjsrs9uxQz1/AvJrjrIEWxSjbvWKFn7BFrXQLWXNS/ChqOlEE6of64peoYcBf Q3C8Ciep7lEwAmRfjXEDFliygJNXIT0y5LkdOWIgDhKIhyQTKhsO7dltH4Uh4flVDmo0qQiAvFxOf I6KP4Qtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGHe-00000003kmf-3o05; Wed, 29 May 2024 10:11:50 +0000 Received: from mail-am7eur03on20700.outbound.protection.outlook.com ([2a01:111:f403:260e::700] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGGy-00000003kKL-2nhg; Wed, 29 May 2024 10:11:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ii8+LGl2Yjy6kAIuV6M7tpIT0IJto7GTnr7h6jmCEpZJ4QAq9ZR15j9Zbs9Tbs1ePvCJ1T0Alvbm1e8Nx90vWkgTBMM7tuf/+BKnDlMVyUj4ifH1ebMF28mk/1KehWYx+311grscqWJX2+aNda3v+I7//iHW8DTPEeu2YdtjyyvepR/X7vH3zh0tgzCwxWXyVEt6aPNAy325rOjQjnqP+nK6DqQPwzNmLuILabcknr/oK/ipQ0F9fHngjrT7ziadVy5tS6sg4TEytcGGWM+Ki+WBGXOZF57L0Mop3FsUqGqDze5miE+a9o7MTtq5gCet3EDTCk1HvZLwBo429JtRvA== 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=xENk2PqkKRyIU4NuVKHl9fpCj9f0GkGfa0R1ccqXcdg=; b=jsgO1ugvWj8WwaTCy44euTbqfLHkHqCo6oCrkFgBF2N88ZvmQvSRBVotQ4EuuC+vlF0V1m2cXAr2BZhTmD+n0/THG0QxaBFqcNfThfMq9KrODEMT/e7A3eH9McIkAAOXu/ngQhgxeeflQUjq11JwCysaBsaVByQyqFg/xeAcK2Kycag2vQjKRnrTsugM6lFMPGtsHSCMKt4v7JOC0QKV3JemmjfiRVjUH3Pe311oA2lMo0tpPGegKovI/zMBsLe1pwiCmMlssD5aysG+U+cFwR8D/QVRozUeWMN6YXzL9UQy+rBFHKKhVJcCEHCk9qlGcVC9PvCcuzEiynHPDI3NWg== 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=xENk2PqkKRyIU4NuVKHl9fpCj9f0GkGfa0R1ccqXcdg=; b=PA2zQN4lvPrRD16EmNRbtNrceuhTGxbNKTjAob1uBmkTh61Wzbw7tZDGdX1bNSPahIYQMptUjK/hXWCdeOeB0EdKlCTthumzzloC7yGN39rE9BuY7/HOiaQJQLxLVuREq/UnxYkIi7ktbLkT301coX98TRHEGeClF/eHSnUfOKo= 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:54 +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:54 +0000 From: Farouk Bouabid Date: Wed, 29 May 2024 12:10:33 +0200 Subject: [PATCH 4/6] arm64: dts: rockchip: add pwm-beeper to px30-ringneck-haikou Message-Id: <20240529-buzzer_support-v1-4-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: 96c76834-dd87-4cee-5097-08dc7fc79e4a 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?hpiOkZcgzjewBEhmvjmsS9o8NHvG6Oi?= =?utf-8?q?L185JbJbJCKpmDwEvbhI8bBP35F2yu22lg42Y++3Oy0Iobbb62v+ZX+FyqUyJAZE6?= =?utf-8?q?ASdPvLY3JhBguk7il/tQ2tCmJ6ziaGVamLwJAe9gjkmYVRnz6ZS/x0XgkqY6Rcw19?= =?utf-8?q?sxpvmKFOSNLjL+eSa7xt1UQL94XdtMbLtCv0Tdv75JxfKxbnZW42r3chZ7u3x2/t0?= =?utf-8?q?N+xtzhwYaUs5FlmXl5YArDWaEzN4beQOyWymFtFuvB1Iy/vWfzOEQQbdF/pnGvBbg?= =?utf-8?q?tkS1SJAQMKJ9jMf3dlwQkoW2nxpm96FfObVIp+FjjHQyt2PInDWZpIguil4apZkqU?= =?utf-8?q?1tW3l0ktDoKXlBLdVPr/4qtNSwYlLrRAAzgX5rOsE4deb/ZMB/fxrjIamm0mxECO2?= =?utf-8?q?uHRMfj6oHuYJTLPwtmahPWdbdDwo+CYeF/A6a2nNuY6ajMqh0VT8QS349aLahIITR?= =?utf-8?q?PKa7AXuE1hMsPaamlSqWqLxzokPaJLBBs+qZLd5+W0cl6ciypoMBs8KXjuVBt+Ljg?= =?utf-8?q?1y2foVbnurvudIH7vq36hPVcUIz8dj6gIRU2XlIcpcgb3l9+UXwRmSRFANgcpzf/2?= =?utf-8?q?Q0DHExnt6JGbUPhb616E+GPV5vXn51jVaZ2y/5SZYVF9Jt7CbRNvhT688vzwHquJ8?= =?utf-8?q?n0pb66rf6ez2ezLjJFbd255RawxRXZU8iqpyOcPYg09DK52Hb3Ojiy+fGZM64B/Xy?= =?utf-8?q?YQ5SvLck7DmcOIIVSIi5qW3rwCIvqLYhYoLFoNxktjMkFNCOsS+zIwT7lhnhkdiKP?= =?utf-8?q?Xbtfvz+67qieBuGn3yL47Il7V6qLPO1JA89g8rdjv6xMNNmUS+JQBgmGv37wGjnFX?= =?utf-8?q?f2s+N4Qa+hIoWf04UGYpfZ7d/ixr4bEHCKEwscEZ3FinWcEBMk6Lx9IEXgHg2/g8f?= =?utf-8?q?2A6XEaEJAWUNkWU6KwQQL50jDVKvMqP5SXAVFc4158hpPhH2dvpkvoYaKzYr8gtEl?= =?utf-8?q?PbLX5ezlQfPxQvIHqq+8jLBr8Wyq59dAHF8csk71oLCvVf7TtPgoKrgY8ONmhaaJA?= =?utf-8?q?rieRimt+d1O7E169R3fode6IWNb3Gjr0zJ5av5ZJ1AQOVNdrkOh9MZ+fihiToHTJk?= =?utf-8?q?fjtJ4sQvUVhxjYS2wEr6YXTxBGXYrMxhmhWoRwBNZ9PuRMW2hkTN88UXZeLbW8b3/?= =?utf-8?q?p86TBghFLETkOTJE6ifA+iDdlhq4kkkAaoWg3ZaxfCjUTd/6qBLyGuEfqGDKByNGl?= =?utf-8?q?iX6W2PkkdiMdyI1VQLtfMgwvEUnjgCizQvrq9Znck9EcxSoAvtkO3uQ9MKxZ1gwJL?= =?utf-8?q?k1WC2wPY/JeWLEN/HXs06LOiBq5uEatLjVw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL: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?dNXDeqV8kSq64VL2yd+FcVWBSmzn?= =?utf-8?q?V09aWgW/KErrXuQQ2tlOnmmk2RzyKOTb+yInfOxSNBs2RIwwFOZMKKrTxV/8u3Z1J?= =?utf-8?q?SO2zW2iOZ/NWyzxBhYuZqdOLG0PAQzeSss++VlY6TnPPOKEtNiWSVEnjcDj4XSSsW?= =?utf-8?q?ObcFqHUO58ezVzv2Ss6RgsCMBNiKPn7BSr82IUY32XeBPLzbEEqH1Mho3/e1SoWTo?= =?utf-8?q?Ao3gRt1FJ8+4xifa6IeCCdKmQvwzBQbni7yIiP56+FPXiT6+Ain+O2jh8pg/ZEJGB?= =?utf-8?q?x+yF8JiCSFLDssBvz9c7PuNQTe+Ae2Liamhjoeg5ODHGWb2mNQTQfVYMztw2Jsmie?= =?utf-8?q?kBLW0eGs+pR4MiCmE9b5qV9dbLWqUD67mxVKesw39g0jDSwxPqAmyC/QmBNKrhh7A?= =?utf-8?q?eHgePeX3t8PGEhLJINNTI4dY3r3laN3oh4ANDILTHqxC8huE13sNjcXTK/L0ZX4mp?= =?utf-8?q?udaLwYW+mIKlZlYZ/cz3xddYqz/Vvzmw2FeEPqT5kTigXDlPsc49eYCT3KfYVx7ST?= =?utf-8?q?VfANtHAxG0+mqkXwg3A58ZyXAnjjbopVsGNy3b3gNUf27IIyHtNxb8O+ks26QBr3n?= =?utf-8?q?tLKvCfWzvZCKlBztGBWVpatSaygr4Ohx1IAooo/SlRL6NxTMm6MXDErXGVGwi4RL8?= =?utf-8?q?BXf6WmDPXwplHy3412NYJOemDZjljvaZ2jkHl94LmSEDEZQbPvF/LHOQxX8838vFN?= =?utf-8?q?4ftatOnw4KU/YITaFDkA0etD1kCYPVLsLWwVcAVWNeEcReAP/KELQcB3yJ6SuC0zK?= =?utf-8?q?FrkrDBfnO9k5bp06O3TcjM05zPRHQCdVihDCIp/ao04xkdHB/5QEt/3No2xKrImti?= =?utf-8?q?cMhpuYE3IplbDcryN4ODVK/OYRYZ1XAZlo8Oouzap9/OTeN0a1fbWpxmJoiqm9lE0?= =?utf-8?q?bw+MxeYQP+Ja4JmPdS1WMGNgg44aIlrFUW6VDbBLInkEEM5Z8kAp7qkeMUfp+ba1u?= =?utf-8?q?8uGhEHJHUUqp0QWKac3oFz5fR7yiIQSyo9BqfHt7ESJXupZoQX4jx0CatiSo/X3BM?= =?utf-8?q?UR9Ng5PKqf5/30BzUWnPScHq4OEHhI8j/xvLbNECSkPw6mLcKNAGl2E6PdR0SAiEZ?= =?utf-8?q?PdhYnclNA1RlHoQ/LE2xbBBK38abDVM/xNOIRLSprHBO3AKuFpvCxmcA3nNFmUEto?= =?utf-8?q?gPB+jKbHs4XZikeX/a3S9/19+mIGBNh2Xsnw9nIlxIxAAgS2OCNQW/Wne/iuyu8gC?= =?utf-8?q?S5tJEho4uRmj5M4ZlbMyYnVHlrEqTDDwqVPSgxP/JGG9SoCU/UFU9GH51+YXqbEtb?= =?utf-8?q?ZSERHp7tP7Zmxl3kAyIJF0ggQSo5oiQjE7e1Pvg/Upg49Hj25p+q7QRfsxfHG+4Uo?= =?utf-8?q?mDSTS02LVwNvXjf3Qc/U3fMSNkBrpPLKgeW0qYHyiaqRYon5wOzNfxJ9/xH2eWmjQ?= =?utf-8?q?J9pRVwvdW1jGJBvHtq3VJzapqPEvqbkVaWB0uYtzJGDkpaG6ZLvr5lMsMiTHMz23L?= =?utf-8?q?jUC5iNQk3+2Q9fAc7hEWTZ6dcn688oBQ9RBde86S15HIIsV64U7GYpWXryhpWA7oy?= =?utf-8?q?dXpKQFj/g/t+e2O4fTxPwuJ8DpFrgPpTJQ=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 96c76834-dd87-4cee-5097-08dc7fc79e4a 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:51.2106 (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: HBffK7FEu+7nbLp29wMYS6cN0FSIKJ4NNZqdNh+uKi1LCLQoBiglfNnJDme324Rbe0H1i8TCDtbFsWv7zSDqWgCBVFimgoM0GegUUGBlv6Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8811 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_031108_882516_93F329F2 X-CRM114-Status: GOOD ( 10.70 ) 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 Add PWM-beeper that uses Mule PWM-over-I2C controller on i2c-mux (0x18). Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts | 5 +++++ arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts b/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts index ae398acdcf45..513ecb382ccd 100644 --- a/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts +++ b/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts @@ -17,6 +17,11 @@ aliases { mmc2 = &sdmmc; }; + beeper { + compatible = "pwm-beeper"; + pwms = <&mule_pwm 0 250000>; + }; + chosen { stdout-path = "serial0:115200n8"; }; diff --git a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi index eea906379983..0eee06024484 100644 --- a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi @@ -10,6 +10,7 @@ / { aliases { i2c10 = &i2c10; + i2c11 = &i2c11; mmc0 = &emmc; mmc1 = &sdio; rtc0 = &rtc_twi; @@ -309,6 +310,18 @@ fan: fan@18 { #cooling-cells = <2>; }; }; + + i2c11: i2c@1 { + reg = <0x1>; + #address-cells = <1>; + #size-cells = <0>; + + mule_pwm: pwm@18 { + compatible = "tsd,pwm-mule"; + reg = <0x18>; + #pwm-cells = <2>; + }; + }; }; rtc_twi: rtc@6f { From patchwork Wed May 29 10:10:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13678619 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 BB1A9C27C43 for ; Wed, 29 May 2024 10:12:05 +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=2Eoda3GIbxOcVnIBIhW5LBLZU2C26BXckURhrlMnv5s=; b=R/2qTbV5hHsBzarzSduzfU6zl3 YcHbQxfOVWHjtqGQu7jJg91kmOunm7ncgEOsDu6BqxCjIvsVHFUF5R4qP49FaeMPH1TXzQRGOndxI EbhDaI9I+O0WEwQrK1YyUuVUIh5QlG4URTa7x6ve8QE3c+65+7xf5Bf5qXaPW0Ik/oBpswjeJMOep WM428Nmm/YA9J/pi2qhE/EtBT+gO3OP0UqOgUqAdJvkVyQtgnLzThyNyZ3Pz4+WXUByV9VoHsNQLi jFam1ZUTvKghdZWBuagVXqk9J5dRDv5H2MbQo02xRyqzcsCBWo+6CyYcniBz6XvQbYoR8mAZ2STGv pBQl6QSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGHp-00000003ksz-0sam; Wed, 29 May 2024 10:12:01 +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 1sCGH0-00000003kKB-1ZoE; Wed, 29 May 2024 10:11:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cE0Z8OFYley903hIe6Y8f/+1Ze2k6tO+1hFepz/JFzT2fvR3ivgrKlLW0eceatJ73g98Ciu2c4ex8xnaj6e/9oJMuZ9b7WoZeh2dcWtadttq5k8oR+tA7t94k47LZcsAIPBdIT1cbWoCzKgetXDBZTI+tZqD1urdP1MONLmoX4uT8ADWTesfmOoWW4BHgWGi7hyYCXUjQrZ4lutVIitO5HhudoINToem9Djn5UTU+g53bRFDVxBHysRigH3CGWeK6egAvOHUIOK0jOwzl8++KDkWZWuZ5jhRSXQs7FKYg1qoTbtzddkyMwnTnHT7RdF8ahOG8xJnlvPiIjhWtr56rw== 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=dfsSJgRbvl1c86QAKbFelyi3eLg3eqC4arVck2wwsEU=; b=UZZ84Sx6I7ABlSa5vLahTjDjeAMAnMRuxwDfsdUVcduSvUDBH/OvNrXa8V2WmBuxqOgERvhf6V/oJMTi09UakjEFlbnomp/282V9bo/EnheOonOJiiis4v3ZcWDK5hGQ7PblM5LD3cvbwoa+exYzDRcJpSsdnpXNrk3jfXrEynjYQkfDNTdcwyq1gAZXtbeTwJh9DN871hBmeJtf11K+yBdHCLzrIXSt3BbW0dQx8e5zUWQ16eWVZwGC9yjtfwS6rHXhe+2FNUyp3FzNd4H9ZY5naKaWMwu939jLiu/WU5fOD2WBFePTAXUFcjsPBOi0HtFCAlrr/LUeeF928iVpOg== 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=dfsSJgRbvl1c86QAKbFelyi3eLg3eqC4arVck2wwsEU=; b=lMZ9s2uu5K2DHqmIVgLzKUN6lyL+MLu28Hb3w7PB9ig3F72ggny58AtM0xJs8wk0K0gyhjWQOyzqbogaAkPxBM1UBFUQt+cmMPDLpytUrkRdnxG1eNCIcvNVzJozi+md7zPXs6akDHqudE48+SxdKevQEBFjLBd7NnvyBEh8NHw= 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:54 +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:54 +0000 From: Farouk Bouabid Date: Wed, 29 May 2024 12:10:34 +0200 Subject: [PATCH 5/6] arm64: dts: rockchip: add pwm-beeper to rk3588-tiger-haikou Message-Id: <20240529-buzzer_support-v1-5-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: 669a2153-8fd4-4e70-356e-08dc7fc79e71 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?zv7vjKiUVYq9KEJRsZyJ/CpqZxPtnlv?= =?utf-8?q?C1aIQrWXfHg+dtA/E3d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ObqRA/YUqUVXJJuMVzjQ5m5kVho/DXeQN?= =?utf-8?q?8FiYEtvK2xPTNU1CoGEu+xYOjjlvOIg9KaN45h/Jk7dhaRTu+JZifn0rqf7U3xPxe?= =?utf-8?q?6BuelCsXqm4YpMjSrmKI+FNBgbdEwXylnxJJTUrejReZRWvoqo8DC40LmxYnOqoxt?= =?utf-8?q?uFPhfiulcwNVIPruEYizZsrrq1LsWTqg5LXwq7RPFgTUfbNMCtPLhL8GVKBWkAtc1?= =?utf-8?q?ySxrAvwqH/D4ArRn5x7CK1mUednWl6cybOMKxe4nP5XsRL5AHIPjM+mWJks8ENz2r?= =?utf-8?q?Io74RpV/cJlgUCa2gp37Tl/ntu/hsf88H/S7dRMXzk/vu5pHWBmNX/ge0IxaljLN8?= =?utf-8?q?hKu4b/YK7/W41kwxftBUVYNnoro1MYryBNQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL: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?j9ppmaiZWUXd+IHsCPKjZOIMTcIT?= =?utf-8?q?XgYa+iPzRVUasIPX3OmYI17+9jPndqHACIW84d8tbzm7xEJCm5GoK47KnQUHzNnXh?= =?utf-8?q?Gu/79we7tffo9hBIYRf27HzvRzFoBNPwPtJAD4OggS5+HRFPXK5eqfRp1I/NJgMY0?= =?utf-8?q?QvfiO9C4fsix+qL/8AQ5GONLen0HCDtyRdv/lSUdLJvexCu/KoVCG/oLJV9fPepNK?= =?utf-8?q?tiVV/YChzs+Du4aLLBaega5R5Uotwvpfcp6GjvzcgvnVUHa4FQ81WJ3RKdLHlN9rs?= =?utf-8?q?cPrTEbFDLKw603g9/vlsFlC3X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r+3yiG9jeGCFdHNEi3vKbx4J/?= =?utf-8?q?LkCN3JY7N/LTrnWv+AtFkU8qlVj0ru6yK7BryZ1a7hDQXeQszgjNtp5NnPxnKEbk1?= =?utf-8?q?HG6juScA+sRaDF47gklx4HvXdsvstO8+BsSMylZKG4gCXXenbgiHjrkRtmC4MaKMa?= =?utf-8?q?E3opDv2JmDsxmoIC6UxcLZQauLeZYxFuYKzC6K/3q12OIKdAQRH52jYWQnad0/WG/?= =?utf-8?q?LC+Vi7xGfd/2RjbzZHYlB/qeSgGZwTn1WQAybhJTaMUdGzReGI+wpg3uuM51cj87d?= =?utf-8?q?G2mKugA5Poz7viXbQ4iW9k4xh3lw2Vj3NBPYqWtNyddQeb5yJ63+EB8PIUDRR78yT?= =?utf-8?q?+TMShSS1zCyOtmIb+xddgzkNqevy0QOOxg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 669a2153-8fd4-4e70-356e-08dc7fc79e71 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:51.4087 (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: bzQgMpU+A4/GS1Iw6AUdFUqzMr8HFh9bRb7qplZ5svdiOC3IhwLj6BoswqoBAGH0ivPqspv3QitYPcUp6OOreWWFsymdbP0EcE6WrXC5ico= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8811 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_031110_612405_1D5901DE X-CRM114-Status: GOOD ( 10.10 ) 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 Add PWM-beeper that uses Mule PWM-over-I2C controller on i2c-mux (0x18). Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts | 6 ++++++ arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts index d672198c6b64..cd5f07ef70c5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts @@ -16,6 +16,12 @@ aliases { mmc1 = &sdmmc; }; + + beeper { + compatible = "pwm-beeper"; + pwms = <&mule_pwm 0 250000>; + }; + chosen { stdout-path = "serial2:115200n8"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi index 5ed7d51717bb..7b95bede4621 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi @@ -13,6 +13,7 @@ / { aliases { i2c10 = &i2c10; + i2c11 = &i2c11; mmc0 = &sdhci; rtc0 = &rtc_twi; }; @@ -228,6 +229,18 @@ fan: fan@18 { #cooling-cells = <2>; }; }; + + i2c11: i2c@1 { + reg = <0x1>; + #address-cells = <1>; + #size-cells = <0>; + + mule_pwm: pwm@18 { + compatible = "tsd,pwm-mule"; + reg = <0x18>; + #pwm-cells = <2>; + }; + }; }; rtc_twi: rtc@6f { From patchwork Wed May 29 10:10:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13678620 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 0D720C25B75 for ; Wed, 29 May 2024 10:12:16 +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=nQR7NgfGLhNOQLG4ztyHYWJMNyKH7FqRJ/yRCIsH3YI=; b=XuWNKe3/5u9RyPvUPge/vEIxyy 8PQX7EGTMTmbSJ8BjFW8eBh1sZIb7t76hyzQQYxVpiFJbv/zaYEkVPMVAZcdI4gvwqXx77GDrRA4g N1MMksI5gCA+SG/zhV9cm3/xmpfP4IypwPZ0E8AYCvi5p4FOycfTTPgd8WavopQPF9qtnfJ7eBJuK c8pwTw7Xc0aOZAU1ziubTplNlw+icGqPqzRo+73hDKEuC+8XJ910YldhID0oDsHglcsMvBKq+otlQ v2DYuwEAMmPebTuQLfMjTj9BekX1uEf36UbQj8hnuDzJQCOGUbMs7LtpHXpoZfP/ZZRgfF2C3Aaz8 1+fNe1EA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGHz-00000003ky1-1f76; Wed, 29 May 2024 10:12:11 +0000 Received: from mail-am7eur03on20700.outbound.protection.outlook.com ([2a01:111:f403:260e::700] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGH0-00000003kKL-3mb0; Wed, 29 May 2024 10:11:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ps3fwI8l/Vf+1Efucv94L/GacrPuRjZhTCqeyCmM5tTe/vDK3h5XsXFeNR4zZD8EwL3pILibikm4nU2GyyekB0IEu9+SYkwb+k1RQr+ob2G+S6CqUs2r5DNLqFKeUQhgkHwHv8uTvDPVe3jovrkRmLZfSQJ0Uv0+OfstMp0PG0NfxoSP+YuHv4NFZ2RrRX04S4hkK6NQvnko0IuMNqSXvUCEFy2TxDcTTyLrQOVtof9xef/5gKVIIdnwfeWthFKt3a2tSoY9Tjim4TW5xDHp7JXNA0RxSB8DmWT1lc8NdzhYEW57oaNyWEmKOcZTC3/7iT3WxyUDE6CmLCxb8vVmNw== 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=QIMtSK+EM8pCgTvjdYWx788ni+ASBVHCRC0nlhb7Rlc=; b=LhQvCQxbTKgU2YkKycGTiNTWc8kxjg2CVyJMXTQ9+ZgpMwqV+58hC9dZcp52QtnEgnKV6ao9MQpKSRCKstlBoGGPA6jYFN3kKUqMa2rSFf/TfklJJzfqnnIeiIEN/jHCqEp8p/0EP67ENnMH6peRezCThp3lHE6o+xN4e2LLCAbyvcOJw0rTSGkbl/1YaDT8xlKw0DGISFBrKwfLi2JdxA0W1uf0yEfLCotC/m4cE2TEc+EP6IZFXwjXGfzte+yr42UzWK7J8wKy2GkbeFeHWa1YqAtqMiKtWS1DjP2sRRKtBquGRSCICmh430pIr6TCvxasZMTuUZw6szpyomsHWg== 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=QIMtSK+EM8pCgTvjdYWx788ni+ASBVHCRC0nlhb7Rlc=; b=TH1iFNqsOoqP5+6kNlvC9bUenv9t/SiCigiV4IiClzaJnUU9Qy62JL34N9kGn/o/v056iBBVGsFbZVTMHHk/QcsWcc1M14BCSm9hYkNBVFPWdR/e/826T75tD9knq74rIdXOV/D/r8QDws6riO5ja4FPEFDjoSIWG299V4VAC/Q= 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:55 +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:54 +0000 From: Farouk Bouabid Date: Wed, 29 May 2024 12:10:35 +0200 Subject: [PATCH 6/6] arm64: dts: rockchip: add pwm-beeper to rk3588-jaguar Message-Id: <20240529-buzzer_support-v1-6-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: fcdd3251-f8a8-4ebd-7c99-08dc7fc79e91 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?IBqjyb/Ns8fKYJK3FgiJEcMOk5YePUQ?= =?utf-8?q?3x3NXEEqGeB3LfLcYCGZw8ivLFVKL0e3XklKuuqu6npEkbvoxmTphqgSa556ijgBL?= =?utf-8?q?VnEVZYULrbY9oycr8r5X7Sg1V6CaRXP+PXAG9PaPU/F8C1VXfuYFfWtHnbSgk2ba5?= =?utf-8?q?pVu7KVeMwK7hKNrXZcA0MSxVma63CLw39SHBkM10s2az6yssUx4U5WFr/6nWZT4yC?= =?utf-8?q?Q6km0qLiAhrNgf+6J2g34l3Dj6AbqssCMFPOC9xJWrDdB0DAtgszAVp+78wtAc3O9?= =?utf-8?q?gd+s49udkb/eYxb8TP9tpMCuYmKaX2davW2tG6Uo+DXG+AqO2gcBG6Nr7MqU/ovni?= =?utf-8?q?t/gu5AtOb1bBBXqlquY6tAwArHfxKZ7tSbBbVBAw4D6m1BnBwj/S+/OLceow5ri70?= =?utf-8?q?mPM6VzocIFlbZPe9kXuuTsbuLCED2H1SmTA15LfnrrCM35G3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-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL: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?zkWvQVzTMhgza+zAg2QKsauH3ECd?= =?utf-8?q?31SXKboNqlbSGWipXuG30EMwoT4nSgN0WpjOGt+zcI4kLSJsehnpFgOumuiXuc0m3?= =?utf-8?q?Ohao8OgNUoBjDJiCnh+8wL04FlniChdcBdsL/fn/bOt8pLQps3/CxeuwAbU6PI1j1?= =?utf-8?q?Ycr3FJqhowBpAhbXfhL7Ez8fG5ny7pbdxzsr1zI4JDlHKQpY09dmSz4Cy4uUz0nw9?= =?utf-8?q?c/rjwHwowi7cqu6uo87USQNvtYFwH4Gg/KnkLe7fwwIopLURdET7TZP7C0LFq54sy?= =?utf-8?q?51xJR4xjYZT7oC1vfuUzBtrrxLGQzmE5kQyxtbORx5RXccgyoGhwyztkX7Qa2CQZP?= =?utf-8?q?RZ8m9XE5GI5LJjj/jCm6WozzGQK0FWOpu1kw8Dl3x9Q4PFFRo4qDROJq/+RYbZ9tz?= =?utf-8?q?En8Wgk37Mp+Vb6SFOq8ep2E1LR+atzPTRW9uh2mNgYLQZk4gFeErCTq2U6VzhIqKT?= =?utf-8?q?S50MGynUh3O+0y2pZSCToj7gFLjIPe0MTTrsQIiVfWSVDktbp807ktFn07rMACIOn?= =?utf-8?q?jbsv8UTDyb3MXgLE4CVZ8mNLSi1U3kkWOm/q91LQIfeS0li6gy1uXaP860w769MnY?= =?utf-8?q?Kbli/G7WVlr/B1fMYrNLMUh6k5nzju8ZvSnM7Zhl5rf5uFpi/WuU8aPMMJgqwsSl6?= =?utf-8?q?RoD+g4SmD72vNRbRmMBu6992Dazqo6iRezAKVDmXo5DX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herry.de X-MS-Exchange-CrossTenant-Network-Message-Id: fcdd3251-f8a8-4ebd-7c99-08dc7fc79e91 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:51.6335 (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: lD3RkbT1JGS4yKo2xPc25QSZywobvgRfyaQwte8mtzWTIaw2wWjKbyO2nrsJ3bBB/BB/eFbu0ketT5FJRMUj0fFX8x72xkp034aGXkQFYUk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8811 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_031111_085542_B61EDE2F X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. 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 Add PWM-beeper that uses Mule PWM-over-I2C controller on i2c-mux (0x18). Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts b/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts index 14f1322c162f..c7c8683dc1ef 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts @@ -33,11 +33,17 @@ button-bios-disable { aliases { ethernet0 = &gmac0; i2c10 = &i2c10; + i2c11 = &i2c11; mmc0 = &sdhci; mmc1 = &sdmmc; rtc0 = &rtc_twi; }; + beeper { + compatible = "pwm-beeper"; + pwms = <&mule_pwm 0 250000>; + }; + chosen { stdout-path = "serial2:115200n8"; }; @@ -267,6 +273,18 @@ fan: fan@18 { #cooling-cells = <2>; }; }; + + i2c11: i2c@1 { + reg = <0x1>; + #address-cells = <1>; + #size-cells = <0>; + + mule_pwm: pwm@18 { + compatible = "tsd,pwm-mule"; + reg = <0x18>; + #pwm-cells = <2>; + }; + }; }; vdd_npu_s0: regulator@42 {