Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1544821imm; Fri, 11 May 2018 18:47:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqVL7wyN3Rwmt+R5khrM+5jbgavSOJEnjBTxSjhbFQ/4kQ3lokyxgryH2HnZN+4kJmXQpsj X-Received: by 2002:a63:3643:: with SMTP id d64-v6mr1158379pga.228.1526089665008; Fri, 11 May 2018 18:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526089664; cv=none; d=google.com; s=arc-20160816; b=vcTBDDep3DSODhKZoHMW3A0uI05ZXH1zK6uPbA4Enp79Wuuu5yFw0qYD8/zT23xoSP vkgWXrr9SylYCWJHZYGmKxMuiyvjyRG0Nipf/+V8fmpkuQLoRZ/XYYUzi35mB0COqz2f RH1kHFSyTaAPtz/ry04W6If6ZCPgSiObLc27i/EG8LRs+xChPU+p3JShkLn9/2K/BxqE MUrX1BrkyTbtg42CVYkT3MYlpjyUo9dmwT76g4ruPVozgcXUCS5ez2xuj3VI5/xySi/z 2mfSQkR6EcBOT3DQyWxRoPjIM9QZJ1KswhcFrErR4TyEtywDNzRDbQPHCe2pOirAYES4 ejuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=P6pYFedpaL4J0ZfJPPYUnMxrB/8o8jLPaiB8HmZ2JMw=; b=GuqV4qsuKFq5vwKrmkxwU+AncHXE99pONQ0XHLz2qubD8fQ3R1o2qhjR+f/mnNiBy5 Lq8dOVgB/1kms7DTLdqbkeARHAzKWD0amqWXdEdV6fE0km+TERgGL0YgR+DWFVLXPw0D TTpZKQsNMGj260Srs65L2bsO+zEkgkU2Fn+Hdzwz4C30LdtFD0mWUOf+U/GXPCEisUd3 Y9clCHtAc2aSi/kSMkheJftnZNk7lsu2GmBxUIkEk67wcvQUIvGRpnzZeMR0+XMoJuv7 nhFNZ1q2sFyUt6SxsHc4X+hzjJW9kRazlSonW6r9b1fkX30+ZsCA9cDQU1tTljBndDdU 1SfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oSC3xbNR; dkim=pass header.i=@codeaurora.org header.s=default header.b=cBbj8iZI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15-v6si3352515pgf.287.2018.05.11.18.47.16; Fri, 11 May 2018 18:47:44 -0700 (PDT) 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=@codeaurora.org header.s=default header.b=oSC3xbNR; dkim=pass header.i=@codeaurora.org header.s=default header.b=cBbj8iZI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751273AbeELBq5 (ORCPT + 99 others); Fri, 11 May 2018 21:46:57 -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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project