Message ID | 20230328054833.1974942-1-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1993155vqo; Mon, 27 Mar 2023 22:56:00 -0700 (PDT) X-Google-Smtp-Source: AKy350aLcyvG3lUjXxhYo7E4O/zXBKp080DP8MkPz+nnUn0kBDL0U+oEJd4HzJYAaQGY389OUL6A X-Received: by 2002:a17:90b:1e4f:b0:23f:4dfd:4fc1 with SMTP id pi15-20020a17090b1e4f00b0023f4dfd4fc1mr16325364pjb.43.1679982959849; Mon, 27 Mar 2023 22:55:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679982959; cv=pass; d=google.com; s=arc-20160816; b=X3BoVaSGxs1+a6Do2SvBY1+D3Z9BipVc+tj4kaVubnlV0WbYai5svk9CIr5I4F0vg0 aHJLMAJxq+uwO/krMZw+PGBIXKOPWmw0kGhswGJAVYIy5WaSA/zYJIPw9q36QP+ZR/Io kD0Rd4ha9uhi4AUVKeZnLvw6Ju1PhN5B+ok6BCqdHmuDDDZG4zkfHtDE/IBmFnLKx0qI BoGO20liDAXjN+piU2tmIHm4Cx+z7KvXI6oFBEhO3YiCDC2Y6VEVnN7dFPYL1HXny7MF xxoKdONEpNaiOEZtbzS7ev2hbX5w2b94nOOj1FBwLjCQYUkeK7K0KRMxw5gKHXOEmSXE Z8og== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=43JtJWEGZin2m40R8CskKZFH4kwdiG4MtXej0d9ZAos=; b=mZrxJ5tazlEMmLEh3Xbdl8i/x2y0McKfhFrIuH2pKwgW9MjDs3fxytW+TNVDHzAzeU O28E8PcCSD6ZsEXUEcl2xgT6Nan9C/IlBANUzUGYmJ6ZIQ4BwoLxeCOP39LRaHAW19y4 eM4BTVfhq+PUEAjj2lrFceiLUsdzN5ytMRMfvGsySIfZgvdl1Prs0L//8Ze6cJs8PTSa I6YRoNzrQXf8L3d8JZ83oXtNNZoXLvagMvNJ5O2ETk+I8TNoOLzq6mWl3YFbz+lWo76A GH2DMeGj9g7j0f2Aql0gAyM/u2gzGc3GRDKz7UZGgpIN85B4ffF9kK4L0kGSDSgg4FQm QWKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=V1kvKhjK; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh18-20020a17090b4ad200b00237413f8c6esi7862707pjb.154.2023.03.27.22.55.47; Mon, 27 Mar 2023 22:55:59 -0700 (PDT) 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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=V1kvKhjK; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229436AbjC1Fnt (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Tue, 28 Mar 2023 01:43:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjC1Fnr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Mar 2023 01:43:47 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2065.outbound.protection.outlook.com [40.107.21.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15A491AB; Mon, 27 Mar 2023 22:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=epVKTDMUzG4Sc1X9nCXgTiKHNpLb6BK2Z6LDx3SaX1yFYVLVx6Bw3Dna1ASBWXFS3QS0X3XQ4ZTdKKKg2EyDY4+Xh7UBZvFs3SBmMERyCK7XSkmtHQYe/WPYXwmKkK45TidNZkT6goCkv3zWsvwUtAJt3I86nDzX9nhBQSQHnQvIY2p12znMhrdR2VwsIoyBhsiXxqJM7CGg5rleDP5qexRB9tyfI7/Ap5GdTTz87RJQ9Bz5TAvBFUiS5w1KB7wC2Cbts0K924WscYX/XVzzg4xyAP50FmdmftwlMyCQtNv5ROmr0byl819ij9T2c4o30QwnGm3Ye4P8WJI9l9nwfA== 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=43JtJWEGZin2m40R8CskKZFH4kwdiG4MtXej0d9ZAos=; b=Vx5xenUde+LlOchkkdjaOHsLGcULvvSB63FDqg49puHnEz35ZBli0HwK/aRUYEJ8vZn7ljfdYC84MY7OYDefrySuCHY7ePnyocsNNm+5Q1J7IkjTu4NC7NFpChqe39jWb8Jjendcy3kEHxkqiCicyRT63AEVCqqPNzeZz6iLouzqpO209/lpMlsRtJkaXU91JqkGQlVtokh+64fnkc7Da7CaLVA0V0NOgWToYDQwQItL42Oio6EtKJ2JbFKy91HtP97+kH1JMKOifRTQeTPUX3uKkbEfPBVZt+DUSgC+9fu9YtbDbivCSCbovFbAl3gCrncxhdiJ+3k7yCwQyZDa8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=43JtJWEGZin2m40R8CskKZFH4kwdiG4MtXej0d9ZAos=; b=V1kvKhjKk8XHhqf60ucmjnpHXRJzeSj/D/aIMUI2rkax9TykEeSiVANJg1ilYD/hxnyrPYYWZg3sUzJxrlG5Z05AxuHGguF122uIilWh/rJvaSxPK836AmXG3JaEJz1MalxSKC6rKfwy2ZR1z0fRD45jj97fAwIJ1iwYInIkicE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM9PR04MB8129.eurprd04.prod.outlook.com (2603:10a6:20b:3ea::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.33; Tue, 28 Mar 2023 05:43:27 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::778e:19d0:cba0:5cc0]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::778e:19d0:cba0:5cc0%4]) with mapi id 15.20.6222.028; Tue, 28 Mar 2023 05:43:27 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, s.hauer@pengutronix.de Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com> Subject: [PATCH] dt-bindings: input: pwm-beeper: convert to dt schema Date: Tue, 28 Mar 2023 13:48:33 +0800 Message-Id: <20230328054833.1974942-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0041.apcprd01.prod.exchangelabs.com (2603:1096:4:193::15) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AM9PR04MB8129:EE_ X-MS-Office365-Filtering-Correlation-Id: 0eaae7f6-652a-4df8-ae8d-08db2f4f5ab9 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WxLJEGcE/dOKfh3TjRD2JK/9NzgSedY2mA++fsA70TVW8uvitJ7c3qidPBa01v6N+uqD/w5JTSA6zod8bcrcuEOG063ts4F4GNhJhK3+hLy6ul0hKJbxQilYO6kLmLVm9/hJNoLhafDeaKOfaiaFDmoKi08VqmkbG5QxVk3SPsVzHN71udF5EOhQMjVm5UOvmqum00/pmTibIMC9PrtDJSDCnjV2nZBzpoZnZuznhBv4Ff68ZIpfM7wQEF+9lh3LXAPcvsmQ9Xr2J5vaA7SndW7Gph3xXIBTKbUh9H4jAzEZNl5kdIpGGd8kO5z/1qpEXDXNx4uMxK24m2uJHJ/eIXyBygGB2eX+Z8FnK2GD3T6XhZce2P2DwsK/m4v0ZEUcw3mrMtQVa/jH5P9YNry59kyXHTS6IJrZG8KOwq3pN9MMJom7QNlEwBSo4qv2hb6Nh07O2K5y25fgIHUELsHo+vKXMP5wlM98jNQSQbFC0TA2fGSg8Eep96B6J7ljUl2sQuvrCm/iJ11xME7+VQ5fL0Q0aP2MznPHkVxUOneyRcBGd0M+TO6WxmUUcYV4tpAulJehACsiyP+8WbPa4ZGCd7umgRmcSWHLl07U/7iEzsJ5k+IjA24fqg53rygHJ63SE9nutzxughfWS0xPXzWh5g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(346002)(39860400002)(376002)(136003)(366004)(451199021)(8936002)(2906002)(52116002)(38100700002)(478600001)(38350700002)(86362001)(6666004)(6486002)(966005)(316002)(5660300002)(8676002)(4326008)(41300700001)(66556008)(66476007)(66946007)(186003)(26005)(1076003)(6506007)(6512007)(83380400001)(2616005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iHHNGA6Q4fILbwEOLcdXBxFEZ1p/Nz/IRxIbioZTHrdVI9y2+cFOX6soWdtVUst/6BpCFqAXwt3lwmBurOJu+c1rz7YcwVmqtvU/LH2bd6ao96eywxBXAJtA8gbebJW6fOp+skr5zYe9aXdGVXx8l81unJmf5kgd8mnYMisu9fXxSdW9zI7HQXy/yuSA/XPzE23mMKd7ArEz1VonOOBQLd4dTkE/Ynh/oXS00QohtuJOc4bG2MXwx5tVjYGGzsgBmYlx026q9ey4ZT+1ZUDSUThOv1KbTgE5EurcupRdRKPDMAg390mARyOa01GN6t/u/nbKrEX0MwdcrQTokeBJDb8w9hnzuA1UKDioZ9DFqM0gLkD47O4z366CNlcTcgvy7Gj0WOAMp0nJjYp0ukvJSQlUmlhzDerjraIi6X6FqIZZy/wzyp8Lk4gdd5nrJAi2TFubtQiJjIJ7AHo/dHrU8JJYLc/5iK9Yoel648Jxs6XHmHTW10n0nmA06ZHk+J1XsdydEFRxw17wAW1fFXPrqHg3RZeLRxCWfWHwJa23J/jshDrZuJt5nAriE46T/4cJax5UMf1FOMtKVdSUVbQkU9tUs7p4M3K88Ajai51j/JgHb1l4SOYS/cOcWPmTz5SiqXlnH1n0nZX991hh51yz1n6w0xBlO1girFXaXAXSapZDBZJcijD4VzVOK7BPC9TVSyb3XnB8PpSsGrHrokdZmMZZOYqZ0E2iBLuE/YEcwz6AHq5oEIRYqUvJMiVbVSCDZsOzlAThig/95OwvuYeln/ooomG/DdZ/lOsr8992oq8Ogda13CKm1gays5/ND1w7S4cFbDhfCzo+I/8tU9+UvY2kKO892I795Xfu2MvDvJd/g4Kz1ZOZIjr4O7W6d2+JijQ0Wu9GM2uUkRYsKhWsQNIAznKeBATMLXNj15KglgRB2km0XbL8GwzR1GICZYpalfXRKwKgvvHr8OpOOxuy8k0ePShramogG5zb48iaP8yvl2yrqwhCMz/O14ur7KkR29ozZOPgbqRRCVW6iHjflDSl3VT0mFSWYXl4SOTy5vYYE7uVq2BDw2fRakshB0jbQYny6f/iRvZvWCB8i65M394Jw2HpE/5s5eg5s3URy+96N3KKjBlhc8uIeMZS+dfiiKgdDYs5px8s0WC/JUZaUxd8TziwRh9YBIM7GZqHFqgZ5EVdcwy2Z/o5i8n8i04xJTcjPr6Gwyu+rV5pM5FpNxoGGpYH1RxAB9D8iQk08d/I7dAP0etpGV42oT2Cu34rme8O0Uc10InYkInGAhhR9F4AtCx10AQM935gDEgk+IRN7Wch86LoQKicHrJ90LaBJUsJOtIJHzLtgvts147gZMzuolcZM0cShvd+pJirfXxye2q/3Uv7UG7ZakibF8v1VWpHHFmzh/UCVC/yQeNnzF7ddDL+HQmuIPVbFCjHq7vOTpsOJAZlPGiTw3u4kboRsdQzjHjh3LBwp/C3OWrnKc/CMUEqYNmL7vIptJk0ujUo1LyaeerOqpvunFZ5Pb9bCRyHF36ULx2Fnv5TG8Xx+yhMDZt4X4uPKgJ5YYmTt8DYujjFWYDNIJcfw4TahQbC X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0eaae7f6-652a-4df8-ae8d-08db2f4f5ab9 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2023 05:43:27.6341 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ujhXWbGBIyg+l5BoTXmrFaei2nC/DBpa89DngBw3Gd+5dtDVwFFs2a5GHhciAkAkQRQCnJPDZjXEmeGnDBE2Rw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8129 X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761589811982216648?= X-GMAIL-MSGID: =?utf-8?q?1761589811982216648?= |
Series |
dt-bindings: input: pwm-beeper: convert to dt schema
|
|
Commit Message
Peng Fan (OSS)
March 28, 2023, 5:48 a.m. UTC
From: Peng Fan <peng.fan@nxp.com> Convert the binding doc to dt schema, and also fixed the example from fixed-regulator to regulator-fixed. Signed-off-by: Peng Fan <peng.fan@nxp.com> --- .../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
Comments
On Tue, 28 Mar 2023 13:48:33 +0800, Peng Fan (OSS) wrote: > From: Peng Fan <peng.fan@nxp.com> > > Convert the binding doc to dt schema, and also fixed the > example from fixed-regulator to regulator-fixed. > > Signed-off-by: Peng Fan <peng.fan@nxp.com> > --- > .../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 > Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings. Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future. Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230328054833.1974942-1-peng.fan@oss.nxp.com beeper: beeper-hz:0:0: 4000 is greater than the maximum of 255 arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dtb arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx.dtb arch/arm64/boot/dts/freescale/imx8mq-tqma8mq-mba8mx.dtb beeper: pwms:0: [19, 31, 4000] is too long arch/arm/boot/dts/armada-370-c200-v2.dtb beeper: pwms:0: [52, 5, 1000000, 0] is too long arch/arm/boot/dts/aspeed-bmc-vegman-n110.dtb beeper: pwms:0: [53, 5, 1000000, 0] is too long arch/arm/boot/dts/aspeed-bmc-vegman-rx20.dtb arch/arm/boot/dts/aspeed-bmc-vegman-sx20.dtb beeper: pwms:0: [72, 0, 250000, 0] is too long arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx.dtb beeper: pwms:0: [91, 0, 250000, 0] is too long arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dtb beeper: pwms:0: [98, 0, 250000, 0] is too long arch/arm64/boot/dts/freescale/imx8mq-tqma8mq-mba8mx.dtb beeper: pwms:0: [98, 0, 500000] is too long arch/arm/boot/dts/imx6q-kp-tpc.dtb beeper: Unevaluated properties are not allowed ('beeper-hz', 'pwms' were unexpected) arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dtb arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx.dtb arch/arm64/boot/dts/freescale/imx8mq-tqma8mq-mba8mx.dtb beeper: Unevaluated properties are not allowed ('pwms' was unexpected) arch/arm/boot/dts/armada-370-c200-v2.dtb arch/arm/boot/dts/aspeed-bmc-vegman-n110.dtb arch/arm/boot/dts/aspeed-bmc-vegman-rx20.dtb arch/arm/boot/dts/aspeed-bmc-vegman-sx20.dtb arch/arm/boot/dts/imx6q-kp-tpc.dtb beep: pwms:0: [108, 0, 4000000, 1] is too long arch/arm/boot/dts/exynos4412-itop-elite.dtb beep: Unevaluated properties are not allowed ('pwms' was unexpected) arch/arm/boot/dts/exynos4412-itop-elite.dtb buzzer: pwms:0: [20, 0, 1000000, 0] is too long arch/arm/boot/dts/s3c6410-mini6410.dtb buzzer: pwms:0: [41, 0, 500000] is too long arch/arm/boot/dts/imx53-kp-ddc.dtb buzzer: pwms:0: [42, 0, 500000] is too long arch/arm/boot/dts/imx53-kp-hsc.dtb buzzer: Unevaluated properties are not allowed ('pwms' was unexpected) arch/arm/boot/dts/imx53-kp-ddc.dtb arch/arm/boot/dts/imx53-kp-hsc.dtb arch/arm/boot/dts/s3c6410-mini6410.dtb pwm-beeper: pwms:0: [56, 0, 5000] is too long arch/arm/boot/dts/imx6ul-kontron-bl.dtb arch/arm/boot/dts/imx6ull-kontron-bl.dtb pwm-beeper: pwms:0: [60, 0, 5000] is too long arch/arm/boot/dts/imx6ul-kontron-bl-43.dtb pwm-beeper: pwms:0: [83, 0, 5000, 0] is too long arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dtb pwm-beeper: pwms:0: [86, 0, 5000, 0] is too long arch/arm64/boot/dts/freescale/imx8mm-kontron-bl-osm-s.dtb pwm-beeper: Unevaluated properties are not allowed ('pwms' was unexpected) arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dtb arch/arm64/boot/dts/freescale/imx8mm-kontron-bl-osm-s.dtb arch/arm/boot/dts/imx6ul-kontron-bl-43.dtb arch/arm/boot/dts/imx6ul-kontron-bl.dtb arch/arm/boot/dts/imx6ull-kontron-bl.dtb sound: pwms:0: [44, 1, 1000000, 0] is too long arch/arm/boot/dts/da850-lego-ev3.dtb sound: Unevaluated properties are not allowed ('pwms' was unexpected) arch/arm/boot/dts/da850-lego-ev3.dtb
On Tue, Mar 28, 2023 at 12:43 AM Peng Fan (OSS) <peng.fan@oss.nxp.com> wrote: > > From: Peng Fan <peng.fan@nxp.com> > > Convert the binding doc to dt schema, and also fixed the > example from fixed-regulator to regulator-fixed. > > Signed-off-by: Peng Fan <peng.fan@nxp.com> > --- > .../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..1d7cd58d2a8f > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/pwm-beeper.yaml > @@ -0,0 +1,48 @@ > +# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) 'or-later' is wrong. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/pwm-beeper.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: PWM beeper > + > +maintainers: > + - Sascha Hauer <s.hauer@pengutronix.de> > + > +properties: > + compatible: > + items: Drop 'items' as there is only 1. > + - const: pwm-beeper > + > + pwms: > + description: Phandle to the physical PWM device > + $ref: /schemas/types.yaml#/definitions/phandle Standard property which already has a type. > + > + amp-supply: > + description: Phandle to a regulator that acts as an amplifier for the beeper > + > + beeper-hz: > + description: bell frequency in Hz > + minimum: 1 > + maximum: 255 doubtful a beeper can generate frequencies of 1-255Hz... > + > +required: > + - compatible > + - pwms > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include <dt-bindings/gpio/gpio.h> > + beeper_amp: amplifier { Don't need to show providers in examples for the consumer. > + compatible = "regulator-fixed"; > + gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; > + regulator-name = "beeper_amp"; > + }; > + > + beeper { > + compatible = "pwm-beeper"; > + pwms = <&pwm0>; > + amp-supply = <&beeper_amp>; Make the example complete and add beeper-hz. > + }; > -- > 2.37.1 >
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..1d7cd58d2a8f --- /dev/null +++ b/Documentation/devicetree/bindings/input/pwm-beeper.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-or-later 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: + - Sascha Hauer <s.hauer@pengutronix.de> + +properties: + compatible: + items: + - const: pwm-beeper + + pwms: + description: Phandle to the physical PWM device + $ref: /schemas/types.yaml#/definitions/phandle + + amp-supply: + description: Phandle to a regulator that acts as an amplifier for the beeper + + beeper-hz: + description: bell frequency in Hz + minimum: 1 + maximum: 255 + +required: + - compatible + - pwms + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + beeper_amp: amplifier { + compatible = "regulator-fixed"; + gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; + regulator-name = "beeper_amp"; + }; + + beeper { + compatible = "pwm-beeper"; + pwms = <&pwm0>; + amp-supply = <&beeper_amp>; + };