From patchwork Wed Sep 13 10:04:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 813302 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com 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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="HOifn21k"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xsclN14PJz9s9Y for ; Wed, 13 Sep 2017 20:06:56 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DE6BAC225D0; Wed, 13 Sep 2017 10:06:03 +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=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID 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 CBA29C225DB; Wed, 13 Sep 2017 10:05:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7FE6EC21F91; Wed, 13 Sep 2017 10:05:16 +0000 (UTC) Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by lists.denx.de (Postfix) with ESMTPS id 18E9AC22589 for ; Wed, 13 Sep 2017 10:05:12 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id h4so7338094pfk.0 for ; Wed, 13 Sep 2017 03:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=qes/8oE5W64hGQxn4CkS34RbLBL2x/02Q0YCg3FMXOU=; b=HOifn21kEaKzdgDxRa7TxcHggJV2IevpKiDvsKhZYeCuov1rUcnjN1xbynV0FVS1TY +FrzwNlP9EPMuB0Rlhh08tLERrcK/vkS1pZZjRz0ALJq2kqKhQL0C5xCNbWwBZ/8meIF 0oiUbIxiVbHShcbPP+zE/yBwLSPEM8j5ELoGjLeDBdpzrYPW1jWIjFqvQ7qpVrSrYXGK r218GiOWCB4HFkfSwZlpa9AzkMPqIhAiUj42/yZHoPQtCocv7iV/jHCIyFMg1vc7bO8F dHdaIXSlBtkc6vaG3sUMP9XbmBXca7QmINqhvGAqZ8XGBMx2OpiuU+rwFJaH5EkWpLyF xXkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=qes/8oE5W64hGQxn4CkS34RbLBL2x/02Q0YCg3FMXOU=; b=HauYg8gZNHfhXEY6Ye1UaTWDwsyGn2Yg/6jB9PuL8c+G9BLwPGZwTcaoWIUFaJFUiS Sl/TuD0zE+oE9im2ftwFyQ+ceI1S4KSGSPRWZiNRP1utCfTEMO0ifodPaYhWBitXuCc6 PPnhAZRuVrpZC+k+iVesAX9S8Qu7xHOdeGC1Te4t5uo3L6oXc5d8z8+i3ytu4h8d9oc6 UPwWHWa7t3cF4T5KTGakTmN049TIftpcIoHtKx9/uHx1a49xIA8Te28p6gnb4YL/9vuv VMw1Fj1PmcolRUY6814ifYZ6vLjHsBpcZbJcuoN/qBSFYpxnTyu0joYOGzJhrwp2B8ne viSg== X-Gm-Message-State: AHPjjUgvzam8ViYVP3P/ZeEn1WAnZ5a6sQ1NRkguv41PLj7itQEZZVBM OWNz57N2s4YWWaN4 X-Google-Smtp-Source: ADKCNb4mLztBbtLqj/Bta1WiZapWZT5/mJ/xKDgMwCSXhvnLJcxZU9UDbxlN2BnVVMyCJ+cyAX5gcA== X-Received: by 10.84.244.135 with SMTP id h7mr20547837pll.110.1505297110602; Wed, 13 Sep 2017 03:05:10 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id i12sm9122203pgr.21.2017.09.13.03.05.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Sep 2017 03:05:10 -0700 (PDT) From: Kever Yang To: u-boot@lists.denx.de Date: Wed, 13 Sep 2017 18:04:54 +0800 Message-Id: <1505297094-5273-5-git-send-email-kever.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505297094-5273-1-git-send-email-kever.yang@rock-chips.com> References: <1505297094-5273-1-git-send-email-kever.yang@rock-chips.com> Cc: Albert Aribaud , Elaine Zhang , William Zhang Subject: [U-Boot] [PATCH 5/5] rockchip: dts: rk3328-evb: add i2c1 and rk805 nodes 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" From: Elaine Zhang add i2c1 and rk805 nodes to support rk805 init setting. Signed-off-by: Elaine Zhang Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- arch/arm/dts/rk3328-evb.dts | 118 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/arch/arm/dts/rk3328-evb.dts b/arch/arm/dts/rk3328-evb.dts index 8a14c65..f71690f 100644 --- a/arch/arm/dts/rk3328-evb.dts +++ b/arch/arm/dts/rk3328-evb.dts @@ -87,3 +87,121 @@ vbus-supply = <&vcc5v0_host_xhci>; status = "okay"; }; + +&i2c1 { + clock-frequency = <400000>; + i2c-scl-rising-time-ns = <168>; + i2c-scl-falling-time-ns = <4>; + status = "okay"; + + rk805: pmic@18 { + compatible = "rockchip,rk805"; + status = "okay"; + reg = <0x18>; + interrupt-parent = <&gpio2>; + interrupts = <6 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_int_l>; + rockchip,system-power-controller; + wakeup-source; + gpio-controller; + #gpio-cells = <2>; + #clock-cells = <1>; + clock-output-names = "xin32k", "rk805-clkout2"; + + regulators { + vdd_logic: DCDC_REG1 { + regulator-name = "vdd_logic"; + regulator-min-microvolt = <712500>; + regulator-max-microvolt = <1450000>; + regulator-ramp-delay = <6001>; + regulator-boot-on; + regulator-always-on; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1000000>; + }; + }; + + vdd_arm: DCDC_REG2 { + regulator-name = "vdd_arm"; + regulator-min-microvolt = <712500>; + regulator-max-microvolt = <1450000>; + regulator-ramp-delay = <6001>; + regulator-boot-on; + regulator-always-on; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1000000>; + }; + }; + + vcc_ddr: DCDC_REG3 { + regulator-name = "vcc_ddr"; + regulator-boot-on; + regulator-always-on; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vcc_io: DCDC_REG4 { + regulator-name = "vcc_io"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vdd_18: LDO_REG1 { + regulator-name = "vdd_18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vcc_18emmc: LDO_REG2 { + regulator-name = "vcc_18emmc"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vdd_10: LDO_REG3 { + regulator-name = "vdd_10"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-boot-on; + regulator-always-on; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1000000>; + }; + }; + }; + }; +}; + +&pinctrl { + pmic { + pmic_int_l: pmic-int-l { + rockchip,pins = + <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; /* gpio2_a6 */ + }; + }; +}; +