Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4856535pxb; Tue, 28 Sep 2021 05:46:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz28+qo2EbsizeYvb0njXcr0zbAA3viBEhLBd1zruueEi9oLXod6laXDyieGkSrb/gM/T1M X-Received: by 2002:a63:1a1c:: with SMTP id a28mr4414201pga.236.1632833166720; Tue, 28 Sep 2021 05:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632833166; cv=none; d=google.com; s=arc-20160816; b=k3FYaSMOe5d8sV5eSr/AYNoHITatgxGXj3sVyaqYLDmvMRm9syjFxHjyOovy3z/d5Y HJB91wRqhkWBQAtF/L6bm8rWJ4SXynLEJiSgVm7ZHRcKVRMdiBvq7eMAiPiWwn9mfQBX ZqdewYU78SCIO4cEL9ZNSCTgs/umTvztDcsh7AG6WXEP33HFDX/UQUaYwMMQCTyfl84E ECMR49C7mEZQvSbJvZ+fENJG08SQnNV8Ube3PEJu//b7A/U9gCEW8SHEVkH63npqXyA7 TryI6tYS8KrlhLgZLrbgN3uUCsVOKFGiv9nDSXzWtdAd6udXpNOgSc/mYVG/16s7x2FH 2lCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=av2/tPBGX6NuSZLU+FvSMaJ0cW9h/uM3y8ef2WV5jQc=; b=FDmbrE5P8TcEXhhkZJO7C5tmCbwqYNGjWSafxGYEHGgZ4wWA+uQleJ42NT9syPKY50 H/JVhxbuUCXGTzKrY321CCszbItfUCu+RmVTVWPWgsajPOnhFAf5mt98X7fpAjC1KtqX Mi77jx4eUgN3RNFHhTtqSoismR3uZWSltnZMhe92ffWUhrlYyOkrCsNjTz2Dr01HY3GT i553e9oFHMM2Iok26TkF518lPQD/+RuCEZ3eXn7/prNuykv7ettkBFhk+EOyvcqo18vk 08JpJM1Eu+pvyAL1jtQ4VHeJMt4aK0wMaLpXMVgvH/HdOiZOIwQSeadwdHnmG0JP8fhT jgjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="uJ/KDZGR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ip2si2095435pjb.34.2021.09.28.05.45.51; Tue, 28 Sep 2021 05:46:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="uJ/KDZGR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240610AbhI1MqK (ORCPT + 99 others); Tue, 28 Sep 2021 08:46:10 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:32336 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240578AbhI1MqI (ORCPT ); Tue, 28 Sep 2021 08:46:08 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1632833069; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=av2/tPBGX6NuSZLU+FvSMaJ0cW9h/uM3y8ef2WV5jQc=; b=uJ/KDZGRvk0RqxCvtq/fEHEqzQ9k57bsM2o+JkW1zh5c+xx9TU2KYU0qkCFx/aaWa9TPpolu FPBk0WkbWlUerY8ekB3Sh4VtnrwOVx8tOqTt09yW02K5ZgpbjOgw26SIOhVp5Fviv7Vj7yRp H9sSYAE05WwcCRoPM/wKYckUGgw= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 61530e21713d5d6f969d194b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 28 Sep 2021 12:44:17 GMT Sender: skakit=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 3AC15C43618; Tue, 28 Sep 2021 12:44:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: skakit) by smtp.codeaurora.org (Postfix) with ESMTPSA id 99BA7C43460; Tue, 28 Sep 2021 12:44:16 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 28 Sep 2021 18:14:16 +0530 From: skakit@codeaurora.org To: Mark Brown Cc: Andy Gross , Bjorn Andersson , Rob Herring , Lee Jones , Liam Girdwood , mka@chromium.org, swboyd@chromium.org, Das Srinagesh , David Collins , kgunda@codeaurora.org, Subbaraman Narayanamurthy , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] regulator: dt-bindings: Add pm8008 regulator bindings In-Reply-To: <20210917154818.GC4700@sirena.org.uk> References: <1631875538-22473-1-git-send-email-skakit@codeaurora.org> <1631875538-22473-3-git-send-email-skakit@codeaurora.org> <20210917154818.GC4700@sirena.org.uk> Message-ID: X-Sender: skakit@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-09-17 21:18, Mark Brown wrote: > On Fri, Sep 17, 2021 at 04:15:36PM +0530, Satya Priya wrote: > >> + properties: >> + reg: >> + maxItems: 1 >> + regulator-name: true >> + regulator-min-microvolt: true >> + regulator-max-microvolt: true > > You shouldn't be forcing these properties, it should be perfectly OK > for > boards to have fixed voltages especially for example during bringup or > for debugging. > Okay. I will remove these. >> + qcom,min-dropout-voltage: >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + description: >> + Specifies the minimum voltage in microvolts that the parent >> + supply regulator must output, above the output of this >> + regulator. > > If this is needed in DT it should be a generic property since most > regulators have some requirement here however usually it's a fixed > property of the silicon and should therefore just gets set in the > regulator_desc as min_dropout_uV - I'd strongly recommend having a > default there even if there's some requirement for it to be set per > board. Yeah, we are setting the default values for this(headroom_uv) from driver. Please see below struct regulator_data { char *name; char *supply_name; int min_uv; int max_uv; int min_dropout_uv; }; static const struct regulator_data reg_data[PM8008_MAX_LDO] = { /* name parent min_uv max_uv headroom_uv */ {"l1", "vdd_l1_l2", 528000, 1504000, 225000}, {"l2", "vdd_l1_l2", 528000, 1504000, 225000}, {"l3", "vdd_l3_l4", 1504000, 3400000, 200000}, {"l4", "vdd_l3_l4", 1504000, 3400000, 200000}, {"l5", "vdd_l5", 1504000, 3400000, 300000}, {"l6", "vdd_l6", 1504000, 3400000, 300000}, {"l7", "vdd_l7", 1504000, 3400000, 300000}, }; Inside Register LDO API: pm8008_reg->rdesc.min_dropout_uV = reg_data[i].min_dropout_uv; of_property_read_u32(reg_node, "qcom,min-dropout-voltage", &pm8008_reg->rdesc.min_dropout_uV);