From patchwork Thu Apr 25 13:34:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10917093 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 6481676 for ; Thu, 25 Apr 2019 13:35:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50A8B283B1 for ; Thu, 25 Apr 2019 13:35:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 418AB2884A; Thu, 25 Apr 2019 13:35:13 +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 D7C13283B1 for ; Thu, 25 Apr 2019 13:35:12 +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=cMCE50c1De1vWV S9BBVg9j2v7UNoxd+nJY7wFjCURmF8ffKE91CiWECu9mQazQyLCihd77T6YPYCazSOwdSOGRMQGro /RPa2fYbZoP4Hh5yXSG7+TiJcGf6Jzbx2Q+EftGuIaxjRba28dr1vF1lForeSm3U6gDFUUk2Khrf5 oxden5krO7iSg2LTCyEc7OLyamNdXgASn9V5y9p6x3KimaqvxUlpFtpNPflqonvCuSYT7er+g6Hjm 5gPU3Y40tFYldDckwq5IprU5buEzjj2g3LphWBY125kfjJUvbZtN306X7sm9XzPvFZkJjasOScFvo spOGcdl+cNJrmNCGuFFw==; 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 1hJeWp-0007XX-J2; Thu, 25 Apr 2019 13:35:07 +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 1hJeWK-0006Rs-9D for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2019 13:34:37 +0000 Received: by mail-ed1-x541.google.com with SMTP id k92so19149693edc.12 for ; Thu, 25 Apr 2019 06:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vDjC1HhrwiK6rBinSJgP2ZiTatVr91mDGrEAz73BDHg=; b=2EWSZaK3LOtcxz1o7mXlVyd659WMFQk4S7ML9FAF7k8PFHIw5gSAsVAFhx2vCmL7NR xXrAQNyQQlvOudvEK9UPcDUPLzSlYNlWK40xikE1nzvivADCSy3H2TLznGfI6eCoJjMc 4zwozm4Wc1AbGsA3NZqHPW5lffDOzbS9fVnX9ABMOoCid8ttIBh/ldpkjFmPniryBgAC l2sJsySqk6KxcjRF0+rtvWP50uKMk3aO6UxJFtZ9AJWIMBoWPfiPEfSNdPww5Dvl9cfF t/4RRZwSaKvCzOqdZYz/6MUw4cJ5e2N2/ab26RrxG7jGMu9KVYHTd7jsDVsWGPguzXQu V/EA== 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=k54waEfxUHUJrhQPQ0Twj6/GWmKlP6ERgUgTpT7zTiOqqaVeP/QYhXsS4wjj+Wf09G b5fxh0viWlR72fLdft51Xh3CDreyjF98foIYRVJwAiXX9t8a8/uydjxTZ12FFbyhvX+w 0AXV4VcUdTImsVhfBDcI+KYgIPwK39xZdgcYgC7ZL8cBkFzYsDVUQM+H9zvSb6KCIXai dpGSwvMXHMEoTFF+0p5RbvNSvN4l/S6O8KouQHkbrUv+tQCmyBTyqubgDTVvfI5X53FK PGKD95LtXfnyWfabx14hYbXyAsxY9iUNnqDFGCTorz8llHKRvDoVO8ERc8Js+rgPYQVw AIlQ== X-Gm-Message-State: APjAAAXtsa3SdDzqFE11OzxEalxIdr6EDex4ogdtrSBoE8FtQpDmRlcj 1HVp3xNxIRdkkTRWcN9o1VL1HQ== X-Google-Smtp-Source: APXvYqxl45lD47UfaLn3TWKmwzsgaeijEp1Ao2z94iGTq1tzLzhhDZFNyZcMAaUdM5PKioj03HtleQ== X-Received: by 2002:a50:c905:: with SMTP id o5mr24913197edh.252.1556199271359; Thu, 25 Apr 2019 06:34:31 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id k20sm4027084edb.9.2019.04.25.06.34.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 06:34:30 -0700 (PDT) From: Bryan O'Donoghue To: l.stach@pengutronix.de, peng.fan@nxp.com, shawnguo@kernel.org, srinivas.kandagatla@linaro.org, leonard.crestez@nxp.com Subject: [PATCH v6 1/5] nvmem: imx-ocotp: Elongate OCOTP_CTRL ADDR field to eight bits Date: Thu, 25 Apr 2019 14:34:23 +0100 Message-Id: <20190425133427.30648-2-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190425133427.30648-1-pure.logic@nexus-software.ie> References: <20190425133427.30648-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-20190425_063436_320405_59C4B53A X-CRM114-Status: GOOD ( 11.80 ) 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 Thu Apr 25 13:34:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10917091 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 4F21114C0 for ; Thu, 25 Apr 2019 13:34:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 379981FF87 for ; Thu, 25 Apr 2019 13:34:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 259E12899C; Thu, 25 Apr 2019 13:34:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-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 AE93422362 for ; Thu, 25 Apr 2019 13:34:49 +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=aI3E+HGnP5fSCO dc9bHOhH1M61Y/YsOXxmAFP8gJMVTUwtsJT3dWcFUZaSNbDJ966kNBXljLoVl0/e/ldvM1sdCQWzl Znef32apWGfBozggcySSsAM6SYzFyoYKcJXxXz/8V4JzKTZxKaWsBrsOOk/6kBEWXPvKGOBNWFMS3 LfwzQ7sueFijtMuflJhYmaJZOhXOKCI/GxGVrnHZLlRNnicZEkY62bw4l3/zHnHL1J8p1YDXdvwGe cUui7OgHY7nl2jHd591OwEJ2VQD7re5/TbAp4riu7kPPw5wmdQkw+Ewyh3dW1dINgkytgGfvTXfCZ lMUvnniThklOvzHiB+Nw==; 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 1hJeWS-0006aI-Cj; Thu, 25 Apr 2019 13:34:44 +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 1hJeWJ-0006Rz-9S for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2019 13:34:36 +0000 Received: by mail-ed1-x542.google.com with SMTP id k92so19149755edc.12 for ; Thu, 25 Apr 2019 06:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m8sw1rwYxfc4LACpMZCX1Kbzn04GKQLj3+eLoghKtB0=; b=nMFvYAbLHQ3MRasXd2Y63qeVTaaj/4lRrv0DqMPHn8pdVe5QDp9s3vUJDFDf6RHkbB OD0V3sDy4ZkYWwmfsuhcGvZdU+b23W4eh5kcvhRvGEX7Dtf+SqLVAd4jloBvasKVqDTf QBzNst9aN3JfrRzR8WLXAaFCHcicW272se3R2d3gZm6t+XOaJMkldvc/3D9Y3zMbP4pR vcmo953gPk+igpThhM1b89WTKdWMeWNrWXa7BwTnvGg54wZ0qV8oJGeEVUNT6EpKfeTZ 0YiyvufEALW56DRrYnaqvsL30oLCNhPssJfbHFj9J5/5D8Nrl7E6EQ6oDiII4GGLCIRw 392A== 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=mBuMHys2zpGDJXjr8SrIVjeA5XPCzej8Mts5dO2wwASM0wrFRh3+5eFdxlG65NpQE8 6GDdGpLF6mDV9S/+pWL3XGhmFJefROCyzD5PnEXi9T75Iuf2M9lLb+6E8EBsZ4QPFTjk 3YWxNbI+aV+lsT4uxFhdinn1xQBvYKHnC0LNmOP22HX6la1xBK+41XQb45yiGrMyOHi3 uEvXCWz3kMkULcC5vh2FW+1piwYXe2WOGN97hyCfs3YUXjF4LaRnTWWGf/nRoEPs+0W/ SQP9w5MrmTF6VNp9E88BgjCLDZ62phFPbI1HmB9gJyUs2bH97h51ibogy2uqd6+uV+wc 4Udw== X-Gm-Message-State: APjAAAV1GhWocip0uotW27TsVXw/W3Ya3mw78fTQ2d85gAV2LfBkLdPh Xx82pLY2qYlVIhgMrFcosLaRjwrlVrI= X-Google-Smtp-Source: APXvYqxhgJe061uNLC3oPsiFoLPvbr9bz5M/4of+N8DOSHkFyyx0rgAPgPaYH00KS4pWgFWJ4Rk5Fw== X-Received: by 2002:a17:906:3955:: with SMTP id g21mr18904092eje.61.1556199272765; Thu, 25 Apr 2019 06:34:32 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id k20sm4027084edb.9.2019.04.25.06.34.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 06:34:32 -0700 (PDT) From: Bryan O'Donoghue To: l.stach@pengutronix.de, peng.fan@nxp.com, shawnguo@kernel.org, srinivas.kandagatla@linaro.org, leonard.crestez@nxp.com Subject: [PATCH v6 2/5] nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing Date: Thu, 25 Apr 2019 14:34:24 +0100 Message-Id: <20190425133427.30648-3-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190425133427.30648-1-pure.logic@nexus-software.ie> References: <20190425133427.30648-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-20190425_063435_327337_0C0D2960 X-CRM114-Status: GOOD ( 12.51 ) 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 Thu Apr 25 13:34:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10917095 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 2861E14C0 for ; Thu, 25 Apr 2019 13:35:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1770928AC8 for ; Thu, 25 Apr 2019 13:35:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0961A28AD0; Thu, 25 Apr 2019 13:35:22 +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 8E16C28AC8 for ; Thu, 25 Apr 2019 13:35:21 +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=UnilqLhGzxplW3+5igZnxkTZUdlHfQtq88ZZG4wXP1M=; b=QZHsyBFSolZvYx 9SXIRfgKFun/NnOWCPa0/2vbspeLlOk9XadTHRbiwHKHRTHacdbuQsln/SrRHI8CWWCLE/sowZoCU 0srfPTOP6Cm20yQq+tvliZwE5nt6XR7lUNhU2IyAh6DvelaAj2P6pNPl2W+Na+wMqDeKlxk+hqu3W gmWBUPGLJi3H170DqqHEWG2CcMcLSLI0EhcPd9b1D1hM/9PW/PM1pckRybK3SrDD7i3z6ooaFH5CG iXNUJUyZmN1N86UnYzHv3W+y0QEHc0TEpDih6eoXY2Udc1HiwFI28MPIX3E8aRY0TeJ8WKhujsjyy Rjl0VNUB9qL4ND0LYqkQ==; 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 1hJeWx-0008Ki-PR; Thu, 25 Apr 2019 13:35:15 +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 1hJeWK-0006SA-9F for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2019 13:34:38 +0000 Received: by mail-ed1-x541.google.com with SMTP id d46so19169016eda.7 for ; Thu, 25 Apr 2019 06:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CYID9mOljtZzAjb8BGV3ItGDunuSSt6iBRER3TaRlB0=; b=0TJrK5VEI9BG51ZVVo7ZlLubzVKdXsPShfprkWHdh9mkrt3ER6BySeVajxe5q8sXTa Eg4RwlOgFKAlhIMEnUSAu49OvZBoZZzcN5lLgLQCEg+FQHjMOZ4CcioQbop1/kyqmbV4 VUykBDH3OLjctVNcsxKnA54Qfs7TlDqXERY6ClytMeoDuSzwZ6riUT6yao2QJ+zhzBXl g0XVdrZia4wVk4lwmvRTyJWrwh4ilwzuhBq7k9v1khws+YCTbYC6lq6SIIIOhOUPKRs8 cHppj9SMJEimSwNhnKC68M2T2t/W87uT/6lHuPPdW6rIvpoMP7y43dwwYAT4MR+Ksj2R VAxg== 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=CYID9mOljtZzAjb8BGV3ItGDunuSSt6iBRER3TaRlB0=; b=YZI79333jR9Ir/zf42eUyeSU4FvPjPCAo7rYexhoUp8Fu6Ky/fsuG8NeBFD9CsgC6G SAqjlCZi1bTMcBI6ArRhaoa1db9wwYYi5cEt/q9M1KUTyjyCOW7EBr59jXM4gb2AFBMY udZAt5RZdOJlFhSRqDn57wJMaSilmPA4tvmQtPBQVvyQR+04fh0G9JJe9dLoTs5owK2s bvCY0IxDcf12gt5OiQZE20BdhfTua3PxgUYnB4h8bYXczmkb2NxLo04747m2ECZQpaEi zv4bbadZEUr90ME1Trgu/WAwkm6GoWk6klNOmzvf5u5Q4MeBxsPEIi2FV7ORVAwO67BZ DAWQ== X-Gm-Message-State: APjAAAW9u+ltFKpmc2jg9i9XlItewmflktwqw8JAQLdi/vLkslI9jN5Z AJq+p+AagbgLgB+QJIps7D2kfA== X-Google-Smtp-Source: APXvYqy95a8yCE/uka7bH0oDYXAnhQQfXRJEdoVTT9Fu7jIZqnM8gyEyzLacUM1tveBAIbyoL/Sk4A== X-Received: by 2002:aa7:d6d3:: with SMTP id x19mr769564edr.67.1556199273949; Thu, 25 Apr 2019 06:34:33 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id k20sm4027084edb.9.2019.04.25.06.34.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 06:34:33 -0700 (PDT) From: Bryan O'Donoghue To: l.stach@pengutronix.de, peng.fan@nxp.com, shawnguo@kernel.org, srinivas.kandagatla@linaro.org, leonard.crestez@nxp.com Subject: [PATCH v6 3/5] nvmem: imx-ocotp: Change TIMING calculation to u-boot algorithm Date: Thu, 25 Apr 2019 14:34:25 +0100 Message-Id: <20190425133427.30648-4-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190425133427.30648-1-pure.logic@nexus-software.ie> References: <20190425133427.30648-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-20190425_063436_327060_A98CF55D 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..2c5009691dd6 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 TIMING_STROBE_PROG_US 10 /* Min time to blow a fuse */ +#define TIMING_STROBE_READ_NS 37 /* Min time before read */ +#define 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 * TIMING_RELAX_NS, 1000000000) - 1; + strobe_read = DIV_ROUND_UP(clk_rate * TIMING_STROBE_READ_NS, + 1000000000); + strobe_read += 2 * (relax + 1) - 1; + strobe_prog = DIV_ROUND_CLOSEST(clk_rate * 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 Thu Apr 25 13:34:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10917097 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 8A3F514C0 for ; Thu, 25 Apr 2019 13:35:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 791BA28AC8 for ; Thu, 25 Apr 2019 13:35:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D0BE28AD0; Thu, 25 Apr 2019 13:35:30 +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 12F8628AC8 for ; Thu, 25 Apr 2019 13:35:29 +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=e2kCHpyqA1Vg7Z/0Nb8DniA6lgAEVYWKSWa7AVQAElA=; b=YOGiitQcN3pgA9 l7M/pL9VP5AWfhBDhoaEgw1nqnEWx4gspC/CKPG88gXIra7t9pav43gOP8fi1Nw/T8+AVYjdrfx2x m1tv955ZNKmGt1siDX7KvEobfqG4ZYpC5HA/efo2qU28rg/xMveZZd0tX92PhA6YzDMYOGQsxTmJD S8xaFlgIiaO2aI/2VmGR8wyPfVDAh9NhtaOhoinP6gDzMgiTyIhEk608LCn4aIPrnSRE9eB5u7oXF CRTaOAh4+5f/xMDrfuDCW1KH0WGXlHcURA8eXAtCrrjRSY/wrPLgcOo7KPgcRGJuXWYpBifpFseLf Gn/XsNi174F+BYPYR7RQ==; 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 1hJeX7-00006P-9a; Thu, 25 Apr 2019 13:35:25 +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 1hJeWK-0006Sh-KT for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2019 13:34:38 +0000 Received: by mail-ed1-x544.google.com with SMTP id u57so19204854edm.3 for ; Thu, 25 Apr 2019 06:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4ri/YVZIE592kymXrGXMr5tXymQFGJmjgqui5bgmAf0=; b=xBvJVHkfi2ZechSMfMV0zZqTa6l+qC0Um89jxp78/GUmnk9Qfa3Fa+OngHm9ZAe2nU FfZp/VP0W5t7NBIJoefA0B2kb1FE+8YW2OAbWDOdNZVdGvKuzWKDn7G1noB4sJUy5e4p Fq+jlS77Ilv0boWvYZtHKmo3WGmqFLfW/+yVM+GiXgpLoLLW8X7FhwQtNqadmiUYObyt 6GJmwMCCpheoT98O4kR2QCSwrbarWiXQSAKSOs2vSHbYfLvZTagzpnZtzAj91KBTCIxI q5TAxqR26Ia8a30cRLoSmtkA06wcTLh7McBcq9UOCUbKbQbf1IFrpLhoOWCnIWTyjAsK H3SQ== 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=4ri/YVZIE592kymXrGXMr5tXymQFGJmjgqui5bgmAf0=; b=Nrsrs72psQWdf9l5RClbLnX/IZ6PKM3wRkN4V7eWXIZmDIWd4BTZsWOwpNZtNugB0S 18UGJM2axDv2c/VaedJDYKpFGCcI7xU3CaSETUqDcMSJhq7bBkHr2VYN9vCsIfGSjdD+ ea58tHFJBqfKEjcoSHj1TiUIdC/gtA4YWj0GTXbo69JdL41HB8cUW+oVI39VrWLgaHnb atZgKBK3aT6SbC71DG9/FXDEd+PrbI/3+mh//EZs8mQ8nJc8rNLa2pDd07IN5shHr7vH ueWE/INZEpx7QZEl+ARq8rgCzbUdGdXFY2OHIyIb2oolonRymSbECGBICbsixkNtdLrg GQBA== X-Gm-Message-State: APjAAAW/jBdEVHZdufSgT9wJ9EG+I1babAz2ljWWH7r3kRjTm+Rif0nw cUOJWUfeSq0G8oHrBc4s6KBxvA== X-Google-Smtp-Source: APXvYqwjomyMkuHQng/ufGY94bf25AFs2P6uNytElwDtF+Cd8bcNCuDyfKkYWtJZ/BXhRHj34raNpA== X-Received: by 2002:a17:906:66cb:: with SMTP id k11mr19076647ejp.10.1556199275380; Thu, 25 Apr 2019 06:34:35 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id k20sm4027084edb.9.2019.04.25.06.34.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 06:34:34 -0700 (PDT) From: Bryan O'Donoghue To: l.stach@pengutronix.de, peng.fan@nxp.com, shawnguo@kernel.org, srinivas.kandagatla@linaro.org, leonard.crestez@nxp.com Subject: [PATCH v6 4/5] nvmem: imx-ocotp: Add i.MX8MM support Date: Thu, 25 Apr 2019 14:34:26 +0100 Message-Id: <20190425133427.30648-5-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190425133427.30648-1-pure.logic@nexus-software.ie> References: <20190425133427.30648-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-20190425_063436_725284_6EFE83F9 X-CRM114-Status: GOOD ( 10.65 ) 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 2c5009691dd6..189fd5f334f4 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 Thu Apr 25 13:34:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10917103 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 5F53114C0 for ; Thu, 25 Apr 2019 13:35:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F5A028AC8 for ; Thu, 25 Apr 2019 13:35:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4343328AD0; Thu, 25 Apr 2019 13:35:42 +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 D1D8628AC8 for ; Thu, 25 Apr 2019 13:35:41 +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=r1s52qREYV8dph bUPhpbPAG4bMFE2Pv8rdcHd/CjBpxpKSgOpH2X55MiGy1GfkNDpZQLb/gOd2HudRkQN50fNnrOYQD IANGFuqF6xmCNvAJe1c1fNrwYLXEMjy116+nlGxydF79UnKY2GkwoO2tBXv6OeiXR0WhbXCgGbxvk rGE+iASkx0fawPEyNc+1jDzMm3Dghn0Um5TuW+uvoZu+pzga9ONMNrnrBlC7ECaDwjIB1r8dtWEuN Z8nsEThfoGFY3H9DC3dfvqJIpXj3Iqf+eGy/VAdPCjIF5Iz7hgBX92kRC/z+Z4FwqzqJqdkWT4Doc lA9urh7+OPJ38NWU4dow==; 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 1hJeXI-0000Kl-IP; Thu, 25 Apr 2019 13:35:36 +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 1hJeWM-0006Tq-1M for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2019 13:34:39 +0000 Received: by mail-ed1-x543.google.com with SMTP id i13so19145565edf.11 for ; Thu, 25 Apr 2019 06:34:37 -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=xsjUQX/jgC8xRxJQui9qdlxdGqY3OICfPt9/mHScPEqU8qXlJZC7DtoNuU6JZPnc14 BRgon4CjOkwjwkVibzbrT3kxidwk4umP/SwiMwC0107jo6vGzLGju48xl1UWTBuHh3ld VF/jdEmihUjFdpUMAdpp3AWGXBEBCrL9teo6UDH+uyNAbFbnDCaRe/w+EXs91jyRMcTa KG+9Q1RbvoP/dcGYbV2uzPXb74ZsKuaAHDRUCbuyTUufZQJ+3XZFL1nQpp06Kh248X7l Nb555ZxwanrEN45xAZyyegpT99MJ/FR0Ach7qOn/gStsALD6ZGN/zEqdXXyGeKAZ5LDt feRw== 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=XRZ8MSJdtj3Br1TbhGRyVoPvTf3xZ+U5kFHBxaynXNNWll/SW5iVl7fO9+nYXO9ovZ lIOi52J8C9koeJejMF3xF7rBaC7brpeA0FuNfocGR590Sfx3PLu5HT848GRRW3YfdJu4 8MaO5KoL+IZaODtQY4iFiHnezMHB7QMChvNO+ASD1oecjXRiDDuiBu/7JXI66Kg39MHC Gm/hB6UW9BxNF03sRAGjO0hwBWOzIrErWPUyWOV+Y1Tzp+g1h6CfsEyfVHiknZAgUk81 70wVXmgRgJyToxxQ9n24KOWBCvMd5EzaH0gpNcCKLBMKvuUAYDiPYnC/n66rCUcKRoLD 4heA== X-Gm-Message-State: APjAAAXS/mpXClpjVjgo4+ZJLWH4jFcZNrAS7OdqpawRh/TSvaMEMhLm snbSglwN3u+eF3+roiRxQc5rGw== X-Google-Smtp-Source: APXvYqxLbT2/DwIceuoWtpEWbPCoGuKJg4NkqCz5b9vbtApTBQTXICcJkSDmWWvNowlmDMfRqrm9LA== X-Received: by 2002:aa7:ce07:: with SMTP id d7mr24000427edv.294.1556199276495; Thu, 25 Apr 2019 06:34:36 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id k20sm4027084edb.9.2019.04.25.06.34.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 06:34:35 -0700 (PDT) From: Bryan O'Donoghue To: l.stach@pengutronix.de, peng.fan@nxp.com, shawnguo@kernel.org, srinivas.kandagatla@linaro.org, leonard.crestez@nxp.com Subject: [PATCH v6 5/5] dt-bindings: imx-ocotp: Add i.MX8MM compatible Date: Thu, 25 Apr 2019 14:34:27 +0100 Message-Id: <20190425133427.30648-6-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190425133427.30648-1-pure.logic@nexus-software.ie> References: <20190425133427.30648-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-20190425_063438_087367_182F2D66 X-CRM114-Status: UNSURE ( 9.70 ) 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