From patchwork Mon Apr 22 15:04:56 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: 10911161 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 973541515 for ; Mon, 22 Apr 2019 15:05:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84D4128569 for ; Mon, 22 Apr 2019 15:05:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7927C28595; Mon, 22 Apr 2019 15:05:31 +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 17FED28569 for ; Mon, 22 Apr 2019 15:05:31 +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=j85x5qE109k6k3mYuZCuvpIZ/rpIR1fb4yeiWRFAdFU=; b=ShPOLg67d64TKv BR9l3n/yL7L3Zr6V91pK8R4ly7cXxjsnxBBqRlAi6fYRu/0BoFnUkRVmcgNoWo2du7x9ux/6Mc0zp IR5NevCzUpOCU+YJOQD9J/NSoQSrkS9kPfMwbJ2M+Tx9e2VtGFPG6usSD2pkt29lPIobDSHk7DR3E k8+dTAjIIks5lFWf9j1cR59LsmA+ZM1KPEzfkMZDX0AIydQUiVI4/GSFz8O7jtGy3/oLSrX0KEMlC up1p6GRb16H+zuii2CeSYNYdVIK0NhTOoVVhNWEJYnCHJupXmmcxn4wlyq50oJgnHnK7DchEepJWo 5on87cnG2DaNzJRWpX9w==; 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 1hIaVb-0005uA-AX; Mon, 22 Apr 2019 15:05:27 +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 1hIaVN-0005ds-R8 for linux-arm-kernel@lists.infradead.org; Mon, 22 Apr 2019 15:05:15 +0000 Received: by mail-ed1-x541.google.com with SMTP id d46so9683850eda.7 for ; Mon, 22 Apr 2019 08:05:13 -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=vDjC1HhrwiK6rBinSJgP2ZiTatVr91mDGrEAz73BDHg=; b=2H/a6sdBXMGf21V8zlRK/ZxnlhgboN05TuVBW15+NFj4T/M62Rpurw43MsJxW99i1B OQw2E+DiOjTgtXI/H+4gaVT76Gac54NthPKEbGaBUfnXjPqqC6ScSJkVrtSPpUxAykgn lf06+rW2cBK4Z03ZYYkaAPM/seK9KVKUsbj+n3Ju4QCm83sAlj7jpPrN40jjdXUBKGw9 gjFgzBk/gxXmVBQyuaNPCUommi/J4rcsMoSH3shB5G/B/EDIIMG0Tj6HDa9LdPs5TZsr xdlEUbEE0wCwvO0R9M5/u+x0JiyZ4QiJz+6dCAfznoqxNCkj3J4zhW0b4YDnSuxYJMpD PihQ== 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=vDjC1HhrwiK6rBinSJgP2ZiTatVr91mDGrEAz73BDHg=; b=p96fl0mjLdxvRGJnsEELcFa9PohMzp/4MxqwQcq5tKSHAuTCfYcs/YotqMQBCOPF8H mGrDYcLLXIunAt5diTO+P4Y25GpF/mqcGqrNOCT/zexJPZmN3Lxg7Fg/JBM+fCM7Oej+ +iOPnPi8njAJ21jyoL5Q2PdI4b91eGV9TN7P+dalU2Y8c1GYu7Wq3pHlwc6C+ytBxsHI CNti7enxTLqeUN2xNNHpwOlnJxEGeCGVRn7/vurP6rSjhXLVTN3giRzscfJlox3CmJcO RgGFspgXFVIROheO2/0XpjwPm8vrkSabTKqUdEJS1RwouUNWDl1wUtzT3Oe89ZnwyNTK qQoQ== X-Gm-Message-State: APjAAAWOZ58BHssLjZu3T1LRDsCav9q9ahGJskAjV/EBPxmcfgt1weLd Fkt0Va5pSP9+xjKH9kgs34I7UflCpuI= X-Google-Smtp-Source: APXvYqzPqlJ/qUk2jA8uxveDZ/5qMzCkBWhZj35uqLKL8GpLr75Ro1g+yySnaS5TDGFmOT+D/STAkw== X-Received: by 2002:a17:906:1584:: with SMTP id k4mr9671408ejd.226.1555945512268; Mon, 22 Apr 2019 08:05:12 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id f27sm3712688edb.77.2019.04.22.08.05.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 08:05:11 -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 v4 1/5] nvmem: imx-ocotp: Elongate OCOTP_CTRL ADDR field to eight bits Date: Mon, 22 Apr 2019 16:04:56 +0100 Message-Id: <20190422150500.11082-2-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190422150500.11082-1-pure.logic@nexus-software.ie> References: <20190422150500.11082-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-20190422_080513_878408_17FB6394 X-CRM114-Status: GOOD ( 12.04 ) 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 Mon Apr 22 15:04:57 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: 10911163 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 3940B922 for ; Mon, 22 Apr 2019 15:05:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29D4028553 for ; Mon, 22 Apr 2019 15:05:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DD5628595; Mon, 22 Apr 2019 15:05: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 C10D728553 for ; Mon, 22 Apr 2019 15:05:37 +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=UE+gNYEoOuaaOT3lCv1YF1eGfd9C/aVoHqpL4iSxszQ=; b=OmI2qelZvSngcS 9uJdv0CmivumE2+GydeFW8TnLElOTNbqGQ0RYUPGCln1gwnd7tQqH0cb7j/LyCvegUxSGLVqyuOMH PPABqYof1W9NvPaUUZlE8HHkcXU06QNlksS4uktcUtJwnlgMyDp0DRwN3ybVxkFtyA5hjI6/dI1aC bgZMYYVhByuT+m3UnyyI/TL3Z5cc3Nq1q38tWouNd7H6Aajp7yKvA9ym+toh0ztVmdA+XznjgY4yh Y+wokFr0aF0+dLi1Hj5F3zlg0lK3p6e/w4TOuMX2oTTWe3dYXYIfFHZi0+khaXlUTQqUeAMKA4MfG v4Z4HamdRXviNE8kSlww==; 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 1hIaVj-00064w-V0; Mon, 22 Apr 2019 15:05:35 +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 1hIaVO-0005eE-TD for linux-arm-kernel@lists.infradead.org; Mon, 22 Apr 2019 15:05:16 +0000 Received: by mail-ed1-x544.google.com with SMTP id y67so9716879ede.2 for ; Mon, 22 Apr 2019 08:05:14 -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=m8sw1rwYxfc4LACpMZCX1Kbzn04GKQLj3+eLoghKtB0=; b=IVbtxF3jDrquU3Idz6wIkdfMEWlufYdGfP/A2AA3tt+0Z5PubASGj8ssJHz0TblEFr Wo0vDtyqQNINpMcgpZUXr3Z2phJdhzdLEsyb374hGWnZkiNwNzc2hvGj/P5pyur/N3NP xhZcU/uBDZnJMlCweus9pFjxEOpYOZDOburkAGuu8z6K6cK5S48k/yUKamdpnaMw5juZ B16m1pGl+ZIsdh8G3T6+1jUapBNH/n5qKw+zaTtRFnThLEvJZ6gqcHshQ3lJddwWU0eZ HUPjtU7e9LBplWmPSvH/Or4QYFoHLGTscVuxnKXFYXrhTLPrZtVDCM0wuUaOkTmW4RqN mTnA== 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=m8sw1rwYxfc4LACpMZCX1Kbzn04GKQLj3+eLoghKtB0=; b=hKHUHtfQXF6LKGFhBAkJPpUIFdqoZO0oJEr2b/a5LdmXhZiyamgnaTzCKetiM8U9lJ 0bdVQQ3yRbmm0mpPba5/jef/XFlfUMKGWvPkCAcWPjaNLrffOfOtgqZJjNy0QmYR/qeO WeIKzrlDitKqTiPUIxAhNdPKobEr7AiHUhydE/z5WdlRRm5gFomuhBcJU3a6ZxpAau+Z byB9PUYWbM6eOGWa9CrGeH6gsoaoklUckDkOF82w908jiw7iH5c4ev77sowPGRI+xZjT vjt7NGSUfm7Dc+IGWlguNESvekjY027dRjT8Z067cg+jo4qPnVPhkXe7bi1utSB9kMzF Akew== X-Gm-Message-State: APjAAAWRrka9b/6mv3wQY8StqxOp2sZ89WyzHY6R2+O1Kqx7UeQZGd9U wwSkO7GXxjYPgwGsP3QcwZfe6cXcm2I= X-Google-Smtp-Source: APXvYqxVezUQLIqIKXsoTmfbB3tEROS3caKLNUXnLvNw1x+Ytwj4OE+N32JSsKbpG4BEcX+fir0DEQ== X-Received: by 2002:aa7:da92:: with SMTP id q18mr12102012eds.223.1555945513375; Mon, 22 Apr 2019 08:05:13 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id f27sm3712688edb.77.2019.04.22.08.05.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 08:05:12 -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 v4 2/5] nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing Date: Mon, 22 Apr 2019 16:04:57 +0100 Message-Id: <20190422150500.11082-3-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190422150500.11082-1-pure.logic@nexus-software.ie> References: <20190422150500.11082-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-20190422_080514_977712_CB18690A X-CRM114-Status: GOOD ( 12.76 ) 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 Mon Apr 22 15:04:58 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: 10911165 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 2ED10922 for ; Mon, 22 Apr 2019 15:05:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D4C128553 for ; Mon, 22 Apr 2019 15:05:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10AAB28595; Mon, 22 Apr 2019 15:05: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 A781B28553 for ; Mon, 22 Apr 2019 15:05: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=hUaEZrOHOFIHQsiw+qyJyfSG3XcjI9A0eK7wG2zgyKk=; b=kHa2E3g0hAZkAt wZ6brd1Kyyw85+X4aQwlxXFdaRQA+eMVrTBPQ55/HnCFSAR0n0BuYzVt1A8awWaOfRhsVJPhteMbX YG3JmL5/edQsBJbPN4I+6qZbelS1pkAdpvlSnEPKSV3eRUqPwaqKOfymXuML9IPl/ljsTJ9VEw3r+ nDeJnnoSX2rAC/0FuAJfZ/qtBdWGT7Khnbuhb8Z6p9bRT8JR+yM8Y3a6a03yhSGZXK7l3vDk5iQ7V djO/B/syAcJKPWYisVSr4Ev/8pByTNBVqbXwGHwELaLDPayig9Vaw8X5rmMu/knCGcuhbALJbGH7+ hWgQj2IXwGsCw4E1Vixg==; 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 1hIaVv-0006LJ-2M; Mon, 22 Apr 2019 15:05:47 +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 1hIaVQ-0005ei-5W for linux-arm-kernel@lists.infradead.org; Mon, 22 Apr 2019 15:05:19 +0000 Received: by mail-ed1-x543.google.com with SMTP id d46so9683969eda.7 for ; Mon, 22 Apr 2019 08:05: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=yMRMU3C9G5dM2/ldW1kMLVqyuGCZjHBly2X1SHfQcLM=; b=MrcffvQQ5iNdzPx7T55iNQKZ8+kR/806loswS5gPAYd+SwRoIzV/M6ry9PjN3skOyx TcGwTw75Wd/FrH8Uta7m8QsuG3t9MIB6aSAAZmFW9IQKbmqbOgraDQuJzNroOUCxsqY/ 5LiZ8fqs/K6qjpNHa3nxFtWuFxpQYpdWc3oaiMZGVAajsVxKi0k+pmlyydpMaL0xuJzm ZQrgvoWfdIaVL8Ng6zlaMq/5uOy8XE2ybVEfYEUOKAcH6Kmrk6YWMsJjzzuPxt3aEbqL dlrtjEeId5EFhQiC2XudOJDblhm8tqXNnpLtqDGT428mz9IJSmcO5RwdpbUUbLycuChM WXZQ== 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=yMRMU3C9G5dM2/ldW1kMLVqyuGCZjHBly2X1SHfQcLM=; b=H6pdJTJFlPZnt9ckVpHz5QxILuuJ3q/ZgntWbxbZ9JNqsWtvq1/AROMVGrYgEWLxK1 Jm9hqQQXjjyUoLVgRXlX9Zm6ZkxY4t6+3P4R+AgZ3HvsFW8jxd5YM4tCouoPFcRkmeWj lbYOgWiYNQWsr0GLwtm7qT93v0M7HKsLnIxxCOZlu6VanRfFbJ024qOPHIm55lh+W16y B1jeokkstmE9r2WiW9JPC7uiU5pEpqaaWTRTzfyG8sO+IfgDLNqPFQ6c77BbbF6sfPvD 0FWXqNsjlz9SREC07YzXtpMOxefL9SvhUnLXupCByhz7e8VDR4xtuXhn+1mJq6CeTJir k0QQ== X-Gm-Message-State: APjAAAX6hFbvwnNaqBvWDlMeBf9aE2GCXIPt8TEQEWyvCDTRw7BJuTlR 70RrNNxxkn5WqphYlLnD5am7qQ== X-Google-Smtp-Source: APXvYqyqtUUej2oN04Qxk7gAD9fUTA1hp/fWl8B3tz1dC+lzzpFv7SyWqhXbi2ok4/NhelKm9chz5A== X-Received: by 2002:a17:906:54d1:: with SMTP id c17mr9883750ejp.223.1555945514545; Mon, 22 Apr 2019 08:05:14 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id f27sm3712688edb.77.2019.04.22.08.05.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 08:05: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 v4 3/5] nvmem: imx-ocotp: Ensure the RELAX field is non-zero Date: Mon, 22 Apr 2019 16:04:58 +0100 Message-Id: <20190422150500.11082-4-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190422150500.11082-1-pure.logic@nexus-software.ie> References: <20190422150500.11082-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-20190422_080516_445547_964F367C X-CRM114-Status: GOOD ( 15.22 ) 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 drops the -1 component of the RELAX field calculation. Since RELAX specifies a number of cycles to do nothing, adding one extra cycle is safe. The DEF_RELAX components of the timing calculation are unaffected. Fixes: 0642bac7da42 ("nvmem: imx-ocotp: add write support") Signed-off-by: Bryan O'Donoghue Suggested-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 85a7d0da3abb..2fa45d1d17eb 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -185,7 +185,7 @@ 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; + relax = clk_rate / (1000000000 / DEF_RELAX); strobe_prog = clk_rate / (1000000000 / 10000) + 2 * (DEF_RELAX + 1) - 1; strobe_read = clk_rate / (1000000000 / 40) + 2 * (DEF_RELAX + 1) - 1; From patchwork Mon Apr 22 15:04:59 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: 10911167 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 0C09C922 for ; Mon, 22 Apr 2019 15:06:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0F6128553 for ; Mon, 22 Apr 2019 15:06:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4A8E28595; Mon, 22 Apr 2019 15:06:05 +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 9073D28553 for ; Mon, 22 Apr 2019 15:06:05 +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=yY2lqDe00cZPDd5o3kf3Drg8fUV3cbJirR4+VbCb7pg=; b=gdSRa0lW1jjDwL /dHB9sTZONyqxmJoaa+Ow220qIMUPaX8EMQGb2C0H2QS4KnyCgeCmvJua5NMsDmR+pBw/9+GBGOQ/ qyzlf/qBKNyQWQUELy7TD0zMiRdsOVBaoTML/Cs9TLfSHNlUggfWemYR88yZdmowJRCAlLMUQ2Dfd LcpZlNso2kG3kSXBFu3S+uNo0MuSNQm84T0Oz6hax77KMD4VDpiBznhQvgWu8khnm3cpfv5DRXx6D tlkG9BpeJAjlTb5em2ohMsSNZXDBeo06a8XYZbcSmX1cTYv7gKe+BOtFMncJFyDo1xfMxZm79GwHU iGJgFMLvVyIHPymkExDQ==; 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 1hIaW7-0006bC-S4; Mon, 22 Apr 2019 15:05:59 +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 1hIaVR-0005g9-4l for linux-arm-kernel@lists.infradead.org; Mon, 22 Apr 2019 15:05:21 +0000 Received: by mail-ed1-x541.google.com with SMTP id c1so3732210edk.5 for ; Mon, 22 Apr 2019 08:05: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=/rh2RwbgCmJdifYQXQMZFjmQEy18Pfkxthmmd2uU2oI=; b=NVS4vLjtdA3D7dMCj3A3dolHqYECcmcryzvsMaBGHH5vRr3rbkU5ZYcW70II+uRIu+ Bm8Jri0zXk3jCe6AP3lP3BsO037gOuDOXpGiO1dz9moz6V90uz/pDbAJO2i59ToBwIcD O+yYtW1Xh8GxtvGSYk9Gjozoh/gLRe9bTnnmNsO5LzoYHj3LR1XYl0YtFsY6zIQn9LH8 +Vax9Za/pBCe1WRX3FcTXWTTzCaz0ZdkMSl7t2nKufwAcp1aDdSTIr8CS1e4sOPVJC97 xRF4U3GrgOB9+aAgMpBrOLSSlA94JgcOz2JNU5EEVnxoe9R58xQi6YwysnuIt/Ikul6F Ox8g== 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=/rh2RwbgCmJdifYQXQMZFjmQEy18Pfkxthmmd2uU2oI=; b=Uk7X+OOeojWFSRkDTZRUAgWQTjubmJJXw5EX1DjkY9nwkJiOeiIAQD5jmH23ByYlIQ i4tdz8Ux2ACM4m9BaBhgj169Ti5KotbJ1rT0QW0kB9jJWA7mjqPXHcbg+rrDBqZKA0O/ rzhThXgPuQ1InwZ+/MSEk1DJJ3tLIKLMkEQa3VxoJCnOCpNM+TXyKiTkslpcSX+ZlDZE xP0A7YFsRiozCDk5NiQ6fnDLN6OpNyblmiUYpmha7C1sCpy+iysKTm5OrwJJSNsyDByY WIuyoL/5VZROBkjQQHT1AV3aHl/TBGybgy3CtIQhJE6XTjQwHTIi16KjSrYPpK+uMScb pLYg== X-Gm-Message-State: APjAAAUZv7TDUZf0OmN6ww27jfozbvLpvTRYSBwFaMt68iYquD1ljPR2 Ec9oh8j8KQEDwOtNN04TdZei0w== X-Google-Smtp-Source: APXvYqw0o+hXhS6k96YWekW7DKLaloRsFPFWl6hAki9SNVYg9M4YCG17+3XuElOhfhwmj5QvlCXcoQ== X-Received: by 2002:a17:906:3153:: with SMTP id e19mr9943889eje.47.1555945515802; Mon, 22 Apr 2019 08:05:15 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id f27sm3712688edb.77.2019.04.22.08.05.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 08:05: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 v4 4/5] nvmem: imx-ocotp: Add i.MX8MM support Date: Mon, 22 Apr 2019 16:04:59 +0100 Message-Id: <20190422150500.11082-5-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190422150500.11082-1-pure.logic@nexus-software.ie> References: <20190422150500.11082-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-20190422_080517_822784_E5FEEC81 X-CRM114-Status: GOOD ( 10.81 ) 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. The documentation specifies 60 discreet OTP registers but, the fusemap address space encompasses up to 256 registers. We map the entire putative 256 OTP registers. Signed-off-by: Bryan O'Donoghue Reviewed-by: Leonard Crestez --- 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 2fa45d1d17eb..cb056765551b 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -451,6 +451,12 @@ static const struct ocotp_params imx8mq_params = { .set_timing = imx_ocotp_set_imx7_timing, }; +static const struct ocotp_params imx8mm_params = { + .nregs = 256, + .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 }, @@ -461,6 +467,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 Mon Apr 22 15:05:00 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: 10911173 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 DBB7F922 for ; Mon, 22 Apr 2019 15:06:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDB6D28569 for ; Mon, 22 Apr 2019 15:06:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1DBB2859A; Mon, 22 Apr 2019 15:06:15 +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 73BED28569 for ; Mon, 22 Apr 2019 15:06:15 +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=DPYHQ7zCLLyyhmVmLwl3QTX6D5Tm5IbtZft/x1DYrRc=; b=pqMuyEcIPvcHpI 1RKVC5YuuWF0QXO7jpG7kv5aKVlJpztYeSaoQS6PisCQACa96bf0rEP1unjYfh/Zv5Y0lyV1xBbGW 8iGWugNDsuTIV6thCM5kqyJIo55fHbw+R9DM//5tDAi1UjkG0SrD7efz5UHWhs3Sf288PRx5Sbo5n E2pGSQdu8LIiA1rdYgRIcpgno8HjZyaJMi1zmeLtNgthf+tDTxTYuifjKQXq1Hla1/vGIcoK35+tU Mb1vJueOYqm0b7fGz13AYNDd56z3nNSNAjlSVzaVcgaV7QiqKkAwFwQ7gOP2WthDVYa5ZriogEJ71 05JzCGMZ83ErC4lvwckw==; 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 1hIaWG-0006ou-Lc; Mon, 22 Apr 2019 15:06:08 +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 1hIaVS-0005hi-5a for linux-arm-kernel@lists.infradead.org; Mon, 22 Apr 2019 15:05:22 +0000 Received: by mail-ed1-x544.google.com with SMTP id u23so9364960eds.9 for ; Mon, 22 Apr 2019 08:05: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=uDaL1emhh1GlcF2DU2LxTAejsZ8bR5T0oAF6p1o3Bf4=; b=aCs0dTkPZPNwzRtci3FajkG0NQr0R5Dvisb7rzd4JLW7Cx7MF9qRk2xMdumVxKD9i3 qTbHoLvLmV9UXuDBN/lkqo5zj9J2D5XRbUnZGjdLiFxYbZjFk2ifHz3A1KEt2kPXS5Yv q8IwXbWabVA1/gbwwshzxFgc72yJrQwVwZ0LaLXeAoWQAh6Wn+SrRXC4hSMLzCOr3fhy tJPhi+J6uijH8pA+oCH2Arybq5zm5ZsOj42PqaRC1FoOWWFI44Sqw2vaxFB/XT5Bgv8J hTPFvH+2m2oNJtzHbP63/tQrJH0KgcOFzv+8gtxEhJb1IFTQ7g9LQvIbfkVy9UtKh+Sl 1Dsg== 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=uDaL1emhh1GlcF2DU2LxTAejsZ8bR5T0oAF6p1o3Bf4=; b=CRCAmYhk+MXHVSPTCnvbfT/DLpLvO0Q4SlwLTd5NoYz+8YSyw9cQVofoobfqZgyrX9 cjBmj3n2//eLD/ykWkFmJlYNxk8/i4KNM0IfB3RVjOCxTOVlr62EB/dMCgAgetmfhE4I /DbCM4oekEE1EaAsqiMzLUATR8nZcDgdURlhDUBPGcrKkn3OW5K1o0A/K/yvBxFo+NLh Yq6uHT+yQ9lI6tSRkpOzIMKbePqbQH8s83rHmGwY5P11qJ0ddWYPzILbZNVr4sMv2kLm 4g9pCP/51OZj7UNR9PJ9QCcnabsWDcQ8mt7Kd8c7y94Cc6ckD8gZ3iANquQcskRMpwGY qcrQ== X-Gm-Message-State: APjAAAWO+njskchnfF0f8redDUBXjqRNaRaDwI/fcGF18ahUfYtiKs9D 1txNn3QcupM8y1jo3fT2Scg18A== X-Google-Smtp-Source: APXvYqwCybW6F/f4SkjwrWRCqLr1/T9kCWQlqq/1QHbMf9lYfvDW7G1iEX04RS0BOax1SHOmfQwW5w== X-Received: by 2002:a17:906:4b53:: with SMTP id j19mr1525490ejv.239.1555945516927; Mon, 22 Apr 2019 08:05:16 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id f27sm3712688edb.77.2019.04.22.08.05.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 08:05: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 v4 5/5] dt-bindings: imx-ocotp: Add i.MX8MM compatible Date: Mon, 22 Apr 2019 16:05:00 +0100 Message-Id: <20190422150500.11082-6-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190422150500.11082-1-pure.logic@nexus-software.ie> References: <20190422150500.11082-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-20190422_080518_588698_DCA8D8B4 X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. 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, Rob Herring , 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 Cc: Rob Herring 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