From patchwork Fri Apr 19 17:19:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10909027 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 3096517EE for ; Fri, 19 Apr 2019 17:19:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2105128749 for ; Fri, 19 Apr 2019 17:19:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1365428A3E; Fri, 19 Apr 2019 17:19:48 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 BBEAC28749 for ; Fri, 19 Apr 2019 17:19:47 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=dAZnpxsWt4u/4Dhd0c6+fKQLTXJUKZ3hACIQAfsW/iQ=; b=hcAh2ntuQCgETm S1ci6jEyJTW29FnaTaK+Bqa9CAy3bP534AR3UPuB3oHJDK81yjaKXcnEU/WfDZx14nD7HDaWJ04TP vafOEZ8cnD9HPaXEfwW1TMYfi5hGNTU0gGCLluaS12BUkn69TgiD0PIQd1+WvuhZDvW01cnO7sc2t dH6Dc88m37bjw0wPV3tkUx2XyXtSSDgVQDyXDC0j8s1wq00fk0B/axdckx/dLYnP/42xJDK/7SJO6 Xz/TgbBTBFL/oKvTzGt/BXhIoIdX7HKmYZybfnY3kXMQ++AqQ5rmKW1ZzOvbVbkbEkh0gU3aJj5Fx kMIPDFZqE3V7gOFSqskA==; 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 1hHXAw-00047C-CG; Fri, 19 Apr 2019 17:19:46 +0000 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHXAi-0003qt-Sq for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 17:19:34 +0000 Received: by mail-ed1-x543.google.com with SMTP id d1so4852131edd.13 for ; Fri, 19 Apr 2019 10:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BV7ULY1w633Ix8IWnaCbuYW9u9E6oInmKfhLdaamh0Q=; b=Srci219wrLkpyn2DiL5UmBsnJqKm7amGAx/W1T/obdSkbvSe4F54P1XM/erjelsl9N 8rPn9kFDkWgfZAjCuT0D+/8AedDZ5/yd/TIyGwpMx8Q3byQ6D/x1nrUBPmE8+q1lw+47 mTZ1jyMXZIRf2A5hZIpCjSnkhxfmb1unBi1sofH+OewYKxmq/WEuU1nahvRdLv90Idx9 OjfwrMk827c5U2yEOQsDJRb4sDqZGog9ZZnKmBfgvrk3GcQdaqO94gtQDPg3JABQgWmT jWJxN9J9XAVZrqhdHpo7yztRYy6kyOxop6jypP3bvWpP28ehYbSpG/BnwGCuCzSO2iD0 tUlA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=BV7ULY1w633Ix8IWnaCbuYW9u9E6oInmKfhLdaamh0Q=; b=GdGDRJ7zDv22SbuEMna2Rpi4cTW9drF93AINQHssRKsSWDrdEH7r6uoYMaZkA1DInS VipJ1Sdppu8X/B5vIdCR4JqWcsctHJ4XvTUiBYyX+5YTSD2gn60swjxwRmEIRbOviFls 7KJKmZ6nAiFWHSG8a6QKgcHoVQ/pbe4TrltaGs1R++Ok6eR7+8ZVhnHxYIXrLpEEK3dG +mLEldOvLLLQ1QzwUCs3LiWvcmglP8AGir+iYpIpcEBekdSUn66jDEo8wKse4EdLm+NS 5eXYb7xz0wLG8dZYqV8FeZ89SvNfqo/olb+u8Dar27jEAuRvDCtSDCGd5cZkApJzCFck FjeQ== X-Gm-Message-State: APjAAAVpuVhO83T6w3nzBPLEaMAmpxduJcqtXy6wCce0LFB2ACNSF7ca wEGqyhconH8BzQ4+ae62Tyj3Kg== X-Google-Smtp-Source: APXvYqyIytOZsNnD+ibSbCTyWybSVxYtHSVP11sZVFTN+YXq97Bv62Cd3F60ZHKB5VpzKhLPI1qTDw== X-Received: by 2002:a17:906:68c2:: with SMTP id y2mr2534138ejr.30.1555694371530; Fri, 19 Apr 2019 10:19:31 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id q24sm938514ejr.44.2019.04.19.10.19.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 10:19:30 -0700 (PDT) From: Bryan O'Donoghue To: l.stach@pengutronix.de, peng.fan@nxp.com, shawnguo@kernel.org, srinivas.kandagatla@linaro.org, leonard.crestez@nxp.com Subject: [PATCH v3 1/5] nvmem: imx-ocotp: Elongate OCOTP_CTRL ADDR field to eight bits Date: Fri, 19 Apr 2019 18:19:23 +0100 Message-Id: <20190419171927.24269-2-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419171927.24269-1-pure.logic@nexus-software.ie> References: <20190419171927.24269-1-pure.logic@nexus-software.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_101932_928586_FC4AE804 X-CRM114-Status: GOOD ( 12.57 ) 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: aisheng.dong@nxp.com, abel.vesa@nxp.com, anson.huang@nxp.com, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, Bryan O'Donoghue , linux-arm-kernel@lists.infradead.org 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 i.MX6 defines OCOTP_CTRLn:ADDR as seven bit address-field with a one bit RSVD0 field, i.MX7 defines OCOTP_CTRLn:ADDR as a four bit address-field with a four bit RSVD0 field. i.MX8 defines the OCOTP_CTRLn:ADDR bit-field as a full range eight bits. i.MX6 and i.MX7 should return zero for their respective RSVD0 bits and ignore a write-back of zero where i.MX8 will make use of the full range. This patch expands the bit-field definition for all users to eight bits, which is safe due to RSVD0 being a no-op for the i.MX6 and i.MX7. Signed-off-by: Bryan O'Donoghue Reviewed-by: Leonard Crestez --- drivers/nvmem/imx-ocotp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 4cf7b61e4bf5..6600c4ddeb51 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -45,7 +45,7 @@ #define IMX_OCOTP_ADDR_DATA2 0x0040 #define IMX_OCOTP_ADDR_DATA3 0x0050 -#define IMX_OCOTP_BM_CTRL_ADDR 0x0000007F +#define IMX_OCOTP_BM_CTRL_ADDR 0x000000FF #define IMX_OCOTP_BM_CTRL_BUSY 0x00000100 #define IMX_OCOTP_BM_CTRL_ERROR 0x00000200 #define IMX_OCOTP_BM_CTRL_REL_SHADOWS 0x00000400 From patchwork Fri Apr 19 17:19:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10909029 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 5992614DB for ; Fri, 19 Apr 2019 17:19:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EE3828749 for ; Fri, 19 Apr 2019 17:19:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 427E828A3E; Fri, 19 Apr 2019 17:19: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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 DCFDF28749 for ; Fri, 19 Apr 2019 17:19:56 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=oaIgZb+Ek1Z3+4JOdbvHR5AsjEUEzMp/BU8mPEvi82c=; b=JTlnsUd64PEX+9 /KwYgnYj0eEK8aYQ+gb8OSVZIzQd2oa7lavXrabT1RHocIEnJpuCB8UeIOo1uSSgI8M8LxjR3mM7K KmuYy9nzGnkTcOFhQft+Uhe33b5YnECDvSu/HHaQGdiEaTrv5KPgoGqUKYcdfKIoceYYC5ntLfJnk p8VGFwQh9VHvtPxKF2XB8DKa6LFYls5Dx3bsOFsZXyCE0X7LsfabU+8KZEx8YJwsaivu8j1w+5+kB OSOgbFzECEB5FFbnaxq635xa0JMZsZxFtQ8VpN0D82nZNbzgckGIfFSG4WF+oTeYCd9VFqn7nXUr8 bZAZBax+rZaK+fFUJGRw==; 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 1hHXB3-0004HL-Kb; Fri, 19 Apr 2019 17:19:53 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHXAj-0003rA-TZ for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 17:19:35 +0000 Received: by mail-ed1-x542.google.com with SMTP id d1so4852168edd.13 for ; Fri, 19 Apr 2019 10:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jUfcItRpO2hx612krZRy+YsfynN5A1FzQU9vxJ3jr+s=; b=MAZeai5z6NMX/l6c5gnq5yQkPXThhIo1hskSLZm5boGzURihBserrzsb1a83FnNuTl ZeY7NpSi5cQsRXfRgMhj2iRnZ+1Y2+TW7dx6aS6XfWT2r44KS1RV3z/aC1r/Kskr2ZKF 8jwl5QVj0lWOazUZecCu0Jn8VY47w/JsLz75/+y3++hikLSk92ainWIEJNJVAzM3YLW+ BZUANATCQmpgIy+0mfrYKMFI1n2KO1Tdj3nPTLAiz3tobUScQeIFMH+Uw7Xr8w/uDtyW dKPMkt7SH6GL45GFuG0vNvgK6Cn1/J59OWmhdKL8P/+TFMmfwtBMrI3Yc5DIdfyLqQYc ZSlg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jUfcItRpO2hx612krZRy+YsfynN5A1FzQU9vxJ3jr+s=; b=c9Zvnul5n982Gqq06laExSp2yhUKCaZtsG/+Kb0HDuBkx0osEtYZUxhF35l6pyMr3y X0Wsv0k1yAbp/WTPeZZ3RZZXVEuHUeFlSwqY1oJ9AZqbJeyaMaof0MSItzTwIiLweFOu ImuuulrMopVh/3HU2Wo/PktsyA8wuVgmPUNB2Pcx5UkXg/N0aBjzdDZqdm8ysSWLio81 30zaa99QqfQo9xqBKwxK6vB1aFcbWoze+09bO/YTdULIFff0Ju8ST+S/l2TraAo68TC7 /lqMPeVzozMt870GuQFulIVXhk2/kuEHmRKjfnhDWhq2Fo4gLW9g2aqrTqM6zSsIIu73 nQLA== X-Gm-Message-State: APjAAAXGWHMxNoqgMDpd8KKy46pe+xgl+1p+zFf240ESuAStIdbCSSs6 Urrp9GN5nkhXniGFlSGzlMLgvA== X-Google-Smtp-Source: APXvYqz5gU0jfk5ew8JTpoKf/aFC1A7XmdggDM+PecMz6KbpeRqqwqpRXG37ohaceBFDPyhVOCSy3A== X-Received: by 2002:a50:b3a7:: with SMTP id s36mr2509329edd.4.1555694372569; Fri, 19 Apr 2019 10:19:32 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id q24sm938514ejr.44.2019.04.19.10.19.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 10:19:32 -0700 (PDT) From: Bryan O'Donoghue To: l.stach@pengutronix.de, peng.fan@nxp.com, shawnguo@kernel.org, srinivas.kandagatla@linaro.org, leonard.crestez@nxp.com Subject: [PATCH v3 2/5] nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing Date: Fri, 19 Apr 2019 18:19:24 +0100 Message-Id: <20190419171927.24269-3-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419171927.24269-1-pure.logic@nexus-software.ie> References: <20190419171927.24269-1-pure.logic@nexus-software.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_101933_958816_5E77BE29 X-CRM114-Status: GOOD ( 13.20 ) 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: aisheng.dong@nxp.com, abel.vesa@nxp.com, anson.huang@nxp.com, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, Bryan O'Donoghue , linux-arm-kernel@lists.infradead.org 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 The i.MX6 and i.MX8 both have a bit-field spanning bits 27:22 called the WAIT field. The WAIT field according to the documentation for both parts "specifies time interval between auto read and write access in one time program. It is given in number of ipg_clk periods." This patch ensures that the relevant field is read and written back to the timing register. Fixes: 0642bac7da42 ("nvmem: imx-ocotp: add write support") Signed-off-by: Bryan O'Donoghue Reviewed-by: Leonard Crestez --- drivers/nvmem/imx-ocotp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 6600c4ddeb51..85a7d0da3abb 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -189,7 +189,8 @@ static void imx_ocotp_set_imx6_timing(struct ocotp_priv *priv) strobe_prog = clk_rate / (1000000000 / 10000) + 2 * (DEF_RELAX + 1) - 1; strobe_read = clk_rate / (1000000000 / 40) + 2 * (DEF_RELAX + 1) - 1; - timing = strobe_prog & 0x00000FFF; + timing = readl(priv->base + IMX_OCOTP_ADDR_TIMING) & 0x0FC00000; + timing |= strobe_prog & 0x00000FFF; timing |= (relax << 12) & 0x0000F000; timing |= (strobe_read << 16) & 0x003F0000; From patchwork Fri Apr 19 17:19:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10909031 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 4507817EE for ; Fri, 19 Apr 2019 17:20:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39E4B28C2C for ; Fri, 19 Apr 2019 17:20:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B17228C45; Fri, 19 Apr 2019 17:20:18 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 C67D428C2C for ; Fri, 19 Apr 2019 17:20:17 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=Skxm69WZZXjXkwJ02kEFqH00Mq56Wpq4xeV2+ZAoK4M=; b=aDavSnCeESQ3JN GNdByFJZAygWZcXpe5+dUTR6uy5wLzkshj8KWH8Z/4Ng1Egu2a+YHFnsuhwmAglqOuvUJhbUA2MCc r99hpAneM6OViCDYA6DHeo6HgUEyYHNQPG4sZrCQ7odTFodvkI3uQYkMzGoy6dvLKVgMnuv3vtKbS uT30ebngtpVas2K50Y86OxU4NetK6N8sB8WnWpwX1DJd4zgjyyDr5ycSrULNDMKAcl2RKJR6wALdj XoHabM5OjrptYmrN1kIzQGMwAB/grYya4r4UXIjP0iDKyvNPjp+fxgGKGLy+TiXx3ggTQcVzhjlEn U0eNi5qTiut3uTTDlTDg==; 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 1hHXBK-0004zj-Ar; Fri, 19 Apr 2019 17:20:10 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHXAk-0003rd-SK for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 17:19:36 +0000 Received: by mail-ed1-x542.google.com with SMTP id u23so4555605eds.9 for ; Fri, 19 Apr 2019 10:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6ps838Dlj+6qHtOe0XaK3an5MOfwt1ArrpYzao/jeKs=; b=j+f5F8tu9vTA5adaIpXwBk3i8CwQg3VKrzvirjt3nKrXjFBfyyObSMNqnjgrNQkt66 Hcocingcv8uL/WxOsS4+rh/jP3ByeLGn3l9ZLn4ltvMRwYC2ZdLxCUeFD5DSHHvAVpJj J+W977ZSVQRaL5XDJVM4jr72jsf3YWMe3dfV6VL+8nCVQag0bxpPEgH9j9Vvis2dlZVm s/H/Wjp054X/gjdyp64I8vEwRf2aepow/tDbsYa60JATvQB9fSUz98UOECOdN8POJ2pZ YWn8RSV//4hbzEKUqwCxuZoIPE1Gx2vMUcmCbfotzUc4gkKYgbt99a30EwPWA/vTmWl/ uaEA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=6ps838Dlj+6qHtOe0XaK3an5MOfwt1ArrpYzao/jeKs=; b=NgJrnF869wq077lOg/wYFTJkFQi1exuNu3UFldyT1pACiZQqBsdkOIx7XzjhOQ8eAB 6EkqtX2l+hJ5DfvoWHgmmSyuc5X33hCGqAp9AowNNdS+f8N1hLBBK1IC8aC1cT1Ikrvf BXLIeg+Lf2H5ff4lq+X25o3L44pguhm5p/62619KhoIyEkev1Qsxu/4EeHMTIYVepbeW CjkYAoQouadSTvE1YG6W6EvcK43vb60hBRIDPLO++3wn1+OheFWLZREAaTGS6QFamwhx YqCWTfrkUsYqwIztGdXomlk6cp6lnVr8h22MAPrhFSo8IrmJPnWy8uMfbo/GxibyEx7p lH6g== X-Gm-Message-State: APjAAAVc+qrKJTe5yVch67jT69tbP3+U8F6TKMmuhgg3JmwUvmHqsk7t dbkG63Cu6pcByhZ5kNHQp29gTQ== X-Google-Smtp-Source: APXvYqz76U7SgKKks3P8wJ5/PKSGeYFDtdqdjhuF16NMbB5c2JBAI4vb964jjwSh3xmzbMh7LRrixA== X-Received: by 2002:a17:906:58a:: with SMTP id 10mr2546301ejn.36.1555694373610; Fri, 19 Apr 2019 10:19:33 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id q24sm938514ejr.44.2019.04.19.10.19.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 10:19:33 -0700 (PDT) From: Bryan O'Donoghue To: l.stach@pengutronix.de, peng.fan@nxp.com, shawnguo@kernel.org, srinivas.kandagatla@linaro.org, leonard.crestez@nxp.com Subject: [PATCH v3 3/5] nvmem: imx-ocotp: Ensure the RELAX field is non-zero Date: Fri, 19 Apr 2019 18:19:25 +0100 Message-Id: <20190419171927.24269-4-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419171927.24269-1-pure.logic@nexus-software.ie> References: <20190419171927.24269-1-pure.logic@nexus-software.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_101934_912131_D11612FD X-CRM114-Status: GOOD ( 14.00 ) 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: aisheng.dong@nxp.com, abel.vesa@nxp.com, anson.huang@nxp.com, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, Bryan O'Donoghue , linux-arm-kernel@lists.infradead.org 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 The RELAX field of the OCOTP block quote "specifies the time to add to all default timing parameters other than the Tpgm and Trd. It is given in number of ipg_clk periods". On the i.MX8MM the calculation for the RELAX value is turning out to be zero which is not a problem for programming OTP values but, does subsequently mess up reloading the OTP shadow registers. This patch ensures the RELAX field is at least one ipg_clk cycle, which seems like a pretty obvious floor to place on a value such as this. Signed-off-by: Bryan O'Donoghue --- drivers/nvmem/imx-ocotp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 85a7d0da3abb..5b625d61e433 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -186,6 +186,8 @@ static void imx_ocotp_set_imx6_timing(struct ocotp_priv *priv) clk_rate = clk_get_rate(priv->clk); relax = clk_rate / (1000000000 / DEF_RELAX) - 1; + if (!relax) + relax = 1; strobe_prog = clk_rate / (1000000000 / 10000) + 2 * (DEF_RELAX + 1) - 1; strobe_read = clk_rate / (1000000000 / 40) + 2 * (DEF_RELAX + 1) - 1; From patchwork Fri Apr 19 17:19:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10909033 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 0CB2514DB for ; Fri, 19 Apr 2019 17:20:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0181628C2A for ; Fri, 19 Apr 2019 17:20:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E989C28C37; Fri, 19 Apr 2019 17:20:25 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 9D53F28C2A for ; Fri, 19 Apr 2019 17:20:25 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=etGBDKCmtHGCQJOBa1RROeNKE2qib+T4Z0twdPAcs8w=; b=Kxz5qL8YA25Axe WR+PKD9oe56Kks4jeqiVibkMRqlZcOBpOGxjsxLRr8kzlpbXLjg/wgitukQnTSALZerwjV0uXCqvR JoW9ul2qtX0fFvXwdjw4dwSUEU/NL8lS8C2izY/VT4w6YolLY4Xz26a/8TXNnixKKigalI8wlGNF6 aa+v5GAMaD1g/XGkJxl8gDdLVxyNDwIfWoRneCZBci1CYlmozc0U5AFHw98FnOOTsBEz6KcvOUBbW hEuLPeCeoq/mSj3LoaZuhYOPusErgYsNTFin0AV6KUiQ58v6nnXuvU8MtgUskE4x2fXlyXW57TIVn Y4qIcWrhImc9qIrmkgNw==; 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 1hHXBT-00061D-Pl; Fri, 19 Apr 2019 17:20:19 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHXAl-0003rx-RW for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 17:19:38 +0000 Received: by mail-ed1-x542.google.com with SMTP id k45so4886882edb.6 for ; Fri, 19 Apr 2019 10:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3AZerSJqEDBmC5EOFHTIBsuBKJeFxL0ILMiRsQ7xMJ0=; b=CVS21A9sbhTl7Dvo07tn63P2DLlLbW2nRv/NWwboOcvcKmrr5SqADoz1NPgMteupF9 ody90/rYBCf0uuAae1/oVhgwngbiHdysjWY4uUwYkXrVAI/Ou8AqSrU6z0FVFub+3rYb gn/sGincXErCCtWwImYvziSoL2GvdrvobK40E/XNslf/xYy0ZhheXh+c/2gWz/EqZiBR +de6ybwoNSHzt+1WnXv0KKMbN8SXupxTnUv2O/qPC1rsgGOp5ySqwhkaaUuQX4ia6KcE FzdgVprK2bdH+RZP6m4HlLt/2VV2a7HA5PZ8Gb50C4z6nlfEwMmyy1XxmSGVkDvId+R/ 495A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=3AZerSJqEDBmC5EOFHTIBsuBKJeFxL0ILMiRsQ7xMJ0=; b=Ra8e9Jgh5ZtFLYog2VGtQPA34Wq2pwJ9JciC11OW8KsFMbKB3AHFeD+Cj6/Sl8bJGQ P1T6iNFk1a+UU5uekjV8U1oLq4osXQ5vX4lIFgTP+Q1L+ideexjGGTgO531j9HBb+Z4V JMk6eNtXSVV1pfaQ5gt7zqUMO4sL8HHUDjSmPwpQeadp01HUK/zVi5BTsN5pAsiKvgJH 0zFntxs2sekwEYjOCYV3Df0tpOreOSrY1CELuQjrwRXmcMc/0YQIUQXwpAXe3bsz72ht H8R9WflnIXIm+BlBqbp9DksSCrC1XZYpvqVow2m2saZezqGJWVLZsuDg83MWBAbRDFGi lijQ== X-Gm-Message-State: APjAAAWgSwFLoNnzgRaVidKnHQNPCEA+XL6S6nROcfdrGBhWBAqHtuBs JIY4VoYWq9szJmzyI9lcFR54uw== X-Google-Smtp-Source: APXvYqy5sGu6bHIhQi6yEn8GUlaMXuMXSCbljys0/nFHBPPnxsAj7cmNQpaTFIYa670WGpiiMQjITw== X-Received: by 2002:a50:9eec:: with SMTP id a99mr3116981edf.186.1555694374650; Fri, 19 Apr 2019 10:19:34 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id q24sm938514ejr.44.2019.04.19.10.19.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 10:19:34 -0700 (PDT) From: Bryan O'Donoghue To: l.stach@pengutronix.de, peng.fan@nxp.com, shawnguo@kernel.org, srinivas.kandagatla@linaro.org, leonard.crestez@nxp.com Subject: [PATCH v3 4/5] nvmem: imx-ocotp: Add i.MX8MM support Date: Fri, 19 Apr 2019 18:19:26 +0100 Message-Id: <20190419171927.24269-5-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419171927.24269-1-pure.logic@nexus-software.ie> References: <20190419171927.24269-1-pure.logic@nexus-software.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_101936_092147_11CC26C8 X-CRM114-Status: GOOD ( 10.91 ) 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: aisheng.dong@nxp.com, abel.vesa@nxp.com, anson.huang@nxp.com, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, Bryan O'Donoghue , linux-arm-kernel@lists.infradead.org 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 support to burn the fuses on the i.MX8MM. https://www.nxp.com/webapp/Download?colCode=IMX8MMRM The i.MX8MM is similar to i.MX6 processors in terms of addressing and clock setup. Signed-off-by: Bryan O'Donoghue --- drivers/nvmem/imx-ocotp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 5b625d61e433..08006b07657b 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -453,6 +453,12 @@ static const struct ocotp_params imx8mq_params = { .set_timing = imx_ocotp_set_imx7_timing, }; +static const struct ocotp_params imx8mm_params = { + .nregs = 60, + .bank_address_words = 0, + .set_timing = imx_ocotp_set_imx6_timing, +}; + static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible = "fsl,imx6q-ocotp", .data = &imx6q_params }, { .compatible = "fsl,imx6sl-ocotp", .data = &imx6sl_params }, @@ -463,6 +469,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible = "fsl,imx6sll-ocotp", .data = &imx6sll_params }, { .compatible = "fsl,imx7ulp-ocotp", .data = &imx7ulp_params }, { .compatible = "fsl,imx8mq-ocotp", .data = &imx8mq_params }, + { .compatible = "fsl,imx8mm-ocotp", .data = &imx8mm_params }, { }, }; MODULE_DEVICE_TABLE(of, imx_ocotp_dt_ids); From patchwork Fri Apr 19 17:19:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10909035 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 B97A214DB for ; Fri, 19 Apr 2019 17:20:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD5BC28C2A for ; Fri, 19 Apr 2019 17:20:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A04AE28C37; Fri, 19 Apr 2019 17:20:38 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 423EB28C2A for ; Fri, 19 Apr 2019 17:20:38 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=VuXh8BX3zk0D+z353zBbzSg7yn+ubUfHZOduQpc3b8k=; b=t5m93IVtLa/W2c aba/q5palfAroS1G7wyvLFr+zqYEiBXEEjA9AzA1DlU6vligWYRn9ZtDTjKMMgjX8ulTxxP1YEng1 6hT6oUJv24CO0SYOA4nz/RhL9EnfFKySZoT1sDme5eRHnERjuTbg8cwPQPHb9bWiPw29YXXOxvSpv oA+3dHiMoRWsvxs95SNGuDKwZQ4h11sC63Jj1gCPGI1jwWarb7rqYPcOEO0Ro+7x5Z5O2cbNEVazP Vmp+58FZlpGID0osq6sGTjJde5Nt2ent/Z8KAi3NerwRxoo6io3N1pKsXkHhODjJUaxtHsYkLQdHH 7gdt/dDSzw/MhfJr8bbA==; 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 1hHXBf-0006Fh-Qh; Fri, 19 Apr 2019 17:20:31 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHXAn-0003uq-14 for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 17:19:40 +0000 Received: by mail-ed1-x544.google.com with SMTP id g6so4873398edc.8 for ; Fri, 19 Apr 2019 10:19:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YK+j37nDBPPRBvypNiW39XGRN1Nw5pCU7MTlQqLhpFE=; b=Wg+tk6YEzz5tKxmAS78M5joGhAmBmoojGFx3sOT1+z6/33gfWIhqklRaSLhMCpw+QJ rZ+FoUrDCtheoR4Uu1RvpzbKQwIgGJT9RtVBl0iOwS5EXiwvbV67qScu4HGGKtXf7QQa /482W0kut8C1vvrmFN/4DEfuIN7CgiZPm80RDcEceaFNGBoxXnrjklv8e4C3UZVA3zCD 6iKAK1xU48ldV47y0EVqoBER/F3N0a2lN6THczZKdwrG01Pc8Mq9qkZxRxxwKjz0N0JX 1fy0j5uEBP7Cdm12wXtF/NoRBqlDtXFPBKabUGZaaK0Aukr8ZmMcTLNxdmsGZ4LaCz95 pvNQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=YK+j37nDBPPRBvypNiW39XGRN1Nw5pCU7MTlQqLhpFE=; b=KivUoinB/x0Sfoo6kACPc06OPw4MqFrf7IEN9nYwuXDKOFBR1SoPBg+UFe6eYN/9MP iOK7Pcm3wRUQRp/yJedWRVDnyeyh9O7pz0g61c2vtpc81XOdc8oCe4xu5ndHvXu9Sqrn FrEowc2O1ln5WQA6xrNXkno1GtDm2sXUEG+ps+nXP7So9CUgLzDQM+wIO1XbsYFj3VOn vPp8ynFITIh5CYCHrhBwwxjB/Qw1Qf23YD0cNJQdOZJfGnTEU6pcPm4hTjkZuKYtIaA0 0YKVjzCIiOjT+vvD7/bwnnHMSS01lyu7rXpt0RZaTh5j9ByrsOaC0nPjLmgWIs0jYlz4 Hdcg== X-Gm-Message-State: APjAAAXE9PM1aY7yWkrun54VASYY6W0jo51WQ+grheeFw7aRB85Vmc/f UGJsmyH3I34z4SFLYmr2hJj/Qw== X-Google-Smtp-Source: APXvYqwuNoLSkIrgHnLh2B42QxtZLFrKYaA6Rhz6NHb8+osrPwWsUtxH/zofdZAG7Uf9gN8Ah4CIIw== X-Received: by 2002:a17:906:348d:: with SMTP id g13mr2451431ejb.114.1555694375667; Fri, 19 Apr 2019 10:19:35 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id q24sm938514ejr.44.2019.04.19.10.19.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 10:19:35 -0700 (PDT) From: Bryan O'Donoghue To: l.stach@pengutronix.de, peng.fan@nxp.com, shawnguo@kernel.org, srinivas.kandagatla@linaro.org, leonard.crestez@nxp.com Subject: [PATCH v3 5/5] dt-bindings: imx-ocotp: Add i.MX8MM compatible Date: Fri, 19 Apr 2019 18:19:27 +0100 Message-Id: <20190419171927.24269-6-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419171927.24269-1-pure.logic@nexus-software.ie> References: <20190419171927.24269-1-pure.logic@nexus-software.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_101937_391803_0F96849D X-CRM114-Status: GOOD ( 10.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: aisheng.dong@nxp.com, abel.vesa@nxp.com, anson.huang@nxp.com, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, Bryan O'Donoghue , linux-arm-kernel@lists.infradead.org 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 Add compatible for i.MX8MM as per arch/arm64/boot/dts/freescale/imx8mm.dtsi Signed-off-by: Bryan O'Donoghue Reviewed-by: Leonard Crestez --- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt index 68f7d6fdd140..96ffd06d2ca8 100644 --- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt @@ -15,6 +15,7 @@ Required properties: "fsl,imx6sll-ocotp" (i.MX6SLL), "fsl,imx7ulp-ocotp" (i.MX7ULP), "fsl,imx8mq-ocotp" (i.MX8MQ), + "fsl,imx8mm-ocotp" (i.MX8MM), followed by "syscon". - #address-cells : Should be 1 - #size-cells : Should be 1