Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp19717942ybl; Sat, 4 Jan 2020 07:34:50 -0800 (PST) X-Google-Smtp-Source: APXvYqzmWzuJCjOqRFKUknVxbZrWklJ05EnsNsjeh+yluG1em3FLCtpT9reY6SuQxEnAe4r+koNo X-Received: by 2002:a9d:6b06:: with SMTP id g6mr96331558otp.93.1578152090323; Sat, 04 Jan 2020 07:34:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578152090; cv=none; d=google.com; s=arc-20160816; b=Vjvt5DH+o8gCS1Fi8WFvKm4hSXq50LyQlBg5+X4sFXISCaQwfs8WXUmao6Dw6TGCFI a+/Um001gmXUZiFVIpYjGJ9VJNjGdykiyDd21IaqTeHt5LHS/bYUhu7DQbP+skYHj41H jejeU8ApW7E+omPHPkquh9QQb1/yeGbipwt9nLU0sIUwmbhMQ0bLc5tZw2nwNvvghA2+ WR6QHrEnJShYxSC2D3JbVriYwSietPXEaShzOkV6ddd9gBUcpF0o0m0t+QSg9h9Z0fh6 b2nCKmFEURgibEgmXn1s7/rSY8jBWoWdJ7Weha/zwR4JsWRvlatSSWkBKQpfkLLhx9NP aX9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=w99AROkA7AcgxRo07swGEguPIE0Zy+57pFd/0gxSyJI=; b=e4tKflKnYe8TVLZRXbOowKW44qnxTs0Qwgzn2BFHBjO6i6unWJq+TIY/+6FXVlF15f h4D++I+p0KWnMF3M+KQXfqsCEQCEijcKjgFyeJYA6IX1qeWGIws57KGGi/xgxUerYFY0 i2I6D3Y0Mm4GZ6WCZd1HbFdICuTJu2xbCxULJZxXkg1NyaP1DxHGr5TM+7bGJVBU9sLp 272xWa8PQxZ2seCYW+kr1nitt3cE+4i/ZQ+KAQF7Bg7e7B+SrlClp5NF5uTKiuzQDdYs R6Dco8829bsUsaxJXPlo2SEpg8Aspx/L1K6LqXZgIuGLtWhlVzCzc3mxh/EOu5J0ZrsM GXkg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16si34716710oto.287.2020.01.04.07.34.38; Sat, 04 Jan 2020 07:34:50 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726299AbgADPdw (ORCPT + 99 others); Sat, 4 Jan 2020 10:33:52 -0500 Received: from wp126.webpack.hosteurope.de ([80.237.132.133]:44202 "EHLO wp126.webpack.hosteurope.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbgADPdv (ORCPT ); Sat, 4 Jan 2020 10:33:51 -0500 Received: from [2003:a:659:3f00:1e6f:65ff:fe31:d1d5] (helo=hermes.fivetechno.de); authenticated by wp126.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1inlQn-0000ox-Gq; Sat, 04 Jan 2020 16:33:37 +0100 X-Virus-Scanned: by amavisd-new 2.11.1 using newest ClamAV at linuxbbg.five-lan.de Received: from roc-pc (p508F384D.dip0.t-ipconnect.de [80.143.56.77]) (authenticated bits=0) by hermes.fivetechno.de (8.15.2/8.14.5/SuSE Linux 0.8) with ESMTPSA id 004FXass009220 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 4 Jan 2020 16:33:36 +0100 From: Markus Reichl To: linux-rockchip@lists.infradead.org Cc: Markus Reichl , "Angus Ainslie (Purism)" , devicetree@vger.kernel.org, Heiko Stuebner , Jagan Teki , Laurent Pinchart , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Maxime Ripard , Rob Herring , Shawn Guo , Stephan Gerhold Subject: [PATCH 0/5] regulator: mp8859: add driver for DC/DC converter used on rk3399-roc-pc board Date: Sat, 4 Jan 2020 16:32:44 +0100 Message-Id: <20200104153321.6584-1-m.reichl@fivetechno.de> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;m.reichl@fivetechno.de;1578152030;a7085fc8; X-HE-SMSGID: 1inlQn-0000ox-Gq Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On rk3399-roc-pc board a voltage regulator MP8859 from Monolithic Power Systems is used to supply the 12V power line. This delivers 5V as a default value after boot. The voltage is controllable via I2C. Add a basic driver to set and get the voltage of the MP8859 and add a matching node with fixed 12V in the DT of the board. Markus Reichl (5): regulator: mp8859: add driver regulator: mp8859: add config option and build entry dt-bindings: add vendor Monolithic Power Systems dt-bindings: regulator: add MPS mp8859 voltage regulator arm64: dts: rockchip: Enable mp8859 regulator on rk3399-roc-pc .../devicetree/bindings/regulator/mp8859.txt | 22 +++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + .../boot/dts/rockchip/rk3399-roc-pc.dtsi | 32 ++-- drivers/regulator/Kconfig | 11 ++ drivers/regulator/Makefile | 1 + drivers/regulator/mp8859.c | 156 ++++++++++++++++++ 6 files changed, 210 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/mp8859.txt create mode 100644 drivers/regulator/mp8859.c -- 2.24.1