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 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 F242EC3F6B0 for ; Sun, 14 Aug 2022 17:38:35 +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:References:In-Reply-To: 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: List-Owner; bh=LoN7IeeGvM66tbpb5U4hLPVBm4ugjphYq//14t1+hfg=; b=Rktt4XwiUciM7f w5hivqdoUA0ttkhC0bT4GWdTcqNZuymerewTolbvEsRpBL0hW8M5NsbHxvA5GFhYU0tpvYxiNskd0 JsoxGl1WDLnlyFkQxNP1dUfcAlUMAjUXr0YuQLY0JUiMKQB6ClzWVAH69NBBMrcMw1/N0qD148piH jCGSx8thY0mxpKYXDIse2HEiF0HcUNPy/JExiYlM1Op976eUQZ7c/LIK5rLIv2f3VdNKMrHDgcmZ2 D4KL10HIlIsa9V1gBZ+kUy15rlQNk8je/O5mqAHZUyG9TY5Dhvpqk4I7aLinbIpXn8QUIDPzogp8X oTRRVj4l8h2yJReqXmwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNHYI-008IhF-19; Sun, 14 Aug 2022 17:37:30 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNHXw-008IXF-I2 for linux-arm-kernel@lists.infradead.org; Sun, 14 Aug 2022 17:37:11 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 1BD7332005D8; Sun, 14 Aug 2022 13:37:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 14 Aug 2022 13:37:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1660498626; x=1660585026; bh=xi U7IRPMNLk0arJJTv9Kxlo5S5AdCZsEw7U2Eez5uBU=; b=fPJXclQTgKq7RuTwZ+ ZN2TwZq0Dc4k7H/TvWc9qvNGG7A5ITQRqllbKuS3y7tU4a0osROFVikhNz+B0mFU KgC9dyj7bzSsSAbPooNg0dk9fQM0sl/X+jMdxt1pUSsRCcwlQRmqjJz3CrCpvbEk aq4Aru56AJuZbOYAJpKlucFYjF69cYEjNQ547/VPKH6PHpbZht+kSLploYeR21aQ DmWPJ6sslNYsYOkXYdBFmJQFQ0ghVEOo1qKrmsfpK5cQKdeR7/RfY3+KsRLUdTyU lGKBFr+LlWmVL23wAZo0eD6wzCrfnXNG9Lpp8UjyO1wgzggwVHnMG9ZP1Zm6x8pU mz2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1660498626; x=1660585026; bh=xiU7IRPMNLk0a rJJTv9Kxlo5S5AdCZsEw7U2Eez5uBU=; b=d0B8NR3yqwnyW62q+k1VhKT9o2Bxn ISbGocfab5k5XqCDFhaQWGYuNCJBP0Iz6seafQBwsblxs79DPy83inuz/rnaxqYM 9LcLZknUOeht1IThYC1vx5eUr2v1MNJUQbqpZVi03bAZd4mVPDVGjomQqHdkzhR0 8LhE5NofIN8qHN5lui4y67a+fZiEW5VL1PG0SI0ePG0Zy1o4bfl0rlxrPakQHKo+ wo3PeT9HkisIwYWatn5zBgA+zo9Nv1I8d6+RFbVCIucnf26812/mrjgsEoo2jNAk 1ggBwApEjO/5Lcle+54l2Z+H4BFoPwNkYy3FUryqVoY4mEF/R+MxI2RIg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehtddgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeeh gfdufeeitdevteenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 14 Aug 2022 13:37:05 -0400 (EDT) From: Samuel Holland To: Srinivas Kandagatla , Chen-Yu Tsai , Jernej Skrabec Cc: Samuel Holland , Greg Kroah-Hartman , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH 3/4] dt-bindings: nvmem: Allow bit offsets greater than a byte Date: Sun, 14 Aug 2022 12:36:54 -0500 Message-Id: <20220814173656.11856-4-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220814173656.11856-1-samuel@sholland.org> References: <20220814173656.11856-1-samuel@sholland.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220814_103708_697865_5F04B5A7 X-CRM114-Status: GOOD ( 12.31 ) 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 Some NVMEM devices contain cells which do not start at a multiple of the device's stride. However, the "reg" property of a cell must be aligned to its provider device's stride. These cells can be represented in the DT using the "bits" property if that property allows offsets up to the full stride. 63 is chosen assuming that NVMEM devices will not have strides larger than 8 bytes. Signed-off-by: Samuel Holland --- 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 3bb349c634cb..4f440ab6a13c 100644 --- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml +++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml @@ -53,7 +53,7 @@ patternProperties: $ref: /schemas/types.yaml#/definitions/uint32-array items: - minimum: 0 - maximum: 7 + maximum: 63 description: Offset in bit within the address range specified by reg. - minimum: 1 -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel