Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4643684imm; Wed, 30 May 2018 09:13:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI27OQ9PSaJcOrUQMf3n1+MCzPacB8ArTx6ppXrozqP4Je5yfPla4Fs9+9Q+beQ5iNlmiRi X-Received: by 2002:a62:f713:: with SMTP id h19-v6mr3289976pfi.165.1527696802521; Wed, 30 May 2018 09:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527696802; cv=none; d=google.com; s=arc-20160816; b=XEBAM7J08IcjcuTPbi5/g/zW8rCAaTRHXaP7/Bu8RztuCat2i8mu+7OYdaLzLg0lyM OPqLccO+A1pjox90JPsYTSMDlYO2Gishv7lgBGfDFfbDW3hSOkT6H1euKW23btvsEJ23 FmWwo9AD537PWoADD72BE/Iv/J6rIN0Vx9rzBaCcB2G4nulpBn8+edqkouuHAzn230p4 ZR5dAs7w2Yx5aF++qyGR6EQePnRatQlFwO4yTKH1tP5/Lz/fMI680sqNc4H5dNWDat3Q amZ2X/fsmsobG1RPK4gb77wQn6JgnwtiCkGUE0QBozus8BzIVWu5AHQ8fmxRQ0M8UvdG tjgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=VFkJ2OntSHVTuoihMyFQzMbgH1llz5L+dUL+x2/Df9E=; b=qHaxsii7k5WGF+0oaGr51GlBj9yaTFzd3mSWqbRp2CSol1sCKepIxh+I74U+T53Cne Vm/OZn5pY+HalK/gAsokVBna4uNNKzOUvPnp9DQX3dFB40B306bZnf3CMjZqyvOM+ojH DchopNxLSDv+0YUH4Vl26hgpO9uvZxoIvTvOO2LZ3/YgK7lhuoFr+m3jZSTCt2J1xGj8 eb3BbfI/lIL/UYOB/Ji2NmoBjDGGfzSVmno//qjDAf1V7Ksa1lbpuIWfErYJ+W1YKmIw 9nBtPjtljw/37e2Ah0JabgbBtJrssOfvdyeO0LN11JNLdwYBCQVC/+IovaAub7ZZQOoi vGSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=YDa6GPxk; dkim=fail header.i=@chromium.org header.s=google header.b=JQl6DK2d; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q19-v6si6351004pgn.392.2018.05.30.09.13.08; Wed, 30 May 2018 09:13:22 -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=fail header.i=@google.com header.s=20161025 header.b=YDa6GPxk; dkim=fail header.i=@chromium.org header.s=google header.b=JQl6DK2d; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932138AbeE3QMa (ORCPT + 99 others); Wed, 30 May 2018 12:12:30 -0400 Received: from mail-ua0-f196.google.com ([209.85.217.196]:43146 "EHLO mail-ua0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753256AbeE3QM2 (ORCPT ); Wed, 30 May 2018 12:12:28 -0400 Received: by mail-ua0-f196.google.com with SMTP id d4-v6so12868631ual.10 for ; Wed, 30 May 2018 09:12:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VFkJ2OntSHVTuoihMyFQzMbgH1llz5L+dUL+x2/Df9E=; b=YDa6GPxke0XuhVf7vPng/p3eudlZ/QCeHWpb32/JHpvOl0IQEGb/pI77Bya3tUzwFZ bC6F4OdjyCU25oo1I6CTXQ5lmifi7AYpWLqUma/epGT0k23Vi41jXe44r2BrAbQLO7dh CCNVWdGzuAFDi0aFHP3aMDoLvfH69+FgU6rDsOUDT0O6dpuR4GS+uSsD3Fr3aZbbCmSs A8UCtOtDrCIjB16b/mAec8C5bSlZkwbc4owIY11hiE29oPq+N7qvbFeh5fVxrXNgwYu5 r8p72TS8mcoISyMW063rdFk2IIlAX6x9v9LmHyfcMHi9W6x+uFoOIdpVGKNXUtIivyH+ W2xA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VFkJ2OntSHVTuoihMyFQzMbgH1llz5L+dUL+x2/Df9E=; b=JQl6DK2daHUJjg8oCHpEkbCQw/AgGMheCzH2FKU4PsBBJA4653tBKH2AcMllsWxlkc 60cIQfyVDEn9/E66m/ieIICR+S2dYt51GjGJAXj9f6B2gdrs2F3HEj+WXeFgeAIOUfB9 RSiHuEkPtvhw0eLzyPV0KZFXHvdm0c2KTQWMQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VFkJ2OntSHVTuoihMyFQzMbgH1llz5L+dUL+x2/Df9E=; b=maDAshmPER1TK1TlK80PHsKgZ1tdeS/+hr/F6GJPMseGuR7K7NJzBmQuLhzPLBgkgV Z2D+nxjPKwA3qdNDC4By0qERP3bEwAZJpRb8XQewZTZpWWeHRoLXxJiC980kG3HCv6Ha 9MVS4whPb5YMDEFmZWmg/wBMjOGDJAbVe7XAuLI43jgp1xNTKbsGzirjy0bZRpC3DjSA 27yDCx1Slm/xmzNzX3Vx3kpr7i85KUpMKl3DTryxOgw49SUyFPU28ZEiulCiDNfC7IIV o6mpyXw/etGk0Kz2IIrwhmyFDuKYuqwDubfABYO4b8SEQJ7MXs5VnDu25CeZEdl4cHhA POlA== X-Gm-Message-State: ALKqPwdwzTD5KLnTyGwOmBpru8NoAP862sXxMuZQ+wBpQOvGSoBSHwwQ BDUA0KqAYRMO6wPe0SqrFl3T4wNpaMI/EJb1gpRPXA== X-Received: by 2002:ab0:17d2:: with SMTP id p18-v6mr1976492uaf.121.1527696746893; Wed, 30 May 2018 09:12:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:3052:0:0:0:0:0 with HTTP; Wed, 30 May 2018 09:12:25 -0700 (PDT) In-Reply-To: <20180530155044.GR6920@sirena.org.uk> References: <6d03576cf90f06afb1194301cb41fc31704def1d.1527040878.git.collinsd@codeaurora.org> <20180530103720.GH6920@sirena.org.uk> <20180530155044.GR6920@sirena.org.uk> From: Doug Anderson Date: Wed, 30 May 2018 09:12:25 -0700 X-Google-Sender-Auth: Jo-FdTXGQ944r9ZJxiAGPLLPQVA Message-ID: Subject: Re: [PATCH v4 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings To: Mark Brown Cc: David Collins , Liam Girdwood , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, Linux ARM , devicetree@vger.kernel.org, LKML , Rajendra Nayak , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, May 30, 2018 at 8:50 AM, Mark Brown wrote: > On Wed, May 30, 2018 at 07:54:47AM -0700, Doug Anderson wrote: >> On Wed, May 30, 2018 at 3:37 AM, Mark Brown wrote: > >> > I'm confused as to why we are specifying the maximum current the device >> > can deliver in a given mode in the DT - surely that's a fixed property >> > of the hardware? > >> Said another way: you're saying that you'd expect the "max-microamps" >> table to have one fewer element than the listed modes? So in the >> above example you'd have: > > No, I'm saying that I don't know why that property exists at all. This > sounds like it's intended to be the amount of current the regulator can > deliver in each mode which is normally a design property of the silicon. Ah, got it. So the whole point here is to be able to implement either the function "set_load" or the function "get_optimum_mode". We need some sort of table to convert from current to mode. That's what this table does. My argument to David was that since set_load / get_optimum_mode were features of the regulator core these should actually be standard properties and not Qualcomm-specific ones. -Doug