Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2838920imm; Mon, 13 Aug 2018 01:05:00 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyI8D85gt5jy0xXmE1ozoR9XygWDc1J1nlT1NctZcxQt27TPoHOSZwyZru91uA/o02o8B9H X-Received: by 2002:aa7:88d3:: with SMTP id p19-v6mr11413372pfo.160.1534147500763; Mon, 13 Aug 2018 01:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534147500; cv=none; d=google.com; s=arc-20160816; b=0aMmjSvrQrAoDIvp73SVJhU8y+i4a5jPorKNHnAz7uIWk9YByj2WPrfnP5reAR9M5r 8otfoXyFKhedIYjJFdSUQgnLqrm9o9qHioRsSVV9utja8EiKBfDBNcqKAMpfJk1hUv4b bVz4JIWLctGoGi9LZ0hZFSGqVCf0x+LWPeo4d5zuEwdScFKaclRgmz2dpFiDz41UGg2/ n2fUzI2NyosZhq5aR5zMQMTKjGwEsNOIEETIP2dQYtrO3/6dDZoycRjC898iF7auuTpS gjV677GPGzhP40ge5auXo2W6ABgFt97iPfCK+rTbMCN/+KMtDDouXx3w/WDj37/84eCE 4NQw== 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 :arc-authentication-results; bh=N3AscIwq+SNp9YZtQLUT3E4ut0FhJpLGjDYw/Eu5Ys0=; b=lQ0E64BfM9rN4culmJexv4c44ooxIA+uz5gZxUanC4pIs6KqM1BgExrx6b35HSPdDb R9KMT/PEdCnMg4uiHRtzNvFxaVANjyWzT6BzHeNqmSKg1D1XLW7aaI3qs2DfE2bREVOU a2OY0lhYwtXBEGIlqg5x4z+Kg4LLK+O3kR2P78Ebu+IBph7XqIG4lSP+/PImhQiu6yvO Uw/cLF+weOpNcYXb4an9yxNUS4jwJPpadLBMrpDIwv9ksXwvM8TbulkmiLr93gCAkahW lw8zOWzxulOP9f+L2C8mLivsDVfviI5FrFgU71IUE/tRWLV/8P2m6QAJNDLEDAhPxOEQ MhOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XgddT8rz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10-v6si12022048plp.410.2018.08.13.01.04.45; Mon, 13 Aug 2018 01:05:00 -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=@gmail.com header.s=20161025 header.b=XgddT8rz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728748AbeHMKpA (ORCPT + 99 others); Mon, 13 Aug 2018 06:45:00 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:38249 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726577AbeHMKo7 (ORCPT ); Mon, 13 Aug 2018 06:44:59 -0400 Received: by mail-oi0-f65.google.com with SMTP id v8-v6so25754515oie.5; Mon, 13 Aug 2018 01:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N3AscIwq+SNp9YZtQLUT3E4ut0FhJpLGjDYw/Eu5Ys0=; b=XgddT8rzmXprA0h5Ubcv+/ztfhs6M6is4EoUTk8vyZEa7rjG/kvwb6we0rckZAyn3j czW6wYz8X07XVYdE7DrVV5XgfOZGQ6yFhTm2VweQnmzwjGx3X9bvbPZpEP6HUOKFcFRB 1kjvaLkYSyON062gYTK4aJ6eunmeYUu/CSh30ItG3RUQzRn7RoWcRyQNPej7PvCk4OC4 cj98IL6o1zvHqktwISMzu+tv58MHAFOpq9Nw1xjWk5MO/mjWijI4BbfO3LOLeGZDMA4K f+SB8RJ5Jt0P3EYYxSkxzp8OqEOkraLjLcw6znZJ7vtfboskPHrmt1e19s5eCBlNfvs3 bCrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N3AscIwq+SNp9YZtQLUT3E4ut0FhJpLGjDYw/Eu5Ys0=; b=XWGs8fuSa17esDQvBmq+SjsbUgId8g1tZcxS1j83dR0StwIbDw6PHdOeUG5ZGVUPW/ SJOgPxiieWPGF9HVVqDdmx86xdT/KLc1Qxk8DDGuLdbNqtmVvp+DX4lD8AljGSmQ/yiF y4IcerBMRwQvIGzdoEc6NbpQ9OTbH5MB9hDme1QJflSHqRhKnajqBgy91ONDYBwZ24Jq 8J3wzPATokuKOrO2LfyRyAVXwWAmtsFyzGIHXrP9NfSK2ZLLmWlBu+xLm6m0FqodOFaD 31p4JrfMtyJBmP6k06Vi98KRvuMfyUeyN6ayF5+hWfyPHb9GgSwEKHFSMc/fzwnv2UEF /omA== X-Gm-Message-State: AOUpUlENav6PsAbXaf03cY3BDlLLZrTVjfeWvEczKl03Y0GrPLgwNPN7 /JQExQzZnhk764rsxxqYKOlguST5rHczc0Kc2JQdGRou X-Received: by 2002:aca:f516:: with SMTP id t22-v6mr18101750oih.56.1534147431490; Mon, 13 Aug 2018 01:03:51 -0700 (PDT) MIME-Version: 1.0 References: <20180806160933.6578-1-krzk@kernel.org> In-Reply-To: From: Anand Moon Date: Mon, 13 Aug 2018 13:33:41 +0530 Message-ID: Subject: Re: [PATCH 1/4] ARM: dts: exynos: Add missing used PMIC regulators on Exynos5422 Odroid boards To: Krzysztof Kozlowski Cc: Rob Herring , Mark Rutland , Kukjin Kim , devicetree , linux-arm-kernel , linux-samsung-soc@vger.kernel.org, Linux Kernel , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Chanwoo Choi 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 Krzysztof, On Mon, 13 Aug 2018 at 12:43, Krzysztof Kozlowski wrote: > > On 13 August 2018 at 08:37, Anand Moon wrote: > > Hi Krzysztof, > > > > On Sun, 12 Aug 2018 at 18:55, Krzysztof Kozlowski wrote: > >> > >> On 11 August 2018 at 08:39, Anand Moon wrote: > >> > Hi Krzysztof, > >> > > >> > These patches should also be ported to u-boot to enable PMIC. > >> > > >> > I was just looking into S2MPS11B data sheet > >> > According to the 1.2 Key Features of S2MPS11 > >> > > >> > BUCK1, BUCK2, BUCK3, BUCK4, BUCK6 have (0.65 V to 1.6 V) min /max range. > >> > BUCK5 have (0.65 V to 2.0 V) min /max range. > >> > BUCK7 have (1.2 V to 1.5 V) min / max range. > >> > BUCK8 have (1.8 V to 2.1 V) min / max range. > >> > BUCK10 have (0.75 V to 1.4 V) min / max range. > >> > > >> > BUCKBOST9 (3.0 V to 3.75 V) min / max range. > >> > > >> > LDO1, LDO6, LDO11, LDO22, LDO23, LDO27, LDO35 (0.8 V to 2.375 V) min / max range > >> > > >> > LDO2, LDO3, LDO5, LDO7, LDO9, LDO10, LD012, LDO13, LDO14, LDO15, > >> > LDO16, LDO17, LDO18, LDO19, LDO20, LD021, LDO24, LDO25, LDO26, > >> > LDO28, LDO29, LDO30, LDO31, LDO32, LDO33, LDO34, LDO36, LDO37, LDO38 > >> > (0.8 V to 3.95 V) min / max range > >> > > >> > I am aware off we have configures the min/max range as per board schematics. > >> > but each regulator support dynamic voltage scale and have different > >> > turn on/off voltage and current rating. > >> > > >> > So why are we not setting the regulator-min-microvolt / > >> > regulator-max-microvolt as per datasheets. > >> > Please correct me if I am wrong. > >> > >> Which regulators are not configured as in datasheet? > >> > >> Best regards, > >> Krzysztof > > > > Almost all the regulator have some miss default match of min/max setting. > > I have tried to adjust the setting on top your above patches. > > > > I am attaching my patch diff for testing. > > I have have perform some stress testing and found no issue at my end. > > All the regulators you touched in this patch have proper setting of > min and max values. They are configured to the values required by > hardware, as in schematics. > > Best regards, > Krzysztof Yes I am aware of that. Those voltage range setting from schematics are for *default on* and *default off* of regulator state. As per the datasheet description. *Buck Convertors* Each buck provides a wide range of output and Buck1, 2,3,4,6 voltage controlled by Dynamic Voltage scale (DVS) function through I2C control, Buck1, Buck2, Buck3, Buck4 and Buck6 have controllable output voltage range from 0.65 V to 1.6 V, Buck5 has controllable output voltage range from 0.65V to 2.0V, Buck7, Buck8 and Buck10 have controllable output voltage range from 0.75 V to 3.55 V and BuckBoost9 has controllable output voltage range from 3.0 V to 3.75 V. Ramp slope can be controlled from 6.25 mV/us to 50 mV/us using 2 bits. *LDOs* Thirty eight consisted of 31 PLDOs (PMOS-type LDo) and 7 NLDOs (NMOS-type LDO) and integrated into S2MPS11. PLDOs are mainly used for higher output volage rangeing from 0.8 V to 3.95 V with 5OmV step. Their maximum output current driving capacities are 150 mA, 300 mA and 450 mA. Best Regards -Anand