Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp874183ybc; Tue, 19 Nov 2019 10:40:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxNMMOfXt24ftnfoQ3NUFTfZCtCHbi87FUxSC3u5Fubk8Sde7gnp1q5OzgFu6NLOLyoJS3C X-Received: by 2002:a1c:6a09:: with SMTP id f9mr7616283wmc.15.1574188838157; Tue, 19 Nov 2019 10:40:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574188838; cv=none; d=google.com; s=arc-20160816; b=I8yn2JtKYpTdqBX69XOF2g9orDopO2j25Kgid5jAPdcWr29WvwzErV/1kB1UFkPUX8 /MPSqBRtv8vC+D45YIWLk7WrmGT+om0PqsZNhylxKkE+RHPhtWE3Sky/EMnX6i9BFQUP /DZflZ2E32cBRaThuIJs9MAweBE1QLEnluBFlaD5gaCQ+sjLk8MbenatYYIynzUqpB4O jtpzQXf/BwFByym5OMX5jb/HxcqaoJcDWFSxaU82zjdzI/8cDs+V4IgfW1BX94qIYm8+ sIcqJP3LE0/MdzBX6SoACfJ1GpKCsAzJ+YwVWrBqFZ8aW3FZcTX36vRGXdMbeWOSDglK BXow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=200y+IYezlbg1I7CHIbsZoBP5uAkW4mrYcSZBakSEkA=; b=qTtsjTY4blakrDlLBjZSYfEqVy277XJ9ny4U0tCiYG4aua1yS3yoy9HO1I9lJdqCIH Y0RKbGxwzQNAQqSu7+bpjAbnLhP5AFmSQqPfQvoz/KCVYbnAYyDxkRejOyZH6FKSq9Gu Gx29/Ee4ZtSLIW2rjQkD2I84tqW2zuNEORGePZSu5dwqGiR8ofFfKFF879/aIf3mL4RO j8pDnx7b2qu/9ndxHX92vT+K3rOJ/SHxpIHCKRbYqWHSabjMCdKqusQl/TTPbbLRomIT mO3t/VJNrkfnBJjKhkOu9g3SJ7/jEtKMgvWd30x3pIs2VxaC9jJ6ilqK70qC78XF23vd 3D5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xUaj7hMn; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si16448851edb.265.2019.11.19.10.40.13; Tue, 19 Nov 2019 10:40:38 -0800 (PST) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xUaj7hMn; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727398AbfKSSiC (ORCPT + 99 others); Tue, 19 Nov 2019 13:38:02 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:44006 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727173AbfKSSiB (ORCPT ); Tue, 19 Nov 2019 13:38:01 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAJIbr6Z039222; Tue, 19 Nov 2019 12:37:53 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1574188673; bh=200y+IYezlbg1I7CHIbsZoBP5uAkW4mrYcSZBakSEkA=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=xUaj7hMnZ4gydoPBzKyzJX1x7VBnBrpEwwFvuYeXRF1HpccFXeJEEpvlbW3AuWBoQ 7ruduYMQfXtKq7jYsxvHSdU2wlGXe1n0FBnOIoner3JZxpHEx80H8kGQ3UVJBqNXeM QCjfZyu2GY3zoMIjhubrfN+6oSavdipD25/p96QI= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAJIbqOZ061176 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Nov 2019 12:37:52 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 19 Nov 2019 12:37:52 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 19 Nov 2019 12:37:52 -0600 Received: from [10.250.33.226] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAJIbqTW082910; Tue, 19 Nov 2019 12:37:52 -0600 Subject: Re: [PATCH v2 4/4] dt-bindings: mfd: update TI tps6105x chip bindings To: Sven Van Asbroeck , Lee Jones , Liam Girdwood , Mark Brown , Jacek Anaszewski , Pavel Machek , Rob Herring CC: Linus Walleij , Grigoryev Denis , Axel Lin , Mark Rutland , , , References: <20191119154611.29625-1-TheSven73@gmail.com> <20191119154611.29625-5-TheSven73@gmail.com> From: Dan Murphy Message-ID: Date: Tue, 19 Nov 2019 12:36:21 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191119154611.29625-5-TheSven73@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sven On 11/19/19 9:46 AM, Sven Van Asbroeck wrote: > The driver has been extended to optionally get its operational > mode, regulator init data and led label from the devicetree. > > Tree: next-20191118 > Signed-off-by: Sven Van Asbroeck > --- > .../devicetree/bindings/mfd/tps6105x.txt | 42 ++++++++++++++++++- > 1 file changed, 41 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mfd/tps6105x.txt b/Documentation/devicetree/bindings/mfd/tps6105x.txt > index 93602c7a19c8..ab5d4c52074f 100644 > --- a/Documentation/devicetree/bindings/mfd/tps6105x.txt > +++ b/Documentation/devicetree/bindings/mfd/tps6105x.txt > @@ -7,11 +7,51 @@ Required properties: > - compatible: "ti,tps61050" or "ti,tps61052" > - reg: Specifies the I2C slave address > > -Example: > +Optional sub-node: > + > +This subnode selects the chip's operational mode. > +There can be at most one single available subnode. > + > +- regulator: presence of this sub-node puts the chip in regulator mode. > + see Documentation/devicetree/bindings/regulator/regulator.txt > + > +- led: presence of this sub-node puts the chip in led mode. > + Optional properties: > + - label: see Documentation/devicetree/bindings/leds/common.txt > + > +Example (GPIO operation only): > + > +i2c0 { > + tps61052@33 { > + compatible = "ti,tps61052"; > + reg = <0x33>; > + }; > +}; > + > +Example (GPIO + regulator operation): > > i2c0 { > tps61052@33 { > compatible = "ti,tps61052"; > reg = <0x33>; > + > + regulator { > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-always-on; > + }; > + }; > +}; > + > +Example (GPIO + led operation): What part of the example is GPIO? Is that the default function? > + > +i2c0 { > + tps61052@33 { > + compatible = "ti,tps61052"; > + reg = <0x33>; > + > + led { > + label = "tps-torch"; function and color examples? > + }; > }; > };