Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4103677ybp; Sun, 13 Oct 2019 22:19:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCKE8E30e75c0y8BXpH4wK5iuFPdGFIrt1T3nLYDGiu+QFIJdh5jDdQyWZ25Tk1JJtaLzP X-Received: by 2002:a50:ef17:: with SMTP id m23mr4616150eds.200.1571030370139; Sun, 13 Oct 2019 22:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571030370; cv=none; d=google.com; s=arc-20160816; b=tLonzKSpLpH0NiDbBlyGKdo4ByQTXux/lzssyweRAnbj16iqZuQeMkCn9QSFPhY81b ZfP+KYF/+ZX2ahJC9MvHy8Ze5/tpcAc+Ym/ohXI9eZZ58RSHf5kGjwQIiUcM4wuX41oa XNWd7qxNIFJ/1B3tzcp75unW8DC0FiJv5NUMmOZ8qblxt9BSLFfJJldSMvoxJU9DuIeQ NC8F60CI5f01h7q5NVheNmRrPi7kE0ZY6+BYb6AekDJnowopqxJA0nOdzToAfa/lUqdl aKCWRUkHKRYmyJjrLfB22zhmBJsLgbTp3B90FoUXMhc43EO6ReHCn7Fg4c+5IQQB7jzE 0pJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VV3IaZnskbUr1GiFO2X9yDGhA134LORR3NXQx0QiOlA=; b=a9Iq91Gro2DbkjW9FuvQSUI3/s5C2wK4MgsV70T+AWm6/IpN2MTUsr0madaJ4E3Mwc su7BzmxMPeDqi+dnFFvJ4UuCjjtR1ceWgjzG1SupC3v485CAd5MH9R5yfsmhXQV6oer4 MH1lZ6AzX0Fy86Wjhha0Dzw3Kiy52Xsn1F5fVyMM6gO2atn5AuEQ/FQqdT6SDUjaA66A Ii/XRElBp47wIxP+Ljk0GtkQBXJKs5YyFZmQeiXW3eRW1REs/PQEVWpQwh5ZAIATKrRv z9IamHF9E00PfdOZhyBbrJL9BBgkA9e6G/QB7nITtCowD3llM9YvVhwAZhYrIA18aRyI nu7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GF/EoEen"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si9882150edr.443.2019.10.13.22.18.55; Sun, 13 Oct 2019 22:19:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GF/EoEen"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726528AbfJNFSr (ORCPT + 99 others); Mon, 14 Oct 2019 01:18:47 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34596 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbfJNFSq (ORCPT ); Mon, 14 Oct 2019 01:18:46 -0400 Received: by mail-wr1-f68.google.com with SMTP id j11so18029762wrp.1; Sun, 13 Oct 2019 22:18:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VV3IaZnskbUr1GiFO2X9yDGhA134LORR3NXQx0QiOlA=; b=GF/EoEenQBXCUWJ2k0tzuqQR085/nEg2EkMXurnyEdNA2zKX6mjtAE5DIkxdZ0UU5Q wSofKEtnAsrgiJeTSdIjD03CU0AYKb/SncJB2yl5/6p80ZrpgWSQoPklhw3I461/0+89 zm7Sp2nZb/rLh1lZG8RLs1GXPEV8El4hcQ661jDremdTBE5H9wt8573KGsGOPmbhlZoC 1yHBDrCLpIEkaqxcvFLeaCQMEoWaNvrrRsqGeqp50z8CPYO7Fp7+cftycC7iLB4mmS0n QQzIa0U6xir7ZDLNcQlPRwVrRP3iWp9AdJI6aK3c+j38tJ61NbCXeZrw7E3NjzG116Gb keTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VV3IaZnskbUr1GiFO2X9yDGhA134LORR3NXQx0QiOlA=; b=dKrmCFsN2NRqEZjmFlD5wTc4JYhAkXf1jYR8L7eTE9PKNRKE8mHHuZobUdWgbqqfxG tBen3FMdn2rWczzxA3xuos8RZEVDZis5aJnMUaG6v/dUeTstf4G5yAHnedDDjuviPSu0 CJcRMt/Pb0Obp3wF/eyKPv686oeoZGwZln9VtaznFLcLS03iY7oaoKL9tIWPdqtIrJwK OF53PqAIS/9FwtPic88EpHNdJfbayoOAth8JcLigX568J0cghhKZPrL74nwfS0dJw1ui lc4UTfQg5H3k1L8dsxJ3Zw6UHKi3y5EbE72EcjcwakNKqJORo5C9peDU/6ql5BG1oUfJ pXQA== X-Gm-Message-State: APjAAAW7wuAiolgVdIEK6tvAceI+JIt+a7NpA2j89PzkSv7les8RtSj3 h5kxHiqtgCI9Lq1ldvYOu+RroB0P X-Received: by 2002:a05:6000:18d:: with SMTP id p13mr1507726wrx.396.1571030324402; Sun, 13 Oct 2019 22:18:44 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id 5sm14660340wrk.86.2019.10.13.22.18.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Oct 2019 22:18:43 -0700 (PDT) From: Corentin Labbe To: davem@davemloft.net, herbert@gondor.apana.org.au, khilman@baylibre.com, mark.rutland@arm.com, robh+dt@kernel.org, martin.blumenstingl@googlemail.com Cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v2 0/4] crypto: add amlogic crypto offloader driver Date: Mon, 14 Oct 2019 07:18:35 +0200 Message-Id: <20191014051839.32274-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello This serie adds support for the crypto offloader present on amlogic GXL SoCs. Tested on meson-gxl-s905x-khadas-vim and meson-gxl-s905x-libretech-cc Regards Changes since v1: - renamed files and algo with gxl - removed unused reset handlings - splited the probe functions - splited meson_cipher fallback in need_fallback() and do_fallback() Corentin Labbe (4): dt-bindings: crypto: Add DT bindings documentation for amlogic-crypto MAINTAINERS: Add myself as maintainer of amlogic crypto crypto: amlogic: Add crypto accelerator for amlogic GXL ARM64: dts: amlogic: adds crypto hardware node .../bindings/crypto/amlogic,gxl-crypto.yaml | 52 +++ MAINTAINERS | 7 + arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 10 + drivers/crypto/Kconfig | 2 + drivers/crypto/Makefile | 1 + drivers/crypto/amlogic/Kconfig | 24 ++ drivers/crypto/amlogic/Makefile | 2 + drivers/crypto/amlogic/amlogic-gxl-cipher.c | 381 ++++++++++++++++++ drivers/crypto/amlogic/amlogic-gxl-core.c | 333 +++++++++++++++ drivers/crypto/amlogic/amlogic-gxl.h | 170 ++++++++ 10 files changed, 982 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml create mode 100644 drivers/crypto/amlogic/Kconfig create mode 100644 drivers/crypto/amlogic/Makefile create mode 100644 drivers/crypto/amlogic/amlogic-gxl-cipher.c create mode 100644 drivers/crypto/amlogic/amlogic-gxl-core.c create mode 100644 drivers/crypto/amlogic/amlogic-gxl.h -- 2.21.0