Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp969123iob; Thu, 12 May 2022 08:25:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJOTPcVeWIseIzBB4fyvFlgCAvThJSgP5Eiv2F+MzLpl4BUbqIWeaST0kodrn5ezOft6Hs X-Received: by 2002:a05:6a00:a8b:b0:4e1:52db:9e5c with SMTP id b11-20020a056a000a8b00b004e152db9e5cmr116393pfl.38.1652369130749; Thu, 12 May 2022 08:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652369130; cv=none; d=google.com; s=arc-20160816; b=j6O88tk8JvRM1as+h/jZ1iF1Y1zfYRdkc/vqMlWa7mBxTDo0dCz3NeJmqNw5qjLlCs rhzdnJIP7G81yyscOvLI/4ocps937LLv10uF8dfi0lrFYKYvfJTK00Mcvza5KQfPUF+Z TbBWCaUfpCMtvHtjs76Mio5GinxAxtECnDlS90NoucPJSrIiul/cbJNZ/tmCsIq+oan0 m8wG5o2i8P0FFT0yXRfTK1SOjqXJSiJdptyDlw2oansltCTnR+TZPU2Fl973arogO9O5 KLbgdaYZALsEgTHSoWAOAKH3ncFVVSnbCFCHZwtWmIvP1tyzCll1OtPzh/sSdMWNDAN4 FQIQ== 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=Tp7JizJiwv3qj/uwnJATD46+Utw0USu+X23L16/Kc0o=; b=TADideT6sGDB7K8W8tL8mqIVMIB3aAJ7h13YUUljeuLvtiC1uhbrRjGQ62bI6DT9l3 XBRw6ABiYiJeb/gvP/s0TBzT9lFOMbRXjqNSMxwOXkmX3rhIl9TEJHGj94Y/7Ysc86Qf HdPR97AQWdxiZ5MCbAIpx9JhTyo2R+c/J9ztLH+FasO6NrdLChf4h/7IB+ybYaaoKGtf j1XSTOmYNEltJTu8iAf/sg21wBPuebOFCKRfC0hXKJRARvea0fqSvol5ZkXNm+7Ko3DU dqFsTbYRuXnT2RnMk8O52QCcaGGzaxJaw2Kkr27YfAyMAWorPfSUUWOwF6P45JiMrhrv C04Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b=eTPFdokd; 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 u4-20020a170902e80400b0015d53c6c340si8621plg.473.2022.05.12.08.25.16; Thu, 12 May 2022 08:25:30 -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=eTPFdokd; 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 S1349139AbiEKXSj (ORCPT + 99 others); Wed, 11 May 2022 19:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349072AbiEKXSa (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 C2EEA16D4A2; 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 59D5CBAD; Thu, 12 May 2022 02:19:04 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.baikalelectronics.ru 59D5CBAD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baikalelectronics.ru; s=mail; t=1652311144; bh=Tp7JizJiwv3qj/uwnJATD46+Utw0USu+X23L16/Kc0o=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=eTPFdokdoTEFCCZ6+DoyVvBITfqgvqhA1IJdJddH+3GZo3t2uNoyDUFh41krkLZMV ZQYlN19u++Uia7sEdBMtmLKCi0eFJYUNkEw/Y4t00Pg83rBIecGk5q9oCSwAVzWWNM 1PSKDBrpANx+qyYiKYKRvYL1al0UMLBVe/hRIORc= 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:16 +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 v3 03/23] dt-bindings: ata: ahci-platform: Clarify common AHCI props constraints Date: Thu, 12 May 2022 02:17:50 +0300 Message-ID: <20220511231810.4928-4-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 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 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 -- 2.35.1