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: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 425850 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp164767jao; Thu, 22 Apr 2021 01:59:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDJ9YRm6VVk/cNqNe93DcKzYt25qkNblHK64ff5jPM9jExqA8Ep1EWABv0bcLGDUsyolbO X-Received: by 2002:a17:902:e9c4:b029:eb:4626:feba with SMTP id 4-20020a170902e9c4b02900eb4626febamr2733207plk.39.1619081984569; Thu, 22 Apr 2021 01:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619081984; cv=none; d=google.com; s=arc-20160816; b=u7XZbtRq3BKMKtdat72A6+9wj3B8csUC3ae+L8uYXnQBxd5BkjEA2WtbUfs/a6csRc Ckn1MNvRkseeYO/wSd4SvV1DD6u+dRifB6mCnt1Ba3pgbUV6/rC+dZIBUxSANgEFBM7x UIK+AngszDX0kT5xSiQOCAJdpeEWgTgKnrMNJXPPgfZQ8gWvmJDsV/iIJ+xo+I95UNmG WNk5Q03KllvRwE4zKa3ET8bM5NThLrGK+ov3jCXWsy+1AVq+nV0IF77SrWPYZi9frIbW RlxAb5XfF+SbmmNiy7gtkEJPfFn8Jd8qWgT7frMcqCcrl3Rzsg9C6FygRxiqmzEZHu2J tNiQ== 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=uY18Ho6Yaar039desW09BcvPZ0+Rsve0kXlP88AoOVA=; b=VV/nYQtjq/q76vWr2VH4gbWEfK9V95RWNdZyXtqh2DjOERC/5bJGYrFep33lY5unjf XgK0d+IYLJhdPdva0I364PKsEmas4b/fh55GAhQmCbkLV+spH//qwybW4SFQftgyPoxA FF1xYEg6JQF5aI2twiQZWQPK+oPkG4A2ShiYZNx1Kr+2pLd5bhzpNTh7XZxoW7y5sqFy a2hSd1XNAI7l9j1U4bGOmd2zrjJEWFTGpEw3fRM8rjHaNcPe2cJ3eWngHsiXudp6KDdi X4hpZov4JRpTPranI2Ow+C/zGNuaZuskx+Qv7ZKc+pzr7o3m1HL6vv5sAfDc2JddSqXX DHLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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.44; Thu, 22 Apr 2021 01:59:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-serial-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 linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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 S235599AbhDVJAR (ORCPT + 2 others); 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: linux-serial@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 --- Documentation/devicetree/bindings/serial/serial.yaml | 2 ++ 1 file changed, 2 insertions(+) -- 2.21.1 Reviewed-by: Rob Herring 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: