From patchwork Fri Apr 19 10:03:21 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: 10908741 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 06EE214DB for ; Fri, 19 Apr 2019 10:03:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF3BD28D60 for ; Fri, 19 Apr 2019 10:03:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D249E28D64; Fri, 19 Apr 2019 10:03: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 5CEF328D60 for ; Fri, 19 Apr 2019 10:03:38 +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=541AYcrujpD79bcwmPncnRIPaIfWKYVAJbHzR28Ec/4=; b=E534cMK0o5PWeV 8EjL6A1dgpeAyScXO/fWash/rXfzyedxBF0thSqpkVcfRIGrqSaV2v9UYdObsBHsj03R2TzBnNNFT RKm+yqWluSFzAbKDacMrzv2855f0gamV5Zbc+jze+I0/j/7T0U3wVaVLh6V9z8rU4jwVhNJN+xNsX k6N97AIQBJodUnqaAI8RfRgea38/+BKWetVhEBM98mZ/4K7dxlic/Y7taEj4hTUy710+0g9JsVCq2 t9jctS+S8XoQQcr4xz4iI7lJYhHlCSYT8tz+clVFRDSFXALaRvx5lnfkJtSEIhKib7rRNt4iFaC5Z kW7RUTbA3xWVFq5GLFuA==; 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 1hHQMr-0007up-3A; Fri, 19 Apr 2019 10:03:37 +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 1hHQMo-0007tF-4S for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 10:03:35 +0000 Received: by mail-ed1-x541.google.com with SMTP id f53so4074875ede.4 for ; Fri, 19 Apr 2019 03:03: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:mime-version :content-transfer-encoding; bh=LCtdl5O8h4t+TWbXid0nusEfRUTODXCkCYvuzPRHkgI=; b=rQrqyI+ZU1OFST/MsAhEKcJAbs137DGJycYKsTXfWXMlvXVatQjSuILvuto191/pPV ftSLnmNHzYm8k5fo3JUK9j02FwuUeyF9xyxKIj/IMaUBcanVO4JQ/PLWkOU0vY0X1k+B 12cOIXwcAopkdhca9fW2Arm46+JA/1GZ4HNTCOZFfLFVs58xlAS8XXyVMVhZGZKwlZPT XigCDzb26LTAo5ayHmQeLmfwNtdRoIvNOxVYpixIHo8EFl+gexoJeH0vtLiegkgSYuiN tpIYozolhp4RGU4CTS3B6BLcgv0hy2PyesHcLp5h7XnaFOTvUsIXK1sb5gRiugATFSQQ 1qNg== 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=LCtdl5O8h4t+TWbXid0nusEfRUTODXCkCYvuzPRHkgI=; b=dcaQggF64ZdoyzhUii4yj/UkYBC9n/7GPTZCkyGk54NIiHRZ27Ffm00jhxNdoFWt8z fKu3tps3ZPTTKPvxQOO9RHksixn2ChaK6A8yw5x9/Vgu17yJ2pwMYZPV/4xfXf0OkrfQ QC1nVRVllMXD6qdvJoVY4u0h2xFA/fgZbBvXrvWy4aDCCDxN9Q+VlxWaKpMEj8gEPhys WTZamOrqnsJfkmMReYlzsB/P2dH3FChQKkqzJD/PlIE4KqXQGdAy9UcFihntyOo08uie Y/jZp5S2pu8+BDbDaARCQfwKzPIYJQSI6Xv87HWVLHP0eFxxHGJtSHbeIY2nv5ltiQEE V/IA== X-Gm-Message-State: APjAAAUh49ZtykxFFusYjsUJJhwDobencyvs+Ex9dUo3IveeyhfRSIeK 5YhqJKe9LpOkTtyL/YpeFOrgADFhr4o= X-Google-Smtp-Source: APXvYqwDUwmlGrYj1X3WnaOge12w0AGCl4LMf4HivDiRxvgPZOUcFesftcA+Dk6gqJXpK58/7/4uSw== X-Received: by 2002:a50:94bd:: with SMTP id s58mr1898670eda.107.1555668211407; Fri, 19 Apr 2019 03:03:31 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id b11sm1254512edm.5.2019.04.19.03.03.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 03:03: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 0/6] Add i.MX8MM support Date: Fri, 19 Apr 2019 11:03:21 +0100 Message-Id: <20190419100327.31483-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_030334_179921_7B00AE0F X-CRM114-Status: GOOD ( 10.94 ) 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 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 (6): nvmem: imx-ocotp: Allow selection of OCOTP for imx8 processors nvmem: imx-ocotp: Fix i.MX OC-OTP naming prompt nvmem: imx-ocotp: Add i.MX8MM support nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing nvmem: imx-ocotp: Ensure the RELAX field is non-zero dt-bindings: imx-ocotp: Add i.MX8MM support .../devicetree/bindings/nvmem/imx-ocotp.txt | 1 + drivers/nvmem/Kconfig | 4 ++-- drivers/nvmem/imx-ocotp.c | 17 ++++++++++++++++- 3 files changed, 19 insertions(+), 3 deletions(-)