Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2383239rwn; Fri, 9 Sep 2022 12:50:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR7SqR8I7sGZM3Bb5h6VaZlm9adrSZPOnB30HdoIeWfbvTO+89eMdYHIbr3XBDEYbwD49a/i X-Received: by 2002:a05:6402:348f:b0:448:6005:68af with SMTP id v15-20020a056402348f00b00448600568afmr12734772edc.184.1662753022948; Fri, 09 Sep 2022 12:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662753022; cv=none; d=google.com; s=arc-20160816; b=YlVqqXZGcNJjoa8tKhzchbeda2LzETHF97t2je5xZg11DE3KAABw2UFwt8yhB3Bm6T ncgH8LEp8G1GPfIr8G2hDRr1t2YzM45x3LTog6Ue/sh77+/LCecnUtNo3W/ids3Tr7q3 LpKccsJ3q1eDBh6X2ltgtZQbKWC02QMjNh7RSbzmJxU3OtSWTM9t6uRema3S16hec09D YMAGtWVZkPzLo1g2wUIl6/KmNzEMi+h/hTy8hBGJgemcZrxTzyqtPHe93Kztkqvf3jwc ke+IPOxX5ATPfMs4YBjV0nHUv6LjOt/oGh0qUzrSxMsIyGErqAWbY5tqJMMeta9jtooh p/eA== 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=d2GPchrpvVOgjuEOQF2EanFTi3kLUr78uJWuPrwrf50=; b=C3QioPeP9TrdFNUv4KMcpQbdSGSZV1I1r7ZrxrI1Gak6Jx9MlL1gPnepw8egOCfNkn vAEQI2FaEwVAmWAiaIjJz9sIVUX5rKJwfQxUON8PjvNn2eMr/aXEbe9O+85Zm/CJSbvU 1ZBN8w5K5BQ25stjz0bHqrsA7h4/Kk0COMQ/0zFgX0TbbFXv1izPHz99otBs2QDglOBu 2AasAtEdfHqf5KN+yei5Am7y1RDy7gH8R2RPdrlv2sJ3GM88qkyEDoauSDocrkueII8U OlT4NRFC+cpbJZcHeEFnI7wlcXozL53UPmXjSGXiIyRzBRxuwmcj8wzhFJdfiddEQr7P YCGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b=pW1qm12n; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22-20020a056402441600b00447d6f244c6si1435338eda.248.2022.09.09.12.49.57; Fri, 09 Sep 2022 12:50:22 -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=pW1qm12n; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231617AbiIIThT (ORCPT + 99 others); Fri, 9 Sep 2022 15:37:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231243AbiIITgq (ORCPT ); Fri, 9 Sep 2022 15:36:46 -0400 Received: from mail.baikalelectronics.com (mail.baikalelectronics.com [87.245.175.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C0DA11213D; Fri, 9 Sep 2022 12:36:35 -0700 (PDT) Received: from mail (mail.baikal.int [192.168.51.25]) by mail.baikalelectronics.com (Postfix) with ESMTP id 9AF04DBD; Fri, 9 Sep 2022 22:40:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.baikalelectronics.com 9AF04DBD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baikalelectronics.ru; s=mail; t=1662752420; bh=d2GPchrpvVOgjuEOQF2EanFTi3kLUr78uJWuPrwrf50=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=pW1qm12n8TUUoawpbk1GHwTl7ZL6XeNLE+u6nnBBKX2P+ZZdeet8dv5w/59D7y3Gh do78eRjnqamBaheNS0BIm13HV5q4E9BEMmt02mLfLBGpnGGWL2gqiMAIQUCIN1EZ+v /JVaQOCa7r96dtDm4HpDcVK3rfej96wkBhILC2Dw= Received: from localhost (192.168.168.10) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 9 Sep 2022 22:36:32 +0300 From: Serge Semin To: Damien Le Moal , Hans de Goede , Jens Axboe , Hannes Reinecke , Rob Herring , Krzysztof Kozlowski , Linus Walleij CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , , , , Rob Herring Subject: [PATCH v8 04/23] dt-bindings: ata: sata: Extend number of SATA ports Date: Fri, 9 Sep 2022 22:36:02 +0300 Message-ID: <20220909193621.17380-5-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20220909193621.17380-1-Sergey.Semin@baikalelectronics.ru> References: <20220909193621.17380-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_PASS,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 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 Reviewed-by: Hannes Reinecke Reviewed-by: Rob Herring --- 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 5a31a902618d..58c9342b9925 100644 --- a/Documentation/devicetree/bindings/ata/sata-common.yaml +++ b/Documentation/devicetree/bindings/ata/sata-common.yaml @@ -49,10 +49,9 @@ $defs: 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. ... -- 2.37.2