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: 98840 Delivered-To: patches@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1407419qge; Mon, 8 May 2017 09:21:30 -0700 (PDT) X-Received: by 10.28.230.197 with SMTP id e66mr6563897wmi.39.1494260490338; Mon, 08 May 2017 09:21:30 -0700 (PDT) Return-Path: Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com. [2a00:1450:400c:c09::22f]) by mx.google.com with ESMTPS id p12si15203717wrd.273.2017.05.08.09.21.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2017 09:21:30 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c09::22f as permitted sender) client-ip=2a00:1450:400c:c09::22f; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c09::22f as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-wm0-x22f.google.com with SMTP id u65so90464364wmu.1 for ; Mon, 08 May 2017 09:21:30 -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=D9psxeI++TMHeocN4myWiW7+icrZ0YPeZhRXDdvBUphWTXyOTs5dDBfS7XMZAbQB1W e97MpFaNdB/7r9a1K44UCCq6IvDe9jg6X2jbkwt5GUhciUeV8qQ7SjyjwzjvOZbrfZhW PABu0RRgGSNK1htHwj9GGP7TxKWPqTo0krpdERJ0KqPVPi+9lR4jRtbU3SXC/eVM7/4O bTnF5X0ex9nHQYJGDEh6mbwX9965G59Q5dJqSEUtU05obM3yZanRz7JkRFSFnttTzHMs VZtueQoJ3QUBgnw8vjoZswWf8jOJjLtn2rA/Et11v1NdfVz4GHsjRY25The29aMB+D1k gsJQ== X-Gm-Message-State: AODbwcBmqLexC/9g64A5WQXpo2Lp2Mc4ln6QuCXlxOen/7KOtkR0m0r5 YUGjmFpNColz0noFjdY= X-Received: by 10.25.201.21 with SMTP id z21mr8834277lff.35.1494260490009; Mon, 08 May 2017 09:21:30 -0700 (PDT) Return-Path: 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 Cc: Ulf Hansson , Daniel Lezcano 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> 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(-) -- 2.7.4 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 {