Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4337470imm; Mon, 11 Jun 2018 10:34:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK+oMm4kx8DTYoodnUtJzNXgtA3zJZL4gKKly7PZAyTIFln99RfSu8J16LMdU1gtnpJAVSn X-Received: by 2002:a63:ba02:: with SMTP id k2-v6mr85812pgf.179.1528738489516; Mon, 11 Jun 2018 10:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528738489; cv=none; d=google.com; s=arc-20160816; b=b/ukyC88PkFD2FDZgjv0TQIf9oG7OpEHxwoQhYlNnSdc5b6VBq1NJWWJqxdvGRIACI KqNrGBNihmXdld78dCuO1oxPWKhyt/ane3oEDDd4eEM6hXnuKvNuygqZjAG++MHrBt2w 4e2zejrwy7FDQjX29gF37flVxpE0XAdFGNXHyctLKHIu10PW7+KF17FzddZpOpiUg93o faFtVeMestqzViA6kUiQ+Ya74u94wS64w/YD5vmlNKDyRPhtwPVSBpXwcGNiYr3dsBIY TUPwWPyBcZZu8lO6OKFtuzKRR9p8BBiDwNe2/pw3ojyGo8VT1wSQlpJgGrEJu7Eon9ew t2Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=al+E3Fcg1KTeuC7yAFZApdyfzPaGAeIg1uzoVeFiNdQ=; b=khA9RQLCFkCWQSJVFygoQADxRvUcM/GAe368+F0iieo37mrZrjPOhVAnV2HD8R+dZ5 Q1pcSIdTQ02zZ6EjOLyTSRlhkMjVCcftTESCrc4q6abYGhdHuTSKJjKOnhvXU6hwQ6gx TKELBzShyGXkkOtnXssjitV4F3bTyMnPaY1Lg4kmTFnJhywJX/EHs9eD7CiNufzS1e6a XIcKL7XZFHGfrKsfZvlCbAWEBb+0/JCiGsHDaOTBgsgn8dqkzAr6/0firk5yhJM/YkPf QI2WhKj5DTcZPfxOrYdValVcjEl0WAg7/wh7rlakwwEKkqGiAK8+yggixla06rary/V0 SRrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HYeFB3Pe; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m62-v6si6506780pfb.127.2018.06.11.10.34.05; Mon, 11 Jun 2018 10:34:49 -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=@chromium.org header.s=google header.b=HYeFB3Pe; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934129AbeFKRT1 (ORCPT + 99 others); Mon, 11 Jun 2018 13:19:27 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:41660 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752768AbeFKRTZ (ORCPT ); Mon, 11 Jun 2018 13:19:25 -0400 Received: by mail-pg0-f68.google.com with SMTP id l65-v6so10064632pgl.8 for ; Mon, 11 Jun 2018 10:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=al+E3Fcg1KTeuC7yAFZApdyfzPaGAeIg1uzoVeFiNdQ=; b=HYeFB3PeJxYW9lRAqLAmeNm3wGySQMExjLiN/TBj/u/2L1KDtCnf1jjfjRqf14Tuhi lcJAMTqzNapHF1s+bhICPJBSIn3RLiVISUqWbgQkKw/UMuL9kB7fw98AdJWn4s8UJITa znk0iCjV9Dhf7CTeZUV3ubvINXrH7zSuMzW+Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=al+E3Fcg1KTeuC7yAFZApdyfzPaGAeIg1uzoVeFiNdQ=; b=ZwExSPl9URM2uz08/q9PUAx3xLX6XMyDUB/2tvVCQMjmkPUQA1rPUU5ycROBIheDPx mloK18se0yG6RGbNMG3HhtdQgOSBc1qbwK3oKxElwvsVuvrkskCo6zO98XzNNCBMyCXX SN8pHbLlq6HTA8FA8/VylSMMikDLYwiXeCS+TFM87ileVEABOpQ3Bmh0fueabn30sCyZ eBK4/fAWNBT33QuBjgC0a8SirV7tFAbJqBWAj4OxehSU/WH/9Zh5JpwazcBqclNgPxhw ZcTCyjhK18vTCpfPA7kitTAH7ljMCOF4kgGSV2VTGLQB0o4NZIVoUkkG2nCcUFCYmBm8 gSJg== X-Gm-Message-State: APt69E3WnYjxprBMDInmH9P73WVmmG0yLXqAvAJo4tukGHp41pR/5Bb8 m7yKe6bU7qqlR9FRxLpTJ0HRLg== X-Received: by 2002:a62:1013:: with SMTP id y19-v6mr85339pfi.166.1528737564546; Mon, 11 Jun 2018 10:19:24 -0700 (PDT) Received: from localhost ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id t17-v6sm57734545pfj.75.2018.06.11.10.19.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Jun 2018 10:19:23 -0700 (PDT) Date: Mon, 11 Jun 2018 10:19:22 -0700 From: Matthias Kaehlcke To: David Collins Cc: broonie@kernel.org, lgirdwood@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, rnayak@codeaurora.org, sboyd@kernel.org, dianders@chromium.org Subject: Re: [PATCH v7 2/2] regulator: add QCOM RPMh regulator driver Message-ID: <20180611171922.GG88063@google.com> References: <36e91ad9edeeee2adfe7a4d92675a1d6950f5002.1528498807.git.collinsd@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <36e91ad9edeeee2adfe7a4d92675a1d6950f5002.1528498807.git.collinsd@codeaurora.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 08, 2018 at 04:44:15PM -0700, David Collins wrote: > Add the QCOM RPMh regulator driver to manage PMIC regulators > which are controlled via RPMh on some Qualcomm Technologies, Inc. > SoCs. RPMh is a hardware block which contains several > accelerators which are used to manage various hardware resources > that are shared between the processors of the SoC. The final > hardware state of a regulator is determined within RPMh by > performing max aggregation of the requests made by all of the > processors. > > Add support for PMIC regulator control via the voltage regulator > manager (VRM) and oscillator buffer (XOB) RPMh accelerators. > VRM supports manipulation of enable state, voltage, and mode. > XOB supports manipulation of enable state. > > Signed-off-by: David Collins > Reviewed-by: Douglas Anderson > --- > drivers/regulator/Kconfig | 9 + > drivers/regulator/Makefile | 1 + > drivers/regulator/qcom-rpmh-regulator.c | 753 ++++++++++++++++++++++++++++++++ > 3 files changed, 763 insertions(+) > create mode 100644 drivers/regulator/qcom-rpmh-regulator.c Reviewed-by: Matthias Kaehlcke