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: 98839 Delivered-To: patches@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1407409qge; Mon, 8 May 2017 09:21:29 -0700 (PDT) X-Received: by 10.223.135.213 with SMTP id c21mr47615582wrc.10.1494260489446; Mon, 08 May 2017 09:21:29 -0700 (PDT) Return-Path: Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com. [2a00:1450:400c:c09::22c]) by mx.google.com with ESMTPS id n6si13953063wra.196.2017.05.08.09.21.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2017 09:21:29 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c09::22c as permitted sender) client-ip=2a00:1450:400c:c09::22c; 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::22c 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-x22c.google.com with SMTP id u65so90463865wmu.1 for ; Mon, 08 May 2017 09:21:29 -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=annnXg6qJqN3xq/0xv6ohK0fv5EeaO+perr09BAGSxAzMvZtw9ILk9/dRMQssJYAiA 6ia2mk5cDrhnOSiDN6LnUyRXhuq6vxN61CVzSROWwGJZ+YBZpCvfjTPwtkws12+i6oX8 2YXPetdVsQVmX5VPILTDibZLJXTQI0Z8Wd/HLxH1c6cMzGMG9N3l4lCrWAbuG/dNiDvI kEg1GancbXlCWUvfzri7GCqX1iIIYMLoxdw84JJSMIntSexe69tsC0aq2F49pytm24dp Xtp2VP6kM4zEIPWm/knXAWG1rxhpRuNkyz41bQKLGh0JG/pBE567lv81MFZWW8mpGcHY GhDw== X-Gm-Message-State: AODbwcDx7EY2/OJ1yclun4fbwbSF+59f4PSf9bFkCQuAzvpzoDruyKm7 zYy6vyYWP9NnaMOx0fQ= X-Received: by 10.25.4.149 with SMTP id 143mr7237157lfe.144.1494260489070; Mon, 08 May 2017 09:21:29 -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.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 Cc: Ulf Hansson , Daniel Lezcano 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> 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(-) -- 2.7.4 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>; };