From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE6F0C433DF for ; Wed, 10 Jun 2020 19:46:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 822692070B for ; Wed, 10 Jun 2020 19:46:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DyQIQZIA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 822692070B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=4Ca+uPdkqY00MmB2lidTMJIwwLMIIYSWWz6k2x2m6Ko=; b=DyQIQZIAMjtLe2 f63XoRbNoHm5dt2nTOmKlISKsCrA5+5ydHothXdY+oOgCNNlOivAKSsepxG55hpAe7nju60VsOztI uk1hBr7PSldw4HA5qNXfaS5/j0SPJ+nkdHKwWl5XGM1nwdJkZt29LQCOM207a+sov7s7vAf9U5DAV triBkqZL5mUGI+Mm6Iw4GMtwHPrrX6t84n1beaqvTGzvy/RllssI80zq3Amy/zqhJpfwJAlT6k6CR 0ycviBfPoZS8EDzz2dVYk9NI1GohPDW7yHkJOWDJ3VOGjatC7aZ7PYNcH++1dosbOpqLoD0vG0ScN naSfqcb9eL1j845ddAtw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj6g9-0004Vw-Tj; Wed, 10 Jun 2020 19:46:29 +0000 Received: from mail-io1-f66.google.com ([209.85.166.66]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj6g7-0004VZ-L7 for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 19:46:28 +0000 Received: by mail-io1-f66.google.com with SMTP id p20so3648591iop.11 for ; Wed, 10 Jun 2020 12:46:27 -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=9mGfZeBBTKc+FrE4dVawruNqiY96bl764hS1tXehIIE=; b=GdIlUvMXgw+fk0DXlhVl6EucFJaHI0PRJWYtZ3kKo53tBSdwVrLSI+BqmWcR+byzph IzBcTCRHk6294SCuHYyp3jJzp/2zYy/lqJoEQm56Qk2PbxfmSK2zHXW7QdDRC5ugxLyc JNwQL5J1OG1i4PJfi2X+7z6tKviVjDb+weOswB6sY0Lc7SmsS6FWIhhpfu2V3KVOmnoA 7UJ+d02FNJyOBreU0qEsLHByCvotEtlx9IoRHEfK++52Z0QF2HauvtF+xpuhcwR+PkWt SFuDXo/4iIVI4G6Nu55WZhf8c9Uv6xwMGWw4bcMmRJ4qE4JsST6Ivd4a6lzsWAOI9wIy Ut2Q== X-Gm-Message-State: AOAM532x4jzIsONL7c9GmdyLZokKOdGPJTu2S9HaWp+U0qYtFcvTCCKk RcMR5FWrNnNrW8V+NQNtVQ== X-Google-Smtp-Source: ABdhPJyTfZ7stvJ1zJp4PDYd4mXFlNbonBQ7OxS6Ub6k8MoKgsezkrMt64D7x1mMgr57NVmsKtVrYA== X-Received: by 2002:a02:2c6:: with SMTP id 189mr4797468jau.115.1591818386360; Wed, 10 Jun 2020 12:46:26 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.251]) by smtp.googlemail.com with ESMTPSA id a6sm385535ilh.60.2020.06.10.12.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 12:46:25 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Subject: [PATCH] dt-bindings: mfd: Ensure 'syscon' has a more specific compatible Date: Wed, 10 Jun 2020 13:46:25 -0600 Message-Id: <20200610194625.3597460-1-robh@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200610_124627_688562_787D91C3 X-CRM114-Status: UNSURE ( 8.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lee Jones , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Maxime Ripard Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Using 'syscon' alone should be avoided as compatible strings should be specific enough to identify the exact set of registers contained. Update the schema to ensure at least 2 compatible strings are present. Cc: Lee Jones Cc: Maxime Ripard Signed-off-by: Rob Herring --- FYI, there's 43 cases of this on arm32 in my testing. Documentation/devicetree/bindings/mfd/syscon.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml index 19bdaf781853..af7a68051392 100644 --- a/Documentation/devicetree/bindings/mfd/syscon.yaml +++ b/Documentation/devicetree/bindings/mfd/syscon.yaml @@ -43,7 +43,8 @@ properties: - contains: const: syscon - additionalItems: true + minItems: 2 + maxItems: 4 # Should be enough reg: maxItems: 1 -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel