From nobody Thu Apr 2 15:36:15 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2D903E9F7A for ; Fri, 27 Mar 2026 13:17:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617478; cv=none; b=mAJ86lskR8wPX6h/K+sW+Lf5g9Y7lXdUJhahfRtVHtbR3WnauVeARwG154dIG349q6hrgPCJ22/sGv5kKdTzeH7g8d7+JDWLGkVi9S7BUNnRc/umZhh29hb3LCa2/IH/C1Omjns+5o+ObTVXAtjCFt5k45RY1ZsN6HNxto4ywhc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617478; c=relaxed/simple; bh=c4vpjsbULOzgUJ9vNqJzlDxUk5qAKbHusQmXyD/ks2c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=c9sITlA4N0nBwViwQfRY8XyLljx1AED2cnD5/hr3ey3NNUfpMLjEBf1HGCQBe+/yc4usTgJrY7DeLbm/QziXAzAv6+o4WThW+cDPTNV0vcTJV7i50MTm2lg1kNhNGSGOoBVXjGgesQeRwGH9NvsNqvyoZHx3SQRlPbpc4AjVt/k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=N9IVdyhL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="N9IVdyhL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5024EC2BC9E; Fri, 27 Mar 2026 13:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774617478; bh=c4vpjsbULOzgUJ9vNqJzlDxUk5qAKbHusQmXyD/ks2c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N9IVdyhLudBYXtjTwOv4FLaNi+2Z78lDY/dCP3NL0/SBcy566BFqzBXbmyO3nhftH VBVY1q3fvmE/87F+p489UxJeXJGmYA5zpNr4bqOGuTHwgLjVm+fsNp6aLxRzjMPxwT UiWkL1I/WxTxJCInvDHVLNLTAksT/7fG2i+lluiWgYBGTcyCsev12Z/h2s/rUbno5w PKftSNB850VTBZMAqTSQGSZgSNmCokul0i11Y1WKQ5KWYNrXOa5AKsZkedChllhwfO LBsccmjbJJqYt6QJpzT009duybTEf7dEtd1k5NXyp9UO1NGQZmt58y8VAtpZumlY80 n/AwQ+SSmZ/DQ== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Jingyi Wang , Krzysztof Kozlowski , Srinivas Kandagatla Subject: [PATCH 1/9] dt-bindings: nvmem: qfprom: Add Kaanapali compatible Date: Fri, 27 Mar 2026 13:17:43 +0000 Message-ID: <20260327131751.3026030-2-srini@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260327131751.3026030-1-srini@kernel.org> References: <20260327131751.3026030-1-srini@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Jingyi Wang Document compatible string for the QFPROM on Kaanapali platform. Signed-off-by: Jingyi Wang Acked-by: Krzysztof Kozlowski Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Doc= umentation/devicetree/bindings/nvmem/qcom,qfprom.yaml index 839513d4b499..2ab047f2bb69 100644 --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml @@ -26,6 +26,7 @@ properties: - qcom,ipq8064-qfprom - qcom,ipq8074-qfprom - qcom,ipq9574-qfprom + - qcom,kaanapali-qfprom - qcom,msm8226-qfprom - qcom,msm8916-qfprom - qcom,msm8917-qfprom --=20 2.47.3 From nobody Thu Apr 2 15:36:15 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5153F3ECBE2 for ; Fri, 27 Mar 2026 13:18:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617480; cv=none; b=JqNa+MbeZoleRG1lHOjr/IoFEPRj18FAWGc8ePUt+/mz00ItjUtBMJCWGdxkxcsV30tH6qHpMoiD1NKkXiv/Phxfw/NtnbDpdLdqEzr+jaiHktudCNQSkiVgmylcky/8d6kuTGSXEwK+gXopUh6bpjtEWfZ2YMGO5lquoom4QVM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617480; c=relaxed/simple; bh=pACJkbjPiSas+ET2GIZFI6fkKOdu0hDfwuMaCDOLU/U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=c/oQJNbXBNWy2KBr53SvgX1VmL3K1W0P2nOZ2XGYGoP0H+KwEvAROZ5oNCFySopyubvnIdvJgt+CK6bkpThpVYY8cnh4zNPLPIcWs93R2ldh6csr/utUmrCBV/qzRBBdUpf8krih0kOJymvB/Uc436EJdVZC9xuF53/PfiCMpa8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l20JkcWR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l20JkcWR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCA4BC2BC87; Fri, 27 Mar 2026 13:17:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774617479; bh=pACJkbjPiSas+ET2GIZFI6fkKOdu0hDfwuMaCDOLU/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l20JkcWRpghq1icsquZwPVtjTMic83TAlRRJFMBqL0dIzWmtxwhBIqCzFtCLROVWe oyNJXYaw1Xw7fpXfCU4zn+KsisbkhXZO823GQVlGNV4NBh3HAad/OyJgfGep1RS+Wz K/dR+mTy757DCCaliC1nvcABAWQ1HSEk6URwgO1Eyc254nbWidHKvafCT7GhkXdsuK /hZnCffqVnpc6VrdPD3AWnnRH2uOyKqbNk6x7Ea9xIQBMFBWZyrBFULdxajfNGjKur 8bcgCzAHzoYyQyhHNlOa4il0nQ8D7jSkLDwU+NA6RufD40GD6LpB/0VuFM9jgjmIlA PQpwfuW5t64ag== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Felix Gu , Heiko Stuebner , Srinivas Kandagatla Subject: [PATCH 2/9] nvmem: qnap-mcu-eeprom: Fix struct assignments using commas instead of semicolons Date: Fri, 27 Mar 2026 13:17:44 +0000 Message-ID: <20260327131751.3026030-3-srini@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260327131751.3026030-1-srini@kernel.org> References: <20260327131751.3026030-1-srini@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Felix Gu The nvcfg struct member assignments were incorrectly using commas instead of semicolons. Signed-off-by: Felix Gu Reviewed-by: Heiko Stuebner Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/qnap-mcu-eeprom.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/nvmem/qnap-mcu-eeprom.c b/drivers/nvmem/qnap-mcu-eepro= m.c index 0b919895b3b2..07bdaa2a33fa 100644 --- a/drivers/nvmem/qnap-mcu-eeprom.c +++ b/drivers/nvmem/qnap-mcu-eeprom.c @@ -86,10 +86,10 @@ static int qnap_mcu_eeprom_probe(struct platform_device= *pdev) nvcfg.read_only =3D true; nvcfg.root_only =3D false; nvcfg.reg_read =3D qnap_mcu_eeprom_read; - nvcfg.size =3D QNAP_MCU_EEPROM_SIZE, - nvcfg.word_size =3D 1, - nvcfg.stride =3D 1, - nvcfg.priv =3D mcu, + nvcfg.size =3D QNAP_MCU_EEPROM_SIZE; + nvcfg.word_size =3D 1; + nvcfg.stride =3D 1; + nvcfg.priv =3D mcu; =20 ndev =3D devm_nvmem_register(&pdev->dev, &nvcfg); if (IS_ERR(ndev)) --=20 2.47.3 From nobody Thu Apr 2 15:36:15 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B32593ED5C0 for ; Fri, 27 Mar 2026 13:18:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617481; cv=none; b=hokX58c2coCHgF7hjW6eis/HTQAR+cp6ovaWBIeHUIJixWgq+mZ/KxingU+hz622CDNfSFFwttCpWiMkVqIvLWEFOcyNVjXEfRJT5p9Qdah7ORgAkoX0gP5FBpy3cULwAapODDnF0kDSG6YtyPSgqNjdsjKg+vfPnf21/FIAp4M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617481; c=relaxed/simple; bh=+k/nYvvEx9norsnK3J6xn78yIFFXVehOwvJh8Tu0WWs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L5iWoDUDaeKAUdkG6JtLofUbCaJ+ISzUmoM9FVFBxErKQnjNZYRHiyVckUYozqFi3Tktyb8IBdROb3vfyrswdMNBXGvfK6A6bzbde/s0hHS7KjYYPg2BkNnVTEDROcTOhZ4nuFyruMGNnqubiIdvmGhTcZnu9nAZwrAfjOpgyec= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u8XjmgWI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u8XjmgWI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 557E2C2BCB0; Fri, 27 Mar 2026 13:18:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774617481; bh=+k/nYvvEx9norsnK3J6xn78yIFFXVehOwvJh8Tu0WWs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u8XjmgWIZharShyUGAiU+3R5p26SILa7B0rmnMT15baStZ7q5oHQ+PuZfbKFpEZwm gCQUZYJ0W1uSjszetpXoWi9jbzZ1XILhShSuLyi9CYLVTRinkte3DJza8x1VFrf7xK od38Rs3hzlGOeTiXZzSh936IupYoxkrLaQ+WDqI2z/QLICizJ+KF/TmLNPSsyHgErl 5aqPtpewI66kDfJYTl0nMRw/fKLi+MYDuYjD6xo+sbRi6RfSR0oRSQR41xhxhi7hpF Jk+eGbyOo2UvSO4fgpfVyJlATz4WYv1jNToKECnDz5peZNwf8r/DfAgXIMg6Fxks/Q 9Sjf1KpRIro9Q== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Michael Walle , Conor Dooley , Srinivas Kandagatla Subject: [PATCH 3/9] dt-bindings: nvmem: sl28cpld: Drop sa67mcu compatible Date: Fri, 27 Mar 2026 13:17:45 +0000 Message-ID: <20260327131751.3026030-4-srini@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260327131751.3026030-1-srini@kernel.org> References: <20260327131751.3026030-1-srini@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Michael Walle I was just informed that this product is discontinued (without being ever released to the market). Pull the plug and let's not waste any more maintainers time and revert commit 4a9b344e90c7 ("dt-bindings: nvmem: sl28cpld: add sa67mcu compatible"). Acked-by: Conor Dooley Signed-off-by: Michael Walle Signed-off-by: Srinivas Kandagatla --- .../bindings/nvmem/layouts/kontron,sl28-vpd.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/layouts/kontron,sl28-v= pd.yaml b/Documentation/devicetree/bindings/nvmem/layouts/kontron,sl28-vpd.= yaml index afd1919c6b1c..c713e23819f1 100644 --- a/Documentation/devicetree/bindings/nvmem/layouts/kontron,sl28-vpd.yaml +++ b/Documentation/devicetree/bindings/nvmem/layouts/kontron,sl28-vpd.yaml @@ -19,12 +19,7 @@ select: false =20 properties: compatible: - oneOf: - - items: - - enum: - - kontron,sa67-vpd - - const: kontron,sl28-vpd - - const: kontron,sl28-vpd + const: kontron,sl28-vpd =20 serial-number: type: object --=20 2.47.3 From nobody Thu Apr 2 15:36:15 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A25823EF650 for ; Fri, 27 Mar 2026 13:18:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617483; cv=none; b=fBWe67G1+4srN78QUfM6pCxcR+gcT0cwuOT+DYfb/5xVnDsHCb8o82eJLqwQR9ZrlybXLM99MH/Tk1U4BP2fCyliNvoIuU/nL6FCQ1RiG7NGngp2+Kgg9fVqVIeWRLVImX/iGYbu0xSK1igBIU83Ewx3mLPpfhZMPO4brt+7tcA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617483; c=relaxed/simple; bh=ecZBTzOJAFf9MVDpMjgwMdYrgVJXBs0rdpXT2SjQ/ps=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DyhkzxgzOqfZif0Mj2sexYu3xjqbXARym06F6FZdm42CJLjJzifZg6bitqxag+Xo/Rgl/JtBM9fIlbx4dEB2gcDYA6rCC0hgmGMO0twGornlJMEeJRFupz0TA8xwrvLWCt8WPrbBfWebFONbDwqlC4mvA1rdpt1wCUdOtmHn0Ww= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RAIelaaT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RAIelaaT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0A72C19423; Fri, 27 Mar 2026 13:18:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774617483; bh=ecZBTzOJAFf9MVDpMjgwMdYrgVJXBs0rdpXT2SjQ/ps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RAIelaaTvGlU7DQIfHF/tykilPYKynKQXRN/iNIj9dr7DEoMZw6jwOkdnsSF8PGIU xt0zUQFUAQIIJp2laZdyhuwS8PzKuuzzaRfHKWTXyEPFXyjAldLUHRy4U1gJ77nYEC RvqaTMTm1Q7oRv1IYJqUCmmh7suNZsoMXFlpLwQVIa2et1vaMj5x/GqsH00FvhigSA Dip3vkzZWEO+RsTJR04j4fNX/sZpGdRCi/usD9epRqC7EGkvMlxiK6snuRexc4/iZE /0vHpxzCDGF6vgUW92daQTPslHr5YHTLn0SpNMphKWOqNiPaIhYI6s0RdhKLEYBUfK b0sbfYWreTUug== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Kever Yang , "Rob Herring (Arm)" , Heiko Stuebner , Srinivas Kandagatla Subject: [PATCH 4/9] dt-bindings: nvmem: rockchip,otp: Add support for RK3562 and RK3568 Date: Fri, 27 Mar 2026 13:17:46 +0000 Message-ID: <20260327131751.3026030-5-srini@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260327131751.3026030-1-srini@kernel.org> References: <20260327131751.3026030-1-srini@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Kever Yang Add compatible entry for the otp controller in RK3562 and RK3568, add schema for different clock names for new entry. Signed-off-by: Kever Yang Reviewed-by: Rob Herring (Arm) Signed-off-by: Heiko Stuebner Signed-off-by: Srinivas Kandagatla --- .../bindings/nvmem/rockchip,otp.yaml | 58 +++++++++++++++---- 1 file changed, 48 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml b/Do= cumentation/devicetree/bindings/nvmem/rockchip,otp.yaml index dc89020b0950..e90136f7dcfb 100644 --- a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml +++ b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml @@ -14,6 +14,8 @@ properties: enum: - rockchip,px30-otp - rockchip,rk3308-otp + - rockchip,rk3562-otp + - rockchip,rk3568-otp - rockchip,rk3576-otp - rockchip,rk3588-otp =20 @@ -26,19 +28,15 @@ properties: =20 clock-names: minItems: 3 - items: - - const: otp - - const: apb_pclk - - const: phy - - const: arb + maxItems: 4 =20 resets: minItems: 1 - maxItems: 3 + maxItems: 4 =20 reset-names: minItems: 1 - maxItems: 3 + maxItems: 4 =20 required: - compatible @@ -64,13 +62,44 @@ allOf: clocks: maxItems: 3 clock-names: - maxItems: 3 + items: + - const: otp + - const: apb_pclk + - const: phy resets: maxItems: 1 reset-names: items: - const: phy =20 + - if: + properties: + compatible: + contains: + enum: + - rockchip,rk3562-otp + - rockchip,rk3568-otp + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + clock-names: + items: + - const: otp + - const: apb_pclk + - const: phy + - const: sbpi + resets: + minItems: 4 + maxItems: 4 + reset-names: + items: + - const: otp + - const: apb + - const: phy + - const: sbpi + - if: properties: compatible: @@ -82,7 +111,10 @@ allOf: clocks: maxItems: 3 clock-names: - maxItems: 3 + items: + - const: otp + - const: apb_pclk + - const: phy resets: minItems: 2 maxItems: 2 @@ -101,10 +133,16 @@ allOf: properties: clocks: minItems: 4 + maxItems: 4 clock-names: - minItems: 4 + items: + - const: otp + - const: apb_pclk + - const: phy + - const: arb resets: minItems: 3 + maxItems: 3 reset-names: items: - const: otp --=20 2.47.3 From nobody Thu Apr 2 15:36:15 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 523363F0744 for ; Fri, 27 Mar 2026 13:18:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617485; cv=none; b=eW0Cs7Wt6K+HXFwltD5DNw6OY84Za6Ca2YFTI8lLe11dnamv3bWXyukFGIo9THhx3IGftwpYUi+HSA6hHwFcUDoLHNN4glY0zEjqv4X/BcVN6ltA/xX1I0dAS5iSDeN8HMtJbkxtu2SbXkCPtNFos0zpVSwgjVe5ReKyrJRsYgw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617485; c=relaxed/simple; bh=clES2Ku/rqAtXbz8Og1lWogxm8rHMvoLJwuPLEeUrgo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CcEH4UyypfP+qXvmBI1jp9HzWYSE21uM8/rbKnPuzBpr6bh3BhVcvz0ezPB2pfJkOl1vejZNUn/Lw53M8g2HHOnlVgZNUBKSKHbfoI84bt48Ur9P9aNiVzNFfjSW2oTRm1JeG29LFymc2mJhbRe+OvOx12BCMa6qEJ25ZWDK1Fw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P16DI2pW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P16DI2pW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB026C2BC87; Fri, 27 Mar 2026 13:18:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774617485; bh=clES2Ku/rqAtXbz8Og1lWogxm8rHMvoLJwuPLEeUrgo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P16DI2pWuP+g5XHaytiTdtX3tkguq9D0cxDOKcd8j1KGFLINLgD0PMehVXR6ARZOq 48sNIAZjIWI5ZmGRjnjGnfD4nMmtPMkyQcOXDveUX82b/yoAcrqtGa4SDw6CWXIeZG FK5HcNzzZYP+myavd9SvIIfO01DagUFxxFPO9dajMh4AaYHMCZyu0SXGRQxniYrWtq RYYhHw/UdA20uJweAhiUDJdkgsG09tcGtzqSTrmCUSxKV9DYkjvsyeuQyKvSMVlEIP KKwtxbpqknksh7qjv8CwPiX5DbSIMBYf7uaJcuzyFflomVdkrrqU4m+rEEZK+LPvCk JDcXbJubW70XQ== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Jonas Karlman , Heiko Stuebner , "Rob Herring (Arm)" , Srinivas Kandagatla Subject: [PATCH 5/9] dt-bindings: nvmem: rockchip,otp: Add compatible for RK3528 Date: Fri, 27 Mar 2026 13:17:47 +0000 Message-ID: <20260327131751.3026030-6-srini@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260327131751.3026030-1-srini@kernel.org> References: <20260327131751.3026030-1-srini@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Jonas Karlman Add compatible string for the OTP controller in RK3528. Compared to the RK3562 and RK3568 the OTP in RK3528 does not have a phy clock or reset. Signed-off-by: Jonas Karlman Signed-off-by: Heiko Stuebner Reviewed-by: Rob Herring (Arm) Signed-off-by: Srinivas Kandagatla --- .../bindings/nvmem/rockchip,otp.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml b/Do= cumentation/devicetree/bindings/nvmem/rockchip,otp.yaml index e90136f7dcfb..7e4d5e1c4ced 100644 --- a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml +++ b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml @@ -14,6 +14,7 @@ properties: enum: - rockchip,px30-otp - rockchip,rk3308-otp + - rockchip,rk3528-otp - rockchip,rk3562-otp - rockchip,rk3568-otp - rockchip,rk3576-otp @@ -72,6 +73,30 @@ allOf: items: - const: phy =20 + - if: + properties: + compatible: + contains: + enum: + - rockchip,rk3528-otp + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: otp + - const: apb_pclk + - const: sbpi + resets: + minItems: 3 + maxItems: 3 + reset-names: + items: + - const: otp + - const: apb + - const: sbpi + - if: properties: compatible: --=20 2.47.3 From nobody Thu Apr 2 15:36:16 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F20D03F787A for ; Fri, 27 Mar 2026 13:18:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617487; cv=none; b=Rq/SB3+VToo9wR/TJ2YHDiD7m3CLbZBK8NKuzlauo1EnaqPC8yhKZGa+mMs1CmSGPz23A8DUFYZYlHg1BnvX9cvGQ3JMRKRjT4OFyAv8OQ5NHBe7AAT57mmLw2K3nZvPiyxrKjZWCzmgcHuCWg5E3CPD5NleMKyqYUlCAk+fNhs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617487; c=relaxed/simple; bh=uVuNAXkly6zyPTtUMNsbq0s0vIqZ8JSZTBK2WsISH7Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K2MQejcnq2Fxo1us2agTvnwakpiANstrQg1/AYrSesuncjO6zHBkEALVED0eO1AxUZI/tFAmEM4tIfgmh8BxXYPXLkUM09BZtVN9efVm2QI45y6uo2ET3msGO9wR1oU/qqqv75e4tSAJ8B0vWUXatzcjqSTOBjKAvsgzobe3c94= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h1qjWYvy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h1qjWYvy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99145C2BC9E; Fri, 27 Mar 2026 13:18:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774617486; bh=uVuNAXkly6zyPTtUMNsbq0s0vIqZ8JSZTBK2WsISH7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h1qjWYvy/aFTsbXKSnu15xzIJjEBHzQ/x0IrkZscmG1+jGe6+sqqNWxoU9cX/J5wv X8Ur0aQeKkFLP9muDfRj0y7Jfz5aTtRZ6rsnKUDJLSh6vfIf47CUAgdbmjX8wIS9l3 iWgqnHkvlPbQwSnmX/ox+okwqmJ3IvSTyLmubFMpW1h2QaLCgGeitFk86n/2VuDGA2 V4+0mVcqLuIwxQpKf6Dp0hERPdZjLyE7RrvmVXIm5YZLmrPYggjsl0CoN7c2N58dn5 CL9CYKTzZGhd3PRZdvXZ0FcD1f75W+s0Klubx6xQeT2TRX7Lu9cu0KzGHbb9QXstl1 u00zCRKvqiXtg== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Jonas Karlman , Willy Tarreau , Heiko Stuebner , Srinivas Kandagatla Subject: [PATCH 6/9] nvmem: rockchip-otp: Handle internal word_size in main reg_read op Date: Fri, 27 Mar 2026 13:17:48 +0000 Message-ID: <20260327131751.3026030-7-srini@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260327131751.3026030-1-srini@kernel.org> References: <20260327131751.3026030-1-srini@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Jonas Karlman Rockchip SoCs RK3576 and RK3588 read data from the OTP using 32-bit words instead of normal 8-bit bytes. Similar RK3506, RK3528, RK3562 and RK3568 will read data from OTP using 16-bit words. The nvmem core stride and word_size cannot fully be used as cells is not always aligned. Continue to report a stride=3D1 and word_size=3D1 in nvmem_config and instead handle use of SoC specific word_size internally in the driver. Move current SoC specific word_size handling from the RK3588 read_reg operation to the main read_reg operation to help simplify the SoC specific read_reg operation and allow code reuse in a future RK3568 reg_read operation. Signed-off-by: Jonas Karlman Tested-by: Willy Tarreau Signed-off-by: Heiko Stuebner Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/rockchip-otp.c | 72 ++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 32 deletions(-) diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index d88f12c53242..45bbb6147fb7 100644 --- a/drivers/nvmem/rockchip-otp.c +++ b/drivers/nvmem/rockchip-otp.c @@ -59,7 +59,6 @@ #define RK3588_OTPC_AUTO_EN 0x08 #define RK3588_OTPC_INT_ST 0x84 #define RK3588_OTPC_DOUT0 0x20 -#define RK3588_NBYTES 4 #define RK3588_BURST_NUM 1 #define RK3588_BURST_SHIFT 8 #define RK3588_ADDR_SHIFT 16 @@ -69,6 +68,7 @@ struct rockchip_data { int size; int read_offset; + int word_size; const char * const *clks; int num_clks; nvmem_reg_read_t reg_read; @@ -185,48 +185,28 @@ static int px30_otp_read(void *context, unsigned int = offset, } =20 static int rk3588_otp_read(void *context, unsigned int offset, - void *val, size_t bytes) + void *val, size_t count) { struct rockchip_otp *otp =3D context; - unsigned int addr_start, addr_end, addr_len; - int ret, i =3D 0; - u32 data; - u8 *buf; - - addr_start =3D round_down(offset, RK3588_NBYTES) / RK3588_NBYTES; - addr_end =3D round_up(offset + bytes, RK3588_NBYTES) / RK3588_NBYTES; - addr_len =3D addr_end - addr_start; - addr_start +=3D otp->data->read_offset / RK3588_NBYTES; - - buf =3D kzalloc(array_size(addr_len, RK3588_NBYTES), GFP_KERNEL); - if (!buf) - return -ENOMEM; + u32 *buf =3D val; + int ret; =20 - while (addr_len--) { - writel((addr_start << RK3588_ADDR_SHIFT) | + while (count--) { + writel((offset++ << RK3588_ADDR_SHIFT) | (RK3588_BURST_NUM << RK3588_BURST_SHIFT), otp->base + RK3588_OTPC_AUTO_CTRL); writel(RK3588_AUTO_EN, otp->base + RK3588_OTPC_AUTO_EN); =20 ret =3D rockchip_otp_wait_status(otp, RK3588_OTPC_INT_ST, RK3588_RD_DONE); - if (ret < 0) { + if (ret) { dev_err(otp->dev, "timeout during read setup\n"); - goto read_end; + return ret; } =20 - data =3D readl(otp->base + RK3588_OTPC_DOUT0); - memcpy(&buf[i], &data, RK3588_NBYTES); - - i +=3D RK3588_NBYTES; - addr_start++; + *buf++ =3D readl(otp->base + RK3588_OTPC_DOUT0); } =20 - memcpy(val, buf + offset % RK3588_NBYTES, bytes); - -read_end: - kfree(buf); - return ret; } =20 @@ -234,7 +214,7 @@ static int rockchip_otp_read(void *context, unsigned in= t offset, void *val, size_t bytes) { struct rockchip_otp *otp =3D context; - int ret; + int ret, word_size; =20 if (!otp->data || !otp->data->reg_read) return -EINVAL; @@ -245,8 +225,34 @@ static int rockchip_otp_read(void *context, unsigned i= nt offset, return ret; } =20 - ret =3D otp->data->reg_read(context, offset, val, bytes); + offset +=3D otp->data->read_offset; + word_size =3D otp->data->word_size; + + if (word_size > 1) { + unsigned int addr_start, addr_end; + size_t count; + u8 *buf; + + addr_start =3D offset / word_size; + addr_end =3D DIV_ROUND_UP(offset + bytes, word_size); + count =3D addr_end - addr_start; + + buf =3D kzalloc(array_size(count, word_size), GFP_KERNEL); + if (!buf) { + ret =3D -ENOMEM; + goto err; + } + + ret =3D otp->data->reg_read(context, addr_start, buf, count); + if (!ret) + memcpy(val, buf + (offset % word_size), bytes); + + kfree(buf); + } else { + ret =3D otp->data->reg_read(context, offset, val, bytes); + } =20 +err: clk_bulk_disable_unprepare(otp->data->num_clks, otp->clks); =20 return ret; @@ -259,7 +265,7 @@ static struct nvmem_config otp_config =3D { .type =3D NVMEM_TYPE_OTP, .read_only =3D true, .stride =3D 1, - .word_size =3D 1, + .word_size =3D sizeof(u8), .reg_read =3D rockchip_otp_read, }; =20 @@ -277,6 +283,7 @@ static const struct rockchip_data px30_data =3D { static const struct rockchip_data rk3576_data =3D { .size =3D 0x100, .read_offset =3D 0x700, + .word_size =3D sizeof(u32), .clks =3D px30_otp_clocks, .num_clks =3D ARRAY_SIZE(px30_otp_clocks), .reg_read =3D rk3588_otp_read, @@ -289,6 +296,7 @@ static const char * const rk3588_otp_clocks[] =3D { static const struct rockchip_data rk3588_data =3D { .size =3D 0x400, .read_offset =3D 0xc00, + .word_size =3D sizeof(u32), .clks =3D rk3588_otp_clocks, .num_clks =3D ARRAY_SIZE(rk3588_otp_clocks), .reg_read =3D rk3588_otp_read, --=20 2.47.3 From nobody Thu Apr 2 15:36:16 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA35B3F7A8E for ; Fri, 27 Mar 2026 13:18:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617488; cv=none; b=f0TkyG5Xxj60FNt5JCcmmLgdZlPQJmNFbR9x2GW5bLWEtoCp0kMCilR0ohLVdmh+SE/O6B+fhvF2Scw6VSRkQt3LKDQxkwbyOKm6ZULPgK22z1Bx0q8fBmXEWXIWgAHQANF4FvQtvwKeR2EannH5P0oxaYylS8zpAaj2ND/1EIE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617488; c=relaxed/simple; bh=oSQMFV4a5eQFdGovJkXUHRkZLePRUUpBWPaLvL/RbjE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GOEdLLuv+Ib2Pexznp7tmHm/5yeFUGF7v37TXUdQSu/6Bdea7gmKipejrizb8+eARvqtkubgvcDPXHSFmgQE6a/9sokxEf1ykcVaDgatxG/mYuyI3/y9NalMnxok7mqRQPujLjLc+/JxwSMfimK+y2yUqP+duTLAzinQ+5QMgAk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tBYNFCl/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tBYNFCl/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4764AC19423; Fri, 27 Mar 2026 13:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774617488; bh=oSQMFV4a5eQFdGovJkXUHRkZLePRUUpBWPaLvL/RbjE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tBYNFCl/dcez8ZnjaNv2Ft2L/2kJhPwTTDVQidbSALXdEkXX5jFqJJ/OlOgixbM+l 98M9r50hV++iwWHLmVI439kq2ofOW4ugrkRnsGdo5zciMHCSBHEKMW2FEecSCAxFxb MAGldl5y9dbd+vahm7tNYIaziHOho7IqfovPkaY2PSu4r1DdTo+DHpqfpGkn3PqZwq FAKxOd2OJSi9iDl+oJJnDZYjsYNisn5G+dchkRnhZ/6DXJCBz2FS+XzAb1hW2dlliS 71lv8oZ5sSFv8ntDTq27sdiMed3hu8i38HO3T+RCtRepv+f8aIq36AnT2QJ4yO9dhk Skz+SKsPDTnOQ== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Finley Xiao , Kever Yang , Heiko Stuebner , Srinivas Kandagatla Subject: [PATCH 7/9] nvmem: rockchip-otp: Add support for RK3568 Date: Fri, 27 Mar 2026 13:17:49 +0000 Message-ID: <20260327131751.3026030-8-srini@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260327131751.3026030-1-srini@kernel.org> References: <20260327131751.3026030-1-srini@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Finley Xiao This adds the necessary data for handling otp the rk3568. Signed-off-by: Finley Xiao Signed-off-by: Kever Yang Signed-off-by: Heiko Stuebner Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/rockchip-otp.c | 69 ++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index 45bbb6147fb7..cfb69bc58869 100644 --- a/drivers/nvmem/rockchip-otp.c +++ b/drivers/nvmem/rockchip-otp.c @@ -27,6 +27,7 @@ #define OTPC_USER_CTRL 0x0100 #define OTPC_USER_ADDR 0x0104 #define OTPC_USER_ENABLE 0x0108 +#define OTPC_USER_QP 0x0120 #define OTPC_USER_Q 0x0124 #define OTPC_INT_STATUS 0x0304 #define OTPC_SBPI_CMD0_OFFSET 0x1000 @@ -184,6 +185,58 @@ static int px30_otp_read(void *context, unsigned int o= ffset, return ret; } =20 +static int rk3568_otp_read(void *context, unsigned int offset, void *val, + size_t count) +{ + struct rockchip_otp *otp =3D context; + u16 *buf =3D val; + u32 otp_qp; + int ret; + + ret =3D rockchip_otp_reset(otp); + if (ret) { + dev_err(otp->dev, "failed to reset otp phy\n"); + return ret; + } + + ret =3D rockchip_otp_ecc_enable(otp, true); + if (ret) { + dev_err(otp->dev, "rockchip_otp_ecc_enable err\n"); + return ret; + } + + writel(OTPC_USE_USER | OTPC_USE_USER_MASK, otp->base + OTPC_USER_CTRL); + udelay(5); + + while (count--) { + writel(offset++ | OTPC_USER_ADDR_MASK, + otp->base + OTPC_USER_ADDR); + writel(OTPC_USER_FSM_ENABLE | OTPC_USER_FSM_ENABLE_MASK, + otp->base + OTPC_USER_ENABLE); + + ret =3D rockchip_otp_wait_status(otp, OTPC_INT_STATUS, + OTPC_USER_DONE); + if (ret) { + dev_err(otp->dev, "timeout during read setup\n"); + goto read_end; + } + + otp_qp =3D readl(otp->base + OTPC_USER_QP); + if (((otp_qp & 0xc0) =3D=3D 0xc0) || (otp_qp & 0x20)) { + ret =3D -EIO; + dev_err(otp->dev, "ecc check error during read setup\n"); + goto read_end; + } + + *buf++ =3D readl(otp->base + OTPC_USER_Q); + } + +read_end: + writel(0x0 | OTPC_USE_USER_MASK, otp->base + OTPC_USER_CTRL); + + return ret; +} + static int rk3588_otp_read(void *context, unsigned int offset, void *val, size_t count) { @@ -280,6 +333,18 @@ static const struct rockchip_data px30_data =3D { .reg_read =3D px30_otp_read, }; =20 +static const char * const rk3568_otp_clocks[] =3D { + "otp", "apb_pclk", "phy", "sbpi", +}; + +static const struct rockchip_data rk3568_data =3D { + .size =3D 0x80, + .word_size =3D sizeof(u16), + .clks =3D rk3568_otp_clocks, + .num_clks =3D ARRAY_SIZE(rk3568_otp_clocks), + .reg_read =3D rk3568_otp_read, +}; + static const struct rockchip_data rk3576_data =3D { .size =3D 0x100, .read_offset =3D 0x700, @@ -311,6 +376,10 @@ static const struct of_device_id rockchip_otp_match[] = =3D { .compatible =3D "rockchip,rk3308-otp", .data =3D &px30_data, }, + { + .compatible =3D "rockchip,rk3568-otp", + .data =3D &rk3568_data, + }, { .compatible =3D "rockchip,rk3576-otp", .data =3D &rk3576_data, --=20 2.47.3 From nobody Thu Apr 2 15:36:16 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B538E3F7E60 for ; Fri, 27 Mar 2026 13:18:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617490; cv=none; b=Cj0Ol9WL6WCYnrCOlmxZLwcogHztnXDC+XdGe9dQU94FHp41JXOkNgg3bfiLdLLPwKXTCKUKlhOv5El9lNytHMpcfkqfi21peHNxxS6M6vtRcI7kfs1kbwBU0l5jXC6LW8aO4m+qu1K8JgG5aFeNEaueIkV2+DFYM0aLDRidg8U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617490; c=relaxed/simple; bh=GwHiBAGM+NwvdoO2dGzP3yJxJSWHd8XAM4cxyOG0IqM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=u6Ju3KG6A5g4GgkmkS8yehdyAvEM7u+QDg0fdzt0o9x0sCe2c39Mf56E/1U9FtqsDXDA8PkneTnT5vho/Z3nZUu2iPgRwpuGTNfzXTkCLbesnFmo0fv2VZwPo2/J0GXbePHmiaC1sL9L3lCyEkHPZyoC7RXW8mGKDes8jcZzPPs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LrDZJBwC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LrDZJBwC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAA71C19423; Fri, 27 Mar 2026 13:18:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774617490; bh=GwHiBAGM+NwvdoO2dGzP3yJxJSWHd8XAM4cxyOG0IqM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LrDZJBwCrXAhfypc3wwqiUcgtwp99+JdWLv3+baUsu4bzzwgTJM+oK+Q9t/oOp66X RpJlFRnfnH5Z/oyBIuYvWlDH2H9dhF3wG8xOW0YEof++0kuSMFSAvL+sTmrQChinQ2 PhK3ccRlI7Ef/eXIHX5JCoRvA4b/V64SfNuQcM5TaMfWfMZ6gEB/hp9/wHdto4kH7a GDInLBLjTP5yadpJFYO6+UB27hpy0Rk++Kz6OC/Ii7d2PVnWMeFMJ+iT4pc+S0WFkI PfzWKkf83fM6t8r6880wXBOWfchW/w00WCgO+bhykHP7ZxwUab67xZxlUSxQJhftge yUvuzAx4Ecayw== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Finley Xiao , Kever Yang , Heiko Stuebner , Willy Tarreau , Srinivas Kandagatla Subject: [PATCH 8/9] nvmem: rockchip-otp: Add support for RK3562 Date: Fri, 27 Mar 2026 13:17:50 +0000 Message-ID: <20260327131751.3026030-9-srini@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260327131751.3026030-1-srini@kernel.org> References: <20260327131751.3026030-1-srini@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Finley Xiao This adds the necessary data for handling otp on the rk3562. Signed-off-by: Finley Xiao Signed-off-by: Kever Yang Signed-off-by: Heiko Stuebner Tested-by: Willy Tarreau Reviewed-by: Heiko Stuebner Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/rockchip-otp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index cfb69bc58869..62ce22d72586 100644 --- a/drivers/nvmem/rockchip-otp.c +++ b/drivers/nvmem/rockchip-otp.c @@ -376,6 +376,10 @@ static const struct of_device_id rockchip_otp_match[] = =3D { .compatible =3D "rockchip,rk3308-otp", .data =3D &px30_data, }, + { + .compatible =3D "rockchip,rk3562-otp", + .data =3D &rk3568_data, + }, { .compatible =3D "rockchip,rk3568-otp", .data =3D &rk3568_data, --=20 2.47.3 From nobody Thu Apr 2 15:36:16 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5ABF83F7E9A for ; Fri, 27 Mar 2026 13:18:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617492; cv=none; b=vFff/B9xVrr47ct9lvawxEsZKDRve9WezdNYzhePEhh4D8PeaCNp2FWxJbLpX6DZrxfcLrp+4Qp3Q7/064aQeVziTEvFHrbQMcxjQ96EJ867X08l20V/ZXjSkD6xIWl5hWoQLQj+pnUds3Lf2wCbaIMrRBPYr1tzlRFmMuy/bKM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774617492; c=relaxed/simple; bh=WivO5w8EuSMLcTaVVgAX+yfOU5pQsPYnN5OUproqkBk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hfEGhsBgsEec8zesmwgSC/mYyoY5j0mXJMuT00YVKFv9pT8CDDvIqD561e/FvEBNEifvZiZ0iact93j6TqgB9on98VRiNJODXCY5n2ciMGkv+0oFxCb89vkR7ogDl2ifDDHaIgE3+Tu5qHy1mwv5KMDTax//JfvUzefKbe8i9m0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZHVruZUd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZHVruZUd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEE76C2BC9E; Fri, 27 Mar 2026 13:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774617492; bh=WivO5w8EuSMLcTaVVgAX+yfOU5pQsPYnN5OUproqkBk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZHVruZUdGmbnJyyeEBfBAyGwx4Y9APUXTiHGO7fvG9jPuOiCNlOCqRa1jwxFL7y7v jP4iRIrwoX6wu+Fa6gcsdIzaj1kgJk2LID12biY9fgoDDU3yFxM7Dxqv0nKPWcsQAB YalD5DOE7r0erjSEnxk3iIG9/Cn1C7TcicaZKobZ0meVPzIE4awIu+Txkt11u8rHFu Fi+rLgGlde4y4yJkEnvCd3IOtG2g2ivYAL69j2rWO/gZ5uj2LkugBcnacZauVakSqF 5pVbXPncO8bFGnm3qPka7+MDLFWRP6oOq07S3+eNaGUQDShYSBnWEGkEp7YPLNoGHl 0GI9dq/FaQF1g== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Jonas Karlman , Heiko Stuebner , Willy Tarreau , Srinivas Kandagatla Subject: [PATCH 9/9] nvmem: rockchip-otp: Add support for RK3528 Date: Fri, 27 Mar 2026 13:17:51 +0000 Message-ID: <20260327131751.3026030-10-srini@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260327131751.3026030-1-srini@kernel.org> References: <20260327131751.3026030-1-srini@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Jonas Karlman Add support for the OTP controller in RK3528. The OTPC is similar to the OTPC in RK3562 and RK3568, exept for a missing phy clock and reset. Signed-off-by: Jonas Karlman Signed-off-by: Heiko Stuebner Tested-by: Willy Tarreau Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/rockchip-otp.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index 62ce22d72586..0ec78b5e19e7 100644 --- a/drivers/nvmem/rockchip-otp.c +++ b/drivers/nvmem/rockchip-otp.c @@ -333,6 +333,18 @@ static const struct rockchip_data px30_data =3D { .reg_read =3D px30_otp_read, }; =20 +static const char * const rk3528_otp_clocks[] =3D { + "otp", "apb_pclk", "sbpi", +}; + +static const struct rockchip_data rk3528_data =3D { + .size =3D 0x80, + .word_size =3D sizeof(u16), + .clks =3D rk3528_otp_clocks, + .num_clks =3D ARRAY_SIZE(rk3528_otp_clocks), + .reg_read =3D rk3568_otp_read, +}; + static const char * const rk3568_otp_clocks[] =3D { "otp", "apb_pclk", "phy", "sbpi", }; @@ -376,6 +388,10 @@ static const struct of_device_id rockchip_otp_match[] = =3D { .compatible =3D "rockchip,rk3308-otp", .data =3D &px30_data, }, + { + .compatible =3D "rockchip,rk3528-otp", + .data =3D &rk3528_data, + }, { .compatible =3D "rockchip,rk3562-otp", .data =3D &rk3568_data, --=20 2.47.3