Received: by 2002:a05:6358:98a5:b0:11e:80f4:e92 with SMTP id q37csp23181rwa; Thu, 4 May 2023 13:47:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4j1dtB8tbJwtMaOYbxHRVUsDzuBfCsMx/DX8UpKbB0zSX58EwjnhXv/wKgy/Y5NtxPZJ1t X-Received: by 2002:a17:90b:4a49:b0:24d:f8e6:9d4c with SMTP id lb9-20020a17090b4a4900b0024df8e69d4cmr3054417pjb.49.1683233262137; Thu, 04 May 2023 13:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683233262; cv=none; d=google.com; s=arc-20160816; b=AbNmxX+HafeSj1pqpt25W4hBINYmX4OEl0LhSdR+NRM7cMGL5FYLN/UJTHVnI8ibYv PKFXwVyF14+xz7U3KspTKqhrXqK8TOuAKCS6u1DzTJhzDRKT/omYpZWpJ24F9wDwx7Db m8Dlh8LWKZMXDr0QcFdu5eWmW/ecZYH8z+Vvzr0eGzaZPmFMCTnnuXLMgNE66QDfoHut OwEd5DiZANDS4LWihhbScbCeJBaAfOacf9QfxRtn3UaAJQS3CVKvd2OReeulTDrL+UyM 2dYvP3AUeENDKvdkWmM01jprAo2YP9P511EonzW5Iiyj6t81NoJiiVIbCO14167AQX25 G+AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ix4LuzWV6HQSWZI0qoWGusv8sB7LPmnskrgV46M647I=; b=x+XqKUGaoXUoJqW/kWA3s7CMAXiwWwBnwNI/jOdqQQ5aRA3SVQKIvZuV0ww4vXy3S5 hJoUJHa72YZtgOskeZflU8gT2irKIhZoZmA+l/ZGHoN3p2NwFAYD/EOsBezOxT81wEjr D2ZcCg1Qzv7o4gAbXRJIwxvtjEqRwUpbSBEOLMl1NGib0Azbf19gmHvLhq28BkvrI/l+ a3SrLR6Mu8gRdhG5qLTethu2JSPqtiHnJEvdiZgA0n8HsUuylSVvL7Qt6Iq2iN/BFo3t zh5hboZ/5wEObTgdXhajoiHznP+jTHZqYG0Tj4zkk0TFcZ9CRpS5sK8zEw/ZRc98vAPN NSDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NubI2CAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 14-20020a17090a004e00b0024e52b03440si3913556pjb.101.2023.05.04.13.47.29; Thu, 04 May 2023 13:47:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NubI2CAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231167AbjEDUke (ORCPT + 99 others); Thu, 4 May 2023 16:40:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231673AbjEDUj5 (ORCPT ); Thu, 4 May 2023 16:39:57 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA61317DEA; Thu, 4 May 2023 13:34:48 -0700 (PDT) Received: from localhost (unknown [188.27.34.213]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 499596601F54; Thu, 4 May 2023 21:06:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1683230816; bh=5R1AIP1C8/sZhgM+e+W1QCHOVzm+rALCBEYDFotBSzc=; h=From:To:Cc:Subject:Date:From; b=NubI2CAhpfrk5Vkj5jePnt0O0S0mN8VxWn6NBr0xioj1eMAMVzcuVCH1keYw9Kdit DgfX6jyv2OWVTu0Q9HzOJRKklRpFdm4zbsHYccq6npbU3OHYkmzF56SN6fU1DJNO8r r1Og3N7ssWzlAQ/4eADOt1sqq9a0dHr42no338IFzux7XTClvaJYlp7LBS2vIl+Jx9 6rJxnCZzkPN7LjyiwKO+h2HULhbCo28N+S1nUCuD6hbYNyQp2rffM8Fp2lMzhHbpb9 qP/umiugDzshJsAKzCn9HvMi7UjIBJQuB8/rLsG63HNtcRY7/9WI0cwrkXSMUzBO4X m9rfP48C2iSjA== From: Cristian Ciocaltea To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Philipp Zabel , Sebastian Reichel , Shreeya Patel , Kever Yang , Finley Xiao , Vincent Legoll Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH v2 0/8] Add RK3588 OTP memory support Date: Thu, 4 May 2023 23:06:40 +0300 Message-Id: <20230504200648.1119866-1-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds OTP memory support for Rockchip RK3588 SoC, while also providing a few improvements to the existing rockchip-otp driver, in addition to converting the bindings to dt-schema. Changes in v2: - Renamed rockchip-otp.yaml to rockchip,otp.yaml and removed clock's minItems in PATCH 1/8, according to the review from Krzysztof - Updated commit message in PATCH 2/8, per Heiko's suggestion - Renamed rockchip_data's clocks to clks in PATCH 3/8, per Heiko's review - Preserved clocks order/names from older SoC variants in PATCH 2/8, according to Krzysztof's review; updated accordingly patches 7/8 and 8/8 - Added Tested-by tags from Vincent - Added Reviewed-by tags from Heiko - v1: https://lore.kernel.org/lkml/20230501084401.765169-1-cristian.ciocaltea@collabora.com/ Cristian Ciocaltea (8): dt-bindings: nvmem: Convert rockchip-otp.txt to dt-schema dt-bindings: nvmem: rockchip,otp: Add compatible for RK3588 nvmem: rockchip-otp: Add clks and reg_read to rockchip_data nvmem: rockchip-otp: Generalize rockchip_otp_wait_status() nvmem: rockchip-otp: Use devm_reset_control_array_get_exclusive() nvmem: rockchip-otp: Improve probe error handling nvmem: rockchip-otp: Add support for RK3588 arm64: dts: rockchip: Add rk3588 OTP node .../bindings/nvmem/rockchip,otp.yaml | 122 +++++++++++ .../bindings/nvmem/rockchip-otp.txt | 25 --- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 54 +++++ drivers/nvmem/rockchip-otp.c | 191 +++++++++++++----- 4 files changed, 320 insertions(+), 72 deletions(-) create mode 100644 Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml delete mode 100644 Documentation/devicetree/bindings/nvmem/rockchip-otp.txt -- 2.40.0