From patchwork Thu Apr 22 08:58:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 425851 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp164776jao; Thu, 22 Apr 2021 01:59:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqiepBWE5y8NSRB5KDrs/Ue0BBM4HQRib/i22yfDPX7DsAcrvDTOJWx3JyBCaAPHmNJBHC X-Received: by 2002:a62:6448:0:b029:265:4428:3128 with SMTP id y69-20020a6264480000b029026544283128mr2333191pfb.48.1619081985656; Thu, 22 Apr 2021 01:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619081985; cv=none; d=google.com; s=arc-20160816; b=CSuwl0kcV+5bnaQRzrP49uNyP3lNLbKBAdxgec9u/KRdswNZvgPObvM54lJuB4EgIQ ajP6YVIc7AgnSzM9SjesLdZKYQtKrfqBI/001aOjbVNg8it0gBEfMgOcdXzpPMcyZre0 ROmKmZ9vv2QYI1OrQlToSZPPNYWcV/IRhW+SRpdO1wBSaJ7TK8t7JAxrtfiepjz4cq1a WKY7nLH+AKTZ9EyNCCuT65gTYNc1PElZbyaCshgM/Is3vyiolv3OA45HhakKH5PjG+Sh KFJIYh08+imRLSxm3GU2YQJeM+cdfEboFKusgPNNkoLyNqEqeIq3twdjCC2AuJ6KnZGD k62A== 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=NS/zjbIYQecZ4CV/vctkCYyRCo6uf0ezJcQA1SVxDV4=; b=UEzqRroCgLau6HlCHi2cRziJVq3q/6g1BC1OK4v+XKTx2rKRqCtkEqckNDhQd5KROb oMP9XRl7ZwtftjxqWm4QzIin43bCSvnks9v2twXxrh1wgXMH46g6slKgUYHP3/v+/LI2 2Gsv1UfRV7UdeFBTJ9KEuwuNMqoxmbaAa2k7oOrm+ZFgAY0SWy+z+HeUP4gLctw3kgz5 E+vdu/JLXaggIYoOGEd8qsD/neQ+TPW1fUm+qv5OtAE6Jd9ZqoMN3fV/0vcBvRIl4nEk 46WdoR4hMJABX69zgN2RO586+HBgNFDlXNO709HrzLQpbvYUdHv82XOPpxvvLksqmi1Z Yxqw== 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 u76si2759333pgc.268.2021.04.22.01.59.45; Thu, 22 Apr 2021 01:59:45 -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 S235602AbhDVJAS (ORCPT + 6 others); Thu, 22 Apr 2021 05:00:18 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:17024 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235483AbhDVJAR (ORCPT ); Thu, 22 Apr 2021 05:00:17 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FQrrQ6GSGzPqVN; Thu, 22 Apr 2021 16:56:38 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Thu, 22 Apr 2021 16:59:30 +0800 From: Zhen Lei To: Rob Herring , Greg Kroah-Hartman , linux-serial , devicetree , linux-kernel CC: Zhen Lei Subject: [PATCH v2 1/3] dt-bindings: serial: Normalize the node name of the serial port Date: Thu, 22 Apr 2021 16:58:35 +0800 Message-ID: <20210422085837.513-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210422085837.513-1-thunder.leizhen@huawei.com> References: <20210422085837.513-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Only letters, digits, and commas that describe the base address of the serial port in hexadecimal format are allowed. Signed-off-by: Zhen Lei --- Documentation/devicetree/bindings/serial/serial.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.1 diff --git a/Documentation/devicetree/bindings/serial/serial.yaml b/Documentation/devicetree/bindings/serial/serial.yaml index 65e75d040521..71aec7fda07d 100644 --- a/Documentation/devicetree/bindings/serial/serial.yaml +++ b/Documentation/devicetree/bindings/serial/serial.yaml @@ -21,7 +21,7 @@ description: properties: $nodename: - pattern: "^serial(@.*)?$" + pattern: "^serial(@[0-9a-f,]+)?$" cts-gpios: maxItems: 1 From patchwork Thu Apr 22 08:58:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 425852 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp164786jao; Thu, 22 Apr 2021 01:59:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVcUy7dEfpVEELI50cJqe1sPBTcnT1WDUW5NOqSz+WHKYNWmCshGPvL6bYawwhIWo6AF7T X-Received: by 2002:a63:6c06:: with SMTP id h6mr2578135pgc.95.1619081986370; Thu, 22 Apr 2021 01:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619081986; cv=none; d=google.com; s=arc-20160816; b=SOZuQsFRfkQbdHhQxPpal/w+6lWn4srCQpJT39OHay8ib6lRcvyyR3LxYhH3vF1Ipt kCBt4vLOQds1lS5+06rjJbi0LHZFzm/xRsCrH8JVMCrHrHqwrMQJl11c8lwsTqp9tFfv AtSggFISLlVHcffBFEXYhevz1kkgy6KzfmcRPlUhFoVHEMxt5c5FFMz41ksHr65n36Q0 ktPQVGsKtAFAg0gvSc4nMuOFCwYb/chlJsXhTzbbfpUtcfFdkzidcxA7JKH9sKpDozKy RhO5HHGFhXSrXLAHx2TWFMp5Br3ft/YrJJYExbbBSW+D0BWj8m/lQ8nM9pDAVEmBzttm W8zQ== 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=uEwzZTsdz1UI0vP/mJ4Fui2JY0w+vxchzV3OMD7HwdY=; b=mXeijPauMaS06be0XJCgU0sR+9gbGvRUFm2cWml03HKPg4PXQC0VG65X6LKeEaVOAj AALh3qSJTJ3d6zJ1cUmxPSWOJKj+dZVxhdJJ2Hzgj0Dn+8bhw1i421MGKN6AfXcPzo0s E2GdpG8/ShV5oL1tySYWYraTwN/SWC1B9SKPuB4d6B+/JE8bFm7nG4UNL6itTrupH40L m7uyTQw0oNnwbh27TkRbnTbt8C0xx/5Fd0uJdGU67HDrSa/+uxU0lO2eEEL2HfzatfO+ vL5vSLfbykKlKa2ek4XdalKI0Wl44cr9XE5S5VTiwEUyr8UToAcep49BalowKbOjgvBN NLUA== 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 u76si2759333pgc.268.2021.04.22.01.59.46; Thu, 22 Apr 2021 01:59:46 -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 S235610AbhDVJAS (ORCPT + 6 others); Thu, 22 Apr 2021 05:00:18 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:16490 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235593AbhDVJAS (ORCPT ); Thu, 22 Apr 2021 05:00:18 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FQrs91fgszrgC9; Thu, 22 Apr 2021 16:57:17 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Thu, 22 Apr 2021 16:59:31 +0800 From: Zhen Lei To: Rob Herring , Greg Kroah-Hartman , linux-serial , devicetree , linux-kernel CC: Zhen Lei Subject: [PATCH v2 2/3] dt-bindings: serial: pl011: Change to reference the kernel-defined serial.yaml Date: Thu, 22 Apr 2021 16:58:36 +0800 Message-ID: <20210422085837.513-3-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210422085837.513-1-thunder.leizhen@huawei.com> References: <20210422085837.513-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The /schemas/serial.yaml from dt-schema only has the property $nodename, whereas the kernel-defined /schemas/serial/serial.yaml contains more useful properties, support for more complex application scenarios. For example: 1) The property "current-speed" in fsl-lx2160a.dtsi 2) The subnode "bluetooth" in hi3660-hikey960.dts Signed-off-by: Zhen Lei --- Documentation/devicetree/bindings/serial/pl011.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.21.1 diff --git a/Documentation/devicetree/bindings/serial/pl011.yaml b/Documentation/devicetree/bindings/serial/pl011.yaml index 1f8e9f2644b6..142187337c76 100644 --- a/Documentation/devicetree/bindings/serial/pl011.yaml +++ b/Documentation/devicetree/bindings/serial/pl011.yaml @@ -10,7 +10,7 @@ maintainers: - Rob Herring allOf: - - $ref: /schemas/serial.yaml# + - $ref: serial.yaml# # Need a custom select here or 'arm,primecell' will match on lots of nodes select: @@ -103,7 +103,7 @@ dependencies: poll-rate-ms: [ auto-poll ] poll-timeout-ms: [ auto-poll ] -additionalProperties: false +unevaluatedProperties: false examples: - | From patchwork Thu Apr 22 08:58:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 425948 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=unavailable 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 BC1CEC43462 for ; Thu, 22 Apr 2021 08:59:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 87798613B0 for ; Thu, 22 Apr 2021 08:59:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235601AbhDVJAR (ORCPT ); Thu, 22 Apr 2021 05:00:17 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:17025 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235469AbhDVJAR (ORCPT ); Thu, 22 Apr 2021 05:00:17 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FQrrQ6WFZzPrBl; Thu, 22 Apr 2021 16:56:38 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Thu, 22 Apr 2021 16:59:31 +0800 From: Zhen Lei To: Rob Herring , Greg Kroah-Hartman , linux-serial , devicetree , linux-kernel CC: Zhen Lei Subject: [PATCH v2 3/3] dt-bindings: serial: Add label property in serial.yaml Date: Thu, 22 Apr 2021 16:58:37 +0800 Message-ID: <20210422085837.513-4-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210422085837.513-1-thunder.leizhen@huawei.com> References: <20210422085837.513-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org When there is more than one serial port present, the property 'label' allows a custom name to be used for briefly describe the usage or position of each serial port. Without this "label" property, many dtbs_check warnings similar to the following are reported: arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dt.yaml: \ serial@ffd74000: Additional properties are not allowed ('label' was unexpected) From schema: Documentation/devicetree/bindings/serial/pl011.yaml Signed-off-by: Zhen Lei Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/serial/serial.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/serial.yaml b/Documentation/devicetree/bindings/serial/serial.yaml index 71aec7fda07d..04ec229cbb4f 100644 --- a/Documentation/devicetree/bindings/serial/serial.yaml +++ b/Documentation/devicetree/bindings/serial/serial.yaml @@ -23,6 +23,8 @@ properties: $nodename: pattern: "^serial(@[0-9a-f,]+)?$" + label: true + cts-gpios: maxItems: 1 description: