Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1454909rwb; Thu, 15 Dec 2022 10:14:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5P83DLmrtwTwd5DJ/Nw5ZDeHVuwu5RgQx7S4xf1V0hdd0poNTb0yNEdyolBL5JUlPeNWP9 X-Received: by 2002:aa7:cb4d:0:b0:46c:7035:2f6d with SMTP id w13-20020aa7cb4d000000b0046c70352f6dmr26718055edt.38.1671128086708; Thu, 15 Dec 2022 10:14:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671128086; cv=none; d=google.com; s=arc-20160816; b=JN4z8i78h+0KICadRpifmeV8Pl58xiJYNvRkffMLYSkJFKTWV99nRobIngvoHgykdW 4XIai/q6KFT5ibGWZMrnJcXbsHa5TVVvUrwW6J7b8J6QTN5jzTMP6r7BXKRfFl6INqrf Uh+FwwOOh7qlLND/2viUEaJxP/uGIYr+6vja9GC5rOvRNA0iJWL3b4qXO6nRorp5XRgF gOebpgjAwS0OVfMkZT5qnnrVZcHojGxuV1IC+m/6/iXC9PUZxT0urm5fzFKyLkyF+8sM BebWDOigXlBpruz+BYoAVooPrm5mFaYC+NlsjURfcPQ23fu7/S++iP998/pnf28vm0YN TVvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dfl4riunx9/vsckoIqhbcncF2BLRdYLcE2m8tUkN8lM=; b=tL1kMxLDyZjZJNqu8ES/Cmsqqi0s46E+emxTRi5Mn1SAUDQc1P0ZCkyN2K/fRrL8pM A/O5kDoVEsw9ZzZpocjbP8FptQxth1Ed3wESB/hl6m+m7W2hrSAXygqMMleWYdiDeu2+ OXs2+H+i/uQAEWmdpPdYcv+rlGb5sKDOGP0SlV487XpRzQCDxC5Mi4na3c8XZvdgfLDt 8lOzO5imqZ70TDOtbcjFo6tihdLs1oLgQ6CIgiYgKFTwJVWa7OO2a88NByNkJTa3zt/T LGF9t/KqtESw4PGET+3qSn8DUNtzvzi3/ZiCXgCv43KG/x9WrXsEmDAqlQxo/FVMzkqw Ti7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wCDRsX4g; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id co16-20020a0564020c1000b004615c5728e8si13949960edb.494.2022.12.15.10.14.29; Thu, 15 Dec 2022 10:14:46 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wCDRsX4g; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230152AbiLORyx (ORCPT + 69 others); Thu, 15 Dec 2022 12:54:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiLORyr (ORCPT ); Thu, 15 Dec 2022 12:54:47 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E93C2A96B; Thu, 15 Dec 2022 09:54:45 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2BFHsBIh074336; Thu, 15 Dec 2022 11:54:11 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1671126851; bh=dfl4riunx9/vsckoIqhbcncF2BLRdYLcE2m8tUkN8lM=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=wCDRsX4gv7j/zhhzpUZUO9M7Ft1Pqlt7O5z9HdWYDyDF5Xtj1fYqjC8tX0PZ7uID+ AkRadICMYbN35T+4kT0M+fZEYLUWw0FB6RrAwCze0vJEhxhOoyAz3j6u1PuABVdPwy dHmcdDrmNVUT7OMbAzgmO95FFBMMzxbTxdtENTSU= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2BFHsBS2015667 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Dec 2022 11:54:11 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Thu, 15 Dec 2022 11:54:11 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Thu, 15 Dec 2022 11:54:11 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2BFHsBMg067845; Thu, 15 Dec 2022 11:54:11 -0600 Date: Thu, 15 Dec 2022 11:54:11 -0600 From: Nishanth Menon To: Mark Brown CC: jerome Neanne , Wadim Egorov , "lgirdwood@gmail.com" , "robh+dt@kernel.org" , "kristo@kernel.org" , "dmitry.torokhov@gmail.com" , "krzysztof.kozlowski+dt@linaro.org" , "catalin.marinas@arm.com" , "will@kernel.org" , "lee@kernel.org" , "tony@atomide.com" , "vigneshr@ti.com" , "shawnguo@kernel.org" , "geert+renesas@glider.be" , "dmitry.baryshkov@linaro.org" , "marcel.ziswiler@toradex.com" , "vkoul@kernel.org" , "biju.das.jz@bp.renesas.com" , "arnd@arndb.de" , "jeff@labundy.com" , "afd@ti.com" , "khilman@baylibre.com" , "narmstrong@baylibre.com" , "msp@baylibre.com" , "j-keerthy@ti.com" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-input@vger.kernel.org" , "linux-omap@vger.kernel.org" Subject: Re: [PATCH v7 1/6] DONOTMERGE: arm64: dts: ti: Add TI TPS65219 PMIC support for AM642 SK board. Message-ID: <20221215175411.znxy3d6ussq2iq5h@grieving> References: <20221104152311.1098603-1-jneanne@baylibre.com> <20221104152311.1098603-2-jneanne@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 16:09-20221215, Mark Brown wrote: > On Thu, Dec 15, 2022 at 04:51:40PM +0100, jerome Neanne wrote: > > On 15/12/2022 16:09, Wadim Egorov wrote: > > > > I am testing your PMIC patches on a AM62 based board with a similar setup and > > > running into the following error > > > > ?? VDDSHV5_SDIO: bypassed regulator has no supply! > > > ?? VDDSHV5_SDIO: will resolve supply early: ldo1 > > > ?? VDDSHV5_SDIO: supplied by regulator-dummy > > > ?? VDDSHV5_SDIO: failed to get the current voltage: -EINVAL > > > > Have you noticed problems with LDO1 and bypass mode? > > > I did not noticed this on am642 board but IIRC this rail was not used. I > > heard about similar issue reported to me by Nishanth M with a fix proposal > > here: > > https://gist.github.com/nmenon/e4dd6ef6afe31bc9750fa6cbee8d3e25 > > That proposal looks really non-idiomatic and quite unusual, if there's a > fixed voltage supply to the LDO I'd expect to see it modeled as a fixed > voltage regulator. I'm not sure what the use of bypass here is trying > to accomplish TBH. Correct - My hack was based on a time crunch hack ;)... The problem is this - the default NVM in the PMIC is setup such that VSET value =3.3v and bypass bit set (makes sense since the vin=3.3v). Now the constraint is bypass bit cannot be changed without the LDO being switched off. regulator-allow-bypass property allows us to control bypass bit, but we should'nt toggle it when LDO is active. Not providing the property implies the bit wont be toggled by regulator core either. What we need is a scheme that will disable the bypass bit with the intent of operating the LDO with just the vset field. I did'nt find it possible atm.. unless I am mistaken.. -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D