From patchwork Mon Jan 30 13:56:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manuel Traut X-Patchwork-Id: 13121165 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06A2DC636D0 for ; Mon, 30 Jan 2023 13:57:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236714AbjA3N5N (ORCPT ); Mon, 30 Jan 2023 08:57:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236647AbjA3N5G (ORCPT ); Mon, 30 Jan 2023 08:57:06 -0500 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2098.outbound.protection.outlook.com [40.107.6.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E45739CC8; Mon, 30 Jan 2023 05:57:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O6whfNWDWFrBv0v/HPGr3qxFFCcM9LzJuFe6LxGLSwx8yozb3BDe45zEMjsnrmnnOwQkuBXpp/biNpEHoCpJscG+cKpE7fM2cYJzn6dRIfdSazxSO/dv8g/MKJHi5fYgntWc9G+1tdy2faICbw6cMs2wn3LW45GrkINKez2kscvhcWQPV3PY+gsSOPCpIIFh5OlXEhOrvuejfOJ8NC1KhAFdEtPwbJ1/dKfCQ08XyokoEh+Hx8V2s3ecyRYfRY2k1rBiWinqMpZLxxmMkiGDheQEtYVjyWrZKyLSpD6d4LmvHg1ZYolIJTaSNZPKrDuAQliO0TYO+4Jp7AuR8Hqc8A== 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=JnMXXZbaRT5Boslq9/yO97/ciaZaatrX+ihEoh4DI1k=; b=MIJEiafJJBInEp6cnPp9GlnaCRJk4IuEEfotlTj9zsD2SFduj3D9LjzjpFyMJhsn1GeMOySFsiCfX63XEGUi9NXdt2pwh4Ld/WcgHk4kRzbbZ0nadjU9P3ZzobCu++5OFeObzakO/1en4zy3sTsZoPYP+idSnD/doLEa6Ox129WRLQ9r2hKbNgcfyB9D9QFolYtSpkJQnT0sq7HBoagl6muISLJq4cuQ//aTlxB1TFp0/eM23wj72o0h5D7JD0+V3MPgtJR4c6hzqLb+KUUh84nSxG13TrWs57NHMFQAZHLIUyYkyl5xcLOwxFoBCfHwIXEDyU5ZivrmYK1BDllXbw== 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=JnMXXZbaRT5Boslq9/yO97/ciaZaatrX+ihEoh4DI1k=; b=O3Xdaw+iJpUYxyPClvDay2Wlq0QsJYSeyp8Pg5hxV2nCW7IK24oSJZcpMsMwfm0XZJNccYpu2abwoA/GXGr0Y1JEL7OYYBf7ECWB/uSNo6IyKlVTcojxmLX5ABxMYPT1ccvi7etdcXHXFFslvJb7vkyRtAHqK7tjCZ+bfbRCu8wlBH0IRIS75pZTmt1U/rEAHFL2IiPq24l5fc2+FEOv5yEp88i2Q89gECw1eIzAfJcYX2N0EDoSwVi14cbpCga9akyVeSM/bMkq4KPokk1FQdRggYA/efKrASmPMHDWh28MUs+YToeQDqNxAzYQAzoD99Bv/qeiZH+GFhODt+zWbA== 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 PAWPR03MB9081.eurprd03.prod.outlook.com (2603:10a6:102:33d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.33; Mon, 30 Jan 2023 13:57:02 +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.036; Mon, 30 Jan 2023 13:57:02 +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 Subject: [PATCH v9 1/4] dt-bindings: input: pwm-beeper: Convert txt bindings to yaml Date: Mon, 30 Jan 2023 14:56:47 +0100 Message-Id: <20230130135650.1407156-2-manuel.traut@mt.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230130135650.1407156-1-manuel.traut@mt.com> References: <20230130135650.1407156-1-manuel.traut@mt.com> X-ClientProxiedBy: FR2P281CA0155.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:98::15) To AS8PR03MB7621.eurprd03.prod.outlook.com (2603:10a6:20b:345::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR03MB7621:EE_|PAWPR03MB9081:EE_ X-MS-Office365-Filtering-Correlation-Id: 75d17eec-8258-4155-4efb-08db02c9dcf8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dmoKjL1NLOfXZQ0/eNeGHB5/F70UlAhWRwmjs7npzIX7C0R4N9LSgZYIU5AyVDNx0Oiw5cgYhgwb7qRCb1y4fn0hHrGQ+JMB0n+dcRRidJeDEf9aJEgKxVb1dzkJYC/xWNSkxkwejykd3tXcQCwGZWwpDWUxBWoYtmteuR0/MDYbmc/KvaJhVI0wzKcElrDj4QKYPVozuNAuMKcFuYNoiHQDODldKIV9CJI3E4nqiJPaXZ8QWabw4VS/zl0Sqh9YuqKBWJa2ECxxe2eRhqV3VUs9ovx5WNih7PdjITk2zroOCrjglmzssjD8lV64eCeIY28NT4inrrpeyQZIg6wqRT/FetrLlZcLg6MKNPhSI8UM/OQ7HfWpIPd9a7OSWNMCeJIrYNeYjUOcYPYf6j0tDKlfDj5FQBwCNXjb45XmOXTABteUp5MuRheH82Z4YtPRRe9Kb/5pNavIP7mAXzPv6wULNcIBbzvtvJROy80oADjuNn2f1YSMKgsihNH/fVviZIBuU4rZPwRRuC53A+GF0Lho/VwZkyrrgDMrcIu+4mtn6uFSsKrrCbUz8p+MSb2lpjQla5i6PiLO2bvnmU0et2jljRHjMynvaTWdMcvYfBRwb/HAPc5PWZwBlajllbRfOFAp+EJLR49GZyJ6FBE0Gac143rRIcSKA+CHf7SWlCubdno/nRvKq1b17LyHHqCxE1s+kOel/tbARNMsHSiwAfmLGrIjGGpZLzqG4qCTbDo= 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)(346002)(136003)(396003)(366004)(376002)(39860400002)(451199018)(5660300002)(36756003)(86362001)(44832011)(38100700002)(38350700002)(2906002)(2616005)(966005)(52116002)(6486002)(6512007)(186003)(478600001)(1076003)(26005)(6506007)(83380400001)(54906003)(4326008)(66556008)(66476007)(8676002)(66946007)(6666004)(6916009)(316002)(41300700001)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam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4d+vtYM8ZTzLNU03mJfIHGYJj2M9pk2ayqofz9qbEfJEygZO8nTa6coS6lDqb//ivLvO2TI2ya+AdmevE1QiS+Dwr23rvV9EXWZetI71fb4gU86l9XWTY2z1h5GEbV1Ci3gtoSFdF9r++5dSU2v2pek8uEdCNKu/aaONEd104Cnj/ihmzF4C5nY73lI4W1DHVJMYYc1NWOIrn9mtlr8dpHW3uA9soSJBv50oFcr0+EhYbQD7pSaHsxxpJ7rPPWWoL+WcySJK+sbuT/SNWOcuoi5dNt1X1ZIz4aAA6i7oxdhr4FugAJCiuRhRcFArIddXe7yD6pWxkWGhAPytd4yvB7Y+wQbEN178l96Pv/yLWu/TDBpGj3R5rq1xLMZm+xLIH/0dCAoTFFpwVK4YietmqVrkNBi7i0jvvmYZCuI3N4NHfZ5Ng4JXiNCbeuSyOOBDppTEFLiy/U1+PaboZGT5Ja9MqdP69Ka8/6oaAtaBrrSmJEUmCdGFlQ0Yldg7DoUpHgKnW1VMfKTxQ9 X-OriginatorOrg: mt.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75d17eec-8258-4155-4efb-08db02c9dcf8 X-MS-Exchange-CrossTenant-AuthSource: AS8PR03MB7621.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2023 13:57:02.3093 (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: CZIEItxdz3s5R0WZielCuZim+dpnoUJV0ZuGbc3L0/NZEHR/8Y5SYWjhvqfC+009iKTV/brAkXYlN0mD+XmZFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR03MB9081 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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>; + };