From patchwork Fri Apr 19 16:48:04 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: 10908995 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 B0197922 for ; Fri, 19 Apr 2019 16:48:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1E6928BE1 for ; Fri, 19 Apr 2019 16:48:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9541728CA3; Fri, 19 Apr 2019 16:48:27 +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 2A17728BE1 for ; Fri, 19 Apr 2019 16:48:27 +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=KPFSBisdXqVf02NxUiVKNxY25fF9DVW9+z29y2TLum8=; b=ZnwJ4PqwS2Tu3P P4DtQTz4pLxBn8BHR3AnX+eCwhLDdpDEw7POyxIvKQ9DjZQkLuEQDEjw2i9xQ0ydRvd6qR6vcTVIS hvYnM+ciQhI4z+fB5nUcOqw2A84IT2ZcpEqbRb7/YBSE5dgvH0LTJz7ctY+KSzLSG2YNhOL9Ouno6 0d4/tkd1GHr77+VLwhtxhm7VAU5c+tIf1QSOsrg/PZpvfzZTGsQe06heYIpPgIK9/PDlwZCDefJXZ kK0H9KHGewTGRRtsOms1a99pAJ0S2MnzazMc91aVDB8WuqJW0pyoWnUw9cIL8MMH8JELX7QX4zWav 0m/a4n2bCEHVsmijEiWQ==; 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 1hHWgZ-0001of-GF; Fri, 19 Apr 2019 16:48:23 +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 1hHWgR-0001gm-8L for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 16:48:16 +0000 Received: by mail-ed1-x542.google.com with SMTP id y67so4849669ede.2 for ; Fri, 19 Apr 2019 09:48:15 -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=cUjdzik8pn5JwH6tX8Kn+eztTNvL5Xog4YaGPnj6rpw=; b=IYAn2JUkTwyXpj5kVZf/NZUZyzhgyrGzPZXvoEux9mlV26q9lKh/qC90RbrCS3A0BU Vt3sn4s/dUbN0e32B4wmVkLmYFjsmDicv5dyYvzFbdagi7lhj+LPJqau16tM1FRNxazP +XAlAGg2tzRxBY9n9Bbx2Y3CvzyrSq2an/5goMLHYahbaYUI+lF55s7th+PsIkmMJAa0 CahVEaBu25UX0wKl3SGdaBPDzBZWHmS8uT8bPSl0DzjhuRmRzFVEjx/RAC6c0BeymuCe tsnM9sdjXAMMixkM0Wnwk/E2gobnqKfF+aUNZxoAYRJrlsxxY1g6b4lWb+ElUOUGj2j1 7lmg== 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=cUjdzik8pn5JwH6tX8Kn+eztTNvL5Xog4YaGPnj6rpw=; b=jY1Sr1EhDpjyvUpCges6Pa5mOWSSrF6UZeee+v7JGp2POsZ0puKUiWwP84flRBsnJi NDC9ziR+dkhxqGsqXaOULGLXJMHDEy35yOdyUDHFDoH1lHII/tnAvLpxnwsweNTvEHWu +/F6bpnAAfc/sCiy0K7pKrB7Y+lB4xVKIYHIIcliVph5DcJiGUepY8hW/vc8MEFLxbSe fvHUQVNdwTD5vH6FJE31ar2E26NRoVoS8qTGijh+eLO/ESkEQaXZ8kWDJXv3J66vCO+1 EXE4ORbtcYhoTfwAu1tGROOVXzKDNYlNsnbFio/Bvzuc7YU862PIsrAuL0oJBd13TgYx 08Nw== X-Gm-Message-State: APjAAAUe5jqV06oprksMcWrhEqkZxX2ZwBjHLxOUNW2R8vQTPV+nwh8Q pqHoJZNg5EB9/2ycx4cmb702mg== X-Google-Smtp-Source: APXvYqywTLGORHjAt1sj2yvO7exSZX3yhqyzzMIeb8vGd10ThPu2ozGAe+pYdqBjFely988yAriNqw== X-Received: by 2002:aa7:c2c3:: with SMTP id m3mr696770edp.22.1555692494000; Fri, 19 Apr 2019 09:48:14 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id e17sm955380eja.33.2019.04.19.09.48.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 09:48:13 -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 v2 1/5] nvmem: imx-ocotp: Elongate OCOTP_CTRL ADDR field to eight bits Date: Fri, 19 Apr 2019 17:48:04 +0100 Message-Id: <20190419164808.23236-2-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419164808.23236-1-pure.logic@nexus-software.ie> References: <20190419164808.23236-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_094815_297538_4748F397 X-CRM114-Status: GOOD ( 12.62 ) 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 and i.MX7 define OCOTP_CTRLn:ADDR bits as a four bit address field with four reserved bits denoted RSVD0. i.MX8 defines the OCOTP_CTRLn:ADDR bit-field as a full range eight bits. i.MX6 and i.MX7 should return zero for the 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 from four bits to eight bits. Signed-off-by: Bryan O'Donoghue --- 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 16:48:05 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: 10908997 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 970C9922 for ; Fri, 19 Apr 2019 16:48:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 893C228C9B for ; Fri, 19 Apr 2019 16:48:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79B6528CA4; Fri, 19 Apr 2019 16:48:52 +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 796F428C9B for ; Fri, 19 Apr 2019 16:48:51 +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=j4TzAp+etJhODO wExhPxPGSM4zvN1TJofl7wrSMvt/DNHVoPNwD9dhoduKGST+ciNEd36qM1hJ3LytjohchVmdDKBmQ v5VyQQypugFyjrreKlm/2saIZze5xytVUHk8+NEVGDV7/Cya8b/gGOYfiNnnUEvUHRXEuxDX2mrOj emNfHiOCUqn0YPZmA82CltPW+oPh5ha12ZjifpX5Sv9dQG0QSHZsVBXPqVbY9oChQYxS5/XCzVGSt 1O3p12qrN/qhwPI3/LV+coPAWDsgnaz8BqgUdJnqmdzRbt+vzY+ZSTUyXdUWUlfjjLdfMWOs5/DDp zhg58fnnlk8KEpmffjLA==; 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 1hHWgy-0002G4-Dk; Fri, 19 Apr 2019 16:48:48 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHWgS-0001hD-LS for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 16:48:17 +0000 Received: by mail-ed1-x541.google.com with SMTP id g6so4816591edc.8 for ; Fri, 19 Apr 2019 09:48:16 -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=Ia85muqXJQDvGg560u5r+qC19LPgw0ypOG52+nQL5vvGqFP189gLOrbXwaXQQTSKjW AkXsg9Ym9HXP199jy2Ap262fKhw13OQobkw+LH88wPf3SRzjmnEMYB3Ah6ziaIis8WVR tyyHVz9iU0iBQqwNrA+wtU0JPWD3hYumE2cBWdLRxdpJNIXmjJ+wg9M29BzcExcO72hW WTj5BQzIO0pXCN0OChkP6wQOmogNEjm5bmoqRANrok3oyxkCOpWetUDcdHRhfOI5gOCX b13mkeYvmkFZJFFYXfgson4ET950vrrhp3veQ/uX58N7+W2MGHoqfWCjLuCLPyRWi33M HBmA== 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=aaCCbufmN/i+svMqzSHp4hoV5P0THdGwwnHHvLPzI1MyMzDGCbMLAq5VpzpZ7/2b/1 txlNFjOzcg+S9cRGpboLaOSuxaWk3MxEoKdfVDr1UVtytQ9XGG9b1HUbFjC/bNOlQYb0 HvpCXrNjzGiOpSts24bjY0dnrSO2sc4h66tsEGWacFxdHiQwOVSNRw7GFfQraYTs5KIR qpN6/5Xfkx2VG+Wa3iHXYMeDyb78PfNauPzFM+tQcQTZe0sh11LLRTpcOiUxg9v9TBjU GvkmZROE8UlW4ZpqcyG6i8BVBxDBV33CuK7txmuHrtVPBkB4jMR2uLvhQDcX6TZpgL63 Makw== X-Gm-Message-State: APjAAAXxWJ1qchJBHYVp5BM/0ZOs5Y+ptmXIH3eDeyhAQBPSylNKUoTx EiYbIdz7G26VvYHSynCt277gzg== X-Google-Smtp-Source: APXvYqyrJCQ2vBMBWKP8NfnAYzjX0dupVrhXAziXmYJQG5p/nwKidTeXgK3cyLOA/x4NaKNyqWuRnA== X-Received: by 2002:a17:906:7c5a:: with SMTP id g26mr2463876ejp.121.1555692495055; Fri, 19 Apr 2019 09:48:15 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id e17sm955380eja.33.2019.04.19.09.48.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 09:48:14 -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 v2 2/5] nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing Date: Fri, 19 Apr 2019 17:48:05 +0100 Message-Id: <20190419164808.23236-3-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419164808.23236-1-pure.logic@nexus-software.ie> References: <20190419164808.23236-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_094816_703248_63D8FC42 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 --- 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 16:48:06 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: 10908999 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 183DA922 for ; Fri, 19 Apr 2019 16:48:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B45C28CA3 for ; Fri, 19 Apr 2019 16:48:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F33F828CD7; Fri, 19 Apr 2019 16:48:58 +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 A1C2B28CA3 for ; Fri, 19 Apr 2019 16:48:58 +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=mU8A7A4Xkin62N 4lZNM5P5H5QaZbdww8Ls3Z6bj3SJR4Xz17TQnkAYzof2iVJ++9NPnjS75KKBuwxbSbpTDFxA6jrKK jgMYy38I5yy1+K+SB1RNBvOIKz2fUqVRpjNjAZBJ9JVL96pe7vjcJGqWs/9Hv9dEbFPq6Zl9Ap+y6 +KqJmQI+68lpXQVq/YVSpPMi5Ly1XC0THD9d+cALxaBFOE99Zs/DleR3tpZILdyklqfw/MpG1V3RH dhy0FwlT+ZJoOUMs4QFrFZ0sTSDRrfRsuYr1nebN/ks1H+Uo6FIFRBKKJ7+ilE/mE8JjyhhFyNCrm U46PPecVlWMLk6wylEGQ==; 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 1hHWh7-0002Ny-2M; Fri, 19 Apr 2019 16:48:57 +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 1hHWgT-0001hG-Kj for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 16:48:19 +0000 Received: by mail-ed1-x543.google.com with SMTP id u23so4498851eds.9 for ; Fri, 19 Apr 2019 09:48:17 -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=pnnY2zrBpnTQu8OzawyrE+UYLH/jr6c4GMj1ypspfpI5TpmErye89WBS1RyQsC0L7S sozVuYsISpqKckejUFqZrhyyvgzVi74C+tBn/POt/z8TcAtV6jIFtYs2p7sd6Knpz+rE zisMsNGk6/zkEMDTIdB/+ouKVW+ZU2KR1DSu92H/+6NXekYu+sqBMcxR7OXJP2w9Lvod awp+VmftwpG1CzFs1hDKmg52mzIMWQRL51wQsmbn6blRDTQovu+G49JXCJqdhfp+wiWp O4Mh2XM0DkysO5d8wwN6OGItuRnBdPcK8eslz6oGZQygu9wZRooTYcW9+gX0EthbLGhj j3mQ== 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=INVIt9q8+O2XxrlJgrxrUGCEIQ/WmCzQIbhFI2cwKUtoY44PoHiQ1pgSEeAflcOzl2 XkI9etQsGRN7zY91EbmDv/uLzCGUXXwYC+zn9++nkidxVaVbq69Wh2SqbTnZt0ShHwie k1k2IkAqJKuHxTj+bkcaPAdnRVqu8J9uC+fRIOow3kwvXNQHj5AeLSpRPo7d9T3DbB3H rwfBEsVuT5MMsk4a8AaK+CobGvWvJaMW5tUH+EmaR6P4i5Ooks5mw+HEy6Vfece8/Wwv 4JJtvuw6FcHYP+XbJJ4KTbskIn05N6bUXnWDJ8W6OxihyQ8DdM0R7LQCLLY8fDGWqoHT 9nCg== X-Gm-Message-State: APjAAAViVYvQZ9qaQsW0q2rI0YH0w6I73fxtd+fRQ6X5zd/GLVtXKW8n leQqIeeysSQZeqOoJaffPIRgqg== X-Google-Smtp-Source: APXvYqwYAMUZ4DmnbPlLF4VX7Y+ICXR/Yab4LW6FIlgyYnbaID0Gjt/B5Olmsu571h19jmkuK2W5zA== X-Received: by 2002:a17:906:c348:: with SMTP id ci8mr2472996ejb.74.1555692496079; Fri, 19 Apr 2019 09:48:16 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id e17sm955380eja.33.2019.04.19.09.48.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 09:48:15 -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 v2 3/5] nvmem: imx-ocotp: Ensure the RELAX field is non-zero Date: Fri, 19 Apr 2019 17:48:06 +0100 Message-Id: <20190419164808.23236-4-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419164808.23236-1-pure.logic@nexus-software.ie> References: <20190419164808.23236-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_094817_715636_105319DE 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 16:48:07 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: 10909001 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 5F25417EE for ; Fri, 19 Apr 2019 16:49:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F02428C9B for ; Fri, 19 Apr 2019 16:49:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FF7228CA4; Fri, 19 Apr 2019 16:49:11 +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 B2E2928C9B for ; Fri, 19 Apr 2019 16:49:10 +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=nCleDcCNddv+oV d5G5K4+bATXhYOTuVyRJ6P16Sa4hJrdcWFu8I8Y7tNssG8HFVBZNo7yafvypBifp619BeNOPRXpEe bQo7v8eQEXiCyygG7e/1eX31JHIDQzbqhXvTi5g999qevbZEKoZhtKK+Ry5C/D7QoU8nzT75EuO8o hOP9HpN6F66brTM/WNgc3bDwxeaLRxwBpiiPWTtgjisq6MiJFJLUXBgAbFCXLwiBKuxrCspACW7zS L/f5kfkGnrwIgnZj2LTnEEtN2qr6g6a9VXOJJuAqaVjt492XqtfXnHWB5Vb1ex6z3bk/xQLEMtKj0 /LUybnx4ZXmWHN4I6A7w==; 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 1hHWhG-0002cq-IN; Fri, 19 Apr 2019 16:49:06 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHWgU-0001iQ-Nn for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 16:48:21 +0000 Received: by mail-ed1-x541.google.com with SMTP id d55so4853582ede.0 for ; Fri, 19 Apr 2019 09:48:18 -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=PFnEvvbQcxojgZEKAfpdDydrxQ2lphTEXJODdyjLt0a/XpMCWMWzBVuEtkQYxP3fXA 4v85wqVmObjSHMBut5cJI8rJwOMpzDz+3x2NZO2aFQTNhSNScoGZKBLN7UHwsUdEWW/i rQ4YJFgMCQU91bUJZWFN0JS/+mnfFMcoXQn7WY7W1Kk3rp38gCaa/waGPIOW/BpYH3qj n8ftJYNnrF5Eo5fv3miWmS6yQHJ8ZI3mG5EaY5Qs5C+kPqiRJBD6nRINLiyATv2Ywfuw 6eGUnlIhfzTLH1r6LKiMzSOXKW/Jc4ePh8O+bP15wFXySliYpp+mqC+kkkVkrzO4kJM2 wUXw== 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=PjsnftU+c432TbeV+HYFqnN2Z4zqizIKaXykNZ5K8kKu/7Td2JwIKUeN1g7Fz78I9v /FoFJiAmcGqo+irompBSP1vtH2GXeib/WuCpxEggl3hZ3ShiYiJUbqwq6YHUM9WU0pHR GD3BJoeJxaDL/jjKbVlrLayDSE2cENxIGNnSlAM/wXiLCFspyisdQtwd2KG3bgZYoC/2 LGlwNByo+4VTHHfPUNl/f5UdDxdlT/bQXYMXV5AFV6r3zP6MUAUsaZe6mSgcJ1ApmOB4 5feRZ/NI3oLq89XHoxYPZQeGaqbyWF6Ug6551xIBg3L+/sXyS6rVyOVAQgX0T5zTJYZT akAQ== X-Gm-Message-State: APjAAAWn88ayvKB17hWF0/tf4kiOjPLd7Jz256A7K28yweehnOmxO9ZK vz8kv1ROXU0/3AZ15/bDN3w3vw== X-Google-Smtp-Source: APXvYqyoIG+mPJc1X2+RBN6XIdvNplzuuUFBE0+LdJz77RCDHUcNYTMIUfmq/QOVRYshs0TCbOxq8Q== X-Received: by 2002:aa7:dc44:: with SMTP id g4mr3046115edu.268.1555692497510; Fri, 19 Apr 2019 09:48:17 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id e17sm955380eja.33.2019.04.19.09.48.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 09:48:16 -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 v2 4/5] nvmem: imx-ocotp: Add i.MX8MM support Date: Fri, 19 Apr 2019 17:48:07 +0100 Message-Id: <20190419164808.23236-5-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419164808.23236-1-pure.logic@nexus-software.ie> References: <20190419164808.23236-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_094818_973200_F09D35BC X-CRM114-Status: GOOD ( 10.62 ) 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 16:48:08 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: 10909003 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 A5EE81515 for ; Fri, 19 Apr 2019 16:49:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9993F28C9B for ; Fri, 19 Apr 2019 16:49:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A84428CA4; Fri, 19 Apr 2019 16:49: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 435DE28C9B for ; Fri, 19 Apr 2019 16:49: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=VuXh8BX3zk0D+z353zBbzSg7yn+ubUfHZOduQpc3b8k=; b=Kjh7mKCNrS9DMk LYI/JRdGxbH2yZ5OLteF6gYwoiopgfjyG26vetIg9GW9UbZGzKm68Gb9LkLV3vgQaCMxX2ohwBN/+ T4bW++b7tjTjm1lfOtsjlsynZk1AuipG9MR6ODC01041g527UqTh7JCQ4jctYI1hbieT3KGrYnVVY l0rIy8ZgxGF8j7SOH5IBVxyeGUIi/4ew/NTKLNi6rfVqp2sm322FQi+cv8Q6vNz+3iDyZ4S1AYfBL HP9U4XJB2gkgT1+c7amkGOz6wUOwtGE7gxdMFqxZmMW0ScFYmJOYg/sDIy05ItacdaMSg4bG/TYiL Y2+xem8uFvA6U0qHhCiA==; 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 1hHWhT-0002ru-Cd; Fri, 19 Apr 2019 16:49:19 +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 1hHWgV-0001je-Pm for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 16:48:21 +0000 Received: by mail-ed1-x543.google.com with SMTP id d13so4837748edr.5 for ; Fri, 19 Apr 2019 09:48:19 -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=gLeQu63a+RRobi1azwMlgYo6GtRhtvrXeKewZ7ZYei0n5z7P45sAx2ZqHka+CPGSMo pgM2mpWwLoAvlhWE/fFtsiNeQaUJukW+6gbXQzbfwVT+20LzBkdRfajQwUTq3fmnFklQ LPJd28IJHV6LZXh2+DsF0EuI1aqSrQYXv//KZstUOQCWsex7TRUwETXL59b5m9XnF7XD 4agctzfxgVxlK1OWS6BXs7yBzYgHgufE3hE5mkPLP03dqc1REu/l7b5ke/3hT7pq5Q5t bb6DjQCuyk26PY/0cmcj1penNSVZDAIMikA6XkrRTS2xHQ2k3Sc9QyHUB65UnN6cHgYi 3IUQ== 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=FBqQKQn5pr815WPfWMQ2K/DIr+9NC1p7vA0rNblKdLAREmqkAYQSMElpjlzJbGw/Hc en/SZUJrgWSkvZN6BFVZgaiARyP/2nY6yS/2RfMVNwZzgBDNxi6q27PhIoFX0Ik+o+pj dEzfPQJlu1w8pKHtes+7T07PP5nmw8d8uY4YQf2NoAAxv6rUNoyPBNt/ZCl1Hjnc2KFj u787Co+oPzEGvWkXy0Jr2/ufR4eg+aNaMUsqCe3+5kGL0/De2VXXjFK0W76SNot9cdrj yHW2xrqk1Fu2HfJOXDyQIT7KuGzha88S0/1k/vABlLZEA3lywolX8jYfTGLri0VqoqtU 1xQw== X-Gm-Message-State: APjAAAUaNBiO8OD/OdZYyspaEPPPoXbj9Uiqbvhvj9EkRRcBNCbKB2Op jB5rHuyDP54yotWDcnW9KHpG+g== X-Google-Smtp-Source: APXvYqy+TnOymm/RjOZnmdNZtjo4NWGH4yZMNkjO1APREWLmq+vUxUsk13S4zPXCM+rb5UXGKpE7hA== X-Received: by 2002:a17:906:d512:: with SMTP id ge18mr2401435ejb.232.1555692498534; Fri, 19 Apr 2019 09:48:18 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id e17sm955380eja.33.2019.04.19.09.48.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 09:48:18 -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 v2 5/5] dt-bindings: imx-ocotp: Add i.MX8MM compatible Date: Fri, 19 Apr 2019 17:48:08 +0100 Message-Id: <20190419164808.23236-6-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190419164808.23236-1-pure.logic@nexus-software.ie> References: <20190419164808.23236-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_094820_179305_9A08537D 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 --- 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