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: 50290 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2190700wrn; Mon, 30 Jan 2023 05:57:53 -0800 (PST) X-Google-Smtp-Source: AK7set+mRijM6VsfLv6d8zJwU0lIBx5tS9OH2FSUE3ZUx5fXjZNwyXkoxo7/RFpPU+OPSEMEknNp X-Received: by 2002:a17:902:d484:b0:196:8bd6:2398 with SMTP id c4-20020a170902d48400b001968bd62398mr3029500plg.18.1675087073029; Mon, 30 Jan 2023 05:57:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675087073; cv=pass; d=google.com; s=arc-20160816; b=EC3LSDvBzN+6IctD9wn7DeXvnx44Ll5zh4xdkQQYuKPNClWLtWRrh88bzZCBypOZSb Fs02iCUqlgdE0T/dfWSfxOMmULX0cMbo5DWncoXcIcnTcj8Xzf7Vru4uQT9IlV/OVxNT V0Pn5D8iTrJxlq1WkDYsRn3WqL7l24Z5q+oAaRwMt7xT/xDiAhBpb6Bl2hsOPpjfg2Zl 0YAMcb5nqN6Dj/KBgkpNl+G/oxFZunFZVgAj5SwA++1V5mPvEYx32hvZvlVB6nCm0E3W NOtzLu1pqrtniYmbF/jMKIz2RPu5IRwm1vo2zjEhDUqcARPmkvrcU1eCwYMnK/AQGzWG XTwA== 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=JnMXXZbaRT5Boslq9/yO97/ciaZaatrX+ihEoh4DI1k=; b=Umm+g291OWZ6fIXKSdUtuYZhfWl472vtGKfbC9FE39H6b66+jqYQCTetR0LgQYCDmD kEZk7n+STuVZMbjBh+CeDYZAjLzJqbGuSmabIh5wHGZKjLfOaLloTp1GejVu4ChCQOO5 lOuaTAKC5JrJkeQKuc0xK5439a0o9mD0apuWNlP9ihXboAvU8QimD44aTVq3nxzivK5f u7C4qLicGvereRx4wnlBrcGgDnRIFFai8HhFzYQmnB0bhUCB/iH7XIw/1LQG78471twH AHDvUt99me2TkM9NFRYlgltpe1Qvz/Jj1Gc6kDGbGYpIZi1vQtrhi1zpsPei0xyUephW hs5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mt.com header.s=selector2 header.b=O3Xdaw+i; 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 t24-20020a170902b21800b00188ef2314b2si12348073plr.79.2023.01.30.05.57.40; Mon, 30 Jan 2023 05:57:53 -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=O3Xdaw+i; 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 S236723AbjA3N5Q (ORCPT + 99 others); Mon, 30 Jan 2023 08:57:16 -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-MessageData-0: ERxnyjH76DIUyNgxc3KVXNzotiz+GwnrlsI4CC9kKHqnAB8wIWiyHwo6HNCyPcYv7fjbPKcgQYQ3TP3BdrsxcnQZAB/T5GEM28jUyItImLeX2pUFj+Num6H7/rwQxguLHim4xOff9uPigMlaod5nHEJstJNZChrJDnGetAVDsNmOjFGAz6sJgy5OJkPQpkREHLVoyH+3ZIeZXjaGYDhY0hkt9QqmrbtzgRJjbX9herzmNKa1Zz76Bl0BgeC+MY6mNbMO0DAG1zkY3b+CL0CYhbSv7eVQoY7TMTNkls1BjdGvVMcTrsdicmXB++/vvz2+q9VDrwqqDWwRVHhwQZ/ppBjQiUpGfx2wZE0rcEXdcmsCab3iJ37K0/tSrGNB9XWkyO0ZeWnDa9qd3LXGJO4WnofrKruvjQ90+DK3Wk/2dceZR300nJSv88VvaMS3p9GQXaHwWn1Qla/P+P8AG7AOoXd6LzSGlqXEbDO9pABAYzV3nc/VOWK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Yldg7DoUpHgKnW1VMfKTxQ9 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 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?1756456102724039185?= X-GMAIL-MSGID: =?utf-8?q?1756456102724039185?= 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>; + };