From patchwork Sat May 12 01:46:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Collins X-Patchwork-Id: 10395729 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8FBFA60215 for ; Sat, 12 May 2018 01:47:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82A4528F41 for ; Sat, 12 May 2018 01:47:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7751928FE8; Sat, 12 May 2018 01:47:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2450E28F41 for ; Sat, 12 May 2018 01:47:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751692AbeELBrZ (ORCPT ); Fri, 11 May 2018 21:47:25 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:47218 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750805AbeELBq4 (ORCPT ); Fri, 11 May 2018 21:46:56 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2444C60881; Sat, 12 May 2018 01:46:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526089616; bh=wjPrxjYsNqXr6bJu9mcdhRVftqSaud6DPDGCJ8kU0HI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=Zp90H+rWeR633joeal+DXxmShQoxWDmeatHpXySNdEQTrW2Pj9Jcnq7nmzeOhl6OR F3bdcC8ks5VfsYJjI1lwB8CxFIYvc2nw8oBK+2c6Ou4mdQhw25oymRfvAzjiVOSWoO +MIhk7wOipL3vBt3v+f18s6suwAVnx/rpZ/SRKBk= Received: from codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: collinsd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id C8AF5601EA; Sat, 12 May 2018 01:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526089615; bh=wjPrxjYsNqXr6bJu9mcdhRVftqSaud6DPDGCJ8kU0HI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=F4ond5FHoaphEXZRgG90iZFrkB0ZqxFpHOg8UvDmmTPFCTH16mbo0kOThXTdvyagf 8u/mQ5181/XrNxyJ2PGHVTRhLk9h11uI81SZMbr/Jsmocn/jEmFxpmNjdQkATaTDqZ PaSPhA9dV24WWMJ26MqxXWmXGjN9suiqXiQpO9T0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C8AF5601EA Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=collinsd@codeaurora.org From: David Collins To: broonie@kernel.org, lgirdwood@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: David Collins , linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, rnayak@codeaurora.org, sboyd@kernel.org, dianders@chromium.org Subject: [PATCH 1/2] regulator: of: add property for allowed modes specification Date: Fri, 11 May 2018 18:46:46 -0700 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a common device tree property for regulator nodes to support the specification of allowed operating modes. Signed-off-by: David Collins Reviewed-by: Douglas Anderson --- Documentation/devicetree/bindings/regulator/regulator.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt index 2babe15b..c627aa0 100644 --- a/Documentation/devicetree/bindings/regulator/regulator.txt +++ b/Documentation/devicetree/bindings/regulator/regulator.txt @@ -59,6 +59,11 @@ Optional properties: - regulator-initial-mode: initial operating mode. The set of possible operating modes depends on the capabilities of every hardware so each device binding documentation explains which values the regulator supports. +- regulator-allowed-modes: list of operating modes that software is allowed to + configure for the regulator at run-time. Elements may be specified in any + order. The set of possible operating modes depends on the capabilities of + every hardware so each device binding document explains which values the + regulator supports. - regulator-system-load: Load in uA present on regulator that is not captured by any consumer request. - regulator-pull-down: Enable pull down resistor when the regulator is disabled.