Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5663819pxb; Mon, 28 Mar 2022 15:42:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykzHH6Qm4qsHHK/tQrAYMZPviVV+rVtf4MZXJ8vCZ30JLPocgsZM/PnI4apqPa9OuAAXNC X-Received: by 2002:a54:439a:0:b0:2ef:9bf6:e702 with SMTP id u26-20020a54439a000000b002ef9bf6e702mr768938oiv.105.1648507324532; Mon, 28 Mar 2022 15:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648507324; cv=none; d=google.com; s=arc-20160816; b=E7NOT5XNJKePudfdrirH/oxPXkejuGI21RC2KdHt94YYFJ/PY5sYIUtwXZNs74T2d1 RB/fvyhdrGbhvinVu6acCmEu4mp8mQu9WnmlzzBQtLF0DefkiekWn/6cYHdCcHAFbPm/ CyT/Lix8GmLU3uXhRriiN46xPq5nPSFSE84UPG8eu4hznNC/KhDUCOnF9JboPfGRshFB CeDhCd7JSOav7qVfYSgWaE6uSCe208BCYNJd1Fxn6VR8YCUDRtAzWva60uO0Sk642gR6 gr7uheHSdhRBgYkyQcQ9SIJxxzA+CwDUkj5v/78s0Semslqsg7IAEv2TAEEzpbadSnKe ZEdw== 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=Ddarqz6yWl3CNiiSUFlRYWuLT76Gegs6a6rX6o/tQTU=; b=luW/B60H6eFFMZDO3GPyO+vi23EpFllFKLdgMSDRhe6Jb7NOXPl+TnMX4VqA4AYHpC lcQFAOVHJGHutsrjF7Sge2OWbgGQXvPfUjzbKSwMFFrbQfrW0huyclnScZ0d9ETwCRMt cwmHNYPXfs61B5rSkfx+lievEgdWkWHiA2MngK4oeWdPX/SfhKbkUlZQ2ZSHxne+PIZ4 DHnQczgNWHJVuT+9kae/QiYWLLxSB8ojC4im4XjILL9cZi443Ezt4LK0BHEl2/9nwu7n ZE0MFN03VBzfXcK5+5gE1BkITspYK0c/fvquBrCetVPGOxLRLICb8nNmGiTahR3H4wl+ 2Usw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b=DsGtPsZ0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x16-20020a056808145000b002ef80e53f70si14276210oiv.209.2022.03.28.15.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:42:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b=DsGtPsZ0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AAB3621796D; Mon, 28 Mar 2022 14:49:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239007AbiC1PsU (ORCPT + 99 others); Mon, 28 Mar 2022 11:48:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238726AbiC1Pp5 (ORCPT ); Mon, 28 Mar 2022 11:45:57 -0400 Received: from mail.baikalelectronics.ru (mail.baikalelectronics.com [87.245.175.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 803C04A3DA; Mon, 28 Mar 2022 08:44:14 -0700 (PDT) Received: from mail.baikalelectronics.ru (unknown [192.168.51.25]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 7701A1E28CC; Thu, 24 Mar 2022 03:16:31 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.baikalelectronics.ru 7701A1E28CC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baikalelectronics.ru; s=mail; t=1648080991; bh=Ddarqz6yWl3CNiiSUFlRYWuLT76Gegs6a6rX6o/tQTU=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=DsGtPsZ0PtgFswFzvF4WBp+8tnGceNwgCeD6PPfjilb3WZBbl0bRB/+7LxTz1WVqq wCKDnnpa+j0R/nZwxybfESVQtkwex5+JXRbFsDxe1KxAW3Dhgg6S862E/Y+JrnRPdO FRQi15xa/d+j0UALFNLpLYeuy8GN8cYvq8Ep+EJI= Received: from localhost (192.168.168.10) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 24 Mar 2022 03:16:31 +0300 From: Serge Semin To: Damien Le Moal , Hans de Goede , Jens Axboe , Rob Herring , Linus Walleij CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , , , Subject: [PATCH 01/21] dt-bindings: ata: sata: Extend number of SATA ports Date: Thu, 24 Mar 2022 03:16:08 +0300 Message-ID: <20220324001628.13028-2-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20220324001628.13028-1-Sergey.Semin@baikalelectronics.ru> References: <20220324001628.13028-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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --- 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..c619f0ae72fb 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 channel. additionalProperties: true -- 2.35.1