From patchwork Sat May 12 01:46:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Collins X-Patchwork-Id: 912342 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) 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=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=codeaurora.org header.i=@codeaurora.org header.b="oSC3xbNR"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="cBbj8iZI"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40jVFH4nPHz9s28 for ; Sat, 12 May 2018 11:46:59 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750793AbeELBq4 (ORCPT ); Fri, 11 May 2018 21:46:56 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:47120 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750776AbeELBqz (ORCPT ); Fri, 11 May 2018 21:46:55 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 49FC060881; 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=JPXxeg+hnAf8ArzBoTpzuXNbJcyY1Lg0sUK3jjm6hiI=; h=From:To:Cc:Subject:Date:From; b=oSC3xbNRu9snXgSCle0DOw5Pirfw9REjLHu5CJbjdvAt5iNo1AW7g8JhvUG4SmEDi 8HSOdAdN3caIaLI5KAvVfa/yCojyYqmLaMtfo6uX2ekElH1mtcyhR/NrxpsTIWQZ5r 3R4HK2ioHmCHOnSM8rvu/6EvJwqXyemc/B/onH2o= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 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 36E1460712; 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=1526089614; bh=JPXxeg+hnAf8ArzBoTpzuXNbJcyY1Lg0sUK3jjm6hiI=; h=From:To:Cc:Subject:Date:From; b=cBbj8iZIbkapzpYh0k2ksxncxGHbyCcmmwcdqR3LYKWGQwwhTNV9SlDP+te4FodG7 6IcgwD+OvL0Z7jABucpmoReQgqiQRRz6M3lRNFRwdaNuOGZLsVKAOA4fAjjdRwk+w6 +RbuypeXukWjlmB0hzIjkpOR/502XNRTcXzqnv/o= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 36E1460712 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 0/2] regulator: of: add device tree property for allowed modes Date: Fri, 11 May 2018 18:46:45 -0700 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org There is currently no accepted way to configure constraints->valid_modes_mask for regulators defined in device tree. This patch series defines a new common regulator device tree property, regulator-allowed-modes, which can be used to specify the set of modes that the regulator is allowed to use. It also implements parsing for this new property inside of the of_get_regulation_constraints() function. David Collins (2): regulator: of: add property for allowed modes specification regulator: of: add support for allowed modes configuration .../devicetree/bindings/regulator/regulator.txt | 5 ++++ drivers/regulator/of_regulator.c | 29 +++++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) Reviewed-by: Douglas Anderson