Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3337074pxv; Sun, 18 Jul 2021 19:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH10IF+C6YzZwHNXev5bnQofAK850t0eyasKBoqjtajhibKPCj881xNutDXnZvgS7Tp50m X-Received: by 2002:a17:906:9c84:: with SMTP id fj4mr23912229ejc.180.1626661954947; Sun, 18 Jul 2021 19:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626661954; cv=none; d=google.com; s=arc-20160816; b=xinkg9Vl41Z1rzPZ7+u+h89DDl76efa2TIKKLYN/T5obwkcbDNYd0SgNhckbhRc9z3 oq7pzFAvJkLQKZQqVrldAoa4CXWXTWfEe7fzCZ3T96Jnvo79TuSw+al637gvRL5UE6U2 sbG5PiUhTyRr+uxVlnNqz3r3FNVGExRSgKREul1j9Xlj8X9CEqfUDf6mz+YPzOPVrrJt VGJ0RJhGiRxsDNjxoRJ4/d0fRmRD0DOmfHozBzqxy84fQxlit790cFwidYekt5PyhNVf 0gYJX/C7xhsOm9qsR8OPiVx1VoSQzz/M6lqAu5rlLL/dbxgL1bfGHmTtMJolGORvdzQn 3JVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=/zUsl1Kbisa4+KB1QrdbTtxGzT3H/GbgWXYeWnLgqoA=; b=eYog855ENeY59/HoDSejiATuUC03Vnzc6Ak/RPvTyX63YCdbKuaOhbBJIYD0bTBB7T fkbQjgZ2FdnHDRhPc0K64QQZ/kEmN2CWd41iRMVI+Erikx8n+2R9Si0WfEweVC+wtJir m1+oO17FscMXPbf1mIGr2mCW1UEiKuiP06d9rVaBg3uzK0eZD0PnSyZ8lmdBZhvjmPWn ptpPRrkE1K9mEEcPYi01CHk1ONFd726TwSar2AkV4rWNNcG9Oz8T/yqNyyvFZp7m7Tf3 D4TtGqgpV7xzKxYptr/3cluErklHC6CFY9Tjw902AFurYYyaqOSa5r0K3EXHjWJZiY3R opxw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si1264105edb.596.2021.07.18.19.32.12; Sun, 18 Jul 2021 19:32:34 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234171AbhGSCeP (ORCPT + 99 others); Sun, 18 Jul 2021 22:34:15 -0400 Received: from mx.socionext.com ([202.248.49.38]:22293 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233713AbhGSCeO (ORCPT ); Sun, 18 Jul 2021 22:34:14 -0400 Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 19 Jul 2021 11:31:14 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id ACA95205902A; Mon, 19 Jul 2021 11:31:14 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Mon, 19 Jul 2021 11:31:14 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 6B030B633F; Mon, 19 Jul 2021 11:31:14 +0900 (JST) From: Kunihiko Hayashi To: Srinivas Kandagatla , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Kunihiko Hayashi Subject: [PATCH v2 1/2] dt-bindings: nvmem: Extend patternProperties to optionally indicate bit position Date: Mon, 19 Jul 2021 11:31:03 +0900 Message-Id: <1626661864-15473-2-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1626661864-15473-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1626661864-15473-1-git-send-email-hayashi.kunihiko@socionext.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow to extend expression of sub nodes to optionally indicate bit position. This extension is needed to distinguish between different bit positions in the same address. For example, there are two nvmem nodes starting with bit 4 and bit 0 at the same address 0x54. In this case, it can be expressed as follows. trim@54,4 { reg = <0x54 1>; bits = <4 2>; }; trim@54,0 { reg = <0x54 1>; bits = <0 4>; }; Signed-off-by: Kunihiko Hayashi --- Documentation/devicetree/bindings/nvmem/nvmem.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml b/Documentation/devicetree/bindings/nvmem/nvmem.yaml index b8dc3d2..9dfe196 100644 --- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml +++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml @@ -40,7 +40,7 @@ properties: maxItems: 1 patternProperties: - "^.*@[0-9a-f]+$": + "^.*@[0-9a-f]+(,[0-9]+)?$": type: object properties: -- 2.7.4