From patchwork Mon Jan 23 15:13:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13112393 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B0B52C38142 for ; Mon, 23 Jan 2023 15:19:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iWNBndMyx/8E1W6P9Mf4oCZEiU4oQSSgy23sYQyctM8=; b=cL/YIGh9xbmcHp 9PP6Nx+mJe9/m7YiKiTCnB40GFb6bB55e+ngUVqlMBY4ZDElMwzUcPczIpT91oaP9RCbf47cd3nyk D4bwPDaOR6rWrkdvsakUQprhlvWDZJxfOgybNC2nLqf8y8Xiq9Ov4H51gSmS2J571hF2xqAMSsez4 9XkdO2Lh6Q9PGmsCGZZYfhUHEHhjNbtDKltJZnX3jfd44hWFDUxwRmJXTCfOfxGbAffnZENR+gHhz oxhxPxOCPmfVqUC54uP7Kxkq9a+wVAATvjukxlSJXwCrmdvCaAlXqY2WwH8URQ5mh7fyzvLLigB+F m2VJ8kpRmZUgS3orFsVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJybp-0008Yp-UZ; Mon, 23 Jan 2023 15:19:45 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJyW6-0005iS-8c for linux-amlogic@bombadil.infradead.org; Mon, 23 Jan 2023 15:13:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=PQrsbaoWMRqz/6zcr+gxlvsS+z2BwQ6sf3IkSGfrHIg=; b=a7mLNJGx4sU4eow0MSJ5+ho1P0 nj5Lj2p7sEWg9qoBi2hUNWnhQyAC6V1WB8Ni5TLgXzPs9griAgOjXH6fi3jNokAJgcKyy2irGnOM6 B+T+dMDKAdRd+tY9K88Al9Q0fXz1d+TcSADfT8Mymqrvzc2HUlYyligbm2pjd4o4tSbFUaHJ69pvy m6EnQPe+q1+R8/NV35xxJ87/HrWJlgylHD2rBmfHgYaVhObcmUrBAhu1/09A3wBUwqOh5K7w/3Oh5 Lxo2UHnn2YpFdAKSC2kQmCfO6d4B6CVoalYX+utvJEpZ0xyTs+VhuWFtY3eVSehR1jao9UnMIyuTI Yo10GnZQ==; Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by casper.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJyVz-004Jd2-F2 for linux-amlogic@lists.infradead.org; Mon, 23 Jan 2023 15:13:48 +0000 Received: by mail-wr1-x434.google.com with SMTP id e3so11097820wru.13 for ; Mon, 23 Jan 2023 07:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PQrsbaoWMRqz/6zcr+gxlvsS+z2BwQ6sf3IkSGfrHIg=; b=DrZkJqf8Lx/ikr2BhspNugPkwAK39BkOWz2sYI9KIsWgPfrmz3MxCIAlThf9eQMRoU 0jFC/YJ/sI0ZvwfIPyUKQOcYKAjNBgQZ903EVlEmHIJERffJSuQbWtWQOQplD4P6xzXT vjbQhlypnRB9rEdBr17ZgPxaIuIfR28dVJhRctEPx+xF8mt3sF7Xn9NHD/tFZthCCP3J N9cjFd21wGYV/rg0RlP7ggPd5GuxBxGv3h40ZGahorcp0z8jWPFrnpEgdSfOiixLtos9 M3vRGjxu6YizEJCkQmiusSvfeahaywTgfrHTZygFlKjEDsvmsqohvwqFgejQlMBcqr7Z 7qeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PQrsbaoWMRqz/6zcr+gxlvsS+z2BwQ6sf3IkSGfrHIg=; b=FaML8SjVt3DLUoVzJ5tCnvMgtg2WolUZ2/wrL4mAgU5xCoaDstXoLCLwz9CamxfYEX Y7zHBA5RMiZGxCRj9cIuQAAnICJfYYp3M8FMkNj4Okz5XN2KpTcjSJllraaHNQHXNwdI HTKDaod3CRdGajfcmtMhu1jMS2J+8UbDQhjjYY9zFz+dcDF+7twESJZr7gfXs/glTaQz cd90wgUm0PYSXcuyn45zTyEVNno5CLy6Vytqqt05rHlRsCVEvuslXdDrXIe9TKtDyH4X 3hhxURIXIqB9r6iWDxSIQk1Xgn34vBcyrjFVqV3CfWTRdju51MbZe8eMlVhVnL6vOCtw NvMQ== X-Gm-Message-State: AFqh2kpVC1xziGBeQj9sHoRZ2uL5Wex2ctA1lrT/MumajHNDnruuTzYX 5row/2t1lED9pqVWufItIEv+nw== X-Google-Smtp-Source: AMrXdXs32d96ovFaMtHszqx/rc2fx1h5rF19uqq0L+W7R44WRoQBW69g+WiSqNVd5szTAMO6f6ULYA== X-Received: by 2002:adf:f9ca:0:b0:2bf:9424:c163 with SMTP id w10-20020adff9ca000000b002bf9424c163mr9542845wrr.57.1674486815043; Mon, 23 Jan 2023 07:13:35 -0800 (PST) Received: from krzk-bin.. ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id n1-20020a5d67c1000000b002bc7f64efa3sm34737922wrw.29.2023.01.23.07.13.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 07:13:34 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Palmer Dabbelt , Paul Walmsley , Maxime Coquelin , Alexandre Torgue , Lubomir Rintel , - , Vignesh Raghavendra , Michal Simek , Chester Lin , Fugang Duan , Magnus Damm , Geert Uytterhoeven , Pragnesh Patel , Le Ray , Peter Korsgaard , Tomer Maimon , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Cc: Krzysztof Kozlowski Subject: [PATCH 11/13] dt-bindings: serial: restrict possible child node names Date: Mon, 23 Jan 2023 16:13:00 +0100 Message-Id: <20230123151302.368277-11-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230123151302.368277-1-krzysztof.kozlowski@linaro.org> References: <20230123151302.368277-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230123_151344_058381_4D5233FA X-CRM114-Status: GOOD ( 10.66 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The re-usable serial.yaml schema matches every property with ".*" pattern, thus any other schema referencing it will not report unknown (unevaluated) properties. This hides several wrong properties. It is a limitation of dtschema, thus provide a simple workaround: expect children to be only of few names matching upstream usage (Bluetooth, GNSS, GPS and MCU). Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/serial/serial.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/serial/serial.yaml b/Documentation/devicetree/bindings/serial/serial.yaml index 11e822bf09e2..21992e9a3c2b 100644 --- a/Documentation/devicetree/bindings/serial/serial.yaml +++ b/Documentation/devicetree/bindings/serial/serial.yaml @@ -96,7 +96,7 @@ then: rts-gpios: false patternProperties: - ".*": + "^bluetooth|gnss|gps|mcu$": if: type: object then: