From patchwork Tue Aug 17 17:47:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 498121 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp1330379jab; Tue, 17 Aug 2021 10:48:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA1DnKUG9z8oouVwYkyx3l6iupKFYo9ZjW4Xemo5KDVB6+XimBfogF2xD0gdpnS2Q9qVEd X-Received: by 2002:a5e:9610:: with SMTP id a16mr3683203ioq.57.1629222480346; Tue, 17 Aug 2021 10:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629222480; cv=none; d=google.com; s=arc-20160816; b=r1GDUap+aHR/CaL4UWVg7gmsACvHDiYrEjyoQLL19b4a0Y4wmi3DcRacYixj3nea62 3RdDdhPlmX/6uW2CdtmrUgu9nk8ywA3OtVJLbU7LWNoYk4tyNzoOC/Xveommw3FaaVgp 14JKs0gp54LwXp0OVezGX+sdQ5u/YLtN31DKATtqTskLIhBUqRxORgLRQuPA8yyp3DZL HFn7AdtBIzHv1HuHS9ZVheRoCrPDhN1+S3v3O0koN6m+Xi7bCiKg5qwFj8KFpSWefL1x 4ag8VsT/dcH8thYuizgw1FNzRHW5aopbvOzp+lSvUp/yOPEchbP7olTm66ic3qeg7bkr 9JvA== 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 :message-id:date:subject:cc:to:from; bh=4YfAdp6URMwEzxS/XiQNwuq815IjwGiZo7iZNdeIi3M=; b=hLNeaE3U1Sp6YF5BxsIWIsFcK90Z7Jm4vbFJDI0+Ik/+y1ynVHtSUepU/DefF/uaDU /qxA9GIJYkglzgObqqvIIg/G+pqWNNHVKXqYq3sqGE/um/lPIXpYEB+VT2DHyqJ+zNJy cpwDRy7Iw4fA5c5iSGOZ5khL99w+tJh6P9P1t+yQ6TW5PLhI8LLeAXiyY05M/MZl3VlJ +6xy4AqX6D+Uq7NKpkrkEEEjUe4YGHjM6sRfOX59L8XZBXN31P3Y+y+InkEucj/2Kr+B 71kzc0LWuAbTeDryX/nfEYK4grYDRjtE0gA0rv7CJtszzoocBGghP1j9miPmKPI/JtCn hToA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si3059696jat.76.2021.08.17.10.47.59; Tue, 17 Aug 2021 10:48:00 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229969AbhHQRsb (ORCPT + 7 others); Tue, 17 Aug 2021 13:48:31 -0400 Received: from mail-ot1-f49.google.com ([209.85.210.49]:37550 "EHLO mail-ot1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230311AbhHQRsa (ORCPT ); Tue, 17 Aug 2021 13:48:30 -0400 Received: by mail-ot1-f49.google.com with SMTP id n1-20020a9d1e810000b0290514da4485e4so23072442otn.4; Tue, 17 Aug 2021 10:47:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4YfAdp6URMwEzxS/XiQNwuq815IjwGiZo7iZNdeIi3M=; b=mC2p42Mz28+W1wCeWv52b7w/zfpSbTTmp21UFXlJ6SbR1cKvpAJFIW+fi20Dz8lbvO Eqh2bpnh6SG5+ov7qENz5AhbMqgpxmAYPE6g8oK7U4q5ewgrhR/XsrGt8KVfwz4CRlXt ZYY/tGJA3Dfrm7F0WzdprwuKQ1y6pxHktCoVfBgxzDF0Cf4I7xafI305pj41h1H3Kspy 9qZ2C7JGBwZUnRI3cSnYD5MBKgzzLO6+tGGLOoE4aESUMtyKZBiV1xJuzN4moo7OCQSy Cr2qUkUXVEQrPa3WSSd4qXUOKAQVufLeMJsiOP2om/P01ErqqcTX0WFKhn+kBplZEM6G ytzg== X-Gm-Message-State: AOAM532N0EfOAc9+rZ1VwA8zRdqWbeZd5K4WVBAd8QTYEjw+7BTeZUNB h7TjupkY8vaYAd1iqudW9XI/fFcCaw== X-Received: by 2002:a9d:4785:: with SMTP id b5mr3566539otf.188.1629222476823; Tue, 17 Aug 2021 10:47:56 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id o24sm617304oie.17.2021.08.17.10.47.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 10:47:56 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Sagar Kadam , Yash Shah , linux-riscv@lists.infradead.org Subject: [PATCH] dt-bindings: sifive-l2-cache: Fix 'select' matching Date: Tue, 17 Aug 2021 12:47:55 -0500 Message-Id: <20210817174755.541735-1-robh@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org When the schema fixups are applied to 'select' the result is a single entry is required for a match, but that will never match as there should be 2 entries. Also, a 'select' schema should have the widest possible match, so use 'contains' which matches the compatible string(s) in any position and not just the first position. Fixes: 993dcfac64eb ("dt-bindings: riscv: sifive-l2-cache: convert bindings to json-schema") Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Albert Ou Cc: Sagar Kadam Cc: Yash Shah Cc: linux-riscv@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree/bindings/riscv/sifive-l2-cache.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.30.2 diff --git a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml index 1d38ff76d18f..2b1f91603897 100644 --- a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml +++ b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml @@ -24,10 +24,10 @@ allOf: select: properties: compatible: - items: - - enum: - - sifive,fu540-c000-ccache - - sifive,fu740-c000-ccache + contains: + enum: + - sifive,fu540-c000-ccache + - sifive,fu740-c000-ccache required: - compatible