From patchwork Wed Nov 21 13:11:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10692547 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 268CE13BB for ; Wed, 21 Nov 2018 13:13:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13C2628592 for ; Wed, 21 Nov 2018 13:13:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07722285CD; Wed, 21 Nov 2018 13:13:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A532328592 for ; Wed, 21 Nov 2018 13:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=w7/AhkAP/GX08WcE+uwskNoBpNFjfYKViBshwQ44Gtw=; b=qAwISpJNHDKvbpleOZdcDRdus6 mj8jDnPaVaE5aIonruWKZviURy/AhiK9nB9D3eZSMn/5dVX7lsVDTPG4/4PiFAKpjvnu/2Pjtcdbk jP7qXdR+eSP5TEAv+ck+iwAWozeGVHSv/6AZKACpSga06VWUeqmBf5Kzmtw7+jWUxJr+1rXD+9a7V CoGRsH2Ke04sQKMzFrBhimOwENbIpr13xocIe/wI6sAvFOCFkMhAG1GOYIbghCTCwAk0MDS0YPK3E pRHLxM/b22eCRxU/NaEWfqtbhaCsLPa36KONEML4B3YNaUr4SK4BnLM/id7U5uTlkl3jtmqc2WdER Zb3X5i6A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPSJs-0004OA-5q; Wed, 21 Nov 2018 13:13:28 +0000 Received: from mout.kundenserver.de ([217.72.192.73]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPSJE-0003dD-04; Wed, 21 Nov 2018 13:12:50 +0000 Received: from localhost.localdomain ([37.4.249.153]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MlfCm-1fiBK51VD8-00imms; Wed, 21 Nov 2018 14:12:27 +0100 From: Stefan Wahren To: Srinivas Kandagatla , Rob Herring , Mark Rutland , Florian Fainelli , Ray Jui , Scott Branden , Eric Anholt , Arnd Bergmann , gregkh@linuxfoundation.org Subject: [PATCH 1/5] dt-bindings: nvmem: add binding for Raspberry Pi OTP Date: Wed, 21 Nov 2018 14:11:40 +0100 Message-Id: <1542805904-6446-2-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542805904-6446-1-git-send-email-stefan.wahren@i2se.com> References: <1542805904-6446-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:OquHsbtkPY2HlNq0+ASes9X5T6KaH7N9oBHItYSbsIUBbOzIr5i QQmING1ZUlvSSB9PdKvHierntpaFtjBFSBol8b6cOiU3fYabidFcIoy3M7AfxvRyjjxnNmF kefpp6cUhE684E/AE5oWSsQVX2soulfmBvXTW4bjn42fF0oGrchaUmu9ZYLqhJ9ZjF7FOnU Rl6NjwwAgITHmP43aWFtg== X-UI-Out-Filterresults: notjunk:1;V03:K0:WwH+aChBC+U=:AP1w5cA9xKa/UqGW9n2qFn oKILS1jX2Nd/3ANWV47FfzGDxSvqpwYWhiPun3k0qJrYwx7wKBkHEcJHrdGbcMbAz4gPwQnH0 rsfaHwyNDQNN+2Vk+ZXLMMTWuCEtbmiqBVCZaq5t4tB/Mx0IfdqxiE0kfwRL5GtAWwNAJdRms lLRZ+UmNe8IuUcSgmC2QGOJVtvYZvHsH3WyAydto6VnfYR7EBkZ1NKUcRXmMfqdNZ2nMHJeg0 hNSu9rVXnrJwPO/l/dxqhVL8FT/XiAx7J79J3fN5CWpXEMvNeX8S/0iB61znITdW1U5NmZ7Jz wIAcAquI54dRtOI0UKi4fO4/CXM4xvC0hMy1/FyGmk+Qd4dFiI+U7LZ4OTm23a6HVvkPNNvEw j/SK3xqmhNafmxAHhonRKwLjTWzrk3wTv3BYXfdampzews4Y4KS7HTqOTkxb5tvMPJ4voBRHz HbM9FzL3l5iUetQHKnYV27J9RQgmzNsxQw5MldYoS0246HBS9xIdKrXKcwW0w6CZPmZ3+STd9 KCSDsLwbfPI3deTmHdprffcksIBJ7URxRz9pMktkO6AaR0CdCj2RCpVhad7Nv6JAXgqJpG02o wfRtppjyKpuzRmnluQj+FTuL10jkop40EV/2yFsAh7XgO5xf46UlJOJgmuH6gNRNoft5Gbq3o gCP88L3geEDPj6nOEoiOPoZSwgviYsWu6ccmtoUx9m/5kgI6IMyg5sFpdPz0v4lh074Y9KR8a b1R48w2pltQx4NMk2j2t6MvQuJah6mFs/Xah+9eiIkF3sYu7zqX5ZlBn+s16Ji6oAHFQh0ntI 43BBbDk X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181121_051248_336225_C6B03292 X-CRM114-Status: GOOD ( 14.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Wahren , devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the devicetree binding for Raspberry Pi customer OTP driver. Signed-off-by: Stefan Wahren --- .../nvmem/raspberrypi,bcm2835-customer-otp.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/raspberrypi,bcm2835-customer-otp.txt diff --git a/Documentation/devicetree/bindings/nvmem/raspberrypi,bcm2835-customer-otp.txt b/Documentation/devicetree/bindings/nvmem/raspberrypi,bcm2835-customer-otp.txt new file mode 100644 index 0000000..041ff17 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/raspberrypi,bcm2835-customer-otp.txt @@ -0,0 +1,22 @@ +Customer OTP Memory for Raspberry Pi + +The VC4 firmware exposes a mailbox interface that allows the ARM core +to access the customer part of the OTP memory. + +The OTP node must be a child node of the Raspberry Pi firmware node. + +Required properties : +- compatible : Should be "raspberrypi,bcm2835-customer-otp" + +See nvmem.txt for more information. + +Example: + +firmware: firmware-rpi { + compatible = "raspberrypi,bcm2835-firmware"; + mboxes = <&mailbox>; + + customer_otp: otp { + compatible = "raspberrypi,bcm2835-customer-otp"; + }; +}; From patchwork Wed Nov 21 13:11:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10692553 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C621B16B1 for ; Wed, 21 Nov 2018 13:14:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF92A2B6AD for ; Wed, 21 Nov 2018 13:14:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A07972B6B3; Wed, 21 Nov 2018 13:14:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2DE392B6AD for ; Wed, 21 Nov 2018 13:14:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ufu/e7rUuTJ3b+pqkMCpKxTyMM0A3r/PatnPjtJP2kU=; b=GxThaFTI1Ss8uKswTEml9I828C jfHs3NAe3aQb/ehmec32Qo4DnKjFrTp5qBebuqbWve0SbsqTac+sbZbhtmIfhCu1fEBylM/NuLw70 nJmt/Lx/m4t5qbF9WfMdAiBuEEbX3M5BBTeSKusV9SA9ZQVIOSiEoipdMAe1c8pfXxXpEQM/IOf6s ZUlbiwOefbCXq41/e9f9xXUjhXB5jCc+ddMC8Qwfd3DtuCOoG7d653UssOY7yEo52dotzjVH7KsKG Y1tEAnswbGrPHNhsJTtKebQIrXIl8u4OJ+7jLwxHlVBTMVLaUuoYqtQVvMuq1l8S2Pzw6CEInFHoW KafLcwLw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPSLA-0005M4-Qs; Wed, 21 Nov 2018 13:14:48 +0000 Received: from mout.kundenserver.de ([217.72.192.75]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPSJD-0003d8-1R; Wed, 21 Nov 2018 13:12:50 +0000 Received: from localhost.localdomain ([37.4.249.153]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MOiLp-1g4k7Q3iut-00Q9xj; Wed, 21 Nov 2018 14:12:28 +0100 From: Stefan Wahren To: Srinivas Kandagatla , Rob Herring , Mark Rutland , Florian Fainelli , Ray Jui , Scott Branden , Eric Anholt , Arnd Bergmann , gregkh@linuxfoundation.org Subject: [PATCH 2/5] nvmem: add driver for Raspberry Pi OTP Date: Wed, 21 Nov 2018 14:11:41 +0100 Message-Id: <1542805904-6446-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542805904-6446-1-git-send-email-stefan.wahren@i2se.com> References: <1542805904-6446-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:oLqF21a5OP4mEzch0fraRBzRWqbLA2paHUsnNvo+6XgcLi8gMTl bi6y6CYUfrY8Qfgs2jLYOtE+oKwJF7T/BKTv0HpJzUHIDr5RBrP1WlX85tfVMteffgMdqZ3 bFfpdHn3R1j4xkAlGNxgmdfggso1tOn/H33r0dRc2ymrw1cAnvqCLJPUD8XOapEgLxmpjdw DwJga6C9udpp6fUDgsMuA== X-UI-Out-Filterresults: notjunk:1;V03:K0:cCtmEIoWxZE=:iqsia1ZWjXJlLq/7puE5wu 3mZBbKQN2q4n75wJbaBkG0mxJqg2I53rb8dsgvPTM+XiGLhMu2fVSqjlaPYUM9Zju+aUQdGZc Z90FvLaO5JB9PuPKr513E73G+z9YouFcoeBp5lEF31nsf9a/IqsKMMe8DStRooMobLTOFARtn BsOmfLBjs4T1aUtuDzmE5xAvB34wODwMFduz3I5IwfI0MKfvm03BfKFFTJD2zpTpR7iWx6Mb2 7+b5B6yVUX4k27G39gT+dJNY/o8snbHde/tmS54ppf/s0Tdb5HRt4TTYspC8Y+WlmzoFEp9yh WXuxnAy3sWcECZYTKt0vLfPLWYdXv2HCbfkHBVKiNqp1yUVvl5dsnkVDoxTrGyvPkCt73CYXr gbx0I4snpqmn81vbil/M8yf4cUsImLd0sd/Pr5hUW0D4yOGQgRK8E1gM2UhWVw9oSrSxSBtIf f3bM7LKFQujpg0I9dyCpWTzc0ldbwSXaI03C2UCHwNeS1HYUXegzw3VgU6LJsYu4U5JZuCcSY XQJhT+WRiJoFyXcdOZzFFlKlpwi/eb6tscMswPCDwFtx3EOvH87Ksbj0L+ZAak+yb1Oyv4/Ub MQDBFLOLvCj5tMryMdzJzmIp+DqvGBGFf2ThNCjabYl7BpHlNKKEcvzOl7J4317kyie8OC4Ps CFP2Iksa5lFNSg7/FsLi+GJMuUoAnIPpYCnfP7zuaT3H7HkC2zUJw/Tbwvlrje92ppJqTYIYF qfr7oysrXl9NTns/aqBGTKkM4ShjHfy7nCGFjKyUZZXw05giuFdnATmi3t3RqR8dhmhIOSQA9 1SngqMU X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181121_051247_401615_2C252CB9 X-CRM114-Status: GOOD ( 23.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Wahren , devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch brings read-only support for the Raspberry Pi Customer OTP, which consists of 8 cells a 32 bits. The driver accesses the OTP via the mailbox property interface provided by the VPU firmware. Signed-off-by: Stefan Wahren Reviewed-by: Eric Anholt --- drivers/nvmem/Kconfig | 10 ++++ drivers/nvmem/Makefile | 2 + drivers/nvmem/raspberrypi-otp.c | 113 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 drivers/nvmem/raspberrypi-otp.c diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index 0a7a470e..12106fe 100644 --- a/drivers/nvmem/Kconfig +++ b/drivers/nvmem/Kconfig @@ -192,4 +192,14 @@ config SC27XX_EFUSE This driver can also be built as a module. If so, the module will be called nvmem-sc27xx-efuse. +config NVMEM_RASPBERRYPI_OTP + tristate "Raspberry Pi Customer OTP support" + depends on (ARCH_BCM2835 && RASPBERRYPI_FIRMWARE) || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE) + help + This is a driver for access to the Customer OTP block + (8 cells * 32 bits) on the Raspberry Pi. + + This driver can also be built as a module. If so, the module + will be called nvmem-raspberrypi-otp. + endif diff --git a/drivers/nvmem/Makefile b/drivers/nvmem/Makefile index 4e8c616..dd043bd 100644 --- a/drivers/nvmem/Makefile +++ b/drivers/nvmem/Makefile @@ -41,3 +41,5 @@ obj-$(CONFIG_RAVE_SP_EEPROM) += nvmem-rave-sp-eeprom.o nvmem-rave-sp-eeprom-y := rave-sp-eeprom.o obj-$(CONFIG_SC27XX_EFUSE) += nvmem-sc27xx-efuse.o nvmem-sc27xx-efuse-y := sc27xx-efuse.o +obj-$(CONFIG_NVMEM_RASPBERRYPI_OTP) += nvmem-raspberrypi-otp.o +nvmem-raspberrypi-otp-y := raspberrypi-otp.o diff --git a/drivers/nvmem/raspberrypi-otp.c b/drivers/nvmem/raspberrypi-otp.c new file mode 100644 index 0000000..af6b228 --- /dev/null +++ b/drivers/nvmem/raspberrypi-otp.c @@ -0,0 +1,113 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Raspberry Pi Customer OTP driver + * + * Copyright (C) 2018 Stefan Wahren + */ +#include +#include +#include +#include +#include +#include +#include +#include + +#define CUSTOMER_CELLS 8 + +struct rpi_otp { + struct nvmem_device *nvmem; + struct rpi_firmware *fw; +}; + +/* + * Packet definition used by RPI_FIRMWARE_GET_CUSTOMER_OTP + */ +struct rpi_customer_otp_packet { + u32 index; + u32 length; + u8 cells[CUSTOMER_CELLS * 4]; +}; + +static int rpi_otp_read(void *context, unsigned int offset, void *val, + size_t bytes) +{ + struct rpi_customer_otp_packet packet; + struct rpi_otp *otp = context; + int ret; + + packet.index = 0; + packet.length = CUSTOMER_CELLS; + memset(packet.cells, 0xff, sizeof(packet.cells)); + + ret = rpi_firmware_property(otp->fw, RPI_FIRMWARE_GET_CUSTOMER_OTP, + &packet, sizeof(packet)); + + if (ret) + return ret; + + /* Request rejected by firmware */ + if (packet.index) + return -EIO; + + memcpy(val, &packet.cells[offset], bytes); + + return 0; +} + +static struct nvmem_config ocotp_config = { + .name = "rpi-customer-otp", + .read_only = true, + .type = NVMEM_TYPE_OTP, + .size = CUSTOMER_CELLS * 4, + .stride = 4, + .word_size = 4, + .reg_read = rpi_otp_read, +}; + +static int rpi_otp_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct device_node *fw_node; + struct rpi_otp *otp; + + otp = devm_kzalloc(dev, sizeof(*otp), GFP_KERNEL); + if (!otp) + return -ENOMEM; + + fw_node = of_get_parent(dev->of_node); + if (!fw_node) { + dev_err(dev, "Missing firmware node\n"); + return -ENOENT; + } + + otp->fw = rpi_firmware_get(fw_node); + of_node_put(fw_node); + if (!otp->fw) + return -EPROBE_DEFER; + + ocotp_config.priv = otp; + ocotp_config.dev = dev; + otp->nvmem = devm_nvmem_register(dev, &ocotp_config); + + return PTR_ERR_OR_ZERO(otp->nvmem); +} + +static const struct of_device_id rpi_otp_of_match[] = { + { .compatible = "raspberrypi,bcm2835-customer-otp", }, + { /* sentinel */}, +}; +MODULE_DEVICE_TABLE(of, rpi_otp_of_match); + +static struct platform_driver rpi_otp_driver = { + .probe = rpi_otp_probe, + .driver = { + .name = "rpi-customer-otp", + .of_match_table = rpi_otp_of_match, + }, +}; +module_platform_driver(rpi_otp_driver); + +MODULE_AUTHOR("Stefan Wahren "); +MODULE_DESCRIPTION("Raspberry Pi Customer OTP driver"); +MODULE_LICENSE("GPL"); From patchwork Wed Nov 21 13:11:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10692549 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CB97216B1 for ; Wed, 21 Nov 2018 13:13:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B98F428592 for ; Wed, 21 Nov 2018 13:13:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD20F285C4; Wed, 21 Nov 2018 13:13:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 01B052B683 for ; Wed, 21 Nov 2018 13:13:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ejNQB/V1s7sXcBIICnEFqyEUVNK8VSPHBOEMVlJnvB4=; b=kGYPGAObQE4CD6qI0yecJKy/mI vlOLdyWLhFmB88xdjePk0Vv9/awYqPX8PwDy27Ks8NcoAfLIepmZa3NzjTQhAfkRZQ0/0Rtr6M9+s kaHnVX8w7oMHWsVlQR7yyKx7HrAnvgAqr9diy9FKBmNv2xzPCA60So4F0oiMMRrDDl35Av/hSA+Gi Jrqiif8TOq/slvIy/vcdZ5Phkw8CoaCwLVUTO06I3QwlfFE9dAy4rzPF6B+pnYOqb6kE15OcxwnhX NCQcbpL/XIH80QJDn5PkYGo4eF792aQ0lxEJOVohw+4HMBYyDnm2Rg796ghZhi60+BYqyAxGS9SLk RM+8BtjQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPSJk-0004Ez-2u; Wed, 21 Nov 2018 13:13:20 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPSJD-0003dC-LO; Wed, 21 Nov 2018 13:12:50 +0000 Received: from localhost.localdomain ([37.4.249.153]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N0X4c-1fTDNQ1gsW-00wTdg; Wed, 21 Nov 2018 14:12:28 +0100 From: Stefan Wahren To: Srinivas Kandagatla , Rob Herring , Mark Rutland , Florian Fainelli , Ray Jui , Scott Branden , Eric Anholt , Arnd Bergmann , gregkh@linuxfoundation.org Subject: [PATCH 3/5] ARM: dts: bcm2835-rpi: Enable OTP access for Raspberry Pi Date: Wed, 21 Nov 2018 14:11:42 +0100 Message-Id: <1542805904-6446-4-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542805904-6446-1-git-send-email-stefan.wahren@i2se.com> References: <1542805904-6446-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:34w7KyBNYUFJsL/LCxOqZ3E85o3HlyZLadj6siKPacfp0cP7Ts6 CgEDJwmbKiJTySYdCFrjtGeXV5TdMWRYCVUng+RBJ9C8Ifk2HTJoG+QKdAtU5UQ80bauWFc Al9zKOUyiIDLcBAOXwDS/+Vc0NVsuSqE3jU4/ADHhsIoJUuBEMMU93OZyXS6ZoUe95SqmLs azA5isIKSBec5AGl8R1Mg== X-UI-Out-Filterresults: notjunk:1;V03:K0:d1Jj49aZcrs=:DYdpnjdr4wB6TYhDxWBscu Ym1m+izST5mqApphrzddcNR3emYv07JVh3F9w7AyOYgKmzzfjKGoFY3j9dlzXgoEhvhp1jUWC cXhbQK14uGzPY+2ImoxXSUcw4HH6hemSL5prCBgTe7AZtSRQCnaCs5hPfWySX2/wkNzNkrdLn P5zwop/NulVLLjIPvRlvDoffEi+WYqxn/ngldqh/wtGmDD8DLRbfLd/IHCAHWyVSeHVNuBIPy 59mJ9Udvnyu0WO+2s1FdsdyQhxkutJPDcauqUk1X7nV5FOB/kVaSa18KhcZv+SMzMqF0FBEep WtZBq0mV+LRoDNbDmozLNAFLPdGzNUwXZGsokAWsUrDD266HoEy4FCuoZbMd2TVGCYhYo/7Qe nayvwk1cjHgQr2mzucNMpVol/4JemUzotTLrQESUijh6SeRXwN+DIbDNFSUfDQrG7qlxVg69t baoqHz5uplAGg2ByxsccjM0XCkuHam4ilos/I7Za5bMyPD9IyNS5nWZAcHgAT0Jl8+1bqqOFw KMG0MSrSB9HLo0zTXiAEKvSadxKJdcT/1lrIhIgnqp9+48Y1fWA5eYgDEiN8PQND4ARaQS85f aLu3GwiQmz43lyYPErSZNBzzTwipc44GqRtShYK7bZzPjydObfaH7+QTwMJXRlyR5QTiA+d+h gKfveMmmma+fH0qgyefKfbnlLg9pT5WH1vS0TtqwpYsPZqSTXIhTYPD2n/aE8Z7yAwvlIc1oa /Az0EvbCd6g2VyDMSmDbVjPMAbXT89auDj3uWGer4pPB2l6lN+I0kulFwfjc+WZbK14qFiRO9 f8Y+I/C X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181121_051248_027646_2FCA1A2A X-CRM114-Status: GOOD ( 13.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Wahren , devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch enables OTP access for all Raspberry Pi variants. Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi index cb2d6d7..0fcd9da 100644 --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi @@ -22,6 +22,10 @@ #address-cells = <0>; #size-cells = <0>; mboxes = <&mailbox>; + + customer_otp: otp { + compatible = "raspberrypi,bcm2835-customer-otp"; + }; }; power: power { From patchwork Wed Nov 21 13:11:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10692543 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C3B9113BB for ; Wed, 21 Nov 2018 13:12:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B02B92B683 for ; Wed, 21 Nov 2018 13:12:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A332D2B6A3; Wed, 21 Nov 2018 13:12:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 42B1A2B683 for ; Wed, 21 Nov 2018 13:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=R2q+1ZaJbjDGfS+kFf8GbDrG2igKxH1njnKRuFSFGN8=; b=pUQR+DJH/hD/3JMFqOg91lUMyG sWLaLq+ZXoOtHsQHyGKbA4m1qUXlD3ud5PgbAqb9yLX07bewuGvCIYadTPRI0vDMiMNOn3dSmigxl mI7+wjSOKmWxqVkOSNdzOXE3Cqi6MtjC38bdTMV9rvlKq9Je1Y9yciM+FoiaWm2idyT95a4yJTA4r MOFIsbAQy2KleOE0HrYKRE5DKHQj2MldTK0kLV5iwhHq0Q2VsMJ2OnKiX6s5QoLT0rfRtVprHUXQB AWT7mofb8yzhh2boc9HjSGNA+twfjAzXQ2+kB9KH7STZLbru75PiKMCTchjQnF1cVUx9z3Zb/Qtqg jc1Xtjdg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPSJG-0003fo-WB; Wed, 21 Nov 2018 13:12:50 +0000 Received: from mout.kundenserver.de ([217.72.192.75]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPSJD-0003d9-1T; Wed, 21 Nov 2018 13:12:48 +0000 Received: from localhost.localdomain ([37.4.249.153]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MNKuK-1g67AE3xV4-00On3G; Wed, 21 Nov 2018 14:12:29 +0100 From: Stefan Wahren To: Srinivas Kandagatla , Rob Herring , Mark Rutland , Florian Fainelli , Ray Jui , Scott Branden , Eric Anholt , Arnd Bergmann , gregkh@linuxfoundation.org Subject: [PATCH 4/5] ARM: bcm2835_defconfig: Enable Raspberry Pi OTP driver Date: Wed, 21 Nov 2018 14:11:43 +0100 Message-Id: <1542805904-6446-5-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542805904-6446-1-git-send-email-stefan.wahren@i2se.com> References: <1542805904-6446-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:3YGzuycQL6LvSeIKuYAnFqC94wuXaSnqZJo8CR2i+njoshi6LTW 6mrn3HBnnPkSej2kgxQx8R7TgDS2hncGE1/kvcovqc9SmGQsNDH/MOuVQCUPMRH3Cdk5dW1 KTwuREU2xee/mgX5r4d/hRTppmGBfQArLng1PFCxBVdMIu9vahsg0+5uWTLsWZZdNc19SXA HLs0JGoIBQrlS+ZY2z0kg== X-UI-Out-Filterresults: notjunk:1;V03:K0:f3KEKHji5nE=:0DNQpYZt7M32AF2eR1FGLJ ZPMqgRONEbWn7uuLZ4wTb6I/dIfHu9Ews8trLJP312Ux4FGvEcRxoWvT4KoyqTswM2Bu7lNmv 8hp6o0Egl/4ldwEwO4jgyI3PbqOWDomPdg0z/xAn8oLZ7Tf8AvaK7u9SHSDyb/cgfcRODqdKn rffQloW0S1QVdGGzvlBGgBWYBRM3Z0ZY5woEZ2uUFDb0sqfGAX/O2dXxw0oykudRCzErXNj87 +HKeJEBoqQmg5Pf2XmAgZZFWbpmaPxs4DruwT9OIiPeK7iV/DYc6cyca/rWAFCPKKK2rOuZSQ PjCFjywWDze1dmv8rjKBos4Iqi2eailp10HTiNPBMsVZVjkrqPuV0sg/6Zvi17+3hOZSjjQZ7 KLM4NRYOwaiqzLCxZ7H1CTpo0LfyLt2zmLt6bmqGp2iO42wXTLrJv9kKW87vF7AEAOrfFJUrk PnS4pFFWk6ligtGyNHXZRIfuXsXi0Zo/7s4B5O9XX2Q7qGma6hUOy1mm47/PSpeTzremqsN4v pUvT6lAgDlAQ2+Iel2RzHdKI9zTmm7bV9S9fQRyl9NfC8oDC2JxxEPtuDs9gf9c4WZ3QNMmgp t27ZPcLXQf8jPHp7wiVFQcd+7lIqjT3c+Yj22po2FAvxnc114A+/uxwneBfx7Z2wcXKNRyvze rJcADAKpmQBpJBSAd019O2BoS3kcHpIhEHeQ5T8B5GQKoeE6ApvWC530R5KkpRS1CKyWhpFMy lYJHmnrM5nDpmesNl9O7KJ7UH2LS9hOFPGloqmrRveLbCGegiCOn+F8rGb5wjrgfmckSc8xfJ ouYDHkB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181121_051247_398734_7818628F X-CRM114-Status: GOOD ( 13.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Wahren , devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable the Raspberry Pi OTP driver, which could be helpful for custom Compute Module designs. Signed-off-by: Stefan Wahren --- arch/arm/configs/bcm2835_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig index bb6a35f..4c1405e 100644 --- a/arch/arm/configs/bcm2835_defconfig +++ b/arch/arm/configs/bcm2835_defconfig @@ -136,6 +136,8 @@ CONFIG_RASPBERRYPI_POWER=y CONFIG_PWM=y CONFIG_PWM_BCM2835=y CONFIG_RASPBERRYPI_FIRMWARE=y +CONFIG_NVMEM=y +CONFIG_NVMEM_RASPBERRYPI_OTP=y CONFIG_EXT2_FS=y CONFIG_EXT2_FS_XATTR=y CONFIG_EXT2_FS_POSIX_ACL=y From patchwork Wed Nov 21 13:11:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10692551 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0BEB01869 for ; Wed, 21 Nov 2018 13:13:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9A9C28592 for ; Wed, 21 Nov 2018 13:13:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA97B285CD; Wed, 21 Nov 2018 13:13:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 94FF228592 for ; Wed, 21 Nov 2018 13:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=XFQlL68BQVIDY7qnA2ZWMVVf4sXhfGbnD61nRYbL0OI=; b=YZJqy8DGOO5BqJlXc1LylXiIZQ MK5is9rZaylgGEE+Rxc4bWznWpjeZMsHEbIpin4kFHWg8B9fZ2lqyS/1eC6q2w3g3i7azrzy91u0a 4Jq/KTtmNFrRXeLiIETjYulN6ZHVi89w+lL9N77Mb44e3PcKvuQVCx/d9uP+9nKc12OWy6AZzJgms cdzN9+unvOp8wRIviqwYOFqt6T+o53XMqzCUXUKaIXPnAce/8kcYHEwXsAHVv2x8HlNa4u2NV5lt6 HrLLScVrOMxm6q9HQK6AhWyx9Hh8/+o8DVEaK2QBb+xM/17B0eqcZhoVhw+d4X2G1lZiayBDSe1P9 IArzZgOw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPSK2-0004ig-RU; Wed, 21 Nov 2018 13:13:38 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPSJE-0003dK-OO; Wed, 21 Nov 2018 13:12:50 +0000 Received: from localhost.localdomain ([37.4.249.153]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M5Q6l-1gO5G421np-001VGz; Wed, 21 Nov 2018 14:12:29 +0100 From: Stefan Wahren To: Srinivas Kandagatla , Rob Herring , Mark Rutland , Florian Fainelli , Ray Jui , Scott Branden , Eric Anholt , Arnd Bergmann , gregkh@linuxfoundation.org Subject: [PATCH 5/5] ARM: multi_v7_defconfig: Enable Raspberry Pi OTP driver Date: Wed, 21 Nov 2018 14:11:44 +0100 Message-Id: <1542805904-6446-6-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542805904-6446-1-git-send-email-stefan.wahren@i2se.com> References: <1542805904-6446-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:GHqFpBqwfqq6ey1cSHHNAy90zNCVhIqKjXMVRPj/FmrqzGYZPIj 9MoExUxmG1Fr5UQCJZLKZWLxJer3S5E+WaYABBmQSeFTpJ9dnEiAlfHelVTXBIGkCdeb972 +zKBMMa5Y2YdvUQ7HmOq6QQ9taK7uC524Z7GP0fR4T/MwP8W0ck3uEpgDDUN7/1syaPpoK7 r3Euwew+FfMOEpybaPj1A== X-UI-Out-Filterresults: notjunk:1;V03:K0:2dd+Y6EkOzE=:5a82IjW9w7lNvKWcRGZa3B 5sA8vSbZY8d3SYkhp4Q5cjlrFR6l0JoWRGveoIOZGXFUMrs6cyyvjraAX+/6cW51ARNwpgk1C GCMsd4VnprPX/Osl5WOxM1AfyFfHMl/RevyB8NNryHOK9+tpJHf+6owGkvXn+yD8UjyRHgWBx jnsF43P4axyHtcaxvpSJizCtPRFgHfzaIwwbZLMyLUpLe+PMs/M+OZfIQDuCUTymakRNgG+fD 78KgQmYbMqzfTJCh+A0N8m9mi6kW4lxUwcT2T7mftDm0NKm7ClB8UyHTzJkdgMatIBUqb++l2 T1k0zAoIDehx+vQMT3AOJfrtozXTzSTlCa9G/8m3/USEUrVdfR4C8+PRHbjZKbvttwdE7Ngen nMo6w9D3gCWoB3JglhTb9rBEtOkwyvnoP4zd+cSNyb29hZBcSBk6msKg4YyA/z6bErc2NF1Y9 W7D/Gg1vzTYmYu7ZoAqkjEUAPXIJP6qY/OwnORrJPE5U9TZkDh7uqvTtS4YUJWP43YQCSlP5+ jZeaaR2MhyhjFk5V8/vf7ofJKBda/NKVnTDnMFtyGJR+uxZcVcUSpxmul3yaVteHBwJwshje9 J0cwUDbBb4Evq3LWhbIeePqQqKPVZRATY5ZdFfZdrG7bCCeTB+LZ4Nq1exA+LHLhVuX7gm11L qMCR1FDZ8Ujql0gYuh7UMR9+B2hY8JKXzycdcHjvPKEYTydDwJnJxG0QVzqNOK1gKXRtAyDD8 tQsoepzUGdwETzrpnNAD3zbqVh/j0PNdnqTJF/MkcxDLmXOLxiynsX4Wocycm49hH3eM1mWuQ hLZ8pqX X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181121_051249_180392_08BAD49B X-CRM114-Status: GOOD ( 13.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Wahren , devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable the Raspberry Pi OTP driver, which could be helpful for custom Compute Module 3 designs. Signed-off-by: Stefan Wahren --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 1c76168..9b7ba43 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -964,6 +964,7 @@ CONFIG_NVMEM_IMX_OCOTP=y CONFIG_NVMEM_SUNXI_SID=y CONFIG_NVMEM_VF610_OCOTP=y CONFIG_RASPBERRYPI_FIRMWARE=y +CONFIG_NVMEM_RASPBERRYPI_OTP=y CONFIG_BCM47XX_NVRAM=y CONFIG_BCM47XX_SPROM=y CONFIG_EFI_VARS=m