From patchwork Mon May 8 16:21:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 9716461 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 E645660234 for ; Mon, 8 May 2017 16:23:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D77E2205A4 for ; Mon, 8 May 2017 16:23:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC44220855; Mon, 8 May 2017 16:23:09 +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=ham 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 5DDB8205A4 for ; Mon, 8 May 2017 16:23:09 +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=JMpNVBIqTgIekCa+ZmJlR8AYrBVGA1HS+Zbd2KKchuY=; b=j8xnGNUESKoA2hJ3g8pybbHftE WTRUtz+WxGJkeNylXnSAHyTG96632DrPmM5XoBG7SkRhADE9HudcE9B0Sy5aSoPvPl+0AivGM4y2Q 10f0GxpOvi+yW0sroAV6w25j3pkBR/Bia94O4C0jXPI5bVkDi8nGZtBmaJdpYXJxF/f3Sqmw7pZnR 8zaiJ3Sl00hhLPZyVLYKWFaHWxPwtYv52sWBpp+2MHRV8Z+oCnhGNv1XhZnRovBvnTPeOsHzVxoyd QG73cim+vVMYqZOr12xKaYCLfxtGursAOc0RWWX8LqKRCV5J7P4gaT25V58CF0l4NFEDZXUqxq61Q K3hIdqHA==; 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 1d7lRE-0008J7-Ci; Mon, 08 May 2017 16:23:08 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d7lPz-0006Af-R9 for linux-arm-kernel@lists.infradead.org; Mon, 08 May 2017 16:21:55 +0000 Received: by mail-wm0-x231.google.com with SMTP id b84so60649358wmh.0 for ; Mon, 08 May 2017 09:21:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=J+lE9+t0H/PZ7fE3sRvvxm2RZyTdJZTX9fb6gEworS4=; b=Ehjo0eA9KcWPo6fWfYuuYtpB+kYjl6pxOKEzxBAQzJ/vt2W2DFmveNaWIUOGILVT30 pDZ5n7n+FMQ9nFpDsMU3R4nBxmYQwGybBll405YyAw6pMnxBWvJ1U6dw7ZbDRf7zXEav 720/ip3+Gs8bOJIQvlBcBhi0GOy7SHrf8a/H0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=J+lE9+t0H/PZ7fE3sRvvxm2RZyTdJZTX9fb6gEworS4=; b=nHElIo1epxsjc2qA6k6kM7KMGUOytwQVu9WXAhpJjjtzRfjWDVPhEz7Ye6ZCcaC8E+ n/mfE5qdppmISFlqq94rF7dlrJrtbdHAbQcnTzKwOHD4FK+0RBaahBj13p7vrNW6A0D5 8u0yPz5a68eoJqK0HzvKxD5sHgyob0CjP7iB1AlkkmE4I/PAVqZZTdzTZp9PNsXOJWf2 27ZBKJtyBmhcJIZDR3O/n8OkvAKVqSSYg5cpUm4hnRgvx+L50s+UBkXKx+spHsXpTWnb +HHRu60I2VljG5V960NMXb/z3TXuNQl+epCG57i59tpnd8JPNM2KjSitFYDXEZHplCK3 /fsA== X-Gm-Message-State: AODbwcBFonPcK/xhHuJfj/D2zf5WIiiVg32tOAxaW3joxEwf2OmuA4CP ycRvFqVKiNnXFurr X-Received: by 10.25.201.21 with SMTP id z21mr8834277lff.35.1494260490009; Mon, 08 May 2017 09:21:30 -0700 (PDT) Received: from localhost.localdomain (h-155-4-221-67.na.cust.bahnhof.se. [155.4.221.67]) by smtp.gmail.com with ESMTPSA id 1sm1600724ljn.59.2017.05.08.09.21.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 May 2017 09:21:29 -0700 (PDT) From: Ulf Hansson To: Wei Xu , linux-arm-kernel@lists.infradead.org Subject: [PATCH 6/8] arm64: dts: hikey: Add the SYS_5V and the VDD_3V3 regulators Date: Mon, 8 May 2017 18:21:15 +0200 Message-Id: <1494260477-25163-7-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494260477-25163-1-git-send-email-ulf.hansson@linaro.org> References: <1494260477-25163-1-git-send-email-ulf.hansson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170508_092152_430362_17DC516D X-CRM114-Status: GOOD ( 11.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulf Hansson , Daniel Lezcano MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add these regulators to better describe the HW, but also because those is needed in following changes. Signed-off-by: Ulf Hansson Acked-by: Daniel Lezcano --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index 8070c75..6dab03a 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -81,7 +81,26 @@ }; }; - reg_5v_hub: regulator@0 { + reg_sys_5v: regulator@0 { + compatible = "regulator-fixed"; + regulator-name = "SYS_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + regulator-always-on; + }; + + reg_vdd_3v3: regulator@1 { + compatible = "regulator-fixed"; + regulator-name = "VDD_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + vin-supply = <®_sys_5v>; + }; + + reg_5v_hub: regulator@2 { compatible = "regulator-fixed"; regulator-name = "5V_HUB"; regulator-min-microvolt = <5000000>; @@ -89,6 +108,7 @@ regulator-boot-on; gpio = <&gpio0 7 0>; regulator-always-on; + vin-supply = <®_sys_5v>; }; soc {