Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4109165imm; Tue, 29 May 2018 22:24:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLY+bsHoSxNj8kgitfCh0raUIxueiZMsfryxfwVOAUB0EJ3Lb2S+6fjAc19oeBhjo8Eyf+K X-Received: by 2002:a63:36c1:: with SMTP id d184-v6mr1081921pga.224.1527657845903; Tue, 29 May 2018 22:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527657845; cv=none; d=google.com; s=arc-20160816; b=I8UhKEtFZ/jW/mYK/CvAPf2AHB+V5BUUfP9/3WM3H8QHKZ40v7S/ZCCT/Au4gyqS58 7oEKlu/A+57+Ag5iPr97RMU6bi9LOdC9aYjklrjWEq40z3m+YlaRbMAWxJyvEovnRLdu TxncKmLgJkluqm0sB5NLhQ/BPbA+r5DNQ2qOevWei9RtVrKN9e8ic6ZxuDTy+dIU4/G2 0MfQSjeoULkKNVwhFakYa5n5X94rm1wCrcjJaBUru+UCjX9DqRsoW8vbGEqQ8YoEVnm6 pVXoBHKL8GmQ1LXJVA9EZfXYY6dsmBOpETowS5UcTuwtNOZQF9vIOMulfi5sZk1PVCyD jtTA== 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=COshMcIUT+hBKgUekedDjJ4CH/EqRqLqEZoMNBOYai4=; b=iqr6lJ5sDXTBksz+M2f+g7G3Yt+pojhvKyYxFJpQAIcOGUdxR8GdOPQKpDT4+YCXZz eH3sZL6aY7iEqB96fuHNnbB9lrKc3hTt0CPWesYIIzSWTHBj+RK7+NZ/qXIU3iTIfnQa qw5V9YEjLCk6snbfZDPPjgQ5tEdXBrrpU8y1TyxzRX4g39YAtrrLYnyMlBA+IQ6w6VpD meGVTew5R64eKlnjOL32hK9WA2Wm3dklcXB/Lq+f9/yLptNfb1yBM4128eWvrTMPC6l/ 43HG1w2tU8u9JE5rgAaGTNrR04ACUz5mDBQMjhlYraxYnGyXYCbn4NhWyFf9kB22b+HW fljw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=pKHz69Cy; dkim=fail header.i=@chromium.org header.s=google header.b=W0098D7A; 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 p1-v6si5432632pgf.469.2018.05.29.22.23.51; Tue, 29 May 2018 22:24:05 -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=pKHz69Cy; dkim=fail header.i=@chromium.org header.s=google header.b=W0098D7A; 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 S1755439AbeE3FX0 (ORCPT + 99 others); Wed, 30 May 2018 01:23:26 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:35204 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751912AbeE3FXX (ORCPT ); Wed, 30 May 2018 01:23:23 -0400 Received: by mail-ua0-f193.google.com with SMTP id a2-v6so11616767uak.2 for ; Tue, 29 May 2018 22:23:23 -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=COshMcIUT+hBKgUekedDjJ4CH/EqRqLqEZoMNBOYai4=; b=pKHz69Cy3p3qpbl6yvoepEvLLqEs/dRct8/vXZ/JeqQEf43xznAZRBBsHeIMqwfu2d mJWr2j9GxxOIN0uBDv3A6qAbHthFl9J9Dz7NOXv+jnfp5iCi3qmQ//5d3uIr1VEFqMSP 7hL6id6k59jKLJOk72KUA5uNiJ9MGH3SOwgESLgsooz4fO1KMNJqWTYcuZjcNQS8uKJ4 QHv2YPK4RUxgxKWWRCfQf5tNX1mK83gcvW3DkxkACd/VnbPIjVjPHfXnQU82wMUFSxan n7cvJpWLWgHM+FkdzwE6vq+EgV6QBK5LnPKm9I6oVJrylcY6ZZ66QN461SJEEmIKK29e guGA== 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=COshMcIUT+hBKgUekedDjJ4CH/EqRqLqEZoMNBOYai4=; b=W0098D7ALAyHUYrmAtVnvexDnp0RxgXdDYRWykA0JdYpkuaizp7/MuRlaKIgNGGPEX oiC2YasGAMURxKzlpJDllqDBubtM9wMiieEKmebgzUP2q/Wb3pjo24ZoxNDesRvlVlOV S/4SQbj6V/r2A+WepYJGOiuWogB4FVs5oTf3Q= 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=COshMcIUT+hBKgUekedDjJ4CH/EqRqLqEZoMNBOYai4=; b=um0CZccUVFItW6cU9wzZjvTmKghAzm/oj88u5JbVUUaN/6z09lMnPm04Wz/L7Q20PK PbNHVTIyifkTpbAxKeFTuAUxffHnbzU9BQKKYa4ztRTGAsEHz7zIwUcCSFa06pjApbE5 yYZDsXXEf7urRAPgIcZy1kGPxV+bu6TuH2OOIzyMLwFtqUGjrPjPJ6xU8K8jTm/H09ba iaTT7RAU7oW9Nux0S5TWlWYNu7h/TdzcQNsQJX2zEf7CCO1WZNxXWhSNDaQWqCctzipg maz/VKtnsTDdi++eY9jFd1QMJ5vEt11OGGezDzklTLJTgw7t7YR23lrm5AMqo6H+ghzZ ycMw== X-Gm-Message-State: ALKqPwcNTU+yhGZwXbk+gadJ+qtxRjenQkEjGc3xkHETQpnkbbEEaxb0 MBBzkyxk7YqK/Hh+JMXUeKej8n+83prhyVAskKQ2vg== X-Received: by 2002:ab0:5a72:: with SMTP id m47-v6mr706990uad.37.1527657802390; Tue, 29 May 2018 22:23:22 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:3052:0:0:0:0:0 with HTTP; Tue, 29 May 2018 22:23:20 -0700 (PDT) In-Reply-To: <6d03576cf90f06afb1194301cb41fc31704def1d.1527040878.git.collinsd@codeaurora.org> References: <6d03576cf90f06afb1194301cb41fc31704def1d.1527040878.git.collinsd@codeaurora.org> From: Doug Anderson Date: Tue, 29 May 2018 22:23:20 -0700 X-Google-Sender-Auth: tjlk6J9oVaS-0rPjCp00X2mv27Q Message-ID: Subject: Re: [PATCH v4 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings To: David Collins Cc: Mark Brown , 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 Tue, May 22, 2018 at 7:43 PM, David Collins wrote: > +======== > +Examples > +======== > + > +#include > + > +&apps_rsc { > + pm8998-rpmh-regulators { > + compatible = "qcom,pm8998-rpmh-regulators"; > + qcom,pmic-id = "a"; > + > + vdd-l7-l12-l14-l15-supply = <&pm8998_s5>; > + > + smps2 { > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1100000>; > + }; > + > + pm8998_s5: smps5 { > + regulator-min-microvolt = <1904000>; > + regulator-max-microvolt = <2040000>; > + }; > + > + ldo7 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-initial-mode = ; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > + regulator-allow-set-load; > + qcom,regulator-drms-modes = > + + RPMH_REGULATOR_MODE_HPM>; > + qcom,drms-mode-max-microamps = <10000 1000000>; Things look pretty good to me now. I'm still hesitant about the whole need to list the modes twice (once using the unordered "regulator-allowed-modes" and once to match up against the ordered "qcom,drms-mode-max-microamps"). I'm also still of the opinion that the whole "drms-mode-max-microamps" ought to be a standard property (not a qcom specific one) and handled in the regulator core. However, for both of these things I leave it to the discretion of Mark to choose what he wants. Thus assuming Mark is OK with these two things, feel free to add my Reviewed-by. -Doug