Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp692962ybc; Tue, 19 Nov 2019 07:47:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwoZO+GeQE8QnESM07BRQ5bytgUFQ3yc7K2Z5bVu4/wt3REk+9lRektCwN3wH32JYbMTx3E X-Received: by 2002:a17:906:3019:: with SMTP id 25mr36044367ejz.280.1574178477569; Tue, 19 Nov 2019 07:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574178477; cv=none; d=google.com; s=arc-20160816; b=kbJaMwtgmgX+/dS1yZCE2iehroyR+NU/aCUaRdf8uPZ3VkzKkK4SoQCS6qF2mqUKvD GUHGftm9NrVJeyvgFvxanMeH5iviEZITmzdhwyYSjXDD3jh7ijZRQeG71/PRRT4pmdYb YrZRrsxL134PYuniS/xIaLptQePDKq2VOW0e/Y2n+4T8R6CbVp8IPRAXE1DC2gDGM6WR YOtgPDo+6vVGXQAnpfoEj1GchBAkwDh8iV4HLTrS8b8nmFkpeFLEXWJzpbX16Wf8oooG pW1R/oD5S9CzGNtZKJ4zwEf8oq8OmoARA5jK1BaXK1MG1+7pZzU7h/29X3mf3RYVyZWI xTMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=M8plwUGqzRu7vrgV7/AsiHy4S0SxA51BEoVHYwcW5lA=; b=p373aGVwkRo1kcy/T706tGSZyYE6jGWPTxR3NqicAHJcRVKqypmljnJI0s6bKlQ1XC zJfOg9edQycXeFCb6dpZi5KRyeXefU4RV92HwdSBkp7QzwBbLxlwd4y+Z38/jCkdPE7w xh0F3yTc7H5WMXoiTITYzsTrcL4n+Kb5//aOH1PnZAfZUYbmsNsitg00zNLC/cSu1yl8 nc7SlSSPfmx+GiUnlUqSGJAaRDEj/EsqVDiETK+8iwLtiYmu0I9pjHqFCJGWQGiYwwj8 uGuKAs98SGw+T5L2iavm1CtOwI/22rni6AYagrPHq23lmGzF4YITGkM+g2WzybpF8GCZ cPcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="JyzAEu/6"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o19si13637666ejj.307.2019.11.19.07.47.33; Tue, 19 Nov 2019 07:47:57 -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=@gmail.com header.s=20161025 header.b="JyzAEu/6"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728459AbfKSPq2 (ORCPT + 99 others); Tue, 19 Nov 2019 10:46:28 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:38104 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728420AbfKSPqY (ORCPT ); Tue, 19 Nov 2019 10:46:24 -0500 Received: by mail-qt1-f196.google.com with SMTP id p20so25106188qtq.5; Tue, 19 Nov 2019 07:46:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M8plwUGqzRu7vrgV7/AsiHy4S0SxA51BEoVHYwcW5lA=; b=JyzAEu/6ws9pxBMKgWcKSYsKAY6v1iDQlhimW0fo3mVWXhlxvJxvDXQo0xctEUWGSE Pt8VVy5rEJGIoAxhEfUPch66BMCN211Z8O6rUnIxw0Ru61N+MLcxuHR20pATQexpV5tB ThZmMlEXQa5whche9/AeeFgvZx8/KQ41RRQV8hkgr6yluEr6jQI+8sNNuO3ZlhONLq/8 8C0wh/aiatk86HowX7vOXUxLffdZz5ExA9uPJmCroJnD7UypLzsVDyA0m8JtCx8d1lD8 zB73fwsvVtItCnQt4qzBwXO/liKX/Ixq4Vz0ILVKY+14uoEk95UN2b1K6fafL3xmpui2 3nTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=M8plwUGqzRu7vrgV7/AsiHy4S0SxA51BEoVHYwcW5lA=; b=tl+KwG+hSGKCdVpoiiOU2oglD0dYzyy2cIlLpYWxi1mHeRmeahsiORMaLsTG8XooTE wBqDkkb7e/3dX25LHtW30WZW1tS/Ts02bzv2DnQCYfX0wkTK/VVBNPhVlsBwoQmtflOg jWKW9JvaL2vWtcr4bd016x13q8cuXdy16NjNxC6/SrBeIHuM4NcOqLjwkY+yZUiOYEtm JmHxNCLzmgWmaYC2/+vEGenz0/NBfHSJ5tV3tpd4/Qjx8aRkvAfYtje1xcSphTLoDY6e U12OtcdSKEwPRiwGc4LUmHDlW/ShyOhddjFOMB5BcaxtQKWHGuVRSkFML0MypDi2IHaO Bu7g== X-Gm-Message-State: APjAAAXc3DII/2JKDtQcf1jNM+U3I8yiWgBSrn0p9c/uGDkQwKx8wglh sbdz2/24TzbezDBKcNNixMM= X-Received: by 2002:ac8:44c3:: with SMTP id b3mr32324566qto.313.1574178383029; Tue, 19 Nov 2019 07:46:23 -0800 (PST) Received: from localhost.localdomain ([72.53.229.209]) by smtp.gmail.com with ESMTPSA id 50sm12949919qtv.88.2019.11.19.07.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 07:46:22 -0800 (PST) From: Sven Van Asbroeck X-Google-Original-From: Sven Van Asbroeck To: Lee Jones , Liam Girdwood , Mark Brown , Jacek Anaszewski , Pavel Machek , Rob Herring Cc: Linus Walleij , Grigoryev Denis , Axel Lin , Dan Murphy , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH v2 4/4] dt-bindings: mfd: update TI tps6105x chip bindings Date: Tue, 19 Nov 2019 10:46:11 -0500 Message-Id: <20191119154611.29625-5-TheSven73@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191119154611.29625-1-TheSven73@gmail.com> References: <20191119154611.29625-1-TheSven73@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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): + +i2c0 { + tps61052@33 { + compatible = "ti,tps61052"; + reg = <0x33>; + + led { + label = "tps-torch"; + }; }; }; -- 2.17.1