Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1813347lqp; Sat, 23 Mar 2024 09:44:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIYiGb+9xTFWQEd9oZP9hw2sQq9NU2KeFpZ6YwVfPkrEtTsy0hPHSEYs5+DLyqK35B71e8JcpCDAyyQJ+wOPXhd+QirDVGhfXsXVvcpw== X-Google-Smtp-Source: AGHT+IHaglgpr1ocUMl3nLNkpoAZSP0W2d9oTwEpcXOrgg8kRsQLGD/rbJazBQVHzryNQXw2OH4U X-Received: by 2002:a05:6214:301:b0:696:7944:e630 with SMTP id i1-20020a056214030100b006967944e630mr2045579qvu.30.1711212250982; Sat, 23 Mar 2024 09:44:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711212250; cv=pass; d=google.com; s=arc-20160816; b=hjCSXRnzNJlGNmvoK9xI8mVQ9J1HSvf9/fcprh04WVklamashqru2eKKSRk5sXSVFJ vK38kR+eoXuw177aCId3lp4vnw2ccaduyheNEETHLYhCeykRiSPOiun+HF/FAKoODthy foU7PW9Nx8y6gLNVr8YghgmDD/1C9H3L9iDt/31VPNEIAy3ozrN9XrqfYkcWucdv6pOn YDD7YhN9pdk6xPlxaXrZIEDCJQDTGBpAsyTMpsJy6pNv6tu5MAb1Xgl5F07sDrZf73Fd Y+e+g6COYH2RPYkFz9S7/4soMs5H8z0qp0+kGB3jrboZzREENV/wY0cjMeqm5zazO6Bh D9Yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=RteFAh21/+RfXuRV5NAHAb+wUPnykhvKWrLNZpbYdSc=; fh=2I4GoaqaQPm5nSGAJ5e+hGm2+NGJknbLp9ilP7m7wFQ=; b=DxyM0OQejE3+uCjK5DAZYpS2v/BTy3Yh7c4KYV8aCJPHs2rNjzXLleEnXF2IzoJRzS c1RKPnybhvMuKLfa4QZ08onRcOklc3ebMwHiqttCMtMHkZYicLTyE8bAmw8Lj9Vnkgeg /Ep07Dl8EhaAHbaQx/5rqScsys0OANL93syU5QT4sj6Bi/4AUJAHifRaTFgWVR17Ovfu +oY1xgug3t6tLOi33ZzPKktWtCyZj8WnykNXrF5pdOqQinKN0J3UDByRSPwMu1JQkKf/ 4ftXsEhg1uqlWlCfFIc71EdyTKQp9qLd2oTlyzbMdtoR59CTQCYGJxASyIdhPTp+7UWa wwNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b="BSpS9Eg/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2833-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u22-20020a05620a085600b0078a2fff5023si2005006qku.210.2024.03.23.09.44.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 09:44:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b="BSpS9Eg/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2833-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 934101C20BCD for ; Sat, 23 Mar 2024 16:44:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B17847A7C; Sat, 23 Mar 2024 16:44:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BSpS9Eg/" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 235747483; Sat, 23 Mar 2024 16:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711212247; cv=none; b=bz4da+t3XFa5+t3/yuscuMBkvTzhljJMpDDuO1E4i+XvlYeOENqOeVOqfZsGMzhgihdi5OnYwf/wF8ZO9eHljfLOZv4yyuABuyDdHpwceU5YKrQIMkJToFqjdqxeOoMi20v/+q5A6WMQQmIM35zgzes48zzaAQA903e/41bn/hg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711212247; c=relaxed/simple; bh=6kri9cAqdeLQSwynoX/Mgs7Zl64zCLiK2ixhjODz/Ms=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=EbzVuUUQbH+ql94A7C30/jYNA3s0iUUggBPbZAredasR2ksQUXCAt8hSS0OokgclHLvpWb152jbKcksQrEjn0t1jtQe701DFG8sWtMvjDs/Yy+3joYI7L6HAnNkiSpvRybBKIXl0WTYqMwLVSB/H+O7DrI7nQwYw3lOS87xmGr8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BSpS9Eg/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82F63C433F1; Sat, 23 Mar 2024 16:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711212246; bh=6kri9cAqdeLQSwynoX/Mgs7Zl64zCLiK2ixhjODz/Ms=; h=From:List-Id:To:Cc:Subject:Date:From; b=BSpS9Eg/l+jRAko4Tz+ZMN4JCRwHeQdIYDpwIFJvgc226TRfGH4lO7KFm0HfyEk4N QHc+jaFbJbeJiqblewqW6zH8z311yjUlRYbc8QwrovBl8/iHMp/qfBAYHeRk7oLhdP 5IiBfQzDjXjsCXYQrG9kf7QF/htVTR19FxpQSkB9Zsw3c0mmpSEwLMczirzljbgrWx sPhY3/3j56aA886Q3ykqgJ3Hga9PU8kyd1Q+FxjDo58YxSUGjuV+z8109u6Ddplcyi ks2EQegxrXkJvon8ZBFpuoQRquk4cyc/ytK6z0WZ+MvxZ8zzfZeB1se0xXW/QShgFv f7tmL5+5HfinQ== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Arnd Bergmann , Gregory CLEMENT , soc@kernel.org, arm@kernel.org, Alessandro Zummo , Alexandre Belloni , Andy Shevchenko , Bartosz Golaszewski , devicetree@vger.kernel.org, Greg Kroah-Hartman , Guenter Roeck , Herbert Xu , Krzysztof Kozlowski , Linus Walleij , linux-crypto@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org, Rob Herring , Wim Van Sebroeck , Hans de Goede , Matti Vaittinen Cc: =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH v5 00/11] Turris Omnia MCU driver Date: Sat, 23 Mar 2024 17:43:48 +0100 Message-ID: <20240323164359.21642-1-kabel@kernel.org> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello Andy, Linus, Arnd, Gregory, and others, I am sending v5 of the series adding Turris Omnia MCU driver. See the cover letters for v1, v2, v3 and v4: https://patchwork.kernel.org/project/linux-soc/cover/20230823161012.6986-1-kabel@kernel.org/ https://patchwork.kernel.org/project/linux-soc/cover/20230919103815.16818-1-kabel@kernel.org/ https://patchwork.kernel.org/project/linux-soc/cover/20231023143130.11602-1-kabel@kernel.org/ https://patchwork.kernel.org/project/linux-soc/cover/20231026161803.16750-1-kabel@kernel.org/ Changes since v4: - added new patches 06/11 devm-helpers: Add resource managed version of irq_create_mapping() 07/11 platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG 08/11 devm-helpers: Add resource managed version of debugfs directory create function 09/11 platform: cznic: turris-omnia-mcu: Add support for digital message signing via debugfs - for changes specific to patches which were also sent in previous versions see the notes in those patches Marek BehĂșn (11): dt-bindings: arm: add cznic,turris-omnia-mcu binding platform: cznic: Add preliminary support for Turris Omnia MCU platform: cznic: turris-omnia-mcu: Add support for MCU connected GPIOs platform: cznic: turris-omnia-mcu: Add support for poweroff and wakeup platform: cznic: turris-omnia-mcu: Add support for MCU watchdog devm-helpers: Add resource managed version of irq_create_mapping() platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG devm-helpers: Add resource managed version of debugfs directory create function platform: cznic: turris-omnia-mcu: Add support for digital message signing via debugfs ARM: dts: turris-omnia: Add MCU system-controller node ARM: dts: turris-omnia: Add GPIO key node for front button .../ABI/testing/debugfs-turris-omnia-mcu | 13 + .../sysfs-bus-i2c-devices-turris-omnia-mcu | 126 ++ .../bindings/arm/cznic,turris-omnia-mcu.yaml | 86 ++ MAINTAINERS | 5 + .../dts/marvell/armada-385-turris-omnia.dts | 35 +- drivers/crypto/caam/ctrl.c | 16 +- drivers/crypto/caam/jr.c | 8 +- drivers/gpio/gpio-mockup.c | 11 +- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 13 +- drivers/hwmon/hp-wmi-sensors.c | 15 +- drivers/hwmon/mr75203.c | 15 +- drivers/hwmon/pmbus/pmbus_core.c | 16 +- drivers/platform/Kconfig | 2 + drivers/platform/Makefile | 1 + drivers/platform/cznic/Kconfig | 51 + drivers/platform/cznic/Makefile | 10 + .../platform/cznic/turris-omnia-mcu-base.c | 406 +++++++ .../platform/cznic/turris-omnia-mcu-debugfs.c | 216 ++++ .../platform/cznic/turris-omnia-mcu-gpio.c | 1056 +++++++++++++++++ .../cznic/turris-omnia-mcu-sys-off-wakeup.c | 258 ++++ .../platform/cznic/turris-omnia-mcu-trng.c | 89 ++ .../cznic/turris-omnia-mcu-watchdog.c | 122 ++ drivers/platform/cznic/turris-omnia-mcu.h | 214 ++++ include/linux/devm-helpers.h | 94 ++ include/linux/turris-omnia-mcu-interface.h | 238 ++++ 25 files changed, 3044 insertions(+), 72 deletions(-) create mode 100644 Documentation/ABI/testing/debugfs-turris-omnia-mcu create mode 100644 Documentation/ABI/testing/sysfs-bus-i2c-devices-turris-omnia-mcu create mode 100644 Documentation/devicetree/bindings/arm/cznic,turris-omnia-mcu.yaml create mode 100644 drivers/platform/cznic/Kconfig create mode 100644 drivers/platform/cznic/Makefile create mode 100644 drivers/platform/cznic/turris-omnia-mcu-base.c create mode 100644 drivers/platform/cznic/turris-omnia-mcu-debugfs.c create mode 100644 drivers/platform/cznic/turris-omnia-mcu-gpio.c create mode 100644 drivers/platform/cznic/turris-omnia-mcu-sys-off-wakeup.c create mode 100644 drivers/platform/cznic/turris-omnia-mcu-trng.c create mode 100644 drivers/platform/cznic/turris-omnia-mcu-watchdog.c create mode 100644 drivers/platform/cznic/turris-omnia-mcu.h create mode 100644 include/linux/turris-omnia-mcu-interface.h -- 2.43.2