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: 10395733 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 C851160215 for ; Sat, 12 May 2018 01:47:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA1E82856D for ; Sat, 12 May 2018 01:47:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CCF628571; Sat, 12 May 2018 01:47:57 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1ED0C28F41 for ; Sat, 12 May 2018 01:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=GTpvK3M3d1g6f59mcukGs6mxCxh6z8NyS2b69wH5hQw=; b=V96msjAHaqfRumGkgRzTGin83c /5OCJfVpE6Em0dZD88D92cPXsupJZKBTaZ+zjoOOQlB/lwFEPYxkoV/4xls+P2SuJpvtop8aMlm4/ 7Lek8p1KdPNaq6//jYdQxREJE8nORVMsHg8uLgaFPjWHSog0D8idLmuY6ASYQChKNGSydSTwlEIz5 BI/SVrD4CmMwVImJI3oirgU/QH2T1mbJob9MvhDORdbkef/8ijOBvxJt15QYdz0arqDkwm+bwzc/D 9xjsNdcGhj+lEVDAe5aD0Yx+rgRpIi/quRMebL0oMx9nPHinXetwr91+Zl/hM7zu3AzaXrZfO0dwF SoKFykwA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fHJdU-0003GO-GZ; Sat, 12 May 2018 01:47:48 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fHJco-0002w3-BS for linux-arm-kernel@lists.infradead.org; Sat, 12 May 2018 01:47:07 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D43E36081B; Sat, 12 May 2018 01:46:55 +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= 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180511_184706_463624_17F908A3 X-CRM114-Status: GOOD ( 13.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, rnayak@codeaurora.org, David Collins , sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dianders@chromium.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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.