From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2B32606A32A for ; Tue, 1 Dec 2026 14:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=23WHSbFO; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MCrfIlXv DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=0H4gc3Hz+PqIwqE2IdFqyrtjErrPq6mZExIWq5Qu0pw=; b=23WHSbFO6lOpTg d18k1JLqqCex3Dtzd2f+i7WP6G3umdzMRtVqFcCBJ9zBrpYvKBU/+mbuqVxJal302ruskszflMSFe NWpgtCQ1N1xTxI6fpPC8cIvDTwB3RagWB4igls8h6SWiwXEA9GJt9E+IjTEUZz2cTZm85Vv8nf25M v4kXYDEQszYEqf0q8PDh5y2Ox1KWY733xRt8zLwx0iQ5It5NZDHQdY2gLaGtYfmxI4tOS0emJSbOb 7yzYqtm34mvryYdoS0KN0VywZJDPVn6teE8UrCt2RO90M1Gb/FuLhdrT/Ov2SIW4WkJcnS/lgSwSn Tlg8fulxXSBoEctFoMaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYOQy-00000008LFA-1MH9; Tue, 01 Dec 2026 14:02:16 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYOQx-00000008LEz-0kZZ; Tue, 01 Dec 2026 14:02:15 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 6053C61D09; Tue, 1 Dec 2026 14:02:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3A971F00899; Tue, 1 Dec 2026 14:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796133733; bh=0H4gc3Hz+PqIwqE2IdFqyrtjErrPq6mZExIWq5Qu0pw=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=MCrfIlXvt7a08fsPgoxntksDPntJR9jsOyqXPipQUyqPN34GQzF/7HKUKYyWrkTtm j+R9WuO16flaeIZ7zJhipMYVvKDWgAjOgxUmzCHKtxrIuWlBsUNhHw6xG6Pg+rUhg6 Rz1x7gIVg533ztzJucwGnNIK9i4GX3zjR7/zTVhiW5DBPzyFGa6FX8U69fFH/yz+6m glsEMQ3Ui25olTp5oJjY0HQvdGv9jJDyEJ93I4oOV85WLQAKE4LYnHTS6PoNnBu9ZS +cwZ2I1Eq5GDGKmVBwWfczMuKyh44rrViZDR8VRq4mYsa047JV+fXw+iWcTRLG7zPn 2zZwIwTm07DEw== Message-ID: Date: Tue, 1 Dec 2026 14:02:10 +0000 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] nvmem: rockchip-otp: Add support for RK3506 To: Jonas Karlman , Srinivas Kandagatla , Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20261128221713.47445-1-jonas@kwiboo.se> <20261128221713.47445-3-jonas@kwiboo.se> From: Srinivas Kandagatla Content-Language: en-US In-Reply-To: <20261128221713.47445-3-jonas@kwiboo.se> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 11/28/26 10:17 PM, Jonas Karlman wrote: > Add support for the OTP controller in RK3506. The OTPC is similar to the > OTP controller in RK3528, except that reading from the last 8 bytes, > offset 120-127, fails ECC on RK3506. That means they are not compatible are they? But the binding patch says other wise. Or is this a bug or errata? --srini > > Signed-off-by: Jonas Karlman > --- > drivers/nvmem/rockchip-otp.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c > index 7eb834516ab4..3422017d391e 100644 > --- a/drivers/nvmem/rockchip-otp.c > +++ b/drivers/nvmem/rockchip-otp.c > @@ -345,6 +345,14 @@ static const char * const rk3528_otp_clocks[] = { > "otp", "apb_pclk", "sbpi", > }; > > +static const struct rockchip_data rk3506_data = { > + .size = 0x78, > + .word_size = sizeof(u16), > + .clks = rk3528_otp_clocks, > + .num_clks = ARRAY_SIZE(rk3528_otp_clocks), > + .reg_read = rk3568_otp_read, > +}; > + > static const struct rockchip_data rk3528_data = { > .size = 0x80, > .word_size = sizeof(u16), > @@ -396,6 +404,10 @@ static const struct of_device_id rockchip_otp_match[] = { > .compatible = "rockchip,rk3308-otp", > .data = &px30_data, > }, > + { > + .compatible = "rockchip,rk3506-otp", > + .data = &rk3506_data, > + }, > { > .compatible = "rockchip,rk3528-otp", > .data = &rk3528_data,