From patchwork Thu Jan 26 09:18:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manuel Traut X-Patchwork-Id: 48533 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp179791wrn; Thu, 26 Jan 2023 01:20:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXvqJoaoA/RnI/m1H67WoheEf5YS5AKJGA+Py3MhbcDegnEyL9iMFl06l2aXO/OzVDw0ScLS X-Received: by 2002:a17:906:3e13:b0:877:839c:bd6c with SMTP id k19-20020a1709063e1300b00877839cbd6cmr26207236eji.71.1674724826814; Thu, 26 Jan 2023 01:20:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674724826; cv=pass; d=google.com; s=arc-20160816; b=pHB00R9HQnY0fj223Asmp47pW8frePsV3+n6VB4lHbaURbP9HJQpCAk7qCfWiLaWf1 KNjB4UNZ9ePevlABbEGnCLYJYqXo9DOA8ovoS9T2Bwc20g9mjEi8OaYNQ66YbyhLCFsc NBZFo8mXBp/y6SiuERh0I8lIUgPAIxVPadHLSZf2hRCwhwQev8p/+oWH1MhMqzs4SkV1 mkLRZgWWbvfzexUBEHMTySjXv2qPrjK29O1InzgInFT80n1V/kji8erShM3iIJSuMv3Q 8+VpWlRGfpsYUmmIkWyRx1TyX3jS2I6Fvdo7qn8ZbCtPile1BZ3J4tzrFeJ6TY6Sgd5d xRlQ== 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=b09xNOJk8UPM1c1cvNP2Dg32225UmVsv0xJZ3OX4H5o=; b=0Gqe15dm5JGwdNfTwwa64IaZm5h0MbwQ6zkkgm3CLVY5dgvAWMSFpnyBCScaO648oP tzGkTqyzBktnLeolWAXl3KVFMz2AroKgEgPJ6NHOTLiidq6fkjMoa0FtGzAKRsjtM0HB Ik9NLStkRzULnYWroMHun6g0IzDqoigYZcHuMNBzvf+ygX2B6V8lQHJd7mL9cmI4qtTb wlQkZPsLFsfHku9VlO/Xpj0FYlTiIq4NTwtj217dQZwbEkbLVgTxbAN778f0DK0mVBxc 3Vgcq0VYYfKutk76/5B2NlUenh1ucvX1Ssw3i62bSyi2eYtiDtUbMXwCCJ0CQhQTdpNW UOQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mt.com header.s=selector2 header.b=m7tWo6WK; 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 3-20020a170906028300b0084d34979413si658225ejf.332.2023.01.26.01.20.00; Thu, 26 Jan 2023 01:20:26 -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=m7tWo6WK; 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 S236762AbjAZJT1 (ORCPT + 99 others); Thu, 26 Jan 2023 04:19:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236836AbjAZJTK (ORCPT ); Thu, 26 Jan 2023 04:19:10 -0500 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2123.outbound.protection.outlook.com [40.107.247.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DB3E6DB11; Thu, 26 Jan 2023 01:18:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OsAmPtZwIYilyABwT/VcQ9M1D9A2r/zvPK9kEAJtkPLoD/QzklunXknMxC1qt89gmKOzKWYYuuoDpPjbeVA3umquj/+dSYrypmOsE1AZ86owuudqCcDv2mPU0ZBd0DSwXE26KMXTXxkMRnDdplGTCOvLe9ihWI65103LZg7/7E2cCL/fpMpEcS4Ip5AoJk8RPk3LYqo2NeqqXnYulGwcgpltGPGhbMsclxojoEu9WQ1ft9yGBEHe7r/fKxfRKof0OXa8O6pcMA7Q7AYZJ5Pmjro6fF9MQprKvzcRTOwmKr1Aj9VYFmnSSwjbhFZbmZLlE6AjVwdLH+OReLiUo4oS8Q== 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=b09xNOJk8UPM1c1cvNP2Dg32225UmVsv0xJZ3OX4H5o=; b=fYUWoZGw8fUu350QYAIo5HwHIZm7z751x6siQmHyIfjEcrB4FJqI+Yz2Z/G9+yQRffKaRrsuBXfTQc83joH77FMsqfKfnJYATQRIraLEQ5WyajGTn2uOKOQcseiI08F0vPWWeV6Vyv6mRg975yjMAQeTeCyIAJ2yEQ2m3EV8gwdii+l9dnD+3ET36tsuTFHTuHAxmgyJkv/rDB4rVmO80Fy6Gc7eTJrvcWIi5hI+ctyIPKJICk5bVPMFDdL09IjV23CSe8dFKVH+OGz8bJZoWi8QxsBPbmEKgwg6Go49bJ5s0U4iOTu5kESdO8Yhx0Fjx0u85YQeImfGXdt9siwZtQ== 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=b09xNOJk8UPM1c1cvNP2Dg32225UmVsv0xJZ3OX4H5o=; b=m7tWo6WKmBZl3qd54txkhQCMXoDZmOLaHw5B9XAnwug0mxjVR80cRJ8zh4hz9ZFZcmEbA/gBV9gGe5IqMmGfzt0qMLpv27AASbiqI/GecbdhpltBgn+XLyzLmGB71KQjrYRlemiRs9E0bjR+y5vUO/W2NdN7mmArZjJvikDlI170a6XnSviZ8xLdYTfVMK4MaAYrhp4uwYcO+t1075keWl8MvjSdwfpdnY2cZGWgAhfZ7qJBa2tMmDLxDmkXwa74fLgjmBtUmdhhNdomdqD3XgHr35wGlohBDfTv4l7/hPZ7j4byD4F3FC4p1o4XwcMBOMYxZHsU8DBI5fnZMU5bVg== 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 AS2PR03MB9516.eurprd03.prod.outlook.com (2603:10a6:20b:598::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22; Thu, 26 Jan 2023 09:18:48 +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.022; Thu, 26 Jan 2023 09:18:48 +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 v8 1/5] dt-bindings: input: pwm-beeper: Convert txt bindings to yaml Date: Thu, 26 Jan 2023 10:18:21 +0100 Message-Id: <20230126091825.220646-2-manuel.traut@mt.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126091825.220646-1-manuel.traut@mt.com> References: <20230126091825.220646-1-manuel.traut@mt.com> X-ClientProxiedBy: FR2P281CA0141.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9e::20) To AS8PR03MB7621.eurprd03.prod.outlook.com (2603:10a6:20b:345::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR03MB7621:EE_|AS2PR03MB9516:EE_ X-MS-Office365-Filtering-Correlation-Id: 170e5c76-ed1f-4805-e5cb-08daff7e551e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oTsXuc5pMDXWiivY9vCWNOJrrrSvTaG44hEemy9VdXZ5QN/WSh49Lj3DmXsq005jiH+30PB6PqUYUOGhCV9KoNSlIUtdu+bH1n1Jp/SxRfs2m4dMh+d2EjoUsOA6QuksBSrIazr/ZaIE/MwWBLOQDEokVPUdAvqCe8CT2Ylu0rpplUcYIORkf5ziLMlgyYtUYO1q4zVTrgVrKm7JaNWtb0mB+3H19CllAKvtcfV3l6aU84ThUPmRkLwSM8Q+fIPC6pHmJVB8NkJrTGsX6sfw8CAd5VMeDQct0GZVjT6ULiPHN2Wgqe0axCtRu6yq93R1vSXsA7ylco6kBK9wHuCMpCXbCefxrD18jhzjugtcpsV6aWWGq3ANIvqBWid+vSpinz/U5q0foCrQU/8/nzT6FCgC12RqAbO/dCcNea6B/8B7oiGV/jKhL+ClF/bzJZ2b2tmiyoN9g5P1CfxuJxle1BaYoWMTut07jtnCO7E+jeuIqZgQgeF/gss3DC/wNNkkUXyE5O5CBhA99PFAT/tRoPs08bApJjtIvJBXGFNZ3HS95/307itzlpCAPvoUc7eNeq8REfHzniW5V0cPFoNlKh2kRFowAAL24+0+d0MtIZ38sPNkSYuNiOigHHpm7vrcPZ0xs6dNXyP2H9itgJctIeLJvAg2bWHTc+KIlIwAk8Y6Dr5eMjlwnKdKqAu4wGyheIBE7jOJRYNlrdirUCdjlImkrytiSD0jPbI++TwBTJM= 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)(39860400002)(346002)(366004)(396003)(136003)(376002)(451199018)(44832011)(2906002)(38350700002)(38100700002)(2616005)(1076003)(6666004)(6506007)(6512007)(186003)(26005)(86362001)(83380400001)(66556008)(66476007)(6916009)(66946007)(8676002)(4326008)(5660300002)(36756003)(41300700001)(8936002)(52116002)(6486002)(478600001)(316002)(54906003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0iwx0g/Z+YWgwbqu2T5V6y1C8JVXQ8G0GKSoHcOTBSKcrvabESfZL1dkzDwUrkc0lvnU4L8yVDHww05/eqNqcLhrb0f0c0eXOEWiaO0bViGh45BGKKBDKX69N2n/E7bitjGYL0tY0ukWV8ihWr4m6vD253fgX8Wtx7jnOfbbbg0xI0rQLrVEdF5v+LBxpVv57czModX0cakw0mM1+RTOFKRcGCEFmbAgtYOwzxhn/L48BsulVzdjUM5B6BghtkLrmk8My3W31PbUXKrH7OV5Y4qNkLnyES1BewwWlgR/8N3oyLHj+HPiNMpvgHEYJhE2fpU8DC9ZvJfMVDF4sEdRJ6JcQBwSFRNCv+5BkBj5rhotiaM2X2h+UmSf2/4Pne1lZokO+s3mg9Qt/EhpxwYz3yVx/387SlM2Z8WeICFLBeO7idVLAFyQQwDeCiy7jFNSVW4M7dQG431ynl2KJaf9d+eFfTxhAX4/11pqB4snk7EdBSpH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5nGTmhq9QW X-OriginatorOrg: mt.com X-MS-Exchange-CrossTenant-Network-Message-Id: 170e5c76-ed1f-4805-e5cb-08daff7e551e X-MS-Exchange-CrossTenant-AuthSource: AS8PR03MB7621.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2023 09:18:48.6178 (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: yvo/T5yPlQy0Rk1cWSJlS5mjnBrtprWDji7XhNpRVV3mnNx1DeBlH9p0vZpWIx66IjdYAktvhHQn+onefUViog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR03MB9516 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?1756076259958762843?= X-GMAIL-MSGID: =?utf-8?q?1756076259958762843?= Converts txt binding to new YAML format. Signed-off-by: Manuel Traut --- .../devicetree/bindings/input/pwm-beeper.txt | 24 ---------- .../devicetree/bindings/input/pwm-beeper.yaml | 48 +++++++++++++++++++ 2 files changed, 48 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..351df83d5cbe --- /dev/null +++ b/Documentation/devicetree/bindings/input/pwm-beeper.yaml @@ -0,0 +1,48 @@ +# 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: > + phandle to a regulator that acts as an amplifier for + the beeper + + beeper-hz: + description: bell frequency in Hz + +required: + - compatible + - pwms + +additionalProperties: false + +examples: + - | + #include + + beeper_amp: amplifier { + compatible = "fixed-regulator"; + gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; + }; + + beeper { + compatible = "pwm-beeper"; + pwms = <&pwm0>; + amp-supply = <&beeper_amp>; + };