From patchwork Tue Nov 22 12:32:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 627642 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 313C5C433FE for ; Tue, 22 Nov 2022 12:32:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233759AbiKVMch (ORCPT ); Tue, 22 Nov 2022 07:32:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233764AbiKVMcc (ORCPT ); Tue, 22 Nov 2022 07:32:32 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5712462E3; Tue, 22 Nov 2022 04:32:31 -0800 (PST) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 1887D8061; Tue, 22 Nov 2022 12:22:14 +0000 (UTC) From: Tony Lindgren To: Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-pwm@vger.kernel.org, Thierry Reding , Krzysztof Kozlowski , =?utf-8?q?Uwe_Kleine-?= =?utf-8?q?K=C3=B6nig?= , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH v3 1/2] dt-bindings: pwm: Allow decimal format in addition to hex format Date: Tue, 22 Nov 2022 14:32:24 +0200 Message-Id: <20221122123225.59106-1-tony@atomide.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Let's allow node numbering in decimal format too. Simple human-readable increments/IDs are usually decimal, hex is only for addresses as noted by Krzysztof Kozlowski . Let's use an improved match suggested by Krzysztof Kozlowski and improved a bit by Uwe Kleine-König . Cc: linux-pwm@vger.kernel.org Cc: Thierry Reding Suggested-by: Krzysztof Kozlowski Suggested-by: Uwe Kleine-König Signed-off-by: Tony Lindgren --- Changes since v2: - Use pattern suggested by Krzysztof and Uwe Changes since v1: - New patch added to deal with pwm-omap-dmtimer binding --- Documentation/devicetree/bindings/pwm/pwm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm.yaml b/Documentation/devicetree/bindings/pwm/pwm.yaml --- a/Documentation/devicetree/bindings/pwm/pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/pwm.yaml @@ -13,7 +13,7 @@ select: false properties: $nodename: - pattern: "^pwm(@.*|-[0-9a-f])*$" + pattern: "^pwm(@.+|-[0-9a-f]+)?$" "#pwm-cells": description: