From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9766CCD6E55 for ; Sat, 30 May 2026 16:07:27 +0000 (UTC) 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: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sh+f2AliULr9Rp7wvXUw2a0MafO9SPx6nLUlNFzn0RI=; b=aIdn6ZahgGPj37zxPXSkgjjwu+ 6+k3NZQe9yTGuacqLHqsbFIeTN7mQVe4PcmGkSkQjQWOPzTpHh0MF/WvCwX4dyidBF3oSoGOBEahH F9okGzjtH13QE+3FkDjDA+UyhX6QbvftCl6I4yD5Sy05l878E60Q20kpeuOL7oInBRigrJ/sJp5z2 lYSFVQ/aGBfYOX/Q3g17CHrw/+iWq/NS6mfju0ixCPz+FAG/raI6oeTMyCwLwoB99WcXeDAHXOm8r osE25NAcIC5AxMNMNReAjwAFLoUHorA5nWxrnfbP4GZr0o2FywMP5/XgLlpKBa5/VkFnKvwddEIfV jJs1NfIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wTMDY-00000008uAM-197m; Sat, 30 May 2026 16:07:20 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wTMDS-00000008u7V-3eCf for linux-arm-kernel@lists.infradead.org; Sat, 30 May 2026 16:07:16 +0000 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-45eedcdaeaaso1793787f8f.3 for ; Sat, 30 May 2026 09:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780157233; x=1780762033; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sh+f2AliULr9Rp7wvXUw2a0MafO9SPx6nLUlNFzn0RI=; b=l2zuropmHC6AXB+AZV1CFL4GMWvy6bS800/iexUqgn06dEU+d05rxyaIZkjcwrmz/I EIKz72vqGft51YJ4vgTIi8HYDA9GWdWo7DMrn7+sldP1be0Q4uLsYjU6oFUaigff9Cym QeOx+uK/9POhoStCTsnyNkFoVjz9urfCQp/EZ+RWyFJdHibxdruOLYuoEg9YxytDmHiV VXnpKT+osqDadwgtIBvQFvRTE5HwEGh8zjLQKsU7zsRmptG0WvzWVVHc3sS7r6DK5wR/ QQuNBKnTJEG/rciBMSON9zwzN/lmdEiewy4yjEYsDKJS4BQSuzDBoR3ZJoavZUBMIOUd zwyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780157233; x=1780762033; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=sh+f2AliULr9Rp7wvXUw2a0MafO9SPx6nLUlNFzn0RI=; b=bwPpKcofrShu+Nx5IDR5YhGr1zvmNEyQ/ILSftvPlE/7Nfu0Sthh+RPUwyrKfJBDmY EeruZgvhgit/HWVZr0QyirCYQmug6rJBgBJh+Y6xGsTzV15UQ+tZwkgvwDmXa4hVsdR+ lHG4iH2OkCBJqs1etdo3ZzU4EwNpDbuS/k2A15jGZYt1hSoo8JJXBafnVhTllurapPo+ +9/7p05NTwX43Q24qBqVIqrgE1aiLbfpGIhIzitRP4qu5vG7eK+JBPiLIOLT2KRkF9HM 1Pr1Tszd245f5wr3uBInJbdVZiqhidIu6TzTN7YwVB3Cgh2W8agof33WOs/zD5VOH0J4 qinA== X-Forwarded-Encrypted: i=1; AFNElJ/ABiFm8e4Fm0cBMgivgYpM7mrI1h5D7bHOonyFme+wOOTbUQugxtRqmwbXzEeP/j2GyqK9IBP2lvRAh4IFp/Ar@lists.infradead.org X-Gm-Message-State: AOJu0YxyPTDnmB4KonfUr3XkTKnz2CXDFy4ACaQKnTh6csB3TBrCK7Wu VCegWrr/5WCj2pW9zWqv7h3rUPnNN9NGanyD2vN0Xc4wlZFq9rHCIl8N X-Gm-Gg: Acq92OHebgJ8+P39craqaRuFMSP/1znkJszB1Pf5bIJ9WnG/GVYdCTAVAXB4jo1dO10 kZKOrtS4VoxpWhim+4v5txSC1DV+b4sCdmZ4PUisFg1mBxWJWwPFlD6PKoML0gQpx8kT/wI2VHF kQBn+31Efh4ieREjd+sUUD40efrRJ/tWvCcZVgJeNtVI0ZkOCiAcr7tc+rGVmlKngXkgki5aZ++ 05yj9MbR+JK2/gLkr8k6gvE1AsXn1Sv7+8eMBnTKu6OFTTbkDW1KnN08Q0xvDvOnGMsI7BnXAyG yvDzOujPLrMW/R3U/yncnctQoMgy26mfOsPRK55izTp8uPOm0gWZzTL3c6nTXxik9NwMisBhHMs e/dK3gkGISN2N7C7NEeBogISER6bDyR6PpxWSMv0SCvvY1LQjrRBwhXFMXcqfmWxX5cpg7z1mjJ sgcFb0vLSfver8hogz8hG5vY3MnWo= X-Received: by 2002:a05:6000:22c7:b0:43d:762e:76ba with SMTP id ffacd0b85a97d-45ef6b19b8emr8623681f8f.17.1780157232877; Sat, 30 May 2026 09:07:12 -0700 (PDT) Received: from olympus.. ([2a0a:ef40:ea3:3f01:2e0:4cff:fe68:285]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45ef32fabcasm11667339f8f.0.2026.05.30.09.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 May 2026 09:07:12 -0700 (PDT) From: Dawid Olesinski To: herbert@gondor.apana.org.au, davem@davemloft.net, heiko@sntech.de Cc: linux-crypto@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, clabbe@baylibre.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-kernel@vger.kernel.org, Dawid Olesinski Subject: [PATCH 1/4] dt-bindings: crypto: rockchip: Add RK356x/RK3588 crypto engine binding Date: Sat, 30 May 2026 17:06:42 +0100 Message-ID: <20260530160704.3453555-2-dawidro@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260530160704.3453555-1-dawidro@gmail.com> References: <20260530160704.3453555-1-dawidro@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260530_090714_939397_25661133 X-CRM114-Status: GOOD ( 14.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a YAML device tree binding for the Rockchip second-generation (V2) cryptographic hardware accelerator present on the RK3568 and RK3588 SoCs. The IP block exposes AES-ECB, AES-CBC, AES-XTS block ciphers, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, MD5, and SM3 hash algorithms, each with a hardware DMA engine controlled via linked-list descriptors. The binding covers two compatible strings: - rockchip,rk3568-crypto: clocks and resets are driven directly by the non-secure CRU (accessible to Linux at EL1). - rockchip,rk3588-crypto: clocks and resets live in SECURECRU, a register bank sandboxed to TrustZone. Linux must request them through the ARM SCMI firmware interface (scmi_clk / scmi_reset), as direct MMIO access to SECURECRU from EL1 triggers a bus fault. Signed-off-by: Dawid Olesinski --- .../crypto/rockchip,rk3588-crypto.yaml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/rockchip,rk3588-crypto.yaml diff --git a/Documentation/devicetree/bindings/crypto/rockchip,rk3588-crypto.yaml b/Documentation/devicetree/bindings/crypto/rockchip,rk3588-crypto.yaml new file mode 100644 index 000000000000..4188ed8920db --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/rockchip,rk3588-crypto.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/rockchip,rk3588-crypto.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip cryptographic offloader + +maintainers: + - Heiko Stuebner + - Corentin Labbe + - Dawid Olesinski + +properties: + compatible: + enum: + - rockchip,rk3568-crypto + - rockchip,rk3588-crypto + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Core clock for the crypto IP internal logic + - description: AXI interconnect clock interface + - description: AHB interface clock + + clock-names: + items: + - const: core + - const: aclk + - const: hclk + + resets: + maxItems: 1 + + reset-names: + items: + - const: core + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + +additionalProperties: false + +examples: + - | + #include + + crypto@fe370000 { + compatible = "rockchip,rk3588-crypto"; + reg = <0x0 0xfe370000 0x0 0x2000>; + interrupts = ; + clocks = <&scmi_clk SCMI_CRYPTO_CORE>, + <&scmi_clk SCMI_ACLK_SECURE_NS>, + <&scmi_clk SCMI_HCLK_SECURE_NS>; + clock-names = "core", "aclk", "hclk"; + resets = <&scmi_reset SCMI_SRST_CRYPTO_CORE>; + reset-names = "core"; + }; -- 2.47.3