From patchwork Thu May 20 11:54:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 443236 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp2217986jac; Thu, 20 May 2021 04:56:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK8flBZ/t3ULfvAVl3uc3LYJUZpFXxRBFohPOeOOmse8/1IGQ0RRbqP1wAywPhqyJJ67F2 X-Received: by 2002:a17:906:cb94:: with SMTP id mf20mr4173549ejb.545.1621511794077; Thu, 20 May 2021 04:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621511794; cv=none; d=google.com; s=arc-20160816; b=frywfnPvkM1KJ2tGrlCntEjW12wtedTc5jbweCmuKrZVOW5PFJIhRfJxc/d/XLFICi NG3HKOkXOTaoIIlT3X6AU4dhsYWC2QlJCguIYJV5RewcjfcYSNQEG7+Q2hpUZ9RqP01o 0FhXu0AQi2mhhtB6bcII5KSl4c38YuHUU8Ok29V/3jpK7ASkrsnEHYBzN1eBqCwQ/04s DGTtYtFiPcT5hnRzvmeQ0t7jgUXyJpaLBZKZblB4Z1tix8Xw2MICYoJ+CyqFIc5j3J9f 58Tzfc4zRgREpS9EoNwlyWe5vmcmof0utdaINA5DHZPeUkof8WJSq2KHzbmYjBHfFa5W /1cA== 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; bh=8inzMTJKved3kpiTC5hZDCJ0S1WymJM+OYBaNNGH1OQ=; b=tteKOONe0CWFNIASoD4w1h1p6EiYraMr7CZxRSmlHqRA6UafeBgYEOrmMejt4egoZW MqUPIqfCM+Zw2A4vVzPrdgsEUjs5BX7F4NQ6mSv0qyV3c9vrThnuA1aiUtxQpDPwNyMq mAlOh7lbOmcaq/AZOe4SV1Pg3orVOCvN77Fozc2BKw22lpI8pRNKRYtHWHmfA8cKAooK Uc7plymWS9n9JOA6bqECkmMYhgNfbvaH/hI0zBk8rmiHu/fVYHWh3HQFJRXD4IvQjNkr NEVq9Lw7xy0GFJ9cFFhgCgU6yLNC0kOGhL4jL93s/iKH4sIzBu1a2wYwc5imRtjpzNzh 5YDg== 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si2953833ejj.645.2021.05.20.04.56.33; Thu, 20 May 2021 04:56:34 -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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242823AbhETL5w (ORCPT + 7 others); Thu, 20 May 2021 07:57:52 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:3626 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240888AbhETL4J (ORCPT ); Thu, 20 May 2021 07:56:09 -0400 Received: from dggems705-chm.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Fm7QQ29VgzmXjX; Thu, 20 May 2021 19:52:30 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggems705-chm.china.huawei.com (10.3.19.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 20 May 2021 19:54:44 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 20 May 2021 19:54:44 +0800 From: Zhen Lei To: Greg Kroah-Hartman , Rob Herring , Arnd Bergmann , linux-serial , devicetree CC: Zhen Lei Subject: [PATCH 1/2] dt-bindings: serial: pl011: Delete an incorrect compatible string Date: Thu, 20 May 2021 19:54:39 +0800 Message-ID: <20210520115440.8259-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210520115440.8259-1-thunder.leizhen@huawei.com> References: <20210520115440.8259-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The compatible strings "zte,zx296702-uart" and "arm,primecell" are a combination, but commit 89d4f98ae90d ("ARM: remove zte zx platform") removes only the former. It is incorrect to match driver pl011 based only on the remaining "arm,primecell". Delete it. Signed-off-by: Zhen Lei --- Documentation/devicetree/bindings/serial/pl011.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) -- 2.21.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/serial/pl011.yaml b/Documentation/devicetree/bindings/serial/pl011.yaml index 142187337c76..5ea00f8a283d 100644 --- a/Documentation/devicetree/bindings/serial/pl011.yaml +++ b/Documentation/devicetree/bindings/serial/pl011.yaml @@ -24,12 +24,9 @@ select: properties: compatible: - oneOf: - - items: - - const: arm,pl011 - - const: arm,primecell - - items: - - const: arm,primecell + items: + - const: arm,pl011 + - const: arm,primecell reg: maxItems: 1 From patchwork Thu May 20 11:54:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 443484 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=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, 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 23A66C43462 for ; Thu, 20 May 2021 11:56:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0C5A061006 for ; Thu, 20 May 2021 11:56:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242820AbhETL5w (ORCPT ); Thu, 20 May 2021 07:57:52 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4558 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240915AbhETL4I (ORCPT ); Thu, 20 May 2021 07:56:08 -0400 Received: from dggems706-chm.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Fm7Pp45bbzqTpd; Thu, 20 May 2021 19:51:58 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggems706-chm.china.huawei.com (10.3.19.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 20 May 2021 19:54:45 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 20 May 2021 19:54:44 +0800 From: Zhen Lei To: Greg Kroah-Hartman , Rob Herring , Arnd Bergmann , linux-serial , devicetree CC: Zhen Lei Subject: [PATCH 2/2] dt-bindings: serial: pl011: Avoid matching device tree nodes of variant pl011 drivers Date: Thu, 20 May 2021 19:54:40 +0800 Message-ID: <20210520115440.8259-3-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210520115440.8259-1-thunder.leizhen@huawei.com> References: <20210520115440.8259-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org There is a variant driver of pl011, which may have a compatible string written as: "arm,sbsa-uart", "arm,pl011". Because it contains "arm,pl011", so the corresponding device tree nodes are also checked by this YAML file. As a result, many flase warnings similar to the following are reported: arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-cx.dt.yaml: serial@21c0000: compatible:0: 'arm,pl011' was expected serial@21c0000: compatible:1: 'arm,primecell' was expected Change to only check the device tree nodes that are matched exactly. Signed-off-by: Zhen Lei --- Documentation/devicetree/bindings/serial/pl011.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/pl011.yaml b/Documentation/devicetree/bindings/serial/pl011.yaml index 5ea00f8a283d..3683e4567645 100644 --- a/Documentation/devicetree/bindings/serial/pl011.yaml +++ b/Documentation/devicetree/bindings/serial/pl011.yaml @@ -16,9 +16,9 @@ allOf: select: properties: compatible: - contains: - enum: - - arm,pl011 + items: + - const: arm,pl011 + - const: arm,primecell required: - compatible