From patchwork Mon Dec 9 14:02:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Van Asbroeck X-Patchwork-Id: 1206272 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ea0xRToy"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47WlJS1hjDz9sR7 for ; Tue, 10 Dec 2019 01:02:48 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727793AbfLIOCq (ORCPT ); Mon, 9 Dec 2019 09:02:46 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:38786 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727684AbfLIOCp (ORCPT ); Mon, 9 Dec 2019 09:02:45 -0500 Received: by mail-qt1-f194.google.com with SMTP id z15so3712198qts.5; Mon, 09 Dec 2019 06:02:44 -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=9ldqJ1SZTM86i1NDUWb8AoCSQlQUTKFP3Yzg0EhQCsM=; b=ea0xRToyTQAOSYaMQIUh7dMSvI/bYuX5NsGjwiP/tqHkEtEDAPmSkvqWOdiyAFHg6B vDHB3pjTFIiPw0cUfdqbfcjVyw9Uxb+xzwXYjTjFA+lTSlE9pt/S8hXz7LnJFxzgb2MD 9Eolg70Jp3L5GJjMtq1ZRPfK4T0bkXtcC1se+gSI5YWlsfyRAxNysXN/8yBbxz5S2X3b H78YA8nG8WUX/3Mm6v8Ya5uUM7FlbxN/ZtGAlOIkk9y+IfWFjghDAuvTkjhyVbKk/74v F21z4Y0qHvu/3kZ59Lb+jY09NtMNBcjsqvRElL5AGwCjcVmGnaa7pOEGZ3+u+2AYSqzm KUuA== 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=9ldqJ1SZTM86i1NDUWb8AoCSQlQUTKFP3Yzg0EhQCsM=; b=D9SSkkgYRdb2+2t3RFRfSZWd4iRP0agwWjB2B6/n7hYDbuvdB0cByARq/xiOpNQF0l rKPLtNXImwlDRcZ6oM+YF8/ERbJyQz0fqAFuc42TFwhJxtKKCPUmxxdXmxwhowGUXnBm 3BinlqbfrZDN1Xv8sF1OSXT/9cSpp9Zs2dpgMUwMzSEk3hSTPNVUoGJY5HE80vBeyDYA s/mHbqV3GTbsmkbBYv3kYgG3xVqOrsKXWZWeIusVW2Y75PiTqvSSRoWuy+3TIBz/8EYp EUPcMPuPC9FsEySHlBLlvIWAYhIVnmFmSyluAdRJ+tOHc+76cT+F95qkeH/tJ5ntf0T9 g+iA== X-Gm-Message-State: APjAAAWNmarjo69Npfjq4tprBsTFT/OOr1/HoKx0tGLG7V6TwubMODMd 4x+Yz4d0zTrsGkma3nz85/M= X-Google-Smtp-Source: APXvYqztzrVLLGA7w+ahwGSQFwLTP6K8GAsDsLwxpdjc/fVJqXOcLNgNj4z6oBzvhbewNFKx0I1IGA== X-Received: by 2002:aed:2047:: with SMTP id 65mr25382186qta.78.1575900160420; Mon, 09 Dec 2019 06:02:40 -0800 (PST) Received: from localhost.localdomain ([72.53.229.209]) by smtp.gmail.com with ESMTPSA id h28sm10128023qte.54.2019.12.09.06.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 06:02:39 -0800 (PST) From: Sven Van Asbroeck X-Google-Original-From: Sven Van Asbroeck To: Lee Jones , Pavel Machek Cc: Linus Walleij , Grigoryev Denis , Axel Lin , Jacek Anaszewski , Dan Murphy , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH v5 2/2] dt-bindings: mfd: update TI tps6105x chip bindings Date: Mon, 9 Dec 2019 09:02:34 -0500 Message-Id: <20191209140234.6558-3-TheSven73@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191209140234.6558-1-TheSven73@gmail.com> References: <20191209140234.6558-1-TheSven73@gmail.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The driver has been extended to optionally get its operational mode, regulator init data and LED naming from the devicetree. Tree: next-20191118 Acked-by: Jacek Anaszewski Reviewed-by: Rob Herring Signed-off-by: Sven Van Asbroeck --- .../devicetree/bindings/mfd/tps6105x.txt | 47 ++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/tps6105x.txt b/Documentation/devicetree/bindings/mfd/tps6105x.txt index 93602c7a19c8..d15763740a3f 100644 --- a/Documentation/devicetree/bindings/mfd/tps6105x.txt +++ b/Documentation/devicetree/bindings/mfd/tps6105x.txt @@ -7,11 +7,56 @@ 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: + - function : see ../leds/common.txt + - color : see ../leds/common.txt + - label : see ../leds/common.txt + (deprecated) + +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): + +#include + +i2c0 { + tps61052@33 { + compatible = "ti,tps61052"; + reg = <0x33>; + + led { + color = ; + }; }; };