From patchwork Mon May 8 16:21:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 9716457 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 4882660234 for ; Mon, 8 May 2017 16:22:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 391E0205A8 for ; Mon, 8 May 2017 16:22:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2BCD722B26; Mon, 8 May 2017 16:22:43 +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 C474F205A8 for ; Mon, 8 May 2017 16:22:42 +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=kJgVqwCU/HNc/5AnbPg4rYZANsrm2r5bU2EffVA5TJc=; b=lGzXFue6onBqVOx9gob+SHN9cC MYbW3wcgdFxL4J0kgXET+zAJLzgi1hiOroFOSMs06H/lXYTbinbz3+glzRiLkW06w5RnI6LDA5eNp AsSLAdJmEP+Ncqv91mWXn1uZ3bV3R5yMra2xj6IKbDP9pWTVOcd6kk9Q23iI1hSFwSDFnem9AV72l mBdVI3pE1MClStFoC557X+DwUzPtdpP8xSKATRBNvFDw9uhviyLio7gIJv4ISQs6kdf0eC/ytaBKb 3QAhakkwKzeXNptxYZcL1ud4nMLKYBh9+rRFhGp7dsMlH3mvEOASGH8etUXLMGZjoE1/SUjL6VYYv NCnWT8fg==; 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 1d7lQo-0007ip-3X; Mon, 08 May 2017 16:22:42 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d7lPy-0006AY-Tp for linux-arm-kernel@lists.infradead.org; Mon, 08 May 2017 16:21:54 +0000 Received: by mail-wm0-x230.google.com with SMTP id m123so70471482wma.0 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=+mUC5m6O00mUhURdMWyoesZUHUYa2w3O3cbPAe3HXag=; b=VDcPNqZ1krrK/NtDhoVZ3uNJji3yDGD8BQfGuJuZwUfJJ85wyJl5rniwJHJ2yi3WBw hwpNKirtYXyYZ0TRJdsxV5e05nCZNtFhRa2YxINfVajPwRjUhVIEs1WYg9GtjOgttmL2 ETGFct2a1+frkXfx9etajR8vt+CzbjTMLUQlY= 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=+mUC5m6O00mUhURdMWyoesZUHUYa2w3O3cbPAe3HXag=; b=fd65mC4IzeJNFAoiPplKmf6sKxK9TGj4Apvu3ekk+95+zTMaVV3DdCru5044I/dq6Y WisGTHBFhQdYPrEVJFhUl0A021FBFeA19AWx/BWzLDn7FJ/6Xu5mrK1hK2OIXUaTEM1O qOg7LPRoZz7OtUVOdP4I9zcVdctNBBMBvg2fsJImbZ/F5pZkVt3+Goo04/mhn04NpSZn 1kjIl2PzKodAC3dItVwVj7sZCqXU9Qq4T2qGJeASrzIOdFdJyZInAwOZqGd2Gm1EKr3T MYBpj53NFdEFBku4yyVmWYDYLZSp/o4+A6sK9gGFg34ERzqtt/4+AATZsNf4T2KBSQNl J1cg== X-Gm-Message-State: AODbwcDDkt83AxnXOkAum7Na4y5APtU89oNMhG7iXiAw0rm35CpjiRU8 qAtrtXY/Au1dFZH5 X-Received: by 10.25.4.149 with SMTP id 143mr7237157lfe.144.1494260489070; Mon, 08 May 2017 09:21:29 -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.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 May 2017 09:21:28 -0700 (PDT) From: Ulf Hansson To: Wei Xu , linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/8] arm64: dts: hi6220: Move the fixed_5v_hub regulator to the hikey dts Date: Mon, 8 May 2017 18:21:14 +0200 Message-Id: <1494260477-25163-6-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_092151_364259_1F784430 X-CRM114-Status: GOOD ( 11.16 ) 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 The regulator is a part of the hikey board, therefore let's move it from the hi6220 SoC dtsi file into the hikey dts file . Let's also rename the regulator according to the datasheet (5V_HUB) to better reflect the HW. Signed-off-by: Ulf Hansson Acked-by: Daniel Lezcano --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 10 ++++++++++ arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 12 +----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index e0496f7..8070c75 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -81,6 +81,16 @@ }; }; + reg_5v_hub: regulator@0 { + compatible = "regulator-fixed"; + regulator-name = "5V_HUB"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + gpio = <&gpio0 7 0>; + regulator-always-on; + }; + soc { spi0: spi@f7106000 { status = "ok"; diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 1e5129b..951152d 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -725,20 +725,10 @@ status = "disabled"; }; - fixed_5v_hub: regulator@0 { - compatible = "regulator-fixed"; - regulator-name = "fixed_5v_hub"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - regulator-boot-on; - gpio = <&gpio0 7 0>; - regulator-always-on; - }; - usb_phy: usbphy { compatible = "hisilicon,hi6220-usb-phy"; #phy-cells = <0>; - phy-supply = <&fixed_5v_hub>; + phy-supply = <®_5v_hub>; hisilicon,peripheral-syscon = <&sys_ctrl>; };