From patchwork Sat Jan 4 15:32:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Reichl X-Patchwork-Id: 11317845 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3F2E96C1 for ; Sat, 4 Jan 2020 15:34:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1D4EE24653 for ; Sat, 4 Jan 2020 15:34:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Vme1X2F7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1D4EE24653 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fivetechno.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zQTZqW1FNbo/5ofRA80/AB8edrHXPS9A6CG00+2F2RM=; b=Vme1X2F7dv4X4j JeUdBSuz/22bFRI7uTeCfFONe7r607kyL/Ua6OLZFdrjCpqElJokauWcSxTOFD9KTc97tsLochuZ2 F0ZuTPApb57Axt84sWBbrQ16HeXwu0kz/kvCXgTfqwrGJLex89QDbnPYyjWavNJg25JXSH6S+470t 9Y/YEGq4pyEYFsEYNWwdrD1RTVIc/QMvszvBOrvXclansnNGgPRHrI/r2dBBlyVzjmJyo8Y+HHNCO jBmb3m57NyRAjuUnfTgF3R+dvVZWYiCl+04MkSXJEMa2D1LL9k7/T59P0xnc0j4ZodQ0J4hEONELJ 0N9OJ3lO74aRGcxrDmkg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1inlR8-0008HJ-SK; Sat, 04 Jan 2020 15:33:58 +0000 Received: from wp126.webpack.hosteurope.de ([2a01:488:42:1000:50ed:8485::]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1inlR3-0008DD-Kv; Sat, 04 Jan 2020 15:33:55 +0000 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 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 X-bounce-key: webpack.hosteurope.de; m.reichl@fivetechno.de; 1578152033; 4d7df217; X-HE-SMSGID: 1inlQn-0000ox-Gq X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200104_073353_827105_83553D9D X-CRM114-Status: UNSURE ( 9.53 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Heiko Stuebner , Stephan Gerhold , Rob Herring , Linus Walleij , "Angus Ainslie \(Purism\)" , linux-kernel@vger.kernel.org, Maxime Ripard , Markus Reichl , Laurent Pinchart , Shawn Guo , linux-arm-kernel@lists.infradead.org, Jagan Teki Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.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