From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2EC3A606A327 for ; Wed, 2 Dec 2026 10:08:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=OVoHlCYK; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=cUE+i0S7; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=s58KfQc8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=JE9g5XVcC0/IlQAqXdFDdavFJKLvJbmmWnsLGbIyx2A=; b=OVoHlCYKCpn85f9kZSY2RioTWu /YJ0z42hjVzdQ3G35L8oXjrUg3XNl+G2WA1TxewVOo1FXvi/6cLdKwQga5jSoiLK0T+Jt4665iu+H 8b0yRwaGwc/EpIIXQwx7ZfbaxvXJWqPwRrsnQv4+538brCpIb81wNYTEd532M/SwKAkFzUuAPvizO tbDsaak/fKJGSGJc92ASdc24orHYV0j4VtTFKpSOzwz+pF0vpz5nJRp5OOc8pXXsrT8w4/UOmxRyD dB3f70ZqwAKPNtWlLEWUo2WCuUzVMj5bfgEvzlGUVzKLHj1QGikPLrzfolEa19KeT+A3DtDmWJ/on 5BtTbGJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYhFx-0000000B1mp-117w; Wed, 02 Dec 2026 10:08:09 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYhFs-0000000B1az-1YIh for linux-amlogic@bombadil.infradead.org; Wed, 02 Dec 2026 10:08:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=GJfn2kqjMbSnbyHjizZbG6xy/5ffyF+/P5tuT1PxlIc=; b=cUE+i0S7UgRy2wXQvAoSYYXcqU 4CnQnuiNGrX/DPzZLE3/HZA8l65LMtkjkRNrl7wI5K0f4fJgVl5yTtUWMhKQPVgQB9iPdlqnHu9fa HTmh3DqHblZkRSxtCwi8MYxOzpyKIx1bqgoZ0lQeSwELmwrlIGnjIhiamTTnj/e4vsrimSCF7i52o 4V5TnpDvXEIThmejawOQvLubbV5hB0clyCqqjPHH0rn2huQHJ0MLveEV3x8CwIJBY1Lq7TWIOXmmQ iWuIi5XLT5WfsVOmYmNKwZkj7h6q8MXWPo7itQaixJ62QyzytL0kVuDZows5CXUNBOqAB0BtBADX+ gEfBLEQQ==; Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by casper.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYhFk-00000006SsM-3rMc for linux-amlogic@lists.infradead.org; Wed, 02 Dec 2026 10:08:03 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-492690dd5daso9935435f8f.1 for ; Wed, 02 Dec 2026 02:07:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796206075; x=1796810875; 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:content-type; bh=GJfn2kqjMbSnbyHjizZbG6xy/5ffyF+/P5tuT1PxlIc=; b=s58KfQc8s0Oxljo0KWTb+YUIfkrNtaevE++RXKs7lnABAnnh4A3yn5te919e1JcU+y /osvBzwtvwMxROg+5P+qwQGCzXRW//kjyh2kr4hb6P/Q2QqSoZRXdbBxoduihP4mjzhr Btpx/QpDMqhXPlgAUiWaom2jZ49zJZPFiBScoytjFog2rrxIqucoH1H7GPejzMN+k+EL cz4uO1QSIQqnL+bcPjHOpWrvus2ij0CL2i/T1h0HsfOPDsSlik8SVUjpwfgoUZRhwQ/2 o32DFZt8AMS5EILLTXJvBV6vCpD6zeAO0lseFRubkbd9+d4Spmq5yRiw+pE17IrnEvVu jQpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796206075; x=1796810875; 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:content-type; bh=GJfn2kqjMbSnbyHjizZbG6xy/5ffyF+/P5tuT1PxlIc=; b=Pv+siYXwFfOSVDUFVs9uOXv2Zy3uU63jH4M4vkZBgtgwwEJhHp8Dw4CGj+SNXl4nZy 2ljPsa0iSZiZN1KPbfTtGbUC3csS3LUUa7zrUUVbX+8H2QQFFWfEKeA22NKC8Z2bq30p Lzjsf3WmG9LFbnx5cnRRbUftbyx5U3Cmhi2X/f00gGBgoDX0UjoxS8KQD9Tj5yYqUVRo fmKsHU7iXBYlmCXmE38BRi7qpKQxblCuvT+oPD8OYtM4tBhk6sLzU1w6K1xyw/k1AstK z7URIniFiMjaUXSZf0xt3Vd2m3HffMb9uqSz1tedvA4GdjE7CjgNHIo+IeDpZs1/Ybtw Ouyg== X-Forwarded-Encrypted: i=1; AL+hErFZs+T7tCoV3fEMho8djYXK9oOn56MkOkqilfT/Q9uxTveUGFJ4nocsBYjQH33p+tI8WEScZnNvmzao8Rj7@lists.infradead.org X-Gm-Message-State: APuU4Z/B+J4/AYA40VySTkzTZwpoOZ4TlM102Q/kdjwnKMQu8/rDGh0z EACAh7CpxeBf0Rdml6Hyiuf2YyG9zSLYifmFvfhhnOrHpcau7rEf+mFR X-Gm-Gg: AZFdTZdd7mZB5kzhc0UoyoIst3eWbur4++W6DiK9lee8o5TN8STGK/VaEksnifrGnfV smQmjIZH0hQxuE/3J6D+0dc080RE07dzMtClZm/49+ipj/4bPiCqVt3z26rHWZ2+6rUiQOkDlWi QR/3ZzAGQPOrV4/lIuck2hfYIG1XDXjV+KexRYWgWoj/CVL/3AUJy2GnXyDkWx2qF7TOjLh8ClO d2zq/BnLcOc4AwsxxwWqS6c8b/xKFOTdjmh1xGpXDZUUVW4cAgk4ak+AviwjW8T+j6+ItuEPv2e WuccYntFC0mxkL0a4v5cFSC+rZfK7m5juR2z+wppY+QWGmuegawFX79nDdfwOeNaQRKC0UascIb 0bImMmzVud8U6Fkv59ivOiouCZWcrPk0vNv2pYT/k/WUGYy0KqtFQtGH9tIWMZyK5WTaRWeNpzT La0DzlD3zgy6HBJOOoT+Uv1Kx1wHbGl+/dnpvYgAz0J+tfbrfinGlFZ+hBQnVTdtIZ6Y0GKnI6v 18us50Hx8Xjroos/WhpqiCqOMjm03awK2C/HR1f1u5VDfV/YpB+/LaqERnsBJi56vRy2QaKDuJU mV+1ETg4KslNGsWcBr9a8MOVX+1he6V45oWlB23MAPOXfA== X-Received: by 2002:a05:6000:45c7:b0:49d:7da6:7d4a with SMTP id ffacd0b85a97d-4abb3956500mr50381566f8f.34.1796206075036; Wed, 02 Dec 2026 02:07:55 -0800 (PST) Received: from localhost.localdomain ([79.117.198.103]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6a67fe75sm87617495f8f.24.2026.12.02.02.07.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 02:07:53 -0800 (PST) From: Jose Nieto To: Corentin Labbe , Herbert Xu , "David S . Miller" Cc: linux-crypto@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexey Romanov , Jose Nieto Subject: [PATCH v15 17/35] crypto: amlogic - Add support for A1-series Date: Wed, 2 Dec 2026 11:06:56 +0100 Message-ID: <20261202100714.115460-18-jnieto.alaber@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261202100714.115460-1-jnieto.alaber@gmail.com> References: <20261202100714.115460-1-jnieto.alaber@gmail.com> X-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_100756_986056_8893162D X-CRM114-Status: GOOD ( 10.01 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Alexey Romanov This platform data also can be used for S4 as fallback. Tested via tcrypt module and with custom tests. Signed-off-by: Alexey Romanov Signed-off-by: Jose Nieto --- drivers/crypto/amlogic/amlogic-gxl-core.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/crypto/amlogic/amlogic-gxl-core.c b/drivers/crypto/amlogic/amlogic-gxl-core.c index 08d89db14788..3a6bac10bb04 100644 --- a/drivers/crypto/amlogic/amlogic-gxl-core.c +++ b/drivers/crypto/amlogic/amlogic-gxl-core.c @@ -298,6 +298,14 @@ static const struct meson_pdata meson_axg_pdata = { .support_192bit_key = true, }; +static const struct meson_pdata meson_a1_pdata = { + .descs_reg = 0x0, + .status_reg = 0x8, + .setup_desc_cnt = 1, + .hasher_supported = true, + .support_192bit_key = false, +}; + static const struct of_device_id meson_crypto_of_match_table[] = { { .compatible = "amlogic,gxl-crypto", @@ -311,6 +319,14 @@ static const struct of_device_id meson_crypto_of_match_table[] = { .compatible = "amlogic,axg-crypto", .data = &meson_axg_pdata, }, + { + .compatible = "amlogic,a1-crypto", + .data = &meson_a1_pdata, + }, + { + .compatible = "amlogic,s4-crypto", + .data = &meson_a1_pdata, + }, {}, }; MODULE_DEVICE_TABLE(of, meson_crypto_of_match_table); -- 2.47.3 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic