Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4670592pxb; Tue, 22 Feb 2022 03:59:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwy6VH7bOT9iD3b6Rw0xLje3pmAQfBiZ7/RcUhFs4a3zz5/0bHBhKPYoStdcx05HUUNmtLY X-Received: by 2002:a17:906:64e:b0:6b7:667c:bec with SMTP id t14-20020a170906064e00b006b7667c0becmr18913137ejb.165.1645531165238; Tue, 22 Feb 2022 03:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645531165; cv=none; d=google.com; s=arc-20160816; b=rLW9HZuwytRLMBZl/K8nJ+vK8Y5TkQPbcxikLEXTRG1RNqlRuFdrdv9ObxB9MuSnrv fyrvtP51KNn075K8cJx0V4zCpYx5SV1oYqKH+qpEMgucHIo59SAA+cgdSTGNYTRNRPZJ UvPdfKayFkLP/393fXmimM7ICOWM22LnxxlHKYNSkIZxqAiHA15uC30AN5pWPhVpphP9 A3VFFqF6k0hliFIXKxA/CEVwp6qOUcmuoJwzWuXblQuwWMJ6FAXdTxr7kTF8sqaM1LIt K0boCMBVOXmKzKpmRrDUckojWNpg0/mg24xj4exAF0RbBNJApVSLmLz7TYhexGkt3omT kQ1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=S4JHeSndWrz6MDilQ/I5x4TVfPJk6ywdVDMB0hU8S6k=; b=P/MPvLzVh+hcKbpX2IVEdMI6shOLGQtlTYNa6QTBqjuj4eLnJGG4znw9hPqBMw6+vd Admw0SqZC7PW4Krov5kmoXDxSIsudVdu+I3PBlF1C5ZR7AI1RIVGNuKF7BWY/q6kIw4q ca5FePlIJt0UVDk7EzF4lzqxpCdcipvhGaYi5IG0YLg3yTNDCuFvMQHh3SUzXy8NuGgo G1QNOjMsKmKraG1TCE3Xdlmvdf5JJmBb511ZS5HADvafcEuMBFu1vn1vS+7nSf0yJiM9 JqkgilNQeZurZ3HdAB2fZLQU4eCvCWLFZj83HDBj/hW7NRI2EAuMuDPHulrGzqAW5m2c aZLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gu4si7052191ejb.569.2022.02.22.03.58.52; Tue, 22 Feb 2022 03:59:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231301AbiBVLEW (ORCPT + 99 others); Tue, 22 Feb 2022 06:04:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbiBVLEW (ORCPT ); Tue, 22 Feb 2022 06:04:22 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C7F2CA9E3F; Tue, 22 Feb 2022 03:03:56 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 42C79139F; Tue, 22 Feb 2022 03:03:56 -0800 (PST) Received: from [10.57.9.152] (unknown [10.57.9.152]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A8CBC3F70D; Tue, 22 Feb 2022 03:03:53 -0800 (PST) Message-ID: Date: Tue, 22 Feb 2022 11:03:51 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [RFC][PATCH 1/2] dt-bindings: power: add Energy Model bindings Content-Language: en-US To: Viresh Kumar Cc: linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, rafael@kernel.org, daniel.lezcano@linaro.org, nm@ti.com, sboyd@kernel.org, mka@chromium.org, dianders@chromium.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org References: <20220221225131.15836-1-lukasz.luba@arm.com> <20220221225131.15836-2-lukasz.luba@arm.com> <20220222030337.ijnfrh367illmidr@vireshk-i7> <147e48e5-e310-cd8f-ba8c-ff32e3094be3@arm.com> <20220222094547.tgj4bciq6rez62nk@vireshk-i7> <20220222101242.chwcxan2nyhczqth@vireshk-i7> From: Lukasz Luba In-Reply-To: <20220222101242.chwcxan2nyhczqth@vireshk-i7> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/22/22 10:12, Viresh Kumar wrote: > On 22-02-22, 10:03, Lukasz Luba wrote: >> >> >> On 2/22/22 09:45, Viresh Kumar wrote: >>> On 22-02-22, 08:06, Lukasz Luba wrote: >>>> I'm not sure if that would be flexible enough to meet the requirement: >>>> power for each OPP might be different in one board vs. other board. >>> >>> Don't DT files overload values from board files all the time ? Why wouldn't the >>> same apply for OPP table as well ? >> >> In that SoC and family of the boards, there are no such examples. > > Here is one I think. > > arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts > >> It used to be popular in arm32 boards, but I'm not sure nowadays. > > I think it is still common, not with OPPs though. > >>>> AFAIK the OPP definition is more SoC specific. >>> >>> This isn't about OPP definition as well, but just that if DT allows you to >>> override or not. I think it will. >>> >> >> Redefining the whole OPP table, when the freq, voltage, interconnect, >> and other old entries don't change isn't too messy? > > I think you misunderstood what I said. The common part of the OPP table should > stay in the central .dtsi file. The dts files though, should just add the power > specific values to the existing OPP table. > OK, I misunderstood that. If that is possible than it would be great. I'm assuming you are taking about OPP v2. I can relax the requirement that I need to provide this DT-EM for arm32, since they have a legacy OPP v1. So we might have an entry similar that interconnect for the bandwidth, but for us it would be 'opp-power-uw'? Let me have a look about some examples how that could be just added/extended in the opp table but from board file. If you have some handy link, I would be grateful.