Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1286471pxb; Fri, 21 Jan 2022 14:23:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJztMFC4H7L5dqM1UkxOUCcxDEItvMwu/EflHNIMLUd3Jopjeq+rZYtXGDbzgfUquw4bKJU+ X-Received: by 2002:a17:902:8a94:b0:14a:ef2e:60e5 with SMTP id p20-20020a1709028a9400b0014aef2e60e5mr5634972plo.42.1642803826003; Fri, 21 Jan 2022 14:23:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642803825; cv=none; d=google.com; s=arc-20160816; b=Utp+qYMP8XPCnh0h6QAoucf4g62418MOOEWUGqPuBuqDPVPV7HlZRj3VsCpSVWypg2 yComqHjBXXrfTfhFSL49Q3X032w0vm1bjg239suuR+2ebgkpcYh32Mi2kStB31BCxUQd p5u3UpW/+rrLLUxAywZfsv0XAVdoBU3BdQrbI/mmm8FAdip9gxFFKv5le4Gagtl6DGzD MGwEriOBOV0JVjI594+AJ7jRLBX53NUCJAgRBe7AyzSS6UhiPH+lq6mMtjb1ToiHyjVK RMcnJM4WzCUAwLd6/k+Ngs9dsc9RT2LwRuoohTC6SjpeBKvmvVD4CWCEY45QBhvCfo/m B8fg== 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 :dkim-signature; bh=hKeZUHrXz3vwNx1yd28Y8fJcYASvVaXZYNsS8uSRXH8=; b=Lg2BIDB6eh4Y+Kb3cMwyMZy0UdSvy/2Bv8ysHsQjTW0lbfbdFVa0l29o7S6tsO6IXV CReFPyQ6fmc0tYZ3bTXjvy1/ELTdegxm/Xex+Y7gMm0tyTtUY/BBdRGAle4uS2+3lPxE 2lUSF0L8PwUqwFGaUK61JUjh9qo/oeycwV3kfZjG52xPslM9fmZIfRe19fXMd9AO4M3k J6FbW42jsAE3oDsNYKNsF5XXBMfQGr9L6dZfumOB7EUNH/zNPEv+eZ09lBYMBFdoBlrr s3soKwIEsbxwk85VmaE5dz5VzdIT82qucVCHMquF0Uyx1YQgGl109MHp8EQOTPFL5S8W NO9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=EcTC13Jv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si6514897pll.543.2022.01.21.14.23.33; Fri, 21 Jan 2022 14:23:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=EcTC13Jv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376911AbiATQPE (ORCPT + 99 others); Thu, 20 Jan 2022 11:15:04 -0500 Received: from box.trvn.ru ([194.87.146.52]:40881 "EHLO box.trvn.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346641AbiATQPD (ORCPT ); Thu, 20 Jan 2022 11:15:03 -0500 Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 4D5C240CAF; Thu, 20 Jan 2022 21:15:00 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1642695300; bh=qRBTVa7l5ff9cDGlC0cX/AXh5ZL9DuXAiZdGpUFlRDY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EcTC13JvJaGcwHmO/Cwi99a6NtK7ub1sifv+M8uupubmAPN7sbxQQnnXVe014k5Uf FdjJ9yl9DZG2v4GilGKXGnybJLG55IQPH9iIIkl5GCnXEMeXK4pOLd7cUW9MLzpdoJ kCR9dGPIDlDzTO6EV5eJag5q9dyhhgL2S/I8bOTSboskUYwqwOaEfPaf3o3mgepylj UN5qMnr/UyiwXriimO/i8LTWFZ41iRn58PHNpTnctz5A1iLLmbvsie2H/iMgU62TAO ZGij6xiEqGE8qI2cKwY7wMf3Fcv+RG/xS6LbGZLCLfdAS1AMkJN1/SIIUUpNu5EewG 7L6E86pYCa8xA== From: Nikita Travkin To: thierry.reding@gmail.com, lee.jones@linaro.org Cc: u.kleine-koenig@pengutronix.de, robh+dt@kernel.org, sboyd@kernel.org, krzk@kernel.org, linus.walleij@linaro.org, masneyb@onstation.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin Subject: [PATCH v3 1/3] dt-bindings: pwm: Fix node name pattern Date: Thu, 20 Jan 2022 21:14:40 +0500 Message-Id: <20220120161442.140800-2-nikita@trvn.ru> In-Reply-To: <20220120161442.140800-1-nikita@trvn.ru> References: <20220120161442.140800-1-nikita@trvn.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It looks like it was intended to allow two types of node names with the binding: - With unit address, e.g. pwm@1f000000 - With a suffix, e.g. pwm-clk However the pattern regex only correctly matches the first variant, as well as some incorrect ones. Fix the regex to match only two patterns shown above. (Either unit address starting with @ and following with one or more hexademical digit or arbitrary suffix stating with - and at least one symbol long) Fixes: 89650a1e3b6f ("dt-bindings: pwm: Convert PWM bindings to json-schema") Signed-off-by: Nikita Travkin --- 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 index 3c01f85029e5..4926fe65886f 100644 --- 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: -- 2.30.2