Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp601052ybh; Sat, 18 Jul 2020 14:15:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2RgcQAADXfIocm6bUdVkV58VRnapShUYbwKKMF2IqbCGrYUU0h+OdL3KUGdQKOOFxbBmX X-Received: by 2002:a17:907:2163:: with SMTP id rl3mr13765496ejb.409.1595106948454; Sat, 18 Jul 2020 14:15:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595106948; cv=none; d=google.com; s=arc-20160816; b=chRaJUj2blWwIS0J+NPuFLGP4H0RG7rIL9jaQSi4eazZf9YRCpjYsu20ZR3Uxxck/I otsqcNF+Rbl/MYI8/xc3QB0E/JmZPXsqAR5CFRPfhH8OppRzEA6gNjXN9iR2nLhQBJCp ymmVXgMnd4bjh2S7uJLbFII90UgI8muZvGlo2gvCdF/bx5zUKBnZTcPZXZoQO+yIeofz 7QpO3BrkOjrLtkc0fy0KZ9YPodoy2OGrkNfkT4pgmgxNhGxgptTjjOzVPoIhD0fSa3BG mH2n56117qOiHZVLGbUJZTgELjNflAQ/KE+GFled1rU3uSQWYJhUt03A3WhY6wRjHus2 W8VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Q0e/4yRzHxUm7X47GDcZJhrh5ZGxjLpZggXsb0g0pLk=; b=YchsHK8NmdcU6zGDCYCKOvy0I8/2rSw48HaTtIwab2wpG9OUKIykplhJTG2n9BtnNk tJggxRkVAArfwI8dx06/GNm1Icj8Bq2OYF8FHZD/1Gmqx1+Dgp84oZ/GLjLa2IBnbVJB DH9Jm27x1a1XdAroiqajxWrA6fgEoJaUF2Xb79E5tUOsnRjpxk1PXCIQi15pZrWxuDkg 3PChJ+MokpAczgRyBS60Bi4VrwMhwdeQY7BXxwMoQIlz/0OY71T/wHWHXbHph6auVciP ZBrLnVazlf34beEqW1KK5EZhDIWXNXOQxV6I0BxMvT7jUFFj1k3ET8mi/xm1hUDs91VT 1BIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si7490765ejw.169.2020.07.18.14.15.25; Sat, 18 Jul 2020 14:15:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727856AbgGRVMv (ORCPT + 99 others); Sat, 18 Jul 2020 17:12:51 -0400 Received: from v6.sk ([167.172.42.174]:37910 "EHLO v6.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726863AbgGRVMu (ORCPT ); Sat, 18 Jul 2020 17:12:50 -0400 Received: from localhost (v6.sk [IPv6:::1]) by v6.sk (Postfix) with ESMTP id 4557560D3C; Sat, 18 Jul 2020 21:12:49 +0000 (UTC) From: Lubomir Rintel To: Rob Herring Cc: Mauro Carvalho Chehab , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lubomir Rintel Subject: [PATCH] dt-bindings: misc: Convert olpc,xo1.75-ec to json-schema Date: Sat, 18 Jul 2020 23:12:44 +0200 Message-Id: <20200718211244.187938-1-lkundrak@v3.sk> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the OLPC XO-1.75 Embedded Controller binding to DT schema format using json-schema. Signed-off-by: Lubomir Rintel --- Hi, please consider enqueueing this patch for 5.9. It is a straightforward conversion of the olpc,xo1.75-ec binding doc to YAML. It applies on top of v5.8-rc4 (where a fix into olpc,xo1.75-ec.txt landed). Thanks Lubo .../bindings/misc/olpc,xo1.75-ec.txt | 23 -------- .../bindings/misc/olpc,xo1.75-ec.yaml | 52 +++++++++++++++++++ 2 files changed, 52 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.txt create mode 100644 Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml diff --git a/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.txt b/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.txt deleted file mode 100644 index 2d7cdf19a0d0f..0000000000000 --- a/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.txt +++ /dev/null @@ -1,23 +0,0 @@ -OLPC XO-1.75 Embedded Controller - -Required properties: -- compatible: Should be "olpc,xo1.75-ec". -- cmd-gpios: gpio specifier of the CMD pin - -The embedded controller requires the SPI controller driver to signal readiness -to receive a transfer (that is, when TX FIFO contains the response data) by -strobing the ACK pin with the ready signal. See the "ready-gpios" property of the -SSP binding as documented in: -. - -Example: - &ssp3 { - spi-slave; - ready-gpios = <&gpio 125 GPIO_ACTIVE_HIGH>; - - slave { - compatible = "olpc,xo1.75-ec"; - spi-cpha; - cmd-gpios = <&gpio 155 GPIO_ACTIVE_HIGH>; - }; - }; diff --git a/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml b/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml new file mode 100644 index 0000000000000..e75d77beec6a3 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +# Copyright (C) 2019,2020 Lubomir Rintel +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/misc/olpc,xo1.75-ec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: OLPC XO-1.75 Embedded Controller bindings + +description: | + This binding describes the Embedded Controller acting as a SPI bus master + on a OLPC XO-1.75 laptop computer. + + The embedded controller requires the SPI controller driver to signal + readiness to receive a transfer (that is, when TX FIFO contains the + response data) by strobing the ACK pin with the ready signal. See the + "ready-gpios" property of the SSP binding as documented in: + . + +maintainers: + - Lubomir Rintel + +properties: + compatible: + const: olpc,xo1.75-ec + + cmd-gpios: + description: GPIO uspecifier of the CMD pin + maxItems: 1 + +required: + - compatible + - cmd-gpios + +unevaluatedProperties: false + +examples: + - | + #include + + spi { + spi-slave; + ready-gpios = <&gpio 125 GPIO_ACTIVE_HIGH>; + + slave { + compatible = "olpc,xo1.75-ec"; + spi-cpha; + cmd-gpios = <&gpio 155 GPIO_ACTIVE_HIGH>; + }; + }; + +... -- 2.26.2