Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88C36C05027 for ; Mon, 20 Feb 2023 11:48:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231887AbjBTLsg (ORCPT ); Mon, 20 Feb 2023 06:48:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231830AbjBTLs3 (ORCPT ); Mon, 20 Feb 2023 06:48:29 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6689710C1 for ; Mon, 20 Feb 2023 03:48:28 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id x10so2754417edd.13 for ; Mon, 20 Feb 2023 03:48:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=onVDiy96v825/uJ1iMb7Bbjnmgpcg/nz9khxi7KW7is=; b=AuhcG2m5ZIgATkxaASn3sSsvo2bCz5hOnqDW7kbirbXW5fYyLsc8LFQxq6nHRErYv3 Klf5aMfFFADf/m058vg9KxNT+Vnuki4Wo7sqquWrRVXaeK2l1BeYK0QzP+lXDntMNR23 H29rNTIgI0WwP4i4zvGWMuTns2slSKRIffU5jU8kHXqYbrvPy64le8909HN8tOkfEOkS SvXkWVg6HoVrwpiPt/6eRM9GAzydz1ijwrqGHEW389/2C+Pnf9fJh63ui5Ra5bCADJaU VInnzxJfAzaX1UvsDEsX93ZuTJBnP/8/qV68/VtKGlHaRgxMEsLVdCnmlP4Rj2CSwej8 s5hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=onVDiy96v825/uJ1iMb7Bbjnmgpcg/nz9khxi7KW7is=; b=ErMXaliX1C/TJRav6EA36Uan7AWxsiGRwtKTBsphJOTMqK0qUHtOE+ZYgIwDvY0MOI FHvj8avqVg0uf3qqFSHNvLIR0vEPTOJtaN7iiKIAn137OhHE7F4KAo1m3js1MJ4B9Ik3 50leaEO5W7lRd0s/z+sei1fpsLHczV90h/pfb+iehdxCtqMGSZKZ/Pkqds2S0SR0HDDP 2HypbdTQvd4xW49FIUH4GxB2R7IZAsp0N3a9A7/Ubglle1UZNs3YX8h8XOtiQJ4XuZxr 9hUjMSkIl52FkCObNB4snmNwYdC3Kq7ioGZyd8tl72/yhpIETm5B8yHA6d2kX3HkTTE4 PaHg== X-Gm-Message-State: AO0yUKX2E3T/UpL4XKZP0nQyzO+lBWLoww0Et7d6CJ2uvkWHNT2jw5J/ OU0na6oa3lpvP6Ec0dyfpViN2g== X-Google-Smtp-Source: AK7set+4sJwBOTSX5AqToqDhUHako8Ac7flMPeiZuxUAxQtDd7OpNAwGlthKCHsfHtRSxnTh1nuu7Q== X-Received: by 2002:a05:6402:5156:b0:4ad:7205:8427 with SMTP id n22-20020a056402515600b004ad72058427mr1160950edd.27.1676893706949; Mon, 20 Feb 2023 03:48:26 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id v11-20020a50c40b000000b004acaa4d51bdsm963808edf.32.2023.02.20.03.48.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Feb 2023 03:48:26 -0800 (PST) Message-ID: <8a4042fd-02a3-261e-4126-7a3090850fda@linaro.org> Date: Mon, 20 Feb 2023 12:48:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v3] dt-bindings: ata: Add UniPhier controller binding Content-Language: en-US To: Kunihiko Hayashi , Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Hans de Goede , Jens Axboe Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230220054711.4584-1-hayashi.kunihiko@socionext.com> From: Krzysztof Kozlowski In-Reply-To: <20230220054711.4584-1-hayashi.kunihiko@socionext.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/02/2023 06:47, Kunihiko Hayashi wrote: > Add UniPhier SATA controller compatible string to the platform binding. > This controller needs two or three reset controls. > > Signed-off-by: Kunihiko Hayashi > --- > .../bindings/ata/ahci-platform.yaml | 32 ++++++++++++++++--- > 1 file changed, 27 insertions(+), 5 deletions(-) > > Changes since v2: > - Add compatible strings to select property > - Add minItems and change maxItems for resets > - Move condition schema under allOf property > - Change resets to "required" for uniphier-*-ahci > > Changes since v1: > - Restrict resets property changes with compatible strings > - Fix maxItems from two to three > > diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.yaml b/Documentation/devicetree/bindings/ata/ahci-platform.yaml > index 7dc2a2e8f598..4b2ee68097b8 100644 > --- a/Documentation/devicetree/bindings/ata/ahci-platform.yaml > +++ b/Documentation/devicetree/bindings/ata/ahci-platform.yaml > @@ -30,12 +30,12 @@ select: > - marvell,armada-3700-ahci > - marvell,armada-8k-ahci > - marvell,berlin2q-ahci > + - socionext,uniphier-pro4-ahci > + - socionext,uniphier-pxs2-ahci > + - socionext,uniphier-pxs3-ahci > required: > - compatible > > -allOf: > - - $ref: "ahci-common.yaml#" > - > properties: > compatible: > oneOf: > @@ -45,6 +45,9 @@ properties: > - marvell,armada-8k-ahci > - marvell,berlin2-ahci > - marvell,berlin2q-ahci > + - socionext,uniphier-pro4-ahci > + - socionext,uniphier-pxs2-ahci > + - socionext,uniphier-pxs3-ahci > - const: generic-ahci > - enum: > - cavium,octeon-7130-ahci > @@ -67,14 +70,33 @@ properties: > minItems: 1 > maxItems: 3 > > + resets: > + minItems: 1 > + maxItems: 3 > + > interrupts: > maxItems: 1 > > power-domains: > maxItems: 1 > > - resets: > - maxItems: 1 Why moving it? > +allOf: This goes to the same place as in example-schema. > + - $ref: ahci-common.yaml# > + - if: > + properties: > + compatible: > + contains: > + enum: > + - socionext,uniphier-pro4-ahci > + - socionext,uniphier-pxs2-ahci > + - socionext,uniphier-pxs3-ahci > + then: > + properties: > + resets: > + minItems: 2 > + maxItems: 3 You need to describe the items, what's expected here. > + required: > + - resets The entire point was to add: else - maxItems: 1 > > patternProperties: > "^sata-port@[0-9a-f]+$": Best regards, Krzysztof