From nobody Mon Apr 6 01:59:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD9FEC54EE9 for ; Tue, 13 Sep 2022 04:26:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230415AbiIME0h (ORCPT ); Tue, 13 Sep 2022 00:26:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230285AbiIMEZl (ORCPT ); Tue, 13 Sep 2022 00:25:41 -0400 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 44188564FD; Mon, 12 Sep 2022 21:22:58 -0700 (PDT) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 13 Sep 2022 13:22:54 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id E9B0C20584CE; Tue, 13 Sep 2022 13:22:53 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Sep 2022 13:22:53 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 7AFF2B62AE; Tue, 13 Sep 2022 13:22:53 +0900 (JST) From: Kunihiko Hayashi To: soc@kernel.org, Arnd Bergmann , Olof Johansson Cc: Rob Herring , Krzysztof Kozlowski , Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 7/9] ARM: dts: uniphier: Add ahci controller nodes for PXs2 Date: Tue, 13 Sep 2022 13:22:47 +0900 Message-Id: <20220913042249.4708-8-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220913042249.4708-1-hayashi.kunihiko@socionext.com> References: <20220913042249.4708-1-hayashi.kunihiko@socionext.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add ahci core controller and glue layer nodes including reset-controller and sata-phy. This supports for PXs2 and the boards without PXs2 vodka board that doesn't implement any SATA connectors. Signed-off-by: Kunihiko Hayashi --- arch/arm/boot/dts/uniphier-pxs2-gentil.dts | 4 +++ arch/arm/boot/dts/uniphier-pxs2.dtsi | 40 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/uniphier-pxs2-gentil.dts b/arch/arm/boot/dts= /uniphier-pxs2-gentil.dts index 759384b60663..5f18b926c50a 100644 --- a/arch/arm/boot/dts/uniphier-pxs2-gentil.dts +++ b/arch/arm/boot/dts/uniphier-pxs2-gentil.dts @@ -99,3 +99,7 @@ &usb0 { &usb1 { status =3D "okay"; }; + +&ahci { + status =3D "okay"; +}; diff --git a/arch/arm/boot/dts/uniphier-pxs2.dtsi b/arch/arm/boot/dts/uniph= ier-pxs2.dtsi index d2a2468d4ea0..ca4dccf56a67 100644 --- a/arch/arm/boot/dts/uniphier-pxs2.dtsi +++ b/arch/arm/boot/dts/uniphier-pxs2.dtsi @@ -599,6 +599,46 @@ mdio: mdio { }; }; =20 + ahci: sata@65600000 { + compatible =3D "socionext,uniphier-pxs2-ahci", + "generic-ahci"; + status =3D "disabled"; + reg =3D <0x65600000 0x10000>; + interrupts =3D ; + clocks =3D <&sys_clk 28>; + resets =3D <&sys_rst 28>, <&ahci_rst 0>; + ports-implemented =3D <1>; + phys =3D <&ahci_phy>; + }; + + sata-controller@65700000 { + compatible =3D "socionext,uniphier-pxs2-ahci-glue", + "simple-mfd"; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges =3D <0 0x65700000 0x100>; + + ahci_rst: reset-controller@0 { + compatible =3D "socionext,uniphier-pxs2-ahci-reset"; + reg =3D <0x0 0x4>; + clock-names =3D "link"; + clocks =3D <&sys_clk 28>; + reset-names =3D "link"; + resets =3D <&sys_rst 28>; + #reset-cells =3D <1>; + }; + + ahci_phy: sata-phy@10 { + compatible =3D "socionext,uniphier-pxs2-ahci-phy"; + reg =3D <0x10 0x10>; + clock-names =3D "link"; + clocks =3D <&sys_clk 28>; + reset-names =3D "link", "phy"; + resets =3D <&sys_rst 28>, <&sys_rst 30>; + #phy-cells =3D <0>; + }; + }; + usb0: usb@65a00000 { compatible =3D "socionext,uniphier-dwc3", "snps,dwc3"; status =3D "disabled"; --=20 2.25.1