Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp269327iob; Tue, 3 May 2022 17:05:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJEHs11t+Emv6BNZopdh9BUYfnOKo+hc61jj7xSc+vv+EYmDN5EhS9lwEAf8cnIW2+YEpm X-Received: by 2002:a50:fa84:0:b0:426:4850:2fc6 with SMTP id w4-20020a50fa84000000b0042648502fc6mr20452869edr.38.1651622708851; Tue, 03 May 2022 17:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651622708; cv=none; d=google.com; s=arc-20160816; b=dG3Q7ycZM9LfXUdL2YLdMLQBt1tU4MLzCKXTPNCDDdTGXeYCogsPvS9xwYpbRb3rzI 9Hiz62tgi3k0k/A/6TCfjGUcpWzOwzQVz5Kqy6nfZ8kA4A1mdH80Fy9F/tJ6WYYkT6iO JNoYYGU1gmOtxfG/J1vH165xO0AjD+KM25en3JecZurrvo5NalTPn1JqhqTvueihtDbC p+Jza8ML6tm69RvyIeE81+ov5mJNeQTHvKsiI8JQkWQ7ey+xAs0N3COH+2mto7GgqLYP c/7z7gX1GaAo4xlSsLQ2VsnHYgbi9h/Og95YGCxGgsohj451PwdK4CrjQ+AUYAzYylSH jOgg== 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 :dkim-signature:dkim-filter; bh=zLhukAHC2GoB4OyffhzcxrjjCB9eEsqKuyWm1zWzpKo=; b=GEGB6NyE2op2jH6NJgx5yw5j/F/cE8ONBoNaXE8qrWgxzrlddQTDirk3rkrIcl6rGM 7PA2h4bQWV26f+A+rIOz5K8yAfqdIbBdmxMhOyCPC+ERK4FM06g9METFvCpiMxasQPcB 2mO5tZdqqHyUQ3orYnTMflJtsttW1j7DLQ5mF+63pkMfqx5qqIWqWGCfwhB8P3eZM0I6 5RINpaXcmekV73BRqJBpMZss4OtxJj+RUt+5dx71NlhYWJRNBbXeK2Xf/23HN+kKJ92v sFFqD3Ns34G3XR+JLcjqsL5QQaFVeywLzO88S6NJ8mNCw4sZ/w0Ovw9Q2yx3WC0dKB9p Onag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b=RUcU3XG8; 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 gt8-20020a170906f20800b006e81dd29c00si14913643ejb.569.2022.05.03.17.04.32; Tue, 03 May 2022 17:05:08 -0700 (PDT) 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; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b=RUcU3XG8; 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 S242420AbiECUOF (ORCPT + 99 others); Tue, 3 May 2022 16:14:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235353AbiECUNm (ORCPT ); Tue, 3 May 2022 16:13:42 -0400 Received: from mail.baikalelectronics.ru (mail.baikalelectronics.com [87.245.175.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2168140922; Tue, 3 May 2022 13:10:02 -0700 (PDT) Received: from mail.baikalelectronics.ru (unknown [192.168.51.25]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 9251816D7; Tue, 3 May 2022 23:10:35 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.baikalelectronics.ru 9251816D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baikalelectronics.ru; s=mail; t=1651608635; bh=zLhukAHC2GoB4OyffhzcxrjjCB9eEsqKuyWm1zWzpKo=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=RUcU3XG8AypmuaBysNk004Mw3w4uVIiAYvMsRaF5MmCEDuH73CJJs73aToP5Wem7i 4+n5mjyBjnjy8yn/ordeo/qSs+YKKOokMvITFOGaLncR8Ua1brUoBvKr+MvDe1Q/4T 2yQaGdIWcVRAC6acnjU+RtKlggr85DafPKKPx+NM= Received: from localhost (192.168.53.207) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 3 May 2022 23:10:01 +0300 From: Serge Semin To: Damien Le Moal , Hans de Goede , Jens Axboe , Rob Herring , Krzysztof Kozlowski CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , , , Subject: [PATCH v2 03/23] dt-bindings: ata: ahci-platform: Clarify common AHCI props constraints Date: Tue, 3 May 2022 23:09:18 +0300 Message-ID: <20220503200938.18027-4-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20220503200938.18027-1-Sergey.Semin@baikalelectronics.ru> References: <20220503200938.18027-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Indeed in accordance with what is imeplemtned in the AHCI paltform driver and the way the AHCI DT nodes are defined in the DT files we can add the next AHCI DT properties constraints: AHCI CSR ID is fixed to 'ahci', PHY name is fixed to 'sata-phy', AHCI controller can't have more than 32 ports by design. Signed-off-by: Serge Semin Changelog v2: - This is a new patch created after rebasing v1 onto the 5.18-rc3 kernel. --- .../devicetree/bindings/ata/ahci-common.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/ata/ahci-common.yaml b/Documentation/devicetree/bindings/ata/ahci-common.yaml index 72e24b246040..70f915748270 100644 --- a/Documentation/devicetree/bindings/ata/ahci-common.yaml +++ b/Documentation/devicetree/bindings/ata/ahci-common.yaml @@ -31,6 +31,8 @@ properties: reg-names: description: CSR space IDs + contains: + const: ahci interrupts: description: @@ -71,14 +73,13 @@ properties: maxItems: 1 phy-names: - maxItems: 1 + const: sata-phy ports-implemented: $ref: '/schemas/types.yaml#/definitions/uint32' description: Mask that indicates which ports the HBA supports. Useful if PI is not programmed by the BIOS, which is true for some embedded SoC's. - maximum: 0x1f patternProperties: "^sata-port@[0-9a-f]+$": @@ -89,8 +90,12 @@ patternProperties: properties: reg: - description: AHCI SATA port identifier - maxItems: 1 + description: + AHCI SATA port identifier. By design AHCI controller can't have + more than 32 ports due to the CAP.NP fields and PI register size + constraints. + minimum: 0 + maximum: 31 phys: description: Individual AHCI SATA port PHY @@ -98,7 +103,7 @@ patternProperties: phy-names: description: AHCI SATA port PHY ID - maxItems: 1 + const: sata-phy target-supply: description: Power regulator for SATA port target device -- 2.35.1