Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1018266iob; Fri, 13 May 2022 19:49:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvCKq+2Yzcylh3CH2fRa+wOVqgwiNSwdb5/CTp0ub4VfpQeIxKQMI1tGS5C7wFOy6Cg5Jd X-Received: by 2002:a05:6000:1569:b0:20c:4ed4:4ba8 with SMTP id 9-20020a056000156900b0020c4ed44ba8mr5972155wrz.270.1652496578801; Fri, 13 May 2022 19:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652496578; cv=none; d=google.com; s=arc-20160816; b=ZELTCc02HHozbxODpHAC45EfAJKn3yzOjIYugLUmwrt9jLGtdnk4NBxL9rPP4DwUiW OMadL4InHyt91+wwGrR8ZRTs/J/YQfhU41NBES/GCQNi/aMXNgBF+q+fRsqOH2uHkRjR vom4ihJysFnxYOYScgmy6uMHB3bZaYybXiWEvr0cjF/yJwJhf8IlZmJea5vXIZYNaxUq QbGO80ft5eNaKdOa0/XU6EdhFm6t3OTFQDrjG/igL+xWYcEgIGn+aJjk+3GvwieSAXK5 DE7LRSKysSkRM/OWyUo2GPwWI68d/vwaJjEnj4gjSHyRIpEmmgVJ722czP5DwuHjmi4G f1+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=VZCkAVlqK4be51Iao9TAxRWn1tf1liEtuTyxdtziUME=; b=MvTHZAJenrAjrLxKS4wpnPcBjTilmd63ei69RXWwa+4934b8PJkyiXTvexTK/MRTgd 4guxpMn5WrRkqztR8CkbQeHIHUW4VgIyDehLrlnSrR05kSGA+xWYW4b8lVWKanD7h4iP zgT9IIBYGFfXq4b1y+6dXel4NyHvEWJAPbTJ4zbvkCU+mOtfNs7SIXSzE2BqG7i04TWV Zi4R3dwYuy3r16IWJkp9b8tDgkKALEdupkYt9+7eg7YowRtc3mGv6l8lTulLWZEVsNN4 hBLDx6RJpXScHkUgZVg80g10smSgXool6EbfiGRDAr95/Os/COPq3yfF46sqAJ24pKo5 F5ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=XVG6WYWp; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a15-20020a05600c348f00b00394437d1af0si6954706wmq.112.2022.05.13.19.49.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:49:38 -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=@suse.de header.s=susede2_rsa header.b=XVG6WYWp; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0655536EF54; Fri, 13 May 2022 16:36:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350255AbiELGVr (ORCPT + 99 others); Thu, 12 May 2022 02:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347424AbiELGVp (ORCPT ); Thu, 12 May 2022 02:21:45 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D0B63DA6F; Wed, 11 May 2022 23:21:44 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 1D2901F8F4; Thu, 12 May 2022 06:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1652336503; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VZCkAVlqK4be51Iao9TAxRWn1tf1liEtuTyxdtziUME=; b=XVG6WYWpgxTlc1QAjyFQKda84XQH/ddCehEX3+/2JdRWk2RMHw5R/LvoiiNfHc4nab89Xs kQ67oaHGn1tkUhdflhKqGWWrsmS1rMJETQ8XjYXKK0HqlXWC2SD5qzJYH8rMDFIA/EMOZl yDZ3pX4FtTJyby1LI/LQpV52fdwo6Ts= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1652336503; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VZCkAVlqK4be51Iao9TAxRWn1tf1liEtuTyxdtziUME=; b=qNpR4yLBd+2ipVw2OGK6OEjXYydiCTUrYps2c2J37BnzRoX93eYHSoUJXj4Qj1tNrNIlel y7d0feS5aOQV6GAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E430513ABE; Thu, 12 May 2022 06:21:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id CY8eNHanfGKETAAAMHmgww (envelope-from ); Thu, 12 May 2022 06:21:42 +0000 Message-ID: Date: Thu, 12 May 2022 08:21:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH v3 03/23] dt-bindings: ata: ahci-platform: Clarify common AHCI props constraints Content-Language: en-US To: Serge Semin , Damien Le Moal , Hans de Goede , Jens Axboe , Rob Herring , Krzysztof Kozlowski Cc: Serge Semin , Alexey Malahov , Pavel Parkhomenko , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20220511231810.4928-1-Sergey.Semin@baikalelectronics.ru> <20220511231810.4928-4-Sergey.Semin@baikalelectronics.ru> From: Hannes Reinecke In-Reply-To: <20220511231810.4928-4-Sergey.Semin@baikalelectronics.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 5/12/22 01:17, Serge Semin wrote: > Indeed in accordance with what is imeplemtned in the AHCI paltform driver Spelling; 'imeplemtned' and 'paltform' > 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 620042ca12e7..a7d1a8353de3 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 Other than that it looks okay. Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer