Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp568643iob; Wed, 11 May 2022 22:57:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpWwmL/e8j+FcSzNiTvbnwepYKm5utEbn7SR/2PcWH0VEncocyCXljfaeyUdHqV1S2O/Vu X-Received: by 2002:a17:902:ccc1:b0:15a:24df:a7cc with SMTP id z1-20020a170902ccc100b0015a24dfa7ccmr28949109ple.42.1652335032774; Wed, 11 May 2022 22:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652335032; cv=none; d=google.com; s=arc-20160816; b=pzWp3R6P2lgfQfjDc3N7wGAd8uSW5wb/xOxaDVWwiDpj+WW4oqdIFHf/QLlLQBntQJ dyoL/7Whm8Pi2HID1PPA7FQmpoYzMZdbkrV8rou71oUAupUmbInl3aptCixMLpJ0ACf9 cakvFCmhRuDwbH4Jmc1INUdTA0PiYJUDLi2A0FjQPdsfm6qaXjSKOBsjQz3J7JZ7sTtL NZzeHRMrS/fqKH7RWQUVjlmG67XnW4DDEaL1bsf/1Ej0lBQzLKPqtDGUKhEwS4WbNTHM NfbB4Dy9JlZ5loy5HEtzLdiPrDlWzUtPsLudjX5XfkZgKvyQ8+xL71VKjQ9TsHpWH7Fv vYgg== 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=ckfaK5irrS7Tron+bv7kr4WMcSYdpEv5KvtAmATvlro=; b=YVdmUWIxHMdBCA1k8tcWTG0VCzcdSgcSYS4kf58ojUshqwTsXyBKGOQcb9HFk982VI 5gGwfWC3xaF6ff+9tx0bq6Wfr35CwxLhBkp1qSb7BiuHh+GD/uClKWJ5HYBD/G9MPErV Bkm82DhVL/B9Kyyzz7YYZTTMdNFZsC5dU4bfw+kiQfhspn9ZOyumdDzviMvge+wqi2EL 5CVQAwnbxwT/qWWhjlQIepp2VnMmaTyOLOhZY5yAF+OeUbvvKSerGTbTL1ickM66OPRH Qi8QERIzNSQCGy5gHbpe6CEr4UPZbytUioSxn8nGcwuwoQbmC8qYDoCxz0Xl00kVvZa3 fR3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b=MnneyUcN; 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 k8-20020a170902c40800b001548c7c077fsi6154708plk.454.2022.05.11.22.57.00; Wed, 11 May 2022 22:57:12 -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=MnneyUcN; 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 S1349117AbiEKXSe (ORCPT + 99 others); Wed, 11 May 2022 19:18:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348900AbiEKXSa (ORCPT ); Wed, 11 May 2022 19:18:30 -0400 Received: from mail.baikalelectronics.ru (mail.baikalelectronics.com [87.245.175.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC18817334C; Wed, 11 May 2022 16:18:18 -0700 (PDT) Received: from mail.baikalelectronics.ru (unknown [192.168.51.25]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 57648BB4; Thu, 12 May 2022 02:19:05 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.baikalelectronics.ru 57648BB4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baikalelectronics.ru; s=mail; t=1652311145; bh=ckfaK5irrS7Tron+bv7kr4WMcSYdpEv5KvtAmATvlro=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=MnneyUcN2UNKynVPlCvSxFcNAiGO7bkZy1zl1OdjFk7lBl91lL9ty4sGcfNB2TX+5 SK0iEHSa7/PTAWUFg2e+7NyMOdIfBXi68sewfFb8JlwFYG1uA5xbocH0QbL2A87Yhr 6SLRspRXgknzwAyDMtOn3Jb5Txi6MBxSqrsgeInM= Received: from localhost (192.168.53.207) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 May 2022 02:18:17 +0300 From: Serge Semin To: Damien Le Moal , Hans de Goede , Jens Axboe , Rob Herring , Krzysztof Kozlowski , Linus Walleij CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , , , Subject: [PATCH v3 04/23] dt-bindings: ata: sata: Extend number of SATA ports Date: Thu, 12 May 2022 02:17:51 +0300 Message-ID: <20220511231810.4928-5-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20220511231810.4928-1-Sergey.Semin@baikalelectronics.ru> References: <20220511231810.4928-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,URIBL_BLOCKED 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 The denoted in the description upper limit only concerns the Port Multipliers, but not the actual SATA ports. It's an external device attached to a SATA port in order to access more than one SATA-drive. So when it's attached to a SATA port it just extends the port capability while the number of actual SATA ports stays the same. For instance on AHCI controllers the number of actual ports is determined by the CAP.NP field and the PI (Ports Implemented) register. AFAICS in general the maximum number of SATA ports depends on the particular controller implementation. Generic AHCI controller can't have more than 32 ports (since CAP.NP is of 5 bits wide and PI register is 32-bits size), while DWC AHCI SATA controller can't be configured with more than 8 ports activated. So let's discard the SATA ports reg-property restrictions and just make sure that it consists of a single reg-item. Signed-off-by: Serge Semin --- Changelog v2: - Add comma and replace "channel" with "SATA port" in the reg property description (@Damien). --- Documentation/devicetree/bindings/ata/sata-common.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/ata/sata-common.yaml b/Documentation/devicetree/bindings/ata/sata-common.yaml index 7ac77b1c5850..9c9c621761ca 100644 --- a/Documentation/devicetree/bindings/ata/sata-common.yaml +++ b/Documentation/devicetree/bindings/ata/sata-common.yaml @@ -41,11 +41,10 @@ patternProperties: properties: reg: minimum: 0 - maximum: 14 description: - The ID number of the drive port SATA can potentially use a port - multiplier making it possible to connect up to 15 disks to a single - SATA port. + The ID number of the SATA port. Aside with being directly used, + each port can have a Port Multiplier attached thus allowing to + access more than one drive by means of a single SATA port. additionalProperties: true -- 2.35.1