Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp761251imm; Wed, 11 Jul 2018 10:28:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe7eq9DF0+VHyPgsd5yAZkPFJx6X0O80qZJOfm7qnBGmYTtP5E/ywXFyaAKlhSVhxezpkfW X-Received: by 2002:a62:fc4b:: with SMTP id e72-v6mr16630984pfh.168.1531330130368; Wed, 11 Jul 2018 10:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531330130; cv=none; d=google.com; s=arc-20160816; b=Fl+8HV2xvkCStsN9mhcngswHKCt+g3I1Po7++4J5/ocEyE6/1kCeNVI9quYNebQRE9 aIk5uXMlMzccWL6Ub02xIn7lwp83rAloOiZvQ2Yiu4Xez1rcbPQfuxz87OfDQ7o803Kz 0xC52kd7JwX41hQVJxZZgQU6NPJg+sFtFQSWdhD5WvXEs3R/OMsqg3JFOqpNPaeOmIF+ odjQL1hlWrQcO6WgULSZ4wYCT1ks8UmJComXar+Vzxen94wF0HevYKW3hLRUcIG/GqkX iG9hD4puz+r6h0/NpSlk/qWCCflERRvwQnhEGKEqqyJkprwXLDA22gbtwC75g9gTMn8V 0FUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Jc6Qckq0piQWHb1bxPBwU7+Y3qMHPySbJAIjJTvKTu4=; b=EgStSaofmdmxbCalzBPbAMsrnhx5urRlt5f1At2JApQwzV4dw6Wah2tC20gTHC1WCo X4fsPIeimBNjO8XeG6LzaAOMuSdW5zA3jFYRzISU2bxjB+OpFvTIgFO/UYbBFJ1d5UDO 0IUHpap/kFSWtRTlhKoLv/6jNRk+jVt1j43eAZWsEDyJPT75oq7luyIW9ra/GjQqILG2 cOJJB2k08bn5maPk4p19Lh+SThy6cvY4VsuDWROdoUxWbytAi9pugxFWzYtFPrir6hSG 4zTmtkZBvxZ4wNUcenwzZcLyxid8QDKX+d7v7PA8apUV7CiujWZGaif3CNYlvHavBrI2 IJtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f32-v6si19997378plf.38.2018.07.11.10.28.35; Wed, 11 Jul 2018 10:28:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388493AbeGKPGp (ORCPT + 99 others); Wed, 11 Jul 2018 11:06:45 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:44235 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732752AbeGKPGo (ORCPT ); Wed, 11 Jul 2018 11:06:44 -0400 Received: by mail-oi0-f68.google.com with SMTP id s198-v6so49801658oih.11; Wed, 11 Jul 2018 08:02:00 -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:user-agent; bh=Jc6Qckq0piQWHb1bxPBwU7+Y3qMHPySbJAIjJTvKTu4=; b=QCAossxCffx4EtffX8IpFo1Z8VJk4inKGK0umWotAn3xdYoJavC/G6BesIT8++oZlK 7cVIKZCIznCVuBjF5veQRmH3tDkslqrD+0wRzXIG8NGHe/bvoAtRVPlTwRB66ueSi1RZ 5oNOI5Wm0T0Ny+UKijms4fi0L3jea+OONMKglSLmjeIzcAw6pYOQVH04/DJvtGKOuTQV fIKmX/cwa0Lmk7OtIx2r3EvYIZSTXABSZSTAXsdILDMlmB7e82ZOzGnEyd0Jr2t7Un/b w6RA4FXtBnVvZDLkhgNPhriSU6vhqNTTFgP8Au/RPmcniN0sB3kRiO63B9AsQ75ggjka hEqw== X-Gm-Message-State: APt69E3W0OAQ9FbPBUdKujt+NPNH3VBSQA0GiJ17K4raxBfFC1oAmeuP 8P9G8wD5RYBzn2kDS7TFjA== X-Received: by 2002:aca:a8c7:: with SMTP id r190-v6mr30393659oie.357.1531321319658; Wed, 11 Jul 2018 08:01:59 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id r133-v6sm17355830oia.33.2018.07.11.08.01.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Jul 2018 08:01:58 -0700 (PDT) Date: Wed, 11 Jul 2018 09:01:57 -0600 From: Rob Herring To: Daniel Mack Cc: zbr@ioremap.net, mark.rutland@arm.com, szabolcs.gyurko@tlt.hu, sre@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, robert.jarzmik@free.fr Subject: Re: [PATCH v4 1/5] dt-bindings: w1: document generic onewire bindings Message-ID: <20180711150157.GA18150@rob-hp-laptop> References: <20180706053552.11438-1-daniel@zonque.org> <20180706053552.11438-2-daniel@zonque.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180706053552.11438-2-daniel@zonque.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 06, 2018 at 07:35:48AM +0200, Daniel Mack wrote: > This patch adds a generic w1 bindings document that describes how w1 > slave deviceses are grouped under master nodes. It also augments the > existing w1-gpio.txt document a bit. > > Signed-off-by: Daniel Mack > --- > .../devicetree/bindings/w1/w1-gpio.txt | 11 +++++--- > Documentation/devicetree/bindings/w1/w1.txt | 25 +++++++++++++++++++ > 2 files changed, 33 insertions(+), 3 deletions(-) > create mode 100644 Documentation/devicetree/bindings/w1/w1.txt Reviewed-by: Rob Herring Note that this will conflict with a unit-address fix that I have queued up for 4.18 (will send this week). > > diff --git a/Documentation/devicetree/bindings/w1/w1-gpio.txt b/Documentation/devicetree/bindings/w1/w1-gpio.txt > index 6e09c35d9f1a..3d6554eac240 100644 > --- a/Documentation/devicetree/bindings/w1/w1-gpio.txt > +++ b/Documentation/devicetree/bindings/w1/w1-gpio.txt > @@ -13,10 +13,15 @@ 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@0 { > + onewire { > compatible = "w1-gpio"; > - gpios = <&gpio 126 0>, <&gpio 105 0>; > - }; > + gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; > > + battery { > + // ... > + }; > + }; > diff --git a/Documentation/devicetree/bindings/w1/w1.txt b/Documentation/devicetree/bindings/w1/w1.txt > new file mode 100644 > index 000000000000..05f26b27d898 > --- /dev/null > +++ b/Documentation/devicetree/bindings/w1/w1.txt > @@ -0,0 +1,25 @@ > +Generic devicetree bindings for onewire (w1) busses > +=================================================== > + > +Onewire busses are described through nodes of their master bus controller. > +Slave devices are listed as sub-nodes of such master devices. For now, only > +one slave is allowed per bus master. > + > + > +Example: > + > + charger: charger { > + compatible = "gpio-charger"; > + charger-type = "mains"; > + gpios = <&gpio 1 GPIO_ACTIVE_LOW>; > + }; > + > + onewire { > + compatible = "w1-gpio"; > + gpios = <&gpio 100 0>, <&gpio 101 0>; > + > + battery { > + compatible = "maxim,ds2760"; > + power-supplies = <&charger>; > + }; > + }; > -- > 2.17.1 >