From patchwork Sat Sep 8 19:00:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Bergas X-Patchwork-Id: 10593151 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 080CD109C for ; Sat, 8 Sep 2018 19:02:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC58B29F2C for ; Sat, 8 Sep 2018 19:02:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E0F1529F43; Sat, 8 Sep 2018 19:02:01 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 9669929F2C for ; Sat, 8 Sep 2018 19:02:01 +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=GSJcL7zO+C2PRfKl4D6NoAGeRVdS9NexkFEaMWCwNlk=; b=QiIVJd3X42Tir6e6Y7tOKEqDRC LGsDoag3uB33i3KAkmp3tZexxp0D8w4b53Re26HX4fnbZINEBammZEt8mB/A+muSsPFqJgWbb/Uex Hx/Ajmz0OhZ9RgqI7ZbF5lGNlWwIU91eBG93vLMjTCzPewTum4aFo5h1vrhcD1F98REpJMWYpxU38 8qzKTHxVxWdVj8SvDqrPYmm+wp1urqiszwatTl71V1AzuYAaVey0N7GMtK+78U6pvbDWzo/EqHmxp 1NnkAiFdEHDbQxQzFII9Eh9sfjDLhHBvEk7GEgActmP8SL0gCkpKeZTk6LPMrtkXwyvScHENEJMnt zXlRTSGw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fyiUU-0001PN-Mh; Sat, 08 Sep 2018 19:01:54 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fyiUJ-0001IS-K3 for linux-rockchip@lists.infradead.org; Sat, 08 Sep 2018 19:01:45 +0000 Received: by mail-wr1-x441.google.com with SMTP id v90-v6so17993981wrc.0 for ; Sat, 08 Sep 2018 12:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hNVtSKRQ+VacDUSfqw7ilNJ0bg4MkGEyjuW0UNR471Q=; b=SCtIJr0rYY8giydyXy7EyJnDnhbVk9wRk11IVch9XRbhF+FsiDo+I2EWCdHjVh6nBs yPfegV/BnKp4xObaw7QAjyt74B9HJlpDXaQ00xrtv19wRHChECtzdUsrbP8eGtm5jKQ/ xykBbhpIvDJxwoEAXniZ0CZImw6soBjUXA65OYtlW9y6ob0mpGigbBQH2+Y92jr6ARPS xtFSgD/Yh9GbGDvRIFdQNbqffO6ROmRDf4+0aduMCwVLJ6dQzux+b02zzvEihTt63j09 sWWN9dHswHagmXH5DFs0A3lzfv5Q6NJAbfTFCe1Ts5gKE74NJ26jcQfDj5qNSQRbCR4p 8zAw== 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=hNVtSKRQ+VacDUSfqw7ilNJ0bg4MkGEyjuW0UNR471Q=; b=LtYVPiPYMVSfmv3XBB3LHwbEUFK12tC23jSUv/GkBRMhtZB+/CkUaQFf3s1OQGQMoH 8JOKhAY1M/YpJPRRHBUVUnnkDPHy0TZURHJku7aKA1Wf7zIn7GhMVN8RNSTW7E5CvVIX b4ndPCpxzCnAUz3uygag1u5fDdEoCot67P99he247MAAr5fHHLI36IWKJFPOMdcEYIqr OTq5FIx0oXM5uzmtNWLaSXf4PhjaBhNpSj5j8xN+FNLVPEhU4tKYwfqSjBtBAKhLRP7f AAR0CabPOdVuy+wsk7J+hHpdp75Zoc6y4d9+AIzYQVYrVHG7gy9VcFYekZ9W2ky1+VQt N+kQ== X-Gm-Message-State: APzg51B7w/KOSz6UiXwdrRTJE+TuSv6oY3yHoreqUuzzOkJ2BkHpEomo an992gYesR5IkR2y8Kn+xTw= X-Google-Smtp-Source: ANB0VdYUfhB+Hsw1dvY1sL/BBflijVSxJ3j8E6CL4vGv0LZsEqrLbCkVJrIv4ffrDQqH/rAj+JlFrQ== X-Received: by 2002:adf:a3d9:: with SMTP id m25-v6mr10046271wrb.1.1536433293270; Sat, 08 Sep 2018 12:01:33 -0700 (PDT) Received: from localhost.localdomain ([90.175.16.221]) by smtp.gmail.com with ESMTPSA id a37-v6sm22889756wrc.21.2018.09.08.12.01.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Sep 2018 12:01:32 -0700 (PDT) From: Vicente Bergas To: Enric Balletbo i Serra , Heiko Stuebner , William wu , linux-rockchip@lists.infradead.org Subject: [PATCH 4/4] arm64: dts: Sapphire board: Fix Type-C port supply Date: Sat, 8 Sep 2018 21:00:48 +0200 Message-Id: <20180908190048.14231-5-vicencb@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180908190048.14231-1-vicencb@gmail.com> References: <9e64e878-07c8-912c-c597-7da7b3f96dd6@collabora.com> <20180908190048.14231-1-vicencb@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180908_120143_676578_358F08BA X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vicente Bergas MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The reference is the schematic, page 11: https://dl.vamrs.com/products/sapphire_excavator/RK_SAPPHIRE_SOCBOARD_RK3399_LPDDR3D178P232SD8_V12_20161109HXS.pdf (alternate link) http://opensource.rock-chips.com/images/f/f0/RK_Sapphire_RK3399.rar Signed-off-by: Vicente Bergas --- .../arm64/boot/dts/rockchip/rk3399-sapphire.dtsi | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi index b1cb50595..1188c8717 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi @@ -151,6 +151,16 @@ vin-supply = <&vcc_sys>; }; + vcc5v0_typec0: vcc5v0-typec0-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio2 RK_PA0 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_typec0_en>; + regulator-name = "vcc5v0_typec0"; + vin-supply = <&vcc_sys>; + }; + vcc_sys: vcc-sys { compatible = "regulator-fixed"; regulator-name = "vcc_sys"; @@ -503,6 +513,10 @@ rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; }; + vcc5v0_typec0_en: vcc5v0-typec0-en { + rockchip,pins = + <2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; + }; }; }; @@ -564,7 +578,7 @@ }; u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec0>; status = "okay"; }; };