From nobody Thu Apr 2 17:09:58 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