Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp398154rwb; Tue, 6 Dec 2022 23:20:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf69u9zzaAkyQPTvredU+Be0jLmWcz5WQHu4Q9OM4qRWsFDm1Ye0olpOam1FcitpoQEVshEU X-Received: by 2002:a17:902:b093:b0:189:dcc0:3341 with SMTP id p19-20020a170902b09300b00189dcc03341mr11148112plr.24.1670397622999; Tue, 06 Dec 2022 23:20:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670397622; cv=none; d=google.com; s=arc-20160816; b=A/hh+u+h9ZmR0HIzcnp2cWJT3q86rQK9leRnzXbzQUF4PSHhdHHOVykDU7zhL6UMuG Tg/DChnDMgwQruTauI/WH6WwvpjWazJD1wOtv9pqddIqVE/jVPxxjJVAiUJ83sJvj3tF tgg8pFGL9oUXCuMJwtdigAwUzG2rBHP0PLnVSvB7H+vsaFbsznYSHViwPbqMQrpDB0Yt ZU8cqyYWEY77vSXsWCxUHNcCEkg3d59yFCUXNFTrcDoh/JfiqiZ/chBr9Yp3GKnbK+C0 77jvrx3GiPpZoV/kfB2gXiWP2NUZK7r8hM1aNawiGRtA/J3yHiYAJg6E2b3OT9eCgY1z LGXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=2KPQ5WQusyx34brJiE3IerTmR9vQWYAIYtKKj1f0nnE=; b=hAvHU8cRTZMYLGL617LqUlhNf9rwPnlo0+5SlfnpvOSqvJrESF8kGu79KfHF1t004M N7HBuL/23Ct8E034mAcEPmN0swJcMawyK1hfivsShr9JFavD5bLpKqbKKIqm45N2L8hM jxd9KPYcR/e8mscMd232HrZl9LxwRsStwBScvfcHh4HgOPbAH6waH3au1MaNGQp4Lg2U 4ppW8aGtCi4buYFKOMXmrxRsBSxQ4G0I5AhVNz6CZPf6YzlFSDrxSsUb58V0hysLpDR9 RqldY+ZBhgoOjMdhEyP191BsIBtonr8MmxMlU4Z2PE+k8X/Axo4CzaS+rYGRbgD5Hnc8 kIkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a056a00138b00b00576fa162bb4si7875626pfg.310.2022.12.06.23.20.12; Tue, 06 Dec 2022 23:20:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229872AbiLGFzQ (ORCPT + 76 others); Wed, 7 Dec 2022 00:55:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbiLGFyi (ORCPT ); Wed, 7 Dec 2022 00:54:38 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5DFD059153; Tue, 6 Dec 2022 21:54:36 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 07 Dec 2022 14:54:32 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id D1ECA2058B4F; Wed, 7 Dec 2022 14:54:32 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 7 Dec 2022 14:54:32 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 3E5901DA6; Wed, 7 Dec 2022 14:54:32 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v2 16/16] dt-bindings: soc: socionext: Add UniPhier AHCI glue layer Date: Wed, 7 Dec 2022 14:54:05 +0900 Message-Id: <20221207055405.30940-17-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221207055405.30940-1-hayashi.kunihiko@socionext.com> References: <20221207055405.30940-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT binding schema for components belonging to the platform-specific AHCI glue layer implemented in UniPhier SoCs. This AHCI glue layer works as a sideband logic for the host controller, including core reset, PHYs, and some signals to the controller. Signed-off-by: Kunihiko Hayashi --- .../socionext,uniphier-ahci-glue.yaml | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-ahci-glue.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-ahci-glue.yaml b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-ahci-glue.yaml new file mode 100644 index 000000000000..bf37be8a778d --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-ahci-glue.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-ahci-glue.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier SoC AHCI glue layer + +maintainers: + - Kunihiko Hayashi + +description: |+ + AHCI glue layer implemented on Socionext UniPhier SoCs is a sideband + logic handling signals to AHCI host controller inside AHCI component. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-pro4-ahci-glue + - socionext,uniphier-pxs2-ahci-glue + - socionext,uniphier-pxs3-ahci-glue + - const: simple-mfd + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + ranges: true + +patternProperties: + "^reset-controller@[0-9a-f]+$": + $ref: /schemas/reset/socionext,uniphier-glue-reset.yaml# + + "phy@[0-9a-f]+$": + $ref: /schemas/phy/socionext,uniphier-ahci-phy.yaml# + +required: + - compatible + - reg + +additionalProperties: + type: object + +examples: + - | + sata-controller@65700000 { + compatible = "socionext,uniphier-pxs3-ahci-glue", "simple-mfd"; + reg = <0x65b00000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x65700000 0x100>; + + reset-controller@0 { + compatible = "socionext,uniphier-pxs3-ahci-reset"; + reg = <0x0 0x4>; + clock-names = "link"; + clocks = <&sys_clk 28>; + reset-names = "link"; + resets = <&sys_rst 28>; + #reset-cells = <1>; + }; + + phy@10 { + compatible = "socionext,uniphier-pxs3-ahci-phy"; + reg = <0x10 0x10>; + clock-names = "link", "phy"; + clocks = <&sys_clk 28>, <&sys_clk 30>; + reset-names = "link", "phy"; + resets = <&sys_rst 28>, <&sys_rst 30>; + #phy-cells = <0>; + }; + }; -- 2.25.1