From patchwork Wed Feb 1 15:21:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manuel Traut X-Patchwork-Id: 51416 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp340799wrn; Wed, 1 Feb 2023 07:26:04 -0800 (PST) X-Google-Smtp-Source: AK7set82rb4eETd7/zX1Mve6haouFqr87mAr39AnaaI6ZxuUqsD2LqP7xCF8pGq3dbQAfgZesraQ X-Received: by 2002:a50:9f47:0:b0:49e:351d:37 with SMTP id b65-20020a509f47000000b0049e351d0037mr2921501edf.8.1675265163973; Wed, 01 Feb 2023 07:26:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675265163; cv=pass; d=google.com; s=arc-20160816; b=qnU4Xs6WA1z6Qe88c3f6Oa3J5aamomfr1i4Lr8hrFHYzcT7Q69eZpjzPNYd6Y3EOaU fr5vUCI8bj1S8WNuUgGYRR+Cow2mVjj8JM49VhV4WLqXrvtB+MsOeuxolc+NgGCsf8BY rbdRIg8knuA1kzX56F/Ga68gNtzySEVTlet45MuXr0BIfrCoRh5yLxcB9RNRaFS7sTI0 yoQOs0xWy7urTGPOUyGnyyaaGx443E5GHaN8ofNkCU28YbyPFmE4pmk0y19K3TBa0ojH mt1wyp+HHj1/PqHWUB3tTpzYEhcbiI46DMTzas4jCINK8h5JftwoETt6b0JosfG2+RGO e2Fw== 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=P3FvxhoeHgs6ySwdhG6dAKt75icVF7WewSQykfDpa1w=; b=seI9HoMs0h3YYD/b7daV2eeDldDcVY4gbx3jl2fberIkVTjU/g8IRLFMKqGhJPrAIL k4voLajmLQ9c2aZQdMKyyQn0Uij41XZcOK2PUpdAEldyiNW7Xk2gLl/tRf/usieZS/gJ u76cxig7a9ydBaH91Ltpl1JZ5nKJZ/9fTaJdCbseMWOOrUoEJRb67lDPZFXrfkn+orRs AiWPz99+q/zyVLmUOlm8tjysj4l0YrmPKa69Ai01mMm61kXoPfu/ntWWwrxGBro4ZCec J9Ajc2wqHan5lNZnjlY0qm0FO8i0eE6yv2VQn/deedAtZ13bF6lZqEuVKqWLgL2CMpla VUEg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mt.com header.s=selector2 header.b=aVm71yme; arc=pass (i=1 spf=pass spfdomain=mt.com dkim=pass dkdomain=mt.com dmarc=pass fromdomain=mt.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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e2-20020a056402148200b004a26f3db290si5380030edv.133.2023.02.01.07.25.40; Wed, 01 Feb 2023 07:26:03 -0800 (PST) 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=@mt.com header.s=selector2 header.b=aVm71yme; arc=pass (i=1 spf=pass spfdomain=mt.com dkim=pass dkdomain=mt.com dmarc=pass fromdomain=mt.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232340AbjBAPWV (ORCPT + 99 others); Wed, 1 Feb 2023 10:22:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232113AbjBAPWC (ORCPT ); Wed, 1 Feb 2023 10:22:02 -0500 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2132.outbound.protection.outlook.com [40.107.247.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 637513AAE; Wed, 1 Feb 2023 07:21:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=huoYRYIfxhTjIcxycCKkQOdBcbTkYZ0DydXRGzyFBDEyLs9juuk2R5GkM0+l3Ykq9sBxQOdkm8ldscPMLNqt+amrCVGa4H/7lj2TxDkZ7HGo4T1tmzJ7H5uNI/7bc55rV3mfoAiH1PWyh3/hLosn3DIoP9M05P7vaUOdaaCjmicPyxFm49daODFOVqDQmsyRauyTskvPbzuDL8Zvvo6mKUoumfE60X/dA6ZNliM8PstE0QyjEkO/qxBTEAFWyPElaQPnNOQv4tSLYVl9zw52IMEiClD4WPsm227uJq/maVZ+Pznxk7l9NmW5GoL5YRrgM79hU5b3r3FsdOK1jBs3nw== 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=P3FvxhoeHgs6ySwdhG6dAKt75icVF7WewSQykfDpa1w=; b=WZm7mfs61FqLHIMUR6kdrOh7MCY5lEhsisg2rzHwkrSGLM70IRpqrjWVWUI3MqAGe/IV62kyTS4srfD/AHzrpISOsw10ZMr5HMNSPUUVuCfr/p03xfTJt6NNxaL7s6G4Z3Rt4niOLOv91gxFiRKMS0vNjDhzN8c5WV1zL74QO9R6L1WF/d1oHkMTdSKqv6z1r8TWLJlWz2IEcEnSFBHOoSuyn3uHumyZaK6OqkJshUTvoPLM1gjN5FMCi4cfcXbrpUn7feprDIQhh0+ch/HCCRX3CpcB5DbHxM6rpaDOQ5+lE4ukVKBZT6kGxoCnXf5UHDsgHfxz4gadEOkAafM5Rw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mt.com; dmarc=pass action=none header.from=mt.com; dkim=pass header.d=mt.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mt.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P3FvxhoeHgs6ySwdhG6dAKt75icVF7WewSQykfDpa1w=; b=aVm71ymeNcecHcdAPZ0wFV86NNYyNJqGlyLdIFHBdFeaTu0+ac4lYvMRtGHlUo/4dNDHjZoZB4qUw71Ko+WlzN5FnGT8CulLRb0MUhpg3uXS8XcfuYjSl6YZ9o4sPO6pAfJ4JKvOKL6ftLOGWWCnN1PCS8fdq2FdiZTU+RXdxJpG8i1L7gYNVvEnnPEf/i8+8ifRhYmMsx0YBOQpXt3Ddxbm1YsiQVg1NYoxiNrh822xKCIENwL1NCmoeewdxiJ32Te+7WmtgaIYhHDBDwHWKQzkl3DO8RKOuUi5HGkK375K0zLs0ovc27/jL1kbkDgfF/YIZFtBYaqjQh52NpKj+Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mt.com; Received: from AS8PR03MB7621.eurprd03.prod.outlook.com (2603:10a6:20b:345::20) by AM9PR03MB7380.eurprd03.prod.outlook.com (2603:10a6:20b:26b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22; Wed, 1 Feb 2023 15:21:32 +0000 Received: from AS8PR03MB7621.eurprd03.prod.outlook.com ([fe80::b42f:82f8:24cb:a225]) by AS8PR03MB7621.eurprd03.prod.outlook.com ([fe80::b42f:82f8:24cb:a225%9]) with mapi id 15.20.6043.038; Wed, 1 Feb 2023 15:21:32 +0000 From: Manuel Traut To: linux-kernel@vger.kernel.org Cc: Manuel Traut , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Frieder Schrempf , linux-input@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring Subject: [PATCH v10 1/4] dt-bindings: input: pwm-beeper: Convert txt bindings to yaml Date: Wed, 1 Feb 2023 16:21:25 +0100 Message-Id: <20230201152128.614439-2-manuel.traut@mt.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230201152128.614439-1-manuel.traut@mt.com> References: <20230201152128.614439-1-manuel.traut@mt.com> X-ClientProxiedBy: FR3P281CA0123.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:94::9) To AS8PR03MB7621.eurprd03.prod.outlook.com (2603:10a6:20b:345::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR03MB7621:EE_|AM9PR03MB7380:EE_ X-MS-Office365-Filtering-Correlation-Id: f425ea3d-be0c-44a8-73b9-08db0467ffb8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jmul3Mhjrn7j9WB4XdbwQ1zKfTzquW5a39068F5HX9e5CmCO+wxiQPnJ9akJWn7/0WkR5tZs68CruSKI92a/dIhPIbcnV627mKHt+wdFHlUjsVF16faB55yJK8AJ3NSHMtfV94L43IWTxKxZ0GwAaIJ8mwIZIuGmmxB83LY7Pt7iJl0XCOV6RLZfHOuU8X9LeiEc1P8fO9UNpxkzNQMNPTzrMrop7h77n+eKXlQ85CaHAfoHZdDGwrR+JEEIy8fuD0hffK5jKVQtNUUCYetOu55T16vfEQTMNh8zujisYEnvvku1heXAocNl7SzjhoIXcArLW8A6YMfmVM4HaHeVOFinPBR9bTh7tomRApLhXf/IWivvHwmXOD6/3NOu6QYuStP7Epbpq2hoZSGUucC9vZDMadQNQM8KigTufaz0cvLNvFMQhTzVoAnuXhzwhojQkbCXjh4CBRMu1S5OFiw70zKdwsK5KnOup8yK9WDzWY4xponXftWAz6KYx4LkVGBC/jResG/62/P+kp9V3XP2Vc53Qw0FH3voHAsXYqQ2mSiXInzaFUAY8fA/HFqX14Fqi0NMZ9cAenklXxDKWon+dzi4bi3bKhkDnauj9eoWcS7P40limdJvB1FP4W+DZHDfX5jHtBgTnLSpshqHCuXpSo/I/RDdKCaoWmv3s0yekGGec47mVs/JhNW3CEgDxJwEUjoqhMSv5gy+4FJRdrvzzfyVQZ5kZaXYVn35Rv494T8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR03MB7621.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(366004)(396003)(136003)(39860400002)(346002)(376002)(451199018)(38350700002)(38100700002)(54906003)(36756003)(86362001)(5660300002)(4326008)(6916009)(8676002)(8936002)(316002)(66476007)(66946007)(41300700001)(66556008)(44832011)(2616005)(83380400001)(2906002)(966005)(6486002)(52116002)(478600001)(186003)(26005)(6512007)(1076003)(6666004)(6506007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: z0mOy9B95NrK3m3KpFdvsdFUDNxUeI0MN5Aw6xQq5iDRT1pPu3Eu5ul96fJf1ur3jWtTK0fjdOyqDHZqlKRTFqQcNMMuSDkekZ6Oi4EZKaoiQZPPUnVAlpdwVY4iSftP0FQ7YzQRiBVQu7AB0AiNrWIVMoo1AvfALIjuU/Wm2+IQc5DWHteertsQ7F2hlBD74IbRSc7UN3YAqlXLl7wPyU5JoVNfkbpOlrQRK3qGbEOOTYvaNvxq4bMqEimRYgUCMqc0srrEBIyoFKYTXgfif5yhVYLpKTNt5o6IEgVwOkaulErADOVEcNrRYOrGOzzm1exPgOGDvh8yFUVGi3dDYIyRg+NYfndHeEogEzdfCV6O3YzNr5dhBgoQjYJSGmUnBbKozuxS1z0jJRf9xSA4YIWjNT98pGjZxAxkjWt42kE9+jrILxREiOSRADGYO91ZXiY+71nCGcviJOxniL/QLKOfy0/AGb/76YZgLqPurfQHN82ZgalyDv8MgnfEjYKkhcn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w X-OriginatorOrg: mt.com X-MS-Exchange-CrossTenant-Network-Message-Id: f425ea3d-be0c-44a8-73b9-08db0467ffb8 X-MS-Exchange-CrossTenant-AuthSource: AS8PR03MB7621.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2023 15:21:32.2415 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fb4c0aee-6cd2-482f-a1a5-717e7c02496b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ybNu4s1h42DvoRFYS5TvxWH2pLfqZ02dU3WP9Hl/w6TAnwOIy37snlfDiOddtk3ry4i1SHr9O1rMunhro9DfKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR03MB7380 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756642844428926203?= X-GMAIL-MSGID: =?utf-8?q?1756642844428926203?= Converts txt binding to new YAML format. Signed-off-by: Manuel Traut Reviewed-by: Rob Herring --- .../devicetree/bindings/input/pwm-beeper.txt | 24 ------------ .../devicetree/bindings/input/pwm-beeper.yaml | 39 +++++++++++++++++++ 2 files changed, 39 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/pwm-beeper.txt create mode 100644 Documentation/devicetree/bindings/input/pwm-beeper.yaml diff --git a/Documentation/devicetree/bindings/input/pwm-beeper.txt b/Documentation/devicetree/bindings/input/pwm-beeper.txt deleted file mode 100644 index 8fc0e48c20db..000000000000 --- a/Documentation/devicetree/bindings/input/pwm-beeper.txt +++ /dev/null @@ -1,24 +0,0 @@ -* PWM beeper device tree bindings - -Registers a PWM device as beeper. - -Required properties: -- compatible: should be "pwm-beeper" -- pwms: phandle to the physical PWM device - -Optional properties: -- amp-supply: phandle to a regulator that acts as an amplifier for the beeper -- beeper-hz: bell frequency in Hz - -Example: - -beeper_amp: amplifier { - compatible = "fixed-regulator"; - gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; -}; - -beeper { - compatible = "pwm-beeper"; - pwms = <&pwm0>; - amp-supply = <&beeper_amp>; -}; diff --git a/Documentation/devicetree/bindings/input/pwm-beeper.yaml b/Documentation/devicetree/bindings/input/pwm-beeper.yaml new file mode 100644 index 000000000000..1ebc3a46d934 --- /dev/null +++ b/Documentation/devicetree/bindings/input/pwm-beeper.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/pwm-beeper.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PWM beeper + +maintainers: + - Dmitry Torokhov + +description: Registers a PWM device as beeper. + +properties: + compatible: + const: pwm-beeper + + pwms: + maxItems: 1 + + amp-supply: + description: > + regulator that acts as an amplifier for the beeper + + beeper-hz: + description: bell frequency in Hz + +required: + - compatible + - pwms + +additionalProperties: false + +examples: + - | + beeper { + compatible = "pwm-beeper"; + pwms = <&pwm0>; + };