Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1109807imm; Thu, 4 Oct 2018 08:19:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV60YMvu8835CbaO8lUXiPGGitRyPV0J3cPVUcN0WEwrQ9l7zJBphj8EFH1JHm2dj846KXvfU X-Received: by 2002:a63:5fc5:: with SMTP id t188-v6mr6157156pgb.346.1538666340012; Thu, 04 Oct 2018 08:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538666339; cv=none; d=google.com; s=arc-20160816; b=KItzn2dwKN13aRYaQ9FbQchppqc+b2IIfYcQwaSZV6HMVH7eZZHAhliopjywVZjECV YSLXyQ00cwwdhV3MRlVh0rSZyxOJ4VI1WMYP1dxz+brAQfN8xpeq5MKkLcGCXFAfT3j1 PrvwRj9oKOPAZL+EDyAZMJKcreqbgqK7UEkylPrTt+SUK6PyC2ncLBPaoDWB9geuoM3J /mOe3l6EMOqRH2DhB/jZ9QIhF6yxbMetnq2jcCM40xhYLlR/gMYy2JSd3H95+/MZ5Afc mKh+76tNhMXSV/cBGC0pCXbC7+2pKDADoj61+jHXUuWIU+cY67DfD3BlP5PWBY9FI1Be QMqw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Sp7DO++8xzGxOxDI1MUQN3c3VmONZddHzXTmQK/JF84=; b=IJK/eqEQju8rRJLhl1mvDx0WT4VKKZhlFl+Kz5eGdVNJ293FDwDIT5oIMjX6+LGqeH AvSCUje0g9rxNrUV2DCcIQFWkhXnKKg02jOZyj0eeVEgUF+fLceBP2s1GMgsnbr7oTud cNKp31UvsNuaUvsqZvSsSnwk4//pyXvPpKZ33iWLB03IbHSI2869Fe7OmYrWPSB/6hex 46NZPZFxmMsw22KJj79qgJnXHMdUVli+eeKtRXnRUwYox3/h7fnSVoQ9ElGu2SlHWzvg 2RW7KI/qcGm8f7ovbj93iGGztWDST/l2WgQkWap/h8+rCVnj/psukjdVROwfstRCobVS xwow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KEjywRi+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1-v6si4902962pgj.430.2018.10.04.08.18.42; Thu, 04 Oct 2018 08:18:59 -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=@kernel.org header.s=default header.b=KEjywRi+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727662AbeJDWMU (ORCPT + 99 others); Thu, 4 Oct 2018 18:12:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:49918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727381AbeJDWMU (ORCPT ); Thu, 4 Oct 2018 18:12:20 -0400 Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6A42020877; Thu, 4 Oct 2018 15:18:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538666315; bh=ClNXtFf5uL9odpA5AthxKQO+zYY14Q9Bkhn1hBpbFGQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KEjywRi+5gfg0Eyy8UDQV3u7gM1Isa6a0FxdVqMic8S5kc4TkwRKIswPeLO49oKjG rcvVNhjjSBo/MhYTHoZgPeaeOmj9ot70skPMo/S+CIcaaJvYlRK3d6NcFhI3tU8eCL LQKInfcaSmF8MoF8MOaBlqEkWkNVjt4gvHbeuz7Y= Received: by mail-qt1-f182.google.com with SMTP id u34-v6so10277782qth.3; Thu, 04 Oct 2018 08:18:35 -0700 (PDT) X-Gm-Message-State: ABuFfogzNttZ3pjuqS07RxjIHz44RxIHdjHtpqfqLzUKQZY8r1pEHZKs y69VOuQsK2X+3RnoxRYAuwBZVzVMPht0X7B+oQ== X-Received: by 2002:a0c:b5d3:: with SMTP id o19-v6mr5858374qvf.218.1538666314607; Thu, 04 Oct 2018 08:18:34 -0700 (PDT) MIME-Version: 1.0 References: <20180627045234.27403-1-rnayak@codeaurora.org> <20180627045234.27403-3-rnayak@codeaurora.org> <20180703223554.GA32313@rob-hp-laptop> <20180704055757.4li26b6poxllmh2k@vireshk-i7> <1463d24b-481d-eecd-9e44-e7a5a993e5fc@codeaurora.org> <271db7b1-f65b-f42d-b00b-9362429b3749@codeaurora.org> <20181004083637.xlz26rpn4qtsvdk7@vireshk-i7> In-Reply-To: <20181004083637.xlz26rpn4qtsvdk7@vireshk-i7> From: Rob Herring Date: Thu, 4 Oct 2018 10:18:22 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 2/6] dt-bindings: power: Add qcom rpm power domain driver bindings To: Viresh Kumar Cc: Rajendra Nayak , Stephen Boyd , Andy Gross , Ulf Hansson , David Collins , Matthias Kaehlcke , devicetree@vger.kernel.org, linux-arm-msm , "linux-kernel@vger.kernel.org" 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 On Thu, Oct 4, 2018 at 3:36 AM Viresh Kumar wrote: > > On 25-09-18, 14:43, Rob Herring wrote: > > On Tue, Sep 25, 2018 at 5:25 AM Rajendra Nayak wrote: > > > > > > Hi Rob, > > > > > > []... > > > >>>>> + rpmhpd_opp_table: opp-table { > > > >>>>> + compatible = "operating-points-v2-qcom-level"; > > > >>>>> + > > > >>>>> + rpmhpd_opp_ret: opp1 { > > > >>>>> + qcom,level = ; > > > >>>>> + }; > > > >>>> > > > >>>> I don't see the point in using the OPP binding here when you aren't > > > >>>> using *any* of the properties from it. > > > >>> > > > >>> Yeah, that's the case for now. But there are cases (as Stephen > > > >>> mentioned earlier [1]) where the voltage values (and maybe other > > > >>> values like current, etc) would be known and filled in DT. And that's > > > >>> why we all agreed to use OPP tables for PM domains as well, as these > > > >>> are really "operating performance points" of these PM domains. > > > >> > > > >> Rob, are you fine with these bindings then? > > > > > > > > Okay, my only thought is whether we should just use 'reg' here, or do > > > > we need 'level' for anything else and should make it common? > > > > > > I am not quite sure I understood what you are suggesting here :( > > > > You could use the 'reg' property instead of 'qcom,level'. Any reason > > not to do that? > > They can use any property which uniquely identifies the OPP nodes in > the table. Though I never thought we can use 'reg' property in such a > way. I always thought it must be related to registers somehow :) That's almost certainly where the name originates from back in the 90s. I view 'reg' as how you identify or address a device. This can be channels of something like an ADC. It's perhaps a stretch for OPP nodes as they aren't really a device, but if the levels are part of the h/w then perhaps reg is a good match. Rob