From patchwork Mon Dec 17 13:29:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Muellner X-Patchwork-Id: 1014488 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=theobroma-systems.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43JMZ12pGpz9s4s for ; Tue, 18 Dec 2018 00:34:01 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 15982C220E6; Mon, 17 Dec 2018 13:31:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id EC402C22102; Mon, 17 Dec 2018 13:30:28 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AB679C21D8A; Mon, 17 Dec 2018 13:30:20 +0000 (UTC) Received: from mail.theobroma-systems.com (vegas.theobroma-systems.com [144.76.126.164]) by lists.denx.de (Postfix) with ESMTPS id BED07C21FF3 for ; Mon, 17 Dec 2018 13:30:16 +0000 (UTC) Received: from [86.59.122.178] (port=40968 helo=purcell.lan) by mail.theobroma-systems.com with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1gYsyJ-0006nQ-Ko; Mon, 17 Dec 2018 14:30:11 +0100 From: Christoph Muellner To: u-boot@lists.denx.de Date: Mon, 17 Dec 2018 14:29:58 +0100 Message-Id: <20181217133006.16208-1-christoph.muellner@theobroma-systems.com> X-Mailer: git-send-email 2.11.0 Cc: Ryder Lee , Alexander Graf Subject: [U-Boot] [PATCH v3 0/8] rk3399-puma: Enable PWM regulator for RK3399-Q7 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch series allows to tune VDD_LOG on RK3399-Q7 Puma boards to a voltage level defined in the DTS using a PWM adjustable regulator. To do so a reimplemenation of the RK3399 pinctrl driver has been done, which uses .set_state() instead of .set_state_simple(). This means, that the pinctrl driver operates based on the pinctrl settings in the DTB (contrary to the current implemenation, which has these settings hard-coded). Although the new pinctrl driver is written in a way, that we could factor it out into a generic rockchip pinctrl driver and have SoC-specific mini drivers, this is not part of this series. This is planned to be done for at least RK3399 in the next merge window. The effect of the series is, that VDD_LOG will be set to about 950 mV on Puma. This is required to address stability issues on Puma. This series has no intended impact on any board except the RK3399-Q7. Changes in v3: - Fix message verbosity in pinctrl driver. - Changed patches according to review feedback. - Add patches to enable the full pinctrl driver only for Puma boards. Changes in v2: - Changed patches according to review feedback. - Fix pinctrl infrastructure instead of hacking board_init() code. Christoph Muellner (8): rockchip: rk3399-puma: Cleanup of vdd_log DTS entry. power: regulator: Allow PWM regulator to be omitted from SPL. rockchip: rk3399-puma: enable PWM regulator in Puma defconfig. dm: pinctrl: Add pinctrl_decode_pin_config_dm(). rockchip: rk3399: Add improved pinctrl driver. rockchip: rk3399: Add Kconfig option for full pinctrl driver rockchip: rk3399-puma: enable full pinctrl driver in Puma defconfig. rockchip: rk3399-puma: Set VDD_LOG to 950 mV. arch/arm/dts/rk3399-puma.dtsi | 5 +- configs/puma-rk3399_defconfig | 2 + drivers/pinctrl/Kconfig | 10 ++ drivers/pinctrl/pinctrl-uclass.c | 15 ++ drivers/pinctrl/rockchip/pinctrl_rk3399.c | 235 ++++++++++++++++++++++++++++++ drivers/power/regulator/Kconfig | 7 + drivers/power/regulator/Makefile | 2 +- include/dm/pinctrl.h | 12 ++ 8 files changed, 283 insertions(+), 5 deletions(-)