From patchwork Thu Dec 10 12:21:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B3zsef_Horv=C3=A1th?= X-Patchwork-Id: 342203 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77CB6C433FE for ; Thu, 10 Dec 2020 12:26:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2A5A923D9B for ; Thu, 10 Dec 2020 12:26:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728921AbgLJMX3 (ORCPT ); Thu, 10 Dec 2020 07:23:29 -0500 Received: from bmail1.ministro.hu ([5.249.150.236]:46512 "EHLO bmail1.ministro.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728714AbgLJMXU (ORCPT ); Thu, 10 Dec 2020 07:23:20 -0500 Received: from localhost (localhost [127.0.0.1]) by bmail1.ministro.hu (Postfix) with ESMTP id 17349123B01; Thu, 10 Dec 2020 13:22:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ministro.hu; s=201804; t=1607602948; bh=stdRd1Ge1u9OB3/zaOc1WCQ0FTlN9r2WHM/06jMJo8k=; h=Date:From:To:Subject:From; b=K5cL9Xpmn4q5In4An3pa1zlIAo+o35kI1Fvodu+o1M1MnvZug/Yf8emmew8t9lW5w BeWSGYFoYZzoazG/deG1UABmSvcLaYd4/ntbmmQXNEZ+rkSpLNkkp0w5jq1KVEraDq RZJ9mIa5+c875Zwfh5ud0z2yY8nHt3dG454QN4rgKkctHyN/pm9NiGIHYcJoeo2i1G +NvwQKCipnap7ce6Al+0N8tyYiF2Z/+FG9YP4Kg1X0JyaRbjavpdZE8YJHId5ylb4v OsWW2VNHG0sJGXS6biNWYzONoN43hen0+nFM/KEvEwCJG2UyXEkb44bmLQqfEjduHV OYBDhLmnqq1jA== X-Virus-Scanned: Debian amavisd-new at ministro.hu Received: from bmail1.ministro.hu ([127.0.0.1]) by localhost (bmail1.ministro.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5pHo5vC9icYe; Thu, 10 Dec 2020 13:21:58 +0100 (CET) Received: from dincontrollerdev (localhost [127.0.0.1]) by bmail1.ministro.hu (Postfix) with ESMTPSA id C0F9E123AFF; Thu, 10 Dec 2020 13:21:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ministro.hu; s=201804; t=1607602918; bh=stdRd1Ge1u9OB3/zaOc1WCQ0FTlN9r2WHM/06jMJo8k=; h=Date:From:To:Subject:From; b=U5jhQoeTF29WCd56hwxzIcTs+KhBMWWyKbGeyWzGJavFnSC5p/E6kb/R8kEPGJ38z XW7EDuIfzppK/2XC4j5vD20Q/vsAPsY+lFDQRc16fQwTPAoIZj/FKpFPcWIWyNSKM3 kfELTHGsDktZ13LpG+kKj2JPg+etMZ+YWwS7R7lKIBaCudl+VWf31hbgWX+ko6m/UJ K3aT1C5NUbx5A5U5FWBEUvToYcNg5h8q9li0CbC7fjxtUCpzXt1W8pPLQp66WPcF9F 8wiseSy9/HfgwWVJ/y2sJP9/I9UvGrftEm1lRNDWKvgcEprT461WCNVtlYK/Dg5aTS gNPgn4RAuiYDw== Date: Thu, 10 Dec 2020 12:21:56 +0000 From: =?iso-8859-1?q?J=F3zsef_Horv=E1th?= To: 'Rob Herring' , 'Greg Kroah-Hartman' , =?iso-8859-1?q?=27J=F3zsef_Horv=E1th=27?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCH v1 2/2] Staging: silabs si4455 serial driver: docs device tree binding Message-ID: <20201210122154.GA31799@dincontrollerdev> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org add: device tree binding schema Signed-off-by: József Horváth --- .../bindings/serial/silabs,si4455.yaml | 53 +++++++++++++++++++ MAINTAINERS | 2 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/serial/silabs,si4455.yaml diff --git a/Documentation/devicetree/bindings/serial/silabs,si4455.yaml b/Documentation/devicetree/bindings/serial/silabs,si4455.yaml new file mode 100644 index 000000000000..80a73a61755b --- /dev/null +++ b/Documentation/devicetree/bindings/serial/silabs,si4455.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/serial/silabs,si4455.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Silicon Labs Si4455 device tree bindings + +maintainers: + - József Horváth + +allOf: + - $ref: "/schemas/serial.yaml#" + +properties: + compatible: + const: silabs,si4455 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + spi-max-frequency: + description: maximum clock frequency on SPI port + maximum: 500000 + + shutdown-gpios: + description: gpio pin for SDN + maxItems: 1 + +required: + - reg + - interrupts + - spi-max-frequency + - shutdown-gpios + +additionalProperties: false + +examples: + - | + &spi0 { + serial0: si4455@0 { + compatible = "silabs,si4455"; + reg = <0>; + interrupt-parent = <&gpio>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + shutdown-gpios = <&gpio 26 1>; + spi-max-frequency = <300000>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index a29bc17d446d..16cc96971ac2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15937,7 +15937,7 @@ F: drivers/platform/x86/touchscreen_dmi.c SILICON LABS SI4455 SERIAL DRIVER M: József Horváth S: Maintained -F: Documentation/devicetree/bindings/staging/serial/silabs,si4455.txt +F: Documentation/devicetree/bindings/serial/silabs,si4455.yaml F: drivers/tty/serial/si4455.c F: drivers/tty/serial/si4455_api.h