From mboxrd@z Thu Jan 1 00:00:00 1970 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=-15.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 CC35AC4338F for ; Fri, 23 Jul 2021 22:21:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8B31C60E97 for ; Fri, 23 Jul 2021 22:21:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8B31C60E97 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5EWuuOhGXRJVXPiJF+vmciMFikQ/CO7OxpgvRe3/CX0=; b=a7KCk/l62OJxBt Xs0U75Lm5fhsUlji3Bx1w+PLqBf1I/Vv6vh6JSB9hBi8SvmpydmnygnCrWD5rKvHNo99uknQEQnVK 9mzI7CGDQN480S+UDck0A6zumyhRh5lK6Imx9j+YY8bWjaWlmN2G+r4Qx8DOlp7phHBGC1+ofRBxv Q7NO1dcZ/iYHIu/ZgTXuQC1MYzsNBGM/yT8IDD8MnMUSZNSNlHqJne35WsT+SBJjWnByqR72whh59 95+hsGwUDCTQ+1Ylzgut0fTkdWbCMrTTHPv8vJXUvJyfT/WSLJ4Hl2Zn4kv392Fex4RRRSYw/mYfD okMNR7hSOBM2W+WN2xQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m73WR-006EFU-5y; Fri, 23 Jul 2021 22:19:59 +0000 Received: from mail-io1-f54.google.com ([209.85.166.54]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m73WM-006EE6-Rh for linux-arm-kernel@lists.infradead.org; Fri, 23 Jul 2021 22:19:56 +0000 Received: by mail-io1-f54.google.com with SMTP id l126so4246455ioa.12 for ; Fri, 23 Jul 2021 15:19:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hAsJB07hDWEJCOh/OouVehgG+LOst1aZR//lkqtGmrw=; b=RSqLMQRzn6fzdf2noP5yD9cuSNh/njO6XHzsc+usPtclk+U8anG66EQ/FIbE/S1LbY OXrwOpgVHRdoZ6iAw0rp2OQmYaUP49maOkj47Sjr172uefKRz2+fm7fQYDGcicIjLsDU BFMNRRNogYs9MNlL/rfZGXD9hTVXDUbOVWx5IUfWMJe2ouogNt2u36aFxa2nChOk6Db7 S95rlzLLHLf01aTxmw/0wqyDS5GsXvmHepnrbFjPj1kDr/KoJGfdbHVNkSB4npuleI6a Cy1XFioSJoNzI4P3FxdV1xhVDlqUXK0Xp5JiKNEayZvKGu9Wg9C+nR+lTpd51gtgZofk fzMg== X-Gm-Message-State: AOAM532rMW36Iwu+EUZwAxS1T/vwgyE6KHDm3nehpfhZDF7yxcoNe/Mg 26LU27i3uyDeXtoLvPYZLg== X-Google-Smtp-Source: ABdhPJy3TjPJomj8OiLDe5nKp4qV6D9lvdO4Fh3H35o3CMUfDzs5Tq247q0xJVOTsZV1IDMbAVC8cg== X-Received: by 2002:a6b:2bd4:: with SMTP id r203mr285960ior.157.1627078794170; Fri, 23 Jul 2021 15:19:54 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id m26sm19096510ioo.23.2021.07.23.15.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jul 2021 15:19:53 -0700 (PDT) Received: (nullmailer pid 2700062 invoked by uid 1000); Fri, 23 Jul 2021 22:19:50 -0000 Date: Fri, 23 Jul 2021 16:19:50 -0600 From: Rob Herring To: Maxime Ripard Cc: Chen-Yu Tsai , Jernej Skrabec , devicetree@vger.kernel.org, Frank Rowand , linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Daniel Mack , Evgeniy Polyakov Subject: Re: [PATCH 38/54] dt-bindings: w1: Convert 1-Wire GPIO binding to a schema Message-ID: <20210723221950.GA2694572@robh.at.kernel.org> References: <20210721140424.725744-1-maxime@cerno.tech> <20210721140424.725744-39-maxime@cerno.tech> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210721140424.725744-39-maxime@cerno.tech> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210723_151954_954368_0E4FBCA7 X-CRM114-Status: GOOD ( 26.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jul 21, 2021 at 04:04:08PM +0200, Maxime Ripard wrote: > Bitbanged 1-Wire buses are supported by Linux thanks to their device > tree binding. > > Now that we have the DT validation in place, let's convert the device > tree bindings for that driver over to a YAML schema. > > Cc: Daniel Mack > Cc: Evgeniy Polyakov > Signed-off-by: Maxime Ripard > --- > .../devicetree/bindings/w1/w1-gpio.txt | 27 ------------ > .../devicetree/bindings/w1/w1-gpio.yaml | 43 +++++++++++++++++++ > 2 files changed, 43 insertions(+), 27 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/w1/w1-gpio.txt > create mode 100644 Documentation/devicetree/bindings/w1/w1-gpio.yaml > > diff --git a/Documentation/devicetree/bindings/w1/w1-gpio.txt b/Documentation/devicetree/bindings/w1/w1-gpio.txt > deleted file mode 100644 > index 3d6554eac240..000000000000 > --- a/Documentation/devicetree/bindings/w1/w1-gpio.txt > +++ /dev/null > @@ -1,27 +0,0 @@ > -w1-gpio devicetree bindings > - > -Required properties: > - > - - compatible: "w1-gpio" > - - gpios: one or two GPIO specs: > - - the first one is used as data I/O pin > - - the second one is optional. If specified, it is used as > - enable pin for an external pin pullup. > - > -Optional properties: > - > - - linux,open-drain: if specified, the data pin is considered in > - open-drain mode. > - > -Also refer to the generic w1.txt document. > - > -Examples: > - > - onewire { > - compatible = "w1-gpio"; > - gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; > - > - battery { > - // ... > - }; > - }; > diff --git a/Documentation/devicetree/bindings/w1/w1-gpio.yaml b/Documentation/devicetree/bindings/w1/w1-gpio.yaml > new file mode 100644 > index 000000000000..4a780a988718 > --- /dev/null > +++ b/Documentation/devicetree/bindings/w1/w1-gpio.yaml > @@ -0,0 +1,43 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/w1/w1-gpio.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Bitbanged GPIO 1-Wire Bus Device Tree Bindings > + > +maintainers: > + - Daniel Mack > + > +properties: > + compatible: > + const: w1-gpio > + > + gpios: > + minItems: 1 > + maxItems: 2 > + items: > + - description: Data I/O pin > + - description: Enable pin for an external pull-up resistor > + > + linux,open-drain: > + type: boolean > + description: > > + If specified, the data pin is considered in open-drain mode. > + > +required: > + - compatible > + - gpios > + > +additionalProperties: false Presumably we might have child devices: additionalProperties: type: object > + > +examples: > + - | > + #include > + > + onewire { > + compatible = "w1-gpio"; > + gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; > + }; > + > +... > -- > 2.31.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel