From patchwork Wed Dec 7 05:54:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 30646 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2190wrr; Tue, 6 Dec 2022 21:58:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf6npTjwWmXRkFR6q2Ix6j/tf5cCDSS+uI2uoPqcyDQPHbOkpJ1A3hkmetkYl6Q14wxKkYyg X-Received: by 2002:a63:520b:0:b0:43c:6412:994f with SMTP id g11-20020a63520b000000b0043c6412994fmr61812740pgb.421.1670392697796; Tue, 06 Dec 2022 21:58:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670392697; cv=none; d=google.com; s=arc-20160816; b=x6SxgYlyYAccTdo/p++/xQMf9pVDaYkRYbIKX8aLbj/+dsacGk4DUutw3ETOVRfE0C EisedWMvebDjWSICKAeeli7E7TR3IPFuAuXY9c/xTGePR6kwAmymbXXnkX8ELAyqKsSV JuU7hEXKJLJ5Rptl4JQNMOA8AsjvbnbNbJJ8JjDNMdftfesmwp1weE0giACKkerfEz41 12NOZ2Gvyq4yMELEbRjiwNBvl6yt+47Koe3baIno1c8u6RMpT9KAlXfeiMdNNgI3aTvg jVE3Xw95yJHnnRKwUhPjrhqdD8J3Rzj+10y06Jb57XWW9M8wyRShElRxx0VGcH8rHiUO cYnA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a056a001a0600b00556c1c66b61si20213392pfv.143.2022.12.06.21.58.05; Tue, 06 Dec 2022 21:58:17 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751533693114177564?= X-GMAIL-MSGID: =?utf-8?q?1751533693114177564?= 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>; + }; + };