From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62BE0C4338F for ; Thu, 29 Jul 2021 18:49:30 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2F04D60F4B for ; Thu, 29 Jul 2021 18:49:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2F04D60F4B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QXedljS6LNrz/k4lKSwjr857hKRWocS7wd3IXylRzhA=; b=aNHoky/CliKQsW y5E3hdXuji2PPPGKXlWvYpcXMqjsVECDA2gS+IJX6DP0pOlUieFipayyqjcMpQvrvS0DA3+Fm5OoC jS6QjkBniIzJ2xShoHLVaeLJZxZRYjsHP4882parK5F0aPsi8zO+zqVkdIPqlSld64pXusdLceuWm KPOrZQlA13ZrYI6CETAPZtu+D6ml+immW9GfGgKGpMpn+yaqlRJ6CPCVo0IJGD9hnXklFzx6X3Ozz qEjxyobhW5f1GKeY0mmTrYcMjWw5Q1VXC8ahO1CPh6ER9n1ndkEwnWchUAnWAf6FnitN4betyhACY Bz1F0hF0gfzQCv1mkNIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9B4A-005Yi9-6R; Thu, 29 Jul 2021 18:47:34 +0000 Received: from mail-io1-f50.google.com ([209.85.166.50]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9B46-005Yhf-Do for linux-arm-kernel@lists.infradead.org; Thu, 29 Jul 2021 18:47:31 +0000 Received: by mail-io1-f50.google.com with SMTP id h1so8405171iol.9 for ; Thu, 29 Jul 2021 11:47:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JXUaHWb17rRBkscs+X15u2vWI6zx0AERlWO1TvqsfQc=; b=cCTt3MBA3fvHKtezKTcJzT0b6ssSGT0x8YkZyFvUVnrULJatFrMve+fRnn5j7h+VBZ pzRL3Ca909w+WotWuAEICiSeNJ4Th3/GV82txYWvT9oX8JzfHp6pupk7wAooz9hHh60i nIOlTRmF3fVjuvIH8TVMx2vdYUSF6sDsUXaPzUx5y4sfdwvLDlRY1/kEq+Ar54wx+3Bg VphazezcqeSAg+p5nETGbvC3ZxAv14yNBLgdUtkDUydK6O7LnQdvSh2gTnq12NYUeNpz YfPX+orDJnDAgGnKYB6iVU3J2SK8uhc889PLuhjzVPm9BDS/UKZ4MXYPvWT61UgY+gXs JMAQ== X-Gm-Message-State: AOAM5309fiaipGqySRlk6gQAJEa2fyaJWJTj5BZWjZptH0J9VjFtwsrp VpqSdIUi98S3zgGLhzbVpQ== X-Google-Smtp-Source: ABdhPJxrnJg4IzjTnLhlQ9yzS4rXMgXt/nFaInSKZq/xQrOFCtioJPpHOFZEvJJQ7W8QIrOPD03zxQ== X-Received: by 2002:a05:6602:58b:: with SMTP id v11mr5235906iox.70.1627584449501; Thu, 29 Jul 2021 11:47:29 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id v18sm2322404iln.49.2021.07.29.11.47.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 11:47:28 -0700 (PDT) Received: (nullmailer pid 671440 invoked by uid 1000); Thu, 29 Jul 2021 18:47:27 -0000 Date: Thu, 29 Jul 2021 12:47:27 -0600 From: Rob Herring To: Kunihiko Hayashi Cc: Srinivas Kandagatla , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu Subject: Re: [PATCH v2 1/2] dt-bindings: nvmem: Extend patternProperties to optionally indicate bit position Message-ID: References: <1626661864-15473-1-git-send-email-hayashi.kunihiko@socionext.com> <1626661864-15473-2-git-send-email-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1626661864-15473-2-git-send-email-hayashi.kunihiko@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210729_114730_509150_1A80F7FD X-CRM114-Status: GOOD ( 20.08 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jul 19, 2021 at 11:31:03AM +0900, Kunihiko Hayashi wrote: > 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]+)?$": The bit offset should be hex. But I think the max would be 7 as we can assume 'reg' starts at a byte boundary. I'll fix up when applying. Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel