From patchwork Wed Apr 24 20:26:03 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: 10915711 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 D532A1390 for ; Wed, 24 Apr 2019 20:26:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCFE528AC0 for ; Wed, 24 Apr 2019 20:26:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B165028AE3; Wed, 24 Apr 2019 20:26:21 +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 1627328AC0 for ; Wed, 24 Apr 2019 20:26:20 +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=EyY+B8Q6B3Nofl 6kjed28aATfyGbutEB9BSEZdGNQclcia+/yQU+Oejj+zzvLQ6bz0ZTLygiSKI6DLjdoS24dcB7ZFT uqXUnV1HBx04YfFJT9OHQyKBmAcwUIkhJXTqqTlQidnyYWJY/TTtUHNhM2d3l5X0oICg7Gk0rekon CD7gKIFE4Ygu0Ne48SsJWPdNcLg/vjbMGA59v+h4TxkUY5wXakOHajpD6sKW0pOyAHbO6JDW/vWKu 7AlJ47zakWrk+E8MUtQvLaiQDGNguoVyIX6lrKoVB+GN///D9GkSU2kjQJ5RYCWCAhErJFAdJIaL3 FaYsqZVeF3eDrO3+tLcw==; 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 1hJOTB-0001b3-7Z; Wed, 24 Apr 2019 20:26:17 +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 1hJOT7-0001ZX-N5 for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2019 20:26:15 +0000 Received: by mail-ed1-x541.google.com with SMTP id u57so17159779edm.3 for ; Wed, 24 Apr 2019 13:26: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=aPsu4+OjqfbzF5GV6br5mQsWEao60LQX4rnbz9NlpuaBhJy5kYKzyESLg2JEisMnXg +WqkGjqTcEGt0PWrfaAmfLEG52yYoxYXtUd8o+A0E2ZlYb1UWn9Q+sshWN8b14RCWOI0 iDTgi+cFjY8SWkUoOFGIwLt8wJhMFR8mgX3PdEbZBr8dPryArhKsaOPItIT4Hjzn8rL3 gw97cEN4BshNudxjyUA3wTyq8kWNTMcPxzyPR0tsZO+qk80j+5DZcg3UKxNsgpspJlnW 6TGH7t/6xXqdjgB4dyURVBaTdk/qyvEjKrR1N6gXu393QxLhgwIDE3YYre6KxhUcBCJD X1sg== 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=ZpML/TrTDnkUjR2x0Tjl/2Z9ynCES080VmsCkr8PI8HAVOx9eYBtOQt+GeXIkG3rsr mjPSRkUfdcYy2h80pU+ZSlni/A/ts1PtKXtwyZUV5IF2s7IvOOQodit4jj++ZcgQ0/Fw fkOGQunCVMKwoyq6uDThi6hvVxb7Vfkw3BsAeqMWspsuT/yGZJTF5J9QU8gNYrfVt0O+ 6bfLnLAI5mol/aVZxww06g0Lks69SIBTg8P3U83bljfupLa4dUSn/NhVIJ3n2SfrFm/N TEwc3xR461MRZt/6tse+6Cv4lxvhudzRC9LeQEI8sTGtTlRoKnZCGdxUGlY1xe6cxMhm Zlag== X-Gm-Message-State: APjAAAXnQ/9GdxFUC+1TVwXV4CHSiZ0kQYnRqXrJ8PbXXHzW3u0Bg8Ml Kd0LmlcLqjnM3OVhkUgDvqtwp2WgpnM= X-Google-Smtp-Source: APXvYqy5iLkWZKdJFPvR0w+oEKd7+tktJsCPhdElscr3CQJZOtPfkD0yo7IAg7+uQ2UuI8KmUxNjyw== X-Received: by 2002:a50:9744:: with SMTP id d4mr20965378edb.125.1556137572072; Wed, 24 Apr 2019 13:26:12 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id c26sm3728988eja.86.2019.04.24.13.26.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 13:26: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 v5 1/5] nvmem: imx-ocotp: Elongate OCOTP_CTRL ADDR field to eight bits Date: Wed, 24 Apr 2019 21:26:03 +0100 Message-Id: <20190424202607.23522-2-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190424202607.23522-1-pure.logic@nexus-software.ie> References: <20190424202607.23522-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-20190424_132613_752480_ED5AEB43 X-CRM114-Status: GOOD ( 11.71 ) 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 Wed Apr 24 20:26: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: 10915715 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 0650013B5 for ; Wed, 24 Apr 2019 20:26:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9EF828AC0 for ; Wed, 24 Apr 2019 20:26:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE50628AD5; Wed, 24 Apr 2019 20:26: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 90BA928AC0 for ; Wed, 24 Apr 2019 20:26:48 +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=TaG4UrPx7vvRCO 3W/27hOS4LhlUQVzbW11LVoAH6fVZJcmSySh2ZnQgxg+y6pd4BD0+UZwBWNcoztnyqWjkJXaj+c7U Tedvb+2X5FJo09X8ZlahXdBYyNx+9Ci1zaPDMQXz2tver+NqSnXEIFLZPM3gC2fOu1nSgydoe5AIT /CVIq8KhKmUar7eqh4FGuiV/oSwAUyzugiSHr0p6kG7yzIGWTa7CgyqnbwXbGQBShaSJi0VaSxNXY uEbqsU2AFP66SkTMLxHb2Vaiot650p2zD6TPc1xTJtJ95xi67kNK3RPIskn/lP+NFjQOFHlMe6agv ssj61kZBFxccTB+0FrCA==; 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 1hJOTc-00022g-MS; Wed, 24 Apr 2019 20:26:44 +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 1hJOT9-0001Zi-MG for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2019 20:26:17 +0000 Received: by mail-ed1-x544.google.com with SMTP id f53so17143710ede.4 for ; Wed, 24 Apr 2019 13:26: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=D2stNmYqmMXkRyi3XGVZvJFifdC348OUn/NpGht2+tyBgprhHA+2sKZRVe0kVv3j74 wdeuBAOWv4lvIp4SMquyq56AuiyHpvV/3CEIG8ERLIGMmlQTvzmJ0GP7wvjPTGIiBVjT IM4qymxykyCN7REpNgrQvMC6uI5yHox5owUcpzpHATOMDFamPxAPuUZoTxe5kwmWrSBo KO0AUm7jmYyYQkNFbN2hpsyK6hLWkG9GASWVXVxNrHdy0w51pbqoVmL7kdhUN9gxr/mZ YcCUYeBK44w/eTfMWEz7HWm4PH7FgA9//NLfaNEiMhc2L0m0ztK49o6cY46CdUjwpnGT 4BvA== 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=A5J/zM6n3CbhyarEcc1reDGPo5IuCUEbdReBrQJsjlaX1k3y9MwYhQ7RZdAjP7tUAr CLByGg5tEMnJVp4m03osA+w/8xeZhkEeiHaXwen80P7Tw1It+shCwsVz6AcBk1oD9jh2 vXEEaK4f8ODMUEdGKxc+T9m7wTECaFaOIEPVfJNgKRZQTR2xsyOEE6vH+U7F7fo5iaWA WpVUCWICZICj/BqkX2ipgrpb6Tmitmg+JB5ZzBxx7dRMIuBP4eDudNzqI2t1i3vzEQoE ++5RjIYNJ78Q+nvdhLXOQFciWQto3YIjLcPjS/4siXpLMYWbLMnCX/J/5nnEp2Ycpim5 KkGg== X-Gm-Message-State: APjAAAVk8uCykTjGijf+ikXdPQQx8GMYMw2VajLbux0DzYmAKJ1lrFrF UAY9Mbx3XcNqDFA00b7ggS36sg+0Tgo= X-Google-Smtp-Source: APXvYqz67dm5s/T9mxTEEutE+N+jTvsUXVx4zTsaF1m1zg+xPTozqm74oj+RZjauE42xtSue0OfXaA== X-Received: by 2002:a17:906:6781:: with SMTP id q1mr17458095ejp.267.1556137573189; Wed, 24 Apr 2019 13:26:13 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id c26sm3728988eja.86.2019.04.24.13.26.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 13:26: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 v5 2/5] nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing Date: Wed, 24 Apr 2019 21:26:04 +0100 Message-Id: <20190424202607.23522-3-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190424202607.23522-1-pure.logic@nexus-software.ie> References: <20190424202607.23522-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-20190424_132615_800349_DAD19A01 X-CRM114-Status: GOOD ( 12.52 ) 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 Wed Apr 24 20:26: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: 10915717 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 372111390 for ; Wed, 24 Apr 2019 20:26:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23A0928816 for ; Wed, 24 Apr 2019 20:26:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1746D28A00; Wed, 24 Apr 2019 20:26: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 9B59E28816 for ; Wed, 24 Apr 2019 20:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type: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=cF2aOBmHHyoDDo/3OMC6lym5k8z02e9xUzN+X9GJZdQ=; b=XIeBmDxyXX/p9p +8gzPpmazRi71cZ9CwbDw3fofpFhfRCN1C2b4LmOoHuPJQ06Ec/LGXCuDgxIVYbbqyup0z9jz78Ug kPQGY7ox0rsR5GiB/EaolRb+SNEQ9Cm0n1FZ/9pTTXwKjq98lBXb7VroNjGtWV0oU9P1Ic8VQI0OJ kqaQMHPWrF5xHfmENOmy4CMYo9t4rwQpnuz6rFJGALL27r0mDwGyd5gymtrvmhUleMgKt7oA70YvF 8bngjr0e1vZC8P9BNqhxCYM58SX757NMKWmPKLPujpqPLBYrubOYrmdhn+mjyBuvjcXSYdaHM2tou wY6glYddw8Use6Alhtig==; 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 1hJOTj-0002A0-Ny; Wed, 24 Apr 2019 20:26:51 +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 1hJOT9-0001a0-F0 for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2019 20:26:16 +0000 Received: by mail-ed1-x541.google.com with SMTP id d46so17119685eda.7 for ; Wed, 24 Apr 2019 13:26: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=JidMEU/Hl+MLH6YoI6qqyR5hGcY61IYq8nE9qtsEigg=; b=wVM/8s3befJ9yCE7/lucmtbLjPcTzI6F8vvpKOJy57o4M8il/KhrsPIfXNbr0RnYJy mzj+tWz5r11Kv+8G7ohFCDcpCITjDJsIZQNaZ+7BIvfiSdoRQdBj6XfZmFiRPokZtt7c QUWmV4Q2LtgV/DugrNk2YxVZXfnyejBcGleSc4d+XU6bjWog4SZlR1d3TKx/d9fp+ljr HqI98MQrJH6LoZ1iVaHNkPQ3NVeBKBFaYdhQnc2jAmsxnsv4MLox6Mk3u8z2sDpz15ad ONM8175KBbnONcScKT2wQJRF+9ubpu+7Oywh/p9kidy2ZK8/gpzawEwK9GRILDcHQF+j +YoA== 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=JidMEU/Hl+MLH6YoI6qqyR5hGcY61IYq8nE9qtsEigg=; b=mnoEkUyYC44kLv+2XHTopSa0r3DKOHTriz2AD0/t9daDsWKdTNzXtw7+8FbMPiqRx2 /3/Nt7v/XjEtTAArKcZooddqum1wHIgtcGFsByNmdrrY0FcCJ1VQtFVc1R7af3FHIhBl OY5EATpnAPDi45q6c4806+fJwC83SefJmPRkDIo6eZmlBxUGN8DeMGQAxbJVWMKhHutM eJoKWhz2B3ZAnOGxdB1neGib1j2jxAxP1SsaSLgEROh3Jz6VvhEeUTAOf6Z7U+8WtCC+ 8M/yNu2ClQn9zT/TjAhrH6uyg80/IGfVuWwYCWV1352hng1C1CFr97ccgP4L9yXpTkrC FAQA== X-Gm-Message-State: APjAAAXUAYFHptP3WIxwsbGCGL+2hSCc29vUON1mhhYITyQsB13E3svq xY58/XuzyNQOShjwT0dk85X3Cw== X-Google-Smtp-Source: APXvYqw8s8bKYtRijMLru+U/xwvjpa6gNB0LfrpI39cL+L6KcJQ5+6OFPok81Pd6/7ZQNeFa00ObKQ== X-Received: by 2002:a50:b69c:: with SMTP id d28mr21587137ede.126.1556137574192; Wed, 24 Apr 2019 13:26:14 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id c26sm3728988eja.86.2019.04.24.13.26.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 13:26: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 v5 3/5] nvmem: imx-ocotp: Change TIMING calculation to u-boot algorithm Date: Wed, 24 Apr 2019 21:26:05 +0100 Message-Id: <20190424202607.23522-4-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190424202607.23522-1-pure.logic@nexus-software.ie> References: <20190424202607.23522-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-20190424_132615_512200_043AD3AB X-CRM114-Status: GOOD ( 15.11 ) 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 is turning out as a zero on i.MX8MM. This messes up the subsequent re-load of the fuse shadow registers. After some discussion with people @ NXP its clear we have missed a trick here in Linux. The OCOTP fuse programming time has a physical minimum 'burn time' that is not related to the ipg_clk. We need to define the RELAX, STROBE_READ and STROBE_PROG fields in terms of desired timings to allow for the burn-in to safely complete. Right now only the RELAX field is calculated in terms of an absolute time and we are ending up with a value of zero. This patch inherits the u-boot timings for the OCOTP_TIMING calculation on the i.MX6 and i.MX8. Those timings are known to work and critically specify values such as STROBE_PROG as a minimum timing. Fixes: 0642bac7da42 ("nvmem: imx-ocotp: add write support") Signed-off-by: Bryan O'Donoghue Suggested-by: Leonard Crestez Reviewed-by: Leonard Crestez --- drivers/nvmem/imx-ocotp.c | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 85a7d0da3abb..826812d3332f 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -50,7 +50,9 @@ #define IMX_OCOTP_BM_CTRL_ERROR 0x00000200 #define IMX_OCOTP_BM_CTRL_REL_SHADOWS 0x00000400 -#define DEF_RELAX 20 /* > 16.5ns */ +#define BV_TIMING_STROBE_PROG_US 10 /* Min time to blow a fuse */ +#define BV_TIMING_STROBE_READ_NS 37 /* Min time before read */ +#define BV_TIMING_RELAX_NS 17 #define DEF_FSOURCE 1001 /* > 1000 ns */ #define DEF_STROBE_PROG 10000 /* IPG clocks */ #define IMX_OCOTP_WR_UNLOCK 0x3E770000 @@ -182,12 +184,38 @@ static void imx_ocotp_set_imx6_timing(struct ocotp_priv *priv) * fields with timing values to match the current frequency of the * ipg_clk. OTP writes will work at maximum bus frequencies as long * as the HW_OCOTP_TIMING parameters are set correctly. + * + * Note: there are minimum timings required to ensure an OTP fuse burns + * correctly that are independent of the ipg_clk. Those values are not + * formally documented anywhere however, working from the minimum + * timings given in u-boot we can say: + * + * - Minimum STROBE_PROG time is 10 microseconds. Intuitively 10 + * microseconds feels about right as representative of a minimum time + * to physically burn out a fuse. + * + * - Minimum STROBE_READ i.e. the time to wait post OTP fuse burn before + * performing another read is 37 nanoseconds + * + * - Minimum RELAX timing is 17 nanoseconds. This final RELAX minimum + * timing is not entirely clear the documentation says "This + * count value 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." where Tpgm and Trd refer to STROBE_PROG + * and STROBE_READ respectively. What the other timing parameters + * are though, is not specified. Experience shows a zero RELAX + * value will mess up a re-load of the shadow registers post OTP + * burn. */ clk_rate = clk_get_rate(priv->clk); - relax = clk_rate / (1000000000 / DEF_RELAX) - 1; - strobe_prog = clk_rate / (1000000000 / 10000) + 2 * (DEF_RELAX + 1) - 1; - strobe_read = clk_rate / (1000000000 / 40) + 2 * (DEF_RELAX + 1) - 1; + relax = DIV_ROUND_UP(clk_rate * BV_TIMING_RELAX_NS, 1000000000) - 1; + strobe_read = DIV_ROUND_UP(clk_rate * BV_TIMING_STROBE_READ_NS, + 1000000000); + strobe_read += 2 * (relax + 1) - 1; + strobe_prog = DIV_ROUND_CLOSEST(clk_rate * BV_TIMING_STROBE_PROG_US, + 1000000); + strobe_prog += 2 * (relax + 1) - 1; timing = readl(priv->base + IMX_OCOTP_ADDR_TIMING) & 0x0FC00000; timing |= strobe_prog & 0x00000FFF; From patchwork Wed Apr 24 20:26: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: 10915719 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 36F311390 for ; Wed, 24 Apr 2019 20:27:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2339428816 for ; Wed, 24 Apr 2019 20:27:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 132BA28A00; Wed, 24 Apr 2019 20:27:03 +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 B770928816 for ; Wed, 24 Apr 2019 20:27:02 +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=0mIlog2PI2BGKywdNN0pOy+sB25ldCt1gkN0fpR3mfk=; b=LtwTIBAiN+Xn3Z xU237NaaOUfQWbBES9i8d/Px5imNsI7onUmn2WTm6TqeIy3Ze5ssS7G/oHYxfIXJhtuK2vHwf8ZUP Hjtm0yi3yE1lRfuIxzSGkcKIDLD6gIGbUiqPZUKaQVnx4hG6eUM5pBZWYemLeQgodOCbOX0VtXtIj 5XRD69ZI41jM3k4fj716X3MaeZUApEtdfdhaN0i55swd7qStWPNC7WTu81Xzo/dWeD6s065Jaitrb Tu3ksxKHC/f2UDZmfK9c8PZc7uIOWLm1Ii53EMvdl6a8X6jEMzcCpIexBipW1v4XowQeA5rI2qwVD wgsY9WY0JzVtYUwhpLmg==; 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 1hJOTs-0002RW-O6; Wed, 24 Apr 2019 20:27:00 +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 1hJOTA-0001aR-Gj for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2019 20:26:18 +0000 Received: by mail-ed1-x541.google.com with SMTP id d55so17150705ede.0 for ; Wed, 24 Apr 2019 13:26: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=S3Rfsn/VhYp7SibeRUUqFYaOACHNw/HZ5nPnK0GXbmo=; b=cilao8C0SMsOcrqWpsENsA0u2ivO8+Rq/HjhnGuC6j/P2VImAm5fFg9QxiHa54vYHd LHN7XeTvVsqjPryHVA18EVyYxEWI7eXu7PzEccbTfCtqD1iXPlyZQjZP99H5vaUf1iQl CwGjH7YcPVLDs+84FlnKZNSBQ1ldg4oP34yvDy/OU1D9VQm1fBlhn8Pk1OYmFOtt6AQ7 edSU4UWvtmxAm/SrGguIOzz8hm8LQM6tRMQtYxFoi5GaV6v9sTpOCtiroP34ResY5PDz ianKY3S8KZVcG/QOKjgVEuKX6fvVYAhUbocZFzi5EIHd+J63qRzn7WchQpFQaUQNk193 BScQ== 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=S3Rfsn/VhYp7SibeRUUqFYaOACHNw/HZ5nPnK0GXbmo=; b=QNaIlXh7u7qWSGMxVhGEJcceYM+zVCPkRB7IXiH6Bn7bTMebP8JVzgF5vVOIq5rAXM hus3Ah2hgm3n0i0Q+c87OjmpHNpd73mcvjhwKXc99lzjLPIKaLf8OSSBgWkWFKvAPpM0 ZQDIpq9fXJeci01T1bMsCcTIDA0LLw3HCpNxZI5kDKACAEjJO/S5xoJaunR3BWjYtRtN etbfL8IAwx6InNGveY7ZLNMFBKwl1c+P0TgOZjaXJSFYUT+rypqJk5e2ltsA6/+8JxzJ Dc26aaFtr9g0wDcVFAb/gAfjOOb2tiT1gPHI/WkaU/9yi3aQfFuaPEtg5oi6iHTdPlW7 aU1Q== X-Gm-Message-State: APjAAAXbi6j+0RKOEHy2bX9e0/PSQDqugocv0ofEbSZFRx8NQrvstdUC eGgsWRiV1jcgrnA1pJCKli3Z8g== X-Google-Smtp-Source: APXvYqzcBS6iLe3FksZxVVlWsuXKaYd8nRyiZmLSC777Z9UOH6XPdzQ7z5vrSeeRFP/WXeWZFr48sQ== X-Received: by 2002:a50:b1f9:: with SMTP id n54mr21044382edd.198.1556137575306; Wed, 24 Apr 2019 13:26:15 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id c26sm3728988eja.86.2019.04.24.13.26.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 13:26: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 v5 4/5] nvmem: imx-ocotp: Add i.MX8MM support Date: Wed, 24 Apr 2019 21:26:06 +0100 Message-Id: <20190424202607.23522-5-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190424202607.23522-1-pure.logic@nexus-software.ie> References: <20190424202607.23522-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-20190424_132616_553013_22AB1B29 X-CRM114-Status: GOOD ( 10.47 ) 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 --- 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 826812d3332f..e8d3dcada6c6 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -479,6 +479,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 }, @@ -489,6 +495,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 Wed Apr 24 20:26: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: 10915721 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 C683B13B5 for ; Wed, 24 Apr 2019 20:27:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0FD9286F2 for ; Wed, 24 Apr 2019 20:27:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A557D28816; Wed, 24 Apr 2019 20:27: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 27607287EF for ; Wed, 24 Apr 2019 20:27: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=FiQdGrUZXW6+jp J/owfTq59s9IH65QfEAIUntK/8asqyy/aI+JLNmHf3nPD2F3TWObFWspg0afTfE7ZaAmbcVpj/FsO 5wvNe5ax0zoro4pFzSlqPO/d9DVRHeGG2DUb3h0OHMI9zETevGqAKwKb/jPTokrYz1EDNRDSEineo eAYBxh5fOHHYyECwiTkCytOnvPIwzmFkHSNh4sZCSupHWILmX7ByVrdxc3pIy5OQ3PDv69QTDJMX9 u8xputhFuzqjTmqv5DJ6o/JQdNUBa85DZuIBZPv35NngRn2IW0bexhvLWwT9/ywPgJnLtIODqpX/T bshwv1QIvMXQ0HPJdA9w==; 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 1hJOU1-0002fB-QW; Wed, 24 Apr 2019 20:27:09 +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 1hJOTC-0001ay-0a for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2019 20:26:20 +0000 Received: by mail-ed1-x542.google.com with SMTP id g6so17121832edc.8 for ; Wed, 24 Apr 2019 13:26: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=uDaL1emhh1GlcF2DU2LxTAejsZ8bR5T0oAF6p1o3Bf4=; b=Cn5qjg7Snj31RiqmgoWQug3We5gQTs3xRHW86f2atGgRcmBFlcrR8GRjc+Py/WC6Lc WoJF8QG7si0XPJJCWsvzJ8Uk4viv8ObQzkqfGEmsARg3kp2yXKZkZBS2zfgk5n2g/Inc y5DHydgZXIgYJj/kbqiHmKvNks5EaTHaVU6uYH/5xhxatfx4CRJ/roiVZcdjwYpAYh6m S4r9a5HItA0iP/n0/7mzsF4q/rqXeNzouFYXubq5S9gfATezpEEAkjT9iSvE+WaA8v4L SMnOPG3PnNv+miZ6r1F0GCtAC+in9a3U++SCW5maks//QYaJYRtCLGMFacffSg9zncsn q8XQ== 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=mcrrxNDuTOGLGVhGnSki4waiUC2k1Wl3OwpSaehbrSc+blap5gUv0uO+/mxWDPbCAW nGu32RpWL9+g+ZMK7URIldicEaB/gfvVk6XfS0Lcank3npwgN2dGvxr6dILfXA/xWDvp 4Jtz2AOuKD8oM7E6krUX22Or7l0Q/ak7VmWDGYoffg0i6dthIAE2jgO88zKGTa7WXHcG nNcOLWUI2Gt5fTrI2vmeSqOiOTFN5Q9EhKu4CHe7D2diez1tOcLp8LoKxvYBx3giqky7 PPt+YvyCkmhyG8t+tuoIMinYY+zKZXS0F4xD1fczHXc7RmnLUZkFn6hsT+fDGRB9FR4I riaw== X-Gm-Message-State: APjAAAXZQUdpkNTYfUos6Q0mDA6SM0zCUm6OH1VRhKvivCvXb87GkYtv LP4HRnsbqwpSU2fmoTB0xZ1M78mv7w4= X-Google-Smtp-Source: APXvYqyD/7RQzbubXQI37YJenVOwzgUyKd5dj/H/mJFoOCvKPcjUkKdo2kXo2u1K3HXe9TBM63BPSA== X-Received: by 2002:aa7:c14b:: with SMTP id r11mr22290182edp.169.1556137576392; Wed, 24 Apr 2019 13:26:16 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id c26sm3728988eja.86.2019.04.24.13.26.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 13:26: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 v5 5/5] dt-bindings: imx-ocotp: Add i.MX8MM compatible Date: Wed, 24 Apr 2019 21:26:07 +0100 Message-Id: <20190424202607.23522-6-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190424202607.23522-1-pure.logic@nexus-software.ie> References: <20190424202607.23522-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-20190424_132618_310838_51183C6A X-CRM114-Status: UNSURE ( 9.62 ) 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