From patchwork Fri May 19 16:09:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 1783871 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4QNBd73Vmnz20dy for ; Sat, 20 May 2023 02:10:03 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229870AbjESQJ7 (ORCPT ); Fri, 19 May 2023 12:09:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbjESQJu (ORCPT ); Fri, 19 May 2023 12:09:50 -0400 Received: from mail11.truemail.it (mail11.truemail.it [IPv6:2001:4b7e:0:8::81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85418C2; Fri, 19 May 2023 09:09:49 -0700 (PDT) Received: from francesco-nb.int.toradex.com (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 867BE213CD; Fri, 19 May 2023 18:09:47 +0200 (CEST) Date: Fri, 19 May 2023 18:09:43 +0200 From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vignesh Raghavendra Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Lukas Wunner Subject: DT checker RS485 unevaluated property, 8250 OMAP UART Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hello, while writing a new DT file I stumbled across this warning .../arch/arm64/boot/dts/ti/k3-am625-verdin-wifi-dev.dtb: serial@2810000: Unevaluated properties are not allowed ('rs485-rts-active-high' was unexpected) From schema: .../Documentation/devicetree/bindings/serial/8250_omap.yaml The property is currently used in the OMAP serial driver drivers/tty/serial/omap-serial.c 1511: if (of_property_read_bool(np, "rs485-rts-active-high")) { and a few DT files. I do require it, despite being wrong, because of some legacy reasons [1]. Before commit 767d3467eb60 ("dt-bindings: serial: 8250_omap: drop rs485 properties") this property was allowed. What should I do? - ignore the warning - send a patch to reintroduce `rs485-rts-active-high: true` in 8250_omap.yaml - something else? I would be inclined to send the following patch, do you agree? [1] https://lore.kernel.org/all/ZBItlBhzo+YETcJO@francesco-nb.int.toradex.com/ Francesco diff --git a/Documentation/devicetree/bindings/serial/8250_omap.yaml b/Documentation/devicetree/bindings/serial/8250_omap.yaml index eb3488d8f9ee..e634e98aa994 100644 --- a/Documentation/devicetree/bindings/serial/8250_omap.yaml +++ b/Documentation/devicetree/bindings/serial/8250_omap.yaml @@ -70,6 +70,7 @@ properties: dsr-gpios: true rng-gpios: true dcd-gpios: true + rs485-rts-active-low: true rts-gpio: true power-domains: true clock-frequency: true