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: 13052310 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 8729DC4332F for ; Tue, 22 Nov 2022 12:33:33 +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: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:In-Reply-To:References: List-Owner; bh=ymr0loPt3DVuuXWWywq1XxD1XPV0cBoDJo4JWbRw5eg=; b=VvBjNqzqGRKXty 8mxk0D6pbxj8NP7Bk92s1vB5nU1FGAE8BarhV+OIjWIVW0/1+fzEX+q54in8YTPzqP0E05eqO760f s8ChSt/AYpMkpaekui0MZFynW93VPx8TTR+oYeJf2uP6rOBrvJGC+8Oj5K80VxPc2nstjrd3TstHP Z8t+ZVl8jtagL0kMdGAeEKXA31mECaTqEQgDDmTT03sng9n2NProtVUbqyrjGUpiGdJAwa0xiSxa3 RFjNsoIYpEKaCM83C/HMJ8Bxj+ZvCzaxnbCb3YtPQtK7qim//Bi74OZ5PLXA3N1TTwH67awLZyeki RbZHcjOl5pbvhz5UKxcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxSS4-009999-0z; Tue, 22 Nov 2022 12:32:36 +0000 Received: from muru.com ([72.249.23.125]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxSRz-00995s-Qm for linux-arm-kernel@lists.infradead.org; Tue, 22 Nov 2022 12:32:33 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221122_043231_925810_CB1A3942 X-CRM114-Status: GOOD ( 11.13 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Reviewed-by: Krzysztof Kozlowski Acked-by: Uwe Kleine-König --- 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: