From patchwork Fri Apr 19 16:48: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: 10908993 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 8AA881515 for ; Fri, 19 Apr 2019 16:48:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7284A28BE1 for ; Fri, 19 Apr 2019 16:48:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 661E528CA3; Fri, 19 Apr 2019 16:48:20 +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 0F8C428BE1 for ; Fri, 19 Apr 2019 16:48: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: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:In-Reply-To:References: List-Owner; bh=Wbplta0c/l/1CFQmYmgekvC+Gq6A9bgOLreDFdsGl5o=; b=HXIvoVyfCjADK4 g7GF0v6KScEn7qVyob5lpXM+zWHDoo0vjTuzh8Ampbx1xlW+Vn2jKIzEAo3Deqw//QrqujK2+L74x UkV4XhDWTNoUyCrqHwxJtj3YqH6tU7/7MI1AME7ZHhxbEUORfdFZlVuw2Bw92la2pfQ6tFdiGm99g vEWd7qOff+JOKYo+sVdHCsge4X02LYeJi1zxWN9P9aQtfIugSZR8lAvhGZG7mp7RUAoHdWWdXxzgn DAPferInSGG0bS/ZIyBn706DsX4rfSYWK1ZYoAwZSMqQPO1aHmKovnVMP5cX4flzKh0qxxzo2OVB3 6ui+6fCZ3kc1HLJ9yyqg==; 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 1hHWgT-0001hc-GW; Fri, 19 Apr 2019 16:48:17 +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 1hHWgR-0001gk-5b for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 16:48:16 +0000 Received: by mail-ed1-x544.google.com with SMTP id g6so4816517edc.8 for ; Fri, 19 Apr 2019 09:48: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:mime-version :content-transfer-encoding; bh=Um+1gA5eWRzV5qtDivnEn1gQJAuYBIL3ao9Dv0fh+BE=; b=YUcJmSN3hRNqywFe6l1Bb611sO9NfVD9XT9pyGrtnw1wnaoXCE6wZKO2kETLqFVQFa GlbKkXRYTJ2MS8Vi13XIri9eaH9aHYKlqa4opehnVyvIo3TipDlf45bjR9JLqAiC2obF X5u39OjwgwqvPcscy6IQXj8FZPqiPLSW/xMFLqt4jGGfl1/rSrqW5afctcT3ge1Y53v+ 1Gvh8aZlBvLYh1spGV/m4O7Ahtm7wj5ZDJtbn5A2bZG5lVgCObxT561R8yb8DA521rl9 77XaFfXTuTkxcg5pGUpQI5TG2wEybkysXr94m3L16ih8eEqDZL+ZZD1eKwracMsnEU97 SW7Q== 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:mime-version :content-transfer-encoding; bh=Um+1gA5eWRzV5qtDivnEn1gQJAuYBIL3ao9Dv0fh+BE=; b=c8WPNU/dB5GMihp7WaJtbtB7roAU2zIv79xkGDB9NRGV1ArMVnz/fN3Cq56Os2wGuC 1EmlDnuRtPBK43KPpPe26A8AMga63uE+R4cwkRiIKyzqz6q14TREwk2XeffKsN8gjXoK RguyeY6jfOboAd6gPlebovs7lTEFY2RIbf6EZ/RnQN3wVbYuTIFM4Q/TybMGwBPlcg6A cBPvwurZOMVjPJGzc9j9nvc5yN7E1jQ/i2yfqReF6hgOuSVdhVn4B2NLb0UQfVteMQP6 FKComLDYZKRN2pbhdDip501abjfS+/6sZJkr4nQvJUo6vvExfCmq1oN4+Q5JjAkgoSev BL8A== X-Gm-Message-State: APjAAAVIIGj1mIyNfzkQkNydUggdnoBNHR9BU1QEMgzrUJv1uthCpB8P NwI8M+3MUHFWvQxTsqxYAAOnwikRg5E= X-Google-Smtp-Source: APXvYqzb+1kGP3FWUDsbWjR2W8NpdmAtglFbWEiH2zh37mRLysz2ftlR59+9aCSSDwCCdvYjN9qa7g== X-Received: by 2002:a50:8bed:: with SMTP id n42mr3070801edn.72.1555692492940; Fri, 19 Apr 2019 09:48:12 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id e17sm955380eja.33.2019.04.19.09.48.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 09:48: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 v2 0/5] Add i.MX8MM support Date: Fri, 19 Apr 2019 17:48:03 +0100 Message-Id: <20190419164808.23236-1-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_094815_212072_07B653D4 X-CRM114-Status: GOOD ( 11.24 ) 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 V2: - Rebased to linux-next/master to align with i.8MQ work - Two patches dropped as a result of rebase - Added patch to expand OCOTP_CTRL_ADDR to 8 bits for all users - Leonard - Makes sure nregs = 60 not 64 for i.MX8MM - Tested imx8mm-evk, imx7s-warp7 V1: This set adds support for the i.MX8MM. When adding support for this processor there are two interesting gotchas to watch for. #1 We current do not preserve the WAIT field for i.MX6 and since we are reusing the i.MX6 set_timing() values, this would also affect i.MX8. On the face of it, it appears to be an inocuous error with no real side effects. #2 Secondly the i.MX8MM will calculate a zero value for the RELAX bit-field when programming up OTP fuses. This is fine for programming the fuses but, it introduces a strange failure state with reloading the shadow registers subsequent to blowing an OTP fuse. The second important patch here then is ensuring the RELAX field is non-zero to avoid the failure state. Bryan O'Donoghue (5): nvmem: imx-ocotp: Elongate OCOTP_CTRL ADDR field to eight bits nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing nvmem: imx-ocotp: Ensure the RELAX field is non-zero nvmem: imx-ocotp: Add i.MX8MM support dt-bindings: imx-ocotp: Add i.MX8MM compatible .../devicetree/bindings/nvmem/imx-ocotp.txt | 1 + drivers/nvmem/imx-ocotp.c | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-)