Received: by 10.223.176.5 with SMTP id f5csp234715wra; Mon, 5 Feb 2018 20:50:42 -0800 (PST) X-Google-Smtp-Source: AH8x227IFwEql1sFVRixY0zEZeevRCr4yhfdwm/Om2fbSl4rpyBBlTMyXyluUaOQLoQUomSOhC4H X-Received: by 10.99.179.77 with SMTP id x13mr942142pgt.135.1517892641888; Mon, 05 Feb 2018 20:50:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517892641; cv=none; d=google.com; s=arc-20160816; b=uA5/bAcUwxbezpmeAoph2BFeO2Sgy6+anmN1bc11V/vvCd/kc9Wn+BNvA6ulBC4HdW Gcc7LEq/izJQ1+Ax4PCdCMDj3ivu22Zf1qFwN/IOtoZbfsy6l5xyyI8dpDa1sNQM5pRY rh2tfn+1wBXX7c9kgfjAsAE/VBYyg05o/Yl6cuaDzIxaIYUrVnpdzym/+jSJD9b36znO U4pgTKkk+Zp/3IGEVTXD39xQ/oW4shYlIs0qXfuRy+hB92lWnXzKGNzxrE7hE7DG6dA+ tPVgBQCCS6qRpTlwirxjYJVGFyyOaE8i+fr9eO5+KHsSqAbiaxGaWEmx/E77TIFZpkw/ hXAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=K7ld09RluT+4NlTOudr/uA3ww/g1LjAbIQg17cqiPF4=; b=a0r5zUFRMepeK6KBhnGOzF7hFRkys9kV8cEk0K9XKZTewkrsKVVRILYlzVyZ7SWCOO 60rtBqrHj4CFxzNLrA/4F0yeiAVh64gC4GuTmWEm4Y1+Qs5t0jrtvRbxLny7ENt3J2eM 4EUvHv9i5p3e86l8HwklTXDUnrUdunrZROeq2BkqCuBpVp88HD9uiB5+VAW82+neQpjn H8+birowKpB61btTc4wOs0fJsZ91lV3MWji98ZzRF0Q7ltQeGmaXVfvwLwnykE/xjZ0k wPZJwekGX4mcV/+HHZrmQGycfnvy1SaU0ygFEkH313Tu3AFiL09kJ1h1W4Z3T7M9+77P tvsw== 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 t9si921577pgq.500.2018.02.05.20.50.27; Mon, 05 Feb 2018 20:50:41 -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 S1752466AbeBFEt4 (ORCPT + 99 others); Mon, 5 Feb 2018 23:49:56 -0500 Received: from hermes.aosc.io ([199.195.250.187]:50187 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752208AbeBFEtu (ORCPT ); Mon, 5 Feb 2018 23:49:50 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id D909157021; Tue, 6 Feb 2018 04:49:46 +0000 (UTC) From: Icenowy Zheng To: Liam Girdwood , Rob Herring , Maxime Ripard , Chen-Yu Tsai Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH v2 00/10] Allwinner H3 DVFS support Date: Tue, 6 Feb 2018 12:48:55 +0800 Message-Id: <20180206044905.30508-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset tries to add DVFS support for Allwinner H3 SoC, considering two kinds of adjustable regulators used on H3 boards: SY8106A I2C-controlled regulator and SY8113B regulator (controllable by GPIO with some special designs on the board), and also taking the uncontrollable boards into consider. PATCH 1 and PATCH 2 are for the SY8106A regulator, then PATCH 3 and PATCH 4 are for the r_i2c bus, which is used by boards with SY8106A to communicate with the regulator. PATCH 5 adds the operating points v2 table to the H3 SoC, but with OPPs higher than 1008MHz temporarily dropped. Then there's patches for several tested boards: Orange Pi PC (with SY8106A), Orange Pi One/Zero (with GPIO-adjustable SY8113B) and ALL-H3-CC (unadjustable). Icenowy Zheng (5): ARM: sun8i: h3: add operating-points-v2 table for CPU ARM: sun8i: h2+: add SY8113B regulator used by Orange Pi Zero board ARM: sun8i: h3: add SY8113B regulator used by Orange Pi One board ARM: sun8i: h3: fix ALL-H3-CC H3 ver VDD-CPUX voltage ARM: sun8i: h3: set the cpu-supply to VDD-CPUX on ALL-H3-CC H3 ver Ondrej Jirman (5): dt-bindings: add binding for the SY8106A voltage regulator regulator: add support for SY8106A regulator ARM: sunxi: h3/h5: Add r_i2c pinmux node ARM: sunxi: h3/h5: Add r_i2c I2C controller ARM: sun8i: h3: Add SY8106A regulator to Orange Pi PC .../bindings/regulator/sy8106a-regulator.txt | 20 +++ arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 21 +++ arch/arm/boot/dts/sun8i-h3-libretech-all-h3-cc.dts | 8 +- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 21 +++ arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 27 ++++ arch/arm/boot/dts/sun8i-h3.dtsi | 32 +++- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 18 +++ drivers/regulator/Kconfig | 8 +- drivers/regulator/Makefile | 2 +- drivers/regulator/sy8106a-regulator.c | 168 +++++++++++++++++++++ 10 files changed, 320 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/sy8106a-regulator.txt create mode 100644 drivers/regulator/sy8106a-regulator.c -- 2.15.1