From patchwork Thu Sep 13 09:09:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 10599097 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 4E18E14E0 for ; Thu, 13 Sep 2018 09:29:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C4AA2A457 for ; Thu, 13 Sep 2018 09:29:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 30B152A475; Thu, 13 Sep 2018 09:29:42 +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_SIGNED, DKIM_VALID,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 CF96B2A45A for ; Thu, 13 Sep 2018 09:29:40 +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=VTGTGuLCqJE3oPOk7LBzZEytGb4W90H7RHTs63I1eNE=; b=ZKG2mgtuzDBpRk3ZDuXXtRi7lW BQLjxWe17q1jq9s3nc2WE+XSV3MJlbArzWfMMgDPmHyn0CgWS0W4mNKl0A3iWv2tYcnUWCIDwQgah DD8NQAEXMl3PvVJxVdTFImG2ORKqZn7hNqsp2eglZSUDoj6vOVBM/AzSORCR6S9TJK2rPwVvsl1jt AAdZ/3gIXE8VBH09/ECbHkuwlyuM29cDvJ0/7FzMCOv4wzP/x0mnmF31O/xo/HfZv5F/tILqwpYLq 8BB3jJkDFahRjBZtqpC4NDmZejTsrGUmjdVuNDtfo3xD4crfF4fn/ly35FpbhVdNWsMFxZv8K+8RP S9nDk57A==; 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 1g0NwF-00010E-0R; Thu, 13 Sep 2018 09:29:27 +0000 Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0NhN-0005lw-63 for linux-arm-kernel@lists.infradead.org; Thu, 13 Sep 2018 09:14:24 +0000 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 59ADF25BEE7; Thu, 13 Sep 2018 19:10:00 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1536829800; bh=MjKsoDHuQQX0Vmo9w3Azb2L9gsUaUMfiNqNw3eeKFO8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ShlOFlAfy/7J9GzhHiubkuwqHb0XNgVBI0raR8l1m8cQfkp+1fHULKco2sl9M2KAr HLVq5QfTBDtjV+kL5L04QwSdlVtmlIEyv2LNteunBOx1zWiH7SUNMvCPb9C5Svj8Nt 7MBFB15hjtW5MG1cXzPBvWQufPp454HmxMVRHrNY= Received: by reginn.horms.nl (Postfix, from userid 7100) id 4B1E794094B; Thu, 13 Sep 2018 11:09:56 +0200 (CEST) From: Simon Horman To: linux-renesas-soc@vger.kernel.org Subject: [PATCH 10/58] arm64: dts: renesas: salvator-xs: enable SATA Date: Thu, 13 Sep 2018 11:09:05 +0200 Message-Id: <3a0832d093693ede13f5bbc6a641775aa1f9dfbf.1536828567.git.horms+renesas@verge.net.au> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180913_021405_433309_D408611B X-CRM114-Status: GOOD ( 11.08 ) 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: Wolfram Sang , Magnus Damm , linux-arm-kernel@lists.infradead.org, Simon Horman 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 From: Wolfram Sang Add the nodes to enable SATA. Note that MD12 (SW12-7) must be switched off for that to work. Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Signed-off-by: Simon Horman --- arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts | 14 ++++++++++++++ arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts index 8c142affee49..ba3357636fdb 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts @@ -151,6 +151,15 @@ }; }; +&pca9654 { + pcie_sata_switch { + gpio-hog; + gpios = <7 GPIO_ACTIVE_HIGH>; + output-low; /* enable SATA by default */ + line-name = "PCIE/SATA switch"; + }; +}; + &pfc { usb2_pins: usb2 { groups = "usb2"; @@ -175,6 +184,11 @@ }; }; +/* MD12 (SW12-7) must be set 'Off' which is not the default! */ +&sata { + status = "okay"; +}; + &usb2_phy2 { pinctrl-0 = <&usb2_pins>; pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts b/arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts index 9de4e3db1621..45016a06fab1 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts +++ b/arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts @@ -47,3 +47,17 @@ &hdmi0_con { remote-endpoint = <&rcar_dw_hdmi0_out>; }; + +&pca9654 { + pcie_sata_switch { + gpio-hog; + gpios = <7 GPIO_ACTIVE_HIGH>; + output-low; /* enable SATA by default */ + line-name = "PCIE/SATA switch"; + }; +}; + +/* MD12 (SW12-7) must be set 'Off' which is not the default! */ +&sata { + status = "okay"; +};