From patchwork Mon May 1 08:43:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 8793 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2558310vqo; Mon, 1 May 2023 01:45:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5290ozPQNHfg6YutmWl8ZauquRdb/tWC5/WGPD+8Aa2Spxan8miv/V3/+8qQq0N4tOaTvS X-Received: by 2002:a17:902:e747:b0:1aa:e938:3ddf with SMTP id p7-20020a170902e74700b001aae9383ddfmr4547704plf.7.1682930729655; Mon, 01 May 2023 01:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682930729; cv=none; d=google.com; s=arc-20160816; b=or8Mf/of9pFkpwGL4zJCHekWyOaSD/Wu8R7qSoLry716GUXwqyZyvireo7wGQKLBIJ wRoBRPtXGwDHaZG2mZhokdfqaBq5eX54I4p7/qT3VkOeCFNuqg0Ra84R+n9hkRGLKC+L 6jUVReghyuIVpiR1XYdDm8agojCA+77ysSDWPdMrzMbNR4jML+38/x7kgKW07GiyMG2q dVzfMD/4dyhG3GH3WwovKeev2V1dEmwC+pksIL6pTgj90I64ygx6n6OMv8LYCmhpusIc 5tSVx8pHFQVhRU2hG6JwpWQJePK5Z2sXUtbfzLXcNoTFE4NX4HGLDHL9+hrM5HXTproE MTUA== 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=wqp+cnghhodlqnKqpzwPBVm0erN/N1cZ8OuyGFv+2WU=; b=H8cklAbHefRZO9kiHfEFXVs63kO5ASt/ANfhmi6aTcrGryMj8TZSiu+sOa448EnfBE T1W6OzPvnbPOb4cUkljQBGrnufPQQ82uJkY6ypDF95FAIjUWjLlUcREMeo7JaMHXwpaq 2NdoH7f0+EN6gMDWgqQQP445VPiRlX7C/wJvfD6Zf6NzGaJkJPbIxpzlhOJhArs4R6CV NWL1ITdFcgdjnK74Hh9BJKwD86vpq/fY3APDPOdPLzCHvONE6mF7aDHn6p8WYFVlv/f2 FFNclbq+1nRNUtCU1KN9GKPs3M/b4A+kouWEzLOrAexqB8uN3wmmFMUsDLCg6MHXRfWS UdPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DYaGZRtU; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020a170902d48b00b001a97c1afb8asi19279382plg.622.2023.05.01.01.45.14; Mon, 01 May 2023 01:45:29 -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=DYaGZRtU; 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 S232169AbjEAIoH (ORCPT + 99 others); Mon, 1 May 2023 04:44:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjEAIoG (ORCPT ); Mon, 1 May 2023 04:44:06 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEDB5E76; Mon, 1 May 2023 01:44:05 -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 34CD16602F6A; Mon, 1 May 2023 09:44:04 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682930644; bh=WmZbj+7p52spdKhp6FKYvpWDarz0ByKdPc4ZP68owZw=; h=From:To:Cc:Subject:Date:From; b=DYaGZRtUwGtlnTjQ30D05KiBQXkYdm5wWE14E1kMe3NagxEikuNBVgE5MCK5z+sLx hX3sXlrY+H1Xh5JHKYQVmjOAaparQ5GWVFVOCh+vQSNqyuczP5EOqF5DCSBQPY3vx8 Pd0wKZSppy6OiWbjbJhnhqmpvzGfa/BdUgXexDC+EELUSOUjBVw5R/McXGC1QG2I7t n0auLBIUZWAXIUyQfkhDGzL+oopVFH2A0YEMPQiA+qKhjwqs/tUZxOG/XkBJ/njkCn F7DsbLcpgKa+xIzXN1ztxOE2yILLRC+udrbBx+1d+b1oElLzz5dYticlYPNKBFr9d9 Pf0KBChzzvokA== From: Cristian Ciocaltea To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Philipp Zabel , Sebastian Reichel , Shreeya Patel , Kever Yang , Finley Xiao 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 0/8] Add RK3588 OTP memory support Date: Mon, 1 May 2023 11:43:52 +0300 Message-Id: <20230501084401.765169-1-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764680772697641524?= X-GMAIL-MSGID: =?utf-8?q?1764680772697641524?= 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. 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 clocks 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.txt | 25 --- .../bindings/nvmem/rockchip-otp.yaml | 132 ++++++++++++ arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 54 +++++ drivers/nvmem/rockchip-otp.c | 191 +++++++++++++----- 4 files changed, 330 insertions(+), 72 deletions(-) delete mode 100644 Documentation/devicetree/bindings/nvmem/rockchip-otp.txt create mode 100644 Documentation/devicetree/bindings/nvmem/rockchip-otp.yaml Tested-by: Vincent Legoll