From patchwork Wed Jul 5 08:30:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wang X-Patchwork-Id: 9826125 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2971260237 for ; Wed, 5 Jul 2017 08:32:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D311205F8 for ; Wed, 5 Jul 2017 08:32:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1181D26BE9; Wed, 5 Jul 2017 08:32:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BF309205F8 for ; Wed, 5 Jul 2017 08:32:04 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=ugQzlC9f8hookEM0EK9H5cj/CicpXU/SIF9cUWasQwM=; b=AgiJkV8sbdYQoylTBvDJ/o0Uzb Es4DbIcKXP5E5owGDSjw8KnhjhyVNbH7mym7KcWOjIcLeZf3eEEnC49EfTRSm1QJ0K+JJ+1YNDxnw aj/k8jmTPcL23NVsEuaQv1CECdexvcrzxuJc8xxwAD2N2vyySv2XJYGHGqWKLBbG8jQPEDijj41UY JzygNEqoen5LU+hW6XLaxVLmLhQjyF+y7Vh4QHn44FWIPM+xzbD1GdVxlfB7TgYZsP23boMV5cuoi sBZXeGVrVaKzV/6KqNAL+URX0ChLpWMf8V1KrOky8j2ltJzo8wCJUdJMOGmf9O2Q4Gbmkop1pW6xy yCXhSu+A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dSfj9-0006wr-1W; Wed, 05 Jul 2017 08:32:03 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dSfix-0006i6-9M; Wed, 05 Jul 2017 08:31:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pR9nWGcIJPgaY7FyVR3kdcrQQLUG9XQFoK4z9tyqMIQ=; b=nYtIMsSrx7i5qnma9l11GfCct /IOGL9ErIRp+BQx/3h5xihxXhJeVzHyNdJHIRBtluuR3Er8WatPXG0fFPbCDuZRcgf84yazAtWfsR iuPez3ZQX6xS0e3tdUOY9bnZyn9GneiICx8UCPKRHriFxX2vgCzSFOmcsfJ8Nlk1CZdZC48uxjezi R11QtR5sen+AB9gz7ETVLBDBD49psLStgKGQUA/gF5jbXgfO16ZyekCqrjZCW4I7MQ6xzzvNSGBUj hapcWx1TPdILouDy7ama8ytr5ghX1Er3N0wBk1yZGpD++7zgtQ9e1YY/EESFNfoBjg0nZH5w/k8rb cTkHgkLPA==; Received: from regular1.263xmail.com ([211.150.99.135]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dSfis-0005vQ-QL; Wed, 05 Jul 2017 08:31:49 +0000 Received: from frank.wang?rock-chips.com (unknown [192.168.167.12]) by regular1.263xmail.com (Postfix) with ESMTP id DE8731E5DC; Wed, 5 Jul 2017 16:30:42 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 8CAD03B5; Wed, 5 Jul 2017 16:30:34 +0800 (CST) X-RL-SENDER: frank.wang@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: frank.wang@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: wmc@rock-chips.com X-DNS-TYPE: 0 Received: from unknown (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith SMTP id 18833ACENWC; Wed, 05 Jul 2017 16:30:39 +0800 (CST) From: Frank Wang To: heiko@sntech.de Subject: [PATCH v2 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb Date: Wed, 5 Jul 2017 16:30:16 +0800 Message-Id: <1499243421-21460-2-git-send-email-frank.wang@rock-chips.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1499243421-21460-1-git-send-email-frank.wang@rock-chips.com> References: <1499243421-21460-1-git-send-email-frank.wang@rock-chips.com> X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, huangtao@rock-chips.com, wmc@rock-chips.com, Frank Wang , zhangqing@rock-chips.com, linux@armlinux.org.uk, linux-kernel@vger.kernel.org, kever.yang@rock-chips.com, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, finley.xiao@rock-chips.com, david.wu@rock-chips.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds regulator info for rk3229-evb board. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk3229-evb.dts | 69 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts index 82e8a53..394be63 100644 --- a/arch/arm/boot/dts/rk3229-evb.dts +++ b/arch/arm/boot/dts/rk3229-evb.dts @@ -51,6 +51,15 @@ reg = <0x60000000 0x40000000>; }; + dc_12v: dc-12v-regulator { + compatible = "regulator-fixed"; + regulator-name = "dc_12v"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + }; + ext_gmac: ext_gmac { compatible = "fixed-clock"; clock-frequency = <125000000>; @@ -67,6 +76,7 @@ regulator-name = "vcc_host"; regulator-always-on; regulator-boot-on; + vin-supply = <&vcc_sys>; }; vcc_phy: vcc-phy-regulator { @@ -77,6 +87,57 @@ regulator-max-microvolt = <1800000>; regulator-always-on; regulator-boot-on; + vin-supply = <&vccio_1v8>; + }; + + vcc_sys: vcc-sys-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&dc_12v>; + }; + + vccio_1v8: vccio-1v8-regulator { + compatible = "regulator-fixed"; + regulator-name = "vccio_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + vin-supply = <&vcc_sys>; + }; + + vccio_3v3: vccio-3v3-regulator { + compatible = "regulator-fixed"; + regulator-name = "vccio_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + vin-supply = <&vcc_sys>; + }; + + vdd_arm: vdd-arm-regulator { + compatible = "pwm-regulator"; + pwms = <&pwm1 0 25000 1>; + regulator-name = "vdd_arm"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1400000>; + regulator-always-on; + regulator-boot-on; + pwm-supply = <&vcc_sys>; + }; + + vdd_log: vdd-log-regulator { + compatible = "pwm-regulator"; + pwms = <&pwm2 0 25000 1>; + regulator-name = "vdd_log"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1300000>; + regulator-always-on; + regulator-boot-on; + pwm-supply = <&vcc_sys>; }; }; @@ -104,6 +165,14 @@ }; }; +&pwm1 { + status = "okay"; +}; + +&pwm2 { + status = "okay"; +}; + &uart2 { status = "okay"; };