From patchwork Sun Aug 18 09:33:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 171561 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1582780ily; Sun, 18 Aug 2019 02:34:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmuh6IvbCTIQtyNNzAzbqcq32dn+vdOTr8sePiCsPgYxsXBjdBdapicHcY8OPM29eWehzu X-Received: by 2002:a17:902:e406:: with SMTP id ci6mr16857099plb.207.1566120887072; Sun, 18 Aug 2019 02:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566120887; cv=none; d=google.com; s=arc-20160816; b=OXGB5rYhollTtBuhic0QptyH44YtDjz2tH3AsQTE9xH3uPsVmrUSe3LtjfObEmrPos HBYB6ssxRxWTqWYQRVcwmLIvoPtfrLUdCftYYZIOt6hWbMhXkKMwlDeVEIrsJ2404Nch axeUp4gMq36oT3dkstIo1D8SxEYXL1McIDiklMunVN5vFZka7W63P/dvTfeELbs4fqnn nFT4VaaBUWCDGr6NvHFrcYCWN+MWMMfFl/ao5E4wFrpHYgOieonWPZByYTQ7WEmkEb7Z N3NgQUCVH5gkVhEPS76VC/Jc1w1E3KzYPRw3kTDf3X4yymZY7NDWdpt6nyaNU/anQb4o MQmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QZhMjRQVUEje4pWcMn5B2XzOL8/LIS1Q9fLZX8B7OoI=; b=diX4IaqkWMloV7qYFfDfjrOWurmyIWfqvL0OYtEDDshxJ8UsdvoNoqtvYuzQzbeC80 gWUP9R9LEneelUFyNg4O4i1hiPsvZt6w25BGDjwkcGAYzvLsXSIMqpN07eh6oQdlIQcj GJyGi/KdyaaT4trnh6C+pVZ0zPH8jkoa9B9e/a7LC8M0iOPE8S8CtAeO0y0ZrSGVZBFW LiA+abF6CCBIvmWRm/kBvn6eF2kOHzN67cXUkv0xu7/amxBTWJ8yIsaRedGmPE2pD6sK dIW4HgHpwPm/vAHcWs3g8e9dWfmzgpJTqFFPPL3NpRNZ9xT022bTUd98Syz/11SXUGi2 LbyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bf2zep6G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si8063356pfb.60.2019.08.18.02.34.46; Sun, 18 Aug 2019 02:34:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bf2zep6G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726664AbfHRJem (ORCPT + 28 others); Sun, 18 Aug 2019 05:34:42 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50617 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbfHRJej (ORCPT ); Sun, 18 Aug 2019 05:34:39 -0400 Received: by mail-wm1-f68.google.com with SMTP id v15so517162wml.0 for ; Sun, 18 Aug 2019 02:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QZhMjRQVUEje4pWcMn5B2XzOL8/LIS1Q9fLZX8B7OoI=; b=bf2zep6GD+VRN6hhSFmRjy2pIhRR/mwUeg6DjcBhVNJKQS4Z5PEHtOpb64Rqtf4EYM e6DEBvwS+ip+M5K3vuIvpHj2UjJkM5bFRXtOD9QUEbmrFFBNSfJmkLr+JRQESnMlls3L QENqVfohnM9UjhqfZxL1inzFN52+NlFlg2k6YptPDpBAkpZ7rpMURGhyxyW/lN/maCPb nc+dob8vS0dXb5kA3nYdQseeVPhCahZK/U3KAwrPpCtx8ZVh/8M4DzoiDkGNVWfPJQw3 Jq/Cc3fhRdYTN5ym2zpp1krci6nFjn8ztAKb00vM53fLaZP7+Y1o5YSsZw68NdfQJg3K 3FBg== 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=QZhMjRQVUEje4pWcMn5B2XzOL8/LIS1Q9fLZX8B7OoI=; b=fEJs0XapoMD1p0yiGsKEmtmnx0/oZxqmltXf0PLSob7ezo+qXrS+ApGJDJzA/I1bIy J4QTquizGLpuJcBkWNpyPcfSfAzEdV3ixdh9douNmKe3KkzlQJ+EHOwWhHT3Hyr1E8kV MQG8v6uMBqUe1lcCflU7Rx/xSftj7F9NcOdSkX1P9uNxlt+BW8308qtq0mEqkyC8mQ5c +ee5hMS6oa3PzEnfknK2KFuAyNT1df22i4bp134omd+jb+d50z7IQicPCjWx3bImCaR8 /Ch8WKUYitjMRxwyi/6C6fkIHSADJu+jEP4UOT2wHQswucVT3tO7INxQMZm6XYAVkS+I E0BQ== X-Gm-Message-State: APjAAAU6U2w1O3qj20KsM91OHqszSK3Dzpn4Jo6NeGEprYMx7TPhL/e3 vVgSx6sClYabUFnysbaC2K08lw== X-Received: by 2002:a05:600c:2487:: with SMTP id 7mr15310383wms.141.1566120877029; Sun, 18 Aug 2019 02:34:37 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id w13sm25042828wre.44.2019.08.18.02.34.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 02:34:36 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Anson Huang , Rob Herring , Srinivas Kandagatla Subject: [PATCH 1/7] dt-bindings: imx-ocotp: Add i.MX8MN compatible Date: Sun, 18 Aug 2019 10:33:39 +0100 Message-Id: <20190818093345.29647-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> References: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang Add compatible for i.MX8MN and add i.MX8MM/i.MX8MN to the description. Signed-off-by: Anson Huang Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.21.0 diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt index 96ffd06d2ca8..904dadf3d07b 100644 --- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt @@ -2,7 +2,7 @@ Freescale i.MX6 On-Chip OTP Controller (OCOTP) device tree bindings This binding represents the on-chip eFuse OTP controller found on i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ, i.MX6SLL, -i.MX7D/S, i.MX7ULP and i.MX8MQ SoCs. +i.MX7D/S, i.MX7ULP, i.MX8MQ, i.MX8MM and i.MX8MN SoCs. Required properties: - compatible: should be one of @@ -16,6 +16,7 @@ Required properties: "fsl,imx7ulp-ocotp" (i.MX7ULP), "fsl,imx8mq-ocotp" (i.MX8MQ), "fsl,imx8mm-ocotp" (i.MX8MM), + "fsl,imx8mn-ocotp" (i.MX8MN), followed by "syscon". - #address-cells : Should be 1 - #size-cells : Should be 1 From patchwork Sun Aug 18 09:33:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 171566 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1583058ily; Sun, 18 Aug 2019 02:35:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7Vq8sv1/nl6JRuGcRrhMo3EWGRD1OSX0ZSeO1yR/A1b/HwuJuSPpF40twFKYXTQNfrdK0 X-Received: by 2002:a17:902:be01:: with SMTP id r1mr16550631pls.229.1566120907931; Sun, 18 Aug 2019 02:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566120907; cv=none; d=google.com; s=arc-20160816; b=St/mCDzix1BoMdqKkJfNgc7c3BSBp9EPTRapV8v081wvCZavWs8pAP7OHHhjW0jMFl L6mLO7MODKe3JXxqQbWlcI2gkXYdPTZNzhoLD1CJyNjm/H/hONo/XBG2DKhoTOMSla9F 1W7uE1y1vw9J1IWF9SpUECDl2f0FIvdqXIknpaQDK68S1UEL9uxYho1O2632MmMoDuMt gPrQ+IyiiDuXuTXLdtaTJ3ofbXgGYJ7NFMX7IhZLr2zSlUg2FbDapOwmpwBYmnzChBi2 is//T45Zp/qEsjk404ojh6iMwTGFkPtrkOM6T/FW31N72Os1BtQgmVRwLjwqSamLxYRw yOWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+Wzu67dw0GvRFE1y6lo2AReLFisvrnW6U7+9+4cf2Ic=; b=Y0EQTqjQFXpB6Fbo9zJ6k4171QMc5HLhuU6Sni+GaI5eHOmrkyGydjBmYom4R4Ld0b lF3R9fwZGo4ve+hYSFg4SGiTXPPlH4dsWmy1Ck50iOUS7L4BITm7x5vWNBxhM/T0qCak qdqHnOnj5TqDulwUH8U1+gntnluNcrqLyMPG921xxoDGY89Evwqlfhfv6iO1565PF+hG tBLdqKXyXetFGEVPBIgYm02ZmkX3W6Mqkznh4ItyyoLh050WBLwG9voukWCWxRpsdINA g8J7CmaF0238/VnswD47c0Gj8GxQOHfGosRhKOjeEANWjjkCDk0xh2uRbBXmrhxedt9e CkMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KBIMpCaZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 124si7390896pgb.11.2019.08.18.02.35.07; Sun, 18 Aug 2019 02:35:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KBIMpCaZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726814AbfHRJfG (ORCPT + 28 others); Sun, 18 Aug 2019 05:35:06 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43810 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725786AbfHRJej (ORCPT ); Sun, 18 Aug 2019 05:34:39 -0400 Received: by mail-wr1-f67.google.com with SMTP id y8so5620098wrn.10 for ; Sun, 18 Aug 2019 02:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+Wzu67dw0GvRFE1y6lo2AReLFisvrnW6U7+9+4cf2Ic=; b=KBIMpCaZRQdho2uz3Qe57wLY1xWbAx4/nAj3DaL4m/UCkymmrI11msMTJFn3+uDEIC 0fPE4UaRxeUgs2H47azemWMw80dBEPACxU6K4hDN/VzfBtGtGFLOonCuv8uiK0Rpm21s lnLGbGA2hwNi7IGBRlTk+5fjKxbNemPWIlFBbvNBO83d/RXyRinF6c5D+zF+hHamTUNl 8iFKXrarL3KuyfSK46qPy0zlpwG5sgnSCSp1QucNIIfn7pFcLDD5OphMUV6dyySpKyvN ERUEIXrRCdig9n3JnICgpVYntpyMTHM1NX5s1oJIw777ERRI55aYWSSMX7spcgP9bdMV T7JA== 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=+Wzu67dw0GvRFE1y6lo2AReLFisvrnW6U7+9+4cf2Ic=; b=iEx/qBZ6Tps2YMxYTtFPo+HOazXNOljk0x4n4rKIlLg11oI/NYAnQyfsaGNMAtbgqO LDg1m627FmTmC2OXJwt+xv3LcoirX5TMixYOvojEAkh6Wvp1rQfnDTgUYgjGKkP/IKkt 8AjhsrnF5ULHK6I5dEpiymnJr66YRSHWWbLDoJb6cKREX4FHTmMaiM9CctBSpTLLJ1HA 8ZxQV5RT9NTOaYhlvfpAdy4OY4unrDduQ2xrkj30FB9N2I21Pabb31WvfodeKxREHZ3C 3ihs19hwgRsXFW9yd8MQG9z1EcyPcV8+F2PvipqEflsfnz6Ro9RXIrzaYBRCuGRbuutm hdQA== X-Gm-Message-State: APjAAAWbAOJ+g/2o+IdtTC92pmu6q/JZ2UpnGdTxyml5ZjvkTUMWHsAB y9G1MNn07Ijn8Y1mS1/5gB4mvg== X-Received: by 2002:adf:d187:: with SMTP id v7mr10108722wrc.33.1566120878156; Sun, 18 Aug 2019 02:34:38 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id w13sm25042828wre.44.2019.08.18.02.34.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 02:34:37 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Anson Huang , Srinivas Kandagatla Subject: [PATCH 2/7] nvmem: imx-ocotp: Add i.MX8MN support Date: Sun, 18 Aug 2019 10:33:40 +0100 Message-Id: <20190818093345.29647-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> References: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang i.MX8MN is a new SoC of i.MX8M series, it is similar to i.MX8MM in terms of addressing and clock setup, add support for its fuse read/write. Signed-off-by: Anson Huang Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-ocotp.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.21.0 diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 42d4451e7d67..dff2f3c357f5 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -479,6 +479,12 @@ static const struct ocotp_params imx8mm_params = { .set_timing = imx_ocotp_set_imx6_timing, }; +static const struct ocotp_params imx8mn_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 }, @@ -490,6 +496,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible = "fsl,imx7ulp-ocotp", .data = &imx7ulp_params }, { .compatible = "fsl,imx8mq-ocotp", .data = &imx8mq_params }, { .compatible = "fsl,imx8mm-ocotp", .data = &imx8mm_params }, + { .compatible = "fsl,imx8mn-ocotp", .data = &imx8mn_params }, { }, }; MODULE_DEVICE_TABLE(of, imx_ocotp_dt_ids); From patchwork Sun Aug 18 09:33:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 171567 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1583094ily; Sun, 18 Aug 2019 02:35:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYMTr4+NdEQ5MTTsD0WTOLPzdcqmnQET8+C9mb+mExaESN/c0u9hEVBAgURbLTgIu3zWJp X-Received: by 2002:aa7:934f:: with SMTP id 15mr18713075pfn.22.1566120910636; Sun, 18 Aug 2019 02:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566120910; cv=none; d=google.com; s=arc-20160816; b=FEWHfmxkDM8pDC28XVt/e5ZtI2Ba+JAmViPwMivgvvvyci5dGS8xc6GizWnIHsIRhi TV7If3rtjnMiFDlRY3q5AQ+oZ1tGYCZZMrZ3QqE6K0mQiFsE0qUmce81U0lyHafLh6Jp 6yIZ2bE6xzoJuc0h5yJvznNwEnTcEZe6+gEEjw0AUTV5bp7dbsdu5N+XRGZspD61gpDN DA+EfwMrAUYVRGXZ9FzOCPLAliixGl/ZD6ipmJ7aRs//IhWbydY7Uw+3qaeM7EFDx53S zkuZfl6m28Aj1Z5K9uNjSI/6AalOYaf4JsSCLUCv6a/9IixmBXvB3QJkiAqOY7L0KmLH jHXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Tg1DLOMsJQjiTIKri8X/vwSYJc+QAfp9dprhf0452G0=; b=GkkzLvLk0n2rBSnYHXS2ztm0eh4PiK3NcjkvuiFm9kwpIUfTHqDbJ71KG++YW1ZmDK o/uxg+B+o7gIwYdpfLsfuJDOwPIDW96HO3Iy7/hen8Q+c9GwtpIa49sEuzCHvDmVdhgy Hc4GwdUsFdUeB/8IAkidmWvyjzBHAA8JMQN0H5qM09sUWzwcBZ6lgqnYWjkEEqgcSvDm R4q9Zbwnrpgv02ADQHklk/TYI8hTINhch7zAxBzb7GBGz0OyCr6gRjTsexquQ1WD+N7B fL77dz4OhdCYT/3M+fMPXOPFXqSEEnxrLLvNLG9xS97CqODcR8rwDqfXe5QAvI2q9rkW jETg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="yLBQ4i/b"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j17si7504897pgj.15.2019.08.18.02.35.10; Sun, 18 Aug 2019 02:35:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="yLBQ4i/b"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726799AbfHRJfE (ORCPT + 28 others); Sun, 18 Aug 2019 05:35:04 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:32919 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbfHRJek (ORCPT ); Sun, 18 Aug 2019 05:34:40 -0400 Received: by mail-wm1-f66.google.com with SMTP id p77so559463wme.0 for ; Sun, 18 Aug 2019 02:34:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Tg1DLOMsJQjiTIKri8X/vwSYJc+QAfp9dprhf0452G0=; b=yLBQ4i/biurw25qA7X6sHOSPqNtYLI43MAHC8JZkBazu8MLujF0P3WT9P6RlqJYbC7 ywsGzZpa8QJS6MKn3DThuYJN65fzYU0eAHntHj3NPx2R7uzIo5SIDc2tYkdE9M50cZ2n GmW+Z3MH5bY70uZE3nbaebaDbTsRXz+u+xDtbYodSDBLaStU2MFafFpGcVpHqRy+v7+5 YtvPHXlgdIzR8FZobqRO+m1ADjVGN0G9uFXhV53JuFEDfLtSvo/JKoTvjVvnBzfhhmgp JCo9NW80Fa7n6AzGPv54xrgxSwuy5Jsb14Sh51/drB8DLfm3JJYfWmVLEF3jkpl53yJA F6IQ== 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=Tg1DLOMsJQjiTIKri8X/vwSYJc+QAfp9dprhf0452G0=; b=OFJN7ex0gT3hVBYwUPwfbix7VpBFhuSkiXJTfqSSqtiqoxGFt3kHDWT8GKMejeCzjc wb4NfBr/r2fVj05Vevcz8e5+Cc+k3mMQETCcl32l579CKTklm8u8OAR1DQIhNNJRc/AI hG11eRrUA916IFESkoyvgT5wf2cRNEoZJ6nPECl+W7RkOy22h1EBBQgvFGqLUauVXcee z0Dof5WX4JbxiojgqvRjOBEexNAtCY6XU4K+yLOwEgZ/EdSg6VPzuWiimo1seeEQLj1u RN5NRwN/akL9SlBC1h1pX/YZa+SBBxnq609o0KHYgafhiHdMkDl0Cak6yJIRv1LqzjKL rT4w== X-Gm-Message-State: APjAAAWIGIpjmHrltK9vkjgfwyTwtSMSIhZBGSsEeyZAVdfwAfphvVn6 C9QsrunfTm6Qopm01cRXsISiKzmt+I4= X-Received: by 2002:a7b:c775:: with SMTP id x21mr15532747wmk.90.1566120879060; Sun, 18 Aug 2019 02:34:39 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id w13sm25042828wre.44.2019.08.18.02.34.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 02:34:38 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Stefan Mavrodiev , Chen-Yu Tsai , Vasily Khoruzhick , Srinivas Kandagatla Subject: [PATCH 3/7] nvmem: sunxi_sid: fix A64 SID controller support Date: Sun, 18 Aug 2019 10:33:41 +0100 Message-Id: <20190818093345.29647-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> References: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Mavrodiev Like in H3, A64 SID controller doesn't return correct data when using direct access. It appears that on A64, SID needs 8 bytes of word_size. Workaround is to enable read by registers. Signed-off-by: Stefan Mavrodiev Acked-by: Chen-Yu Tsai Tested-by: Vasily Khoruzhick Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/sunxi_sid.c | 1 + 1 file changed, 1 insertion(+) -- 2.21.0 diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index a079a80ddf2c..e26ef1bbf198 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -186,6 +186,7 @@ static const struct sunxi_sid_cfg sun8i_h3_cfg = { static const struct sunxi_sid_cfg sun50i_a64_cfg = { .value_offset = 0x200, .size = 0x100, + .need_register_readout = true, }; static const struct sunxi_sid_cfg sun50i_h6_cfg = { From patchwork Sun Aug 18 09:33:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 171562 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1582792ily; Sun, 18 Aug 2019 02:34:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyg4wkgDMoZWrcDmdVRX26dINO9XMuJ5TT2tnaPsmxr/03Qi8ukP06KYODV4tzPApzWze3e X-Received: by 2002:a62:cec4:: with SMTP id y187mr18806926pfg.84.1566120887455; Sun, 18 Aug 2019 02:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566120887; cv=none; d=google.com; s=arc-20160816; b=fPjBVKPYMEDgJlR8QiJxnoWpsvjE8C6S7AjqoJxwe7s/CH8s/OZOQspk4VOn3EcYbE +d5Eq1jG2NdITML83mCtQE2HRpy8F4DzLaEnVl1aF0dvhh7Tr7p/hGP3Fc2dog/xNfN8 I55mGAkbvhyjMZjXQrTBA6w98+N60PHtH9v11zeU1XrcgaSm6c3QIErwxZE86QwWFUW6 WSa3NOvaZriGJAcUVDmZnFOTjt6lsUuGIE5FfJXSnhUpryG+fN8FVYGSW+u82m/18yKW UQICTXeqSWZCB8a0P+hDvGtPqOfEtIl2ZDbXeDvLVB2/Ch8I0TRaTqHISo4B56HZBUak FQqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JciP+sgA6x3vXVEb6ByrkWLVlRaOQlC3JG7PQh8jt2A=; b=XRyJ26kdMhlYmN3ZKMmyDcH452HpkVkh2gEVgcIE1ZBPmk3OBfa5zX/tREYIE+hSyu 7ykA7KuzTUKZwpIkxC2fVVUC7PvkaX2JUwUE3Lw0ex7Nb1PvZ840z8i4Gs2GtGIQluGB qfMKXxpQQ0a0D9cxrXbDqSLtXgzbZTek33t8s3q+Qgj8Q8R2KxsUjY6SNYzAcuYqY1cU mIRHAQdktfiOEYWFE+e3JhIHDc4ziCbjo8DJLAXgGy7c0jQJ/NiGbUmJkds8gVIzm9TZ JMsFtq5RHD5ayf/UgjPzIJmsAGnAbsWtKFgtPeDMiOwk2HDtb8zgeJSzjZOQEba49DAL SEsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=unozXp07; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si8063356pfb.60.2019.08.18.02.34.47; Sun, 18 Aug 2019 02:34:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=unozXp07; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726696AbfHRJeo (ORCPT + 28 others); Sun, 18 Aug 2019 05:34:44 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:50618 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726627AbfHRJel (ORCPT ); Sun, 18 Aug 2019 05:34:41 -0400 Received: by mail-wm1-f67.google.com with SMTP id v15so517231wml.0 for ; Sun, 18 Aug 2019 02:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JciP+sgA6x3vXVEb6ByrkWLVlRaOQlC3JG7PQh8jt2A=; b=unozXp074XF5Jan16QB+lXoMD/yvOtXVxk/mDNPMre44U1G03QnVVIbI0oKCbGfrF5 FZxLMRAnfpuUSU/SGDuRA+0NnwqFDx+GtiBkUNlTcF5JHyY46Pk/gUnS0mr8NJmATAcZ AkeHnBRIyR28LqPYnbUs/b8UPczClNuBj9b+QWd+3w6qTLFR6H4gXK34PobgkmZQWc7p XFB7u9VhSpMg+vVSx3VGFG1pEYs/O8+mel6fQD1/9xWmuzjKswPL/ahQmqXDxmD83Txb 3vgXruYYnHJQ644+K16obaYPhg5je3nSo5daAOxtT8Au8RABWGYirfMqRyV/XQE9W3bt Ibaw== 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=JciP+sgA6x3vXVEb6ByrkWLVlRaOQlC3JG7PQh8jt2A=; b=KKcBfLjoWSbm6KSe1+cN5kTyrPE2Bs6P50AfhPFqD7QYF1/ynyw6w7YHoIY8GvzLsi E5n+xnj0ExXBtZI4ioBbvmDgXq3NSHRJ+iGPHBV1O7B9ZqA0jrD1Uxg5c/XyDwWeuvEa GBnsl7lWtYz8F90bLl0WZTADxZO0phynn33dOJ/CRwfejuVmE1FpFANQHRJZ3BzNDFKG aLbnvTOpk0q3smn1lIrZHr5JzpwzDElswdeV0bfyerSQPAFTydiLu1cjSnnr+3XK894I F/VbgwST+42VpCKei1oOMr1uvkpBJGAEuTf60HNoGvdK2giFXIy86gFzgZvErw7RDEzp 1jrA== X-Gm-Message-State: APjAAAVSgqAQ6yfA0Fusir9DDuvav2XH2fYC647KqtEXwXAaih1ppeBb SrYlhSDDVjeGW7JdsMi9RI8zt/cpfdg= X-Received: by 2002:a7b:c246:: with SMTP id b6mr15478693wmj.13.1566120879954; Sun, 18 Aug 2019 02:34:39 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id w13sm25042828wre.44.2019.08.18.02.34.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 02:34:39 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Martin Blumenstingl , Neil Armstrong , Srinivas Kandagatla Subject: [PATCH 4/7] nvmem: meson-mx-efuse: allow reading data smaller than word_size Date: Sun, 18 Aug 2019 10:33:42 +0100 Message-Id: <20190818093345.29647-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> References: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Blumenstingl Some Amlogic boards store the Ethernet MAC address inside the eFuse. The Ethernet MAC address uses 6 bytes. The existing logic in meson_mx_efuse_read() would write beyond the end of the data buffer when trying to read data with a size that is not aligned to word_size (4 bytes on Meson8, Meson8b and Meson8m2). Calculate the remaining data to copy inside meson_mx_efuse_read() so reading 6 bytes doesn't write beyond the end of the data buffer. Signed-off-by: Martin Blumenstingl Reviewed-by: Neil Armstrong Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/meson-mx-efuse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.21.0 diff --git a/drivers/nvmem/meson-mx-efuse.c b/drivers/nvmem/meson-mx-efuse.c index b9f9ce089de9..07c9f38c1c60 100644 --- a/drivers/nvmem/meson-mx-efuse.c +++ b/drivers/nvmem/meson-mx-efuse.c @@ -155,7 +155,8 @@ static int meson_mx_efuse_read(void *context, unsigned int offset, if (err) break; - memcpy(buf + i, &tmp, efuse->config.word_size); + memcpy(buf + i, &tmp, + min_t(size_t, bytes - i, efuse->config.word_size)); } meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, From patchwork Sun Aug 18 09:33:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 171565 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1582999ily; Sun, 18 Aug 2019 02:35:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxO3fhaJJr2eKeTIhhdZdnjoD912Th32Rs7znVGXUYex7cXR2fx2BvYAD8SzfcN9s5cdRYz X-Received: by 2002:a17:902:2bc7:: with SMTP id l65mr5479359plb.119.1566120901812; Sun, 18 Aug 2019 02:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566120901; cv=none; d=google.com; s=arc-20160816; b=c8BBkAL+D0aRC1+P8jtFfvjzEERIl1cPyLGbw2hFo1ofd+2RkcPDDXF5+b6+4GPwaA +ujHCfaFQzp0U4ez7DIE+OyvWY5NMbn/FywWXy/EgTshctPC+vX6w5owVcR24ggPlBs4 eaWXPdQdlxhyBtka8nA6C17ZQix4N428RnzGKEANuLQgajUDHViQGIFBA9VU2ZRpBrRC 5IERc6wv3zpkFTnmGEqUaJR65+6AdVOKxSO7FJvCEHseVOXLAe72lmoufWNEMqPfVhTl rx4AoLCA/tBvoRDMuS5b/Pbs8VgApS2T+DY256jiO+htH/SxMSgVJu+6JEcIxWQzvLQT UaCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WdcGXM6KsgrMmjpgvIUKi7bYgw0CC+Ry6Ot0JXzioGU=; b=GchP8LTgjVqtAcB3nmEQIc1M+NP/7giub2FAvaRtVYJd5x4RP2MohlhAqHRnV8xWVe wfHnsWluLW/yS2SA70RtF4Ajr4FEJMS6yiTXIoA4fnBVLjwEpvsqYxRy2dF+Gm1Dl2ze ErpeJ7GIJwzUiaaug0vRFktLJDamOnvgqpkOwzOxnSjN6SWHAmfnTyavrdJCro6HhBEO 5NHq1yI0vaWpefjYd9CVpYX7W6sHFF6ww+V3U1rBd5m1m7kRWL9kNoolJsdqeE0MoY/B o/ilv89FI1Gj1rep0AGEzg2OyWGhQFPhmQQqFBXOBeBU60LVLT9D/cZrK/ffIDPYxDKb jQ/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4zqhVk2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 124si7390896pgb.11.2019.08.18.02.35.01; Sun, 18 Aug 2019 02:35:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4zqhVk2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726784AbfHRJfA (ORCPT + 28 others); Sun, 18 Aug 2019 05:35:00 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40949 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726649AbfHRJem (ORCPT ); Sun, 18 Aug 2019 05:34:42 -0400 Received: by mail-wm1-f65.google.com with SMTP id v19so507141wmj.5 for ; Sun, 18 Aug 2019 02:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WdcGXM6KsgrMmjpgvIUKi7bYgw0CC+Ry6Ot0JXzioGU=; b=U4zqhVk21/xwg51bUrRzjzkXoTugoOuVafHhqscFPKECyBWEMTJ2ujMikhpDcRBkbM AZdZ29GClmmu4XxAiQmULe6WUwl55YsBB7Z/ONS1JDCpKhVHup4BXRH0ox7zzko4IeSY xbYclxOGcUmXhEzB7rk4ZObkvm8eKperzVX+bW2NtWM5xFOxWcmTpoDE8fHDn1KULUPj chbgZj6jlv8HLDs7Q9fckoRz3cEVfAESDH0k6YvLlB4b9CLL5ewFLVrZ48M9xNdhhw0j wow70ZVgBixM8/200mc+1kT3crcf0afGBCQ+oY0zVi6j4JRgQb47/bRWFWmuNEV7/B0v GJEQ== 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=WdcGXM6KsgrMmjpgvIUKi7bYgw0CC+Ry6Ot0JXzioGU=; b=AHhEAIKa1UW8T5vBTLrJQtaQOw3ek67LdNzyiOl33W7SV0ZAH25ObN3b2QPZHvBnat M7lGCVtA1wPNxVrsidDQ8gihoh5egrayin/D6fkG4foz2fNrxbcK2j5eL3JNcU6LulZ1 uo71jzSH1a7wzZ1ACWei0rlfJpzSrhGKFpIftoeXMfwv9v00icjoF7v0Hsk6EjT499aU IY8GIgBFBi9DOK38/4GdCiFsx8LCBXpSAOZPdzN1ab3cm5kfe2UFbxYmoHxQufJZlznA X8F6v2gfcuSXbb/J1k0ffMpqP5F1D+OGzmtZTVWgvG/zFN3EZIT7nbXHygzVNQ7gUFEj YW+A== X-Gm-Message-State: APjAAAWJGOWr4EwPJ1GjTBxp5hiD1KmWd9tehKGAS2mLe3ulK314iQkY GyYG5KbPQUjPj8Sw6aMh+Al0Lw== X-Received: by 2002:a1c:c542:: with SMTP id v63mr14628868wmf.97.1566120880901; Sun, 18 Aug 2019 02:34:40 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id w13sm25042828wre.44.2019.08.18.02.34.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 02:34:40 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Stefan Wahren , Srinivas Kandagatla Subject: [PATCH 5/7] nvmem: mxs-ocotp: update MODULE_AUTHOR() email address Date: Sun, 18 Aug 2019 10:33:43 +0100 Message-Id: <20190818093345.29647-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> References: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Wahren The email address listed in MODULE_AUTHOR() will be disabled in the near future. Replace it with my private one. Signed-off-by: Stefan Wahren Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/mxs-ocotp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0 diff --git a/drivers/nvmem/mxs-ocotp.c b/drivers/nvmem/mxs-ocotp.c index c34d9fecfb10..8e4898dec002 100644 --- a/drivers/nvmem/mxs-ocotp.c +++ b/drivers/nvmem/mxs-ocotp.c @@ -200,6 +200,6 @@ static struct platform_driver mxs_ocotp_driver = { }; module_platform_driver(mxs_ocotp_driver); -MODULE_AUTHOR("Stefan Wahren "); +MODULE_AUTHOR("Stefan Wahren X-Patchwork-Id: 171563 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1582802ily; Sun, 18 Aug 2019 02:34:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMj3PHJNxbmto877QL3TlNriOzgmaLOyIDB7pmim3lYeh+JuxGH9RytNxXU1RNOU4gE16B X-Received: by 2002:a63:5945:: with SMTP id j5mr14972277pgm.452.1566120888205; Sun, 18 Aug 2019 02:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566120888; cv=none; d=google.com; s=arc-20160816; b=Jpd8bko8jLlkru+4w/I0wi++nAjUUr6/Vpsu3abz/LgDi1VgEnFbpvJ5Aa6/ErqZYm rP+a1PaiLMzKeNbjvM5kJn/B/aDcQsvTo5Tv96EetX2aMEqctt+/NNh1SaO7ztJUFRzU SukoSfDnhEQ89P0dHy/iwF9xQ+m2WH3VTXHe609Lvs9uZLJqA6D7A8JAAPwBpwVhQFsm RF19tH1Qu7oPoK1SG0OzlpZ+/Nd3YToHIcuo7rXhYb5yyElpGq8329t6B53IuZlnUvR5 slGwLsMhXGKzbTkr1Slyyi8eLaWjhzRsOWKE0IzwxgP2XIrB2xemCdVarHDwGUmdi2AH R26g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3B6AxKAVmhTH5yjifOlS2cxjq6vLW/Jkk4lzyfrHej0=; b=iGnXl9UePSTNgZqj1lhgn34Lc0ocKjPXpv/cjMGCTi/KOxJjyVZjIEfdjAq86gpoNq vavVEt3qVboNOjLXybu8xPUtI3cG0IxASr12LDi+JGVeNoMXo3nDiiPV2s/JEFkCaJv/ ybPl4VjQsitcPq70v1+ctYuiSRu5e4ESwODnysmtn+WGJLVSje4zWnq9PsT0ituh6Pxv hbvhrPO8BtBwOw3SCVxAj9BeaozIBKQyl+dbxaKKCPA+mHhtAc1Gqn5hBt+aMBs4TlD/ 7UMDeU5dYUYiU9ElcWE7FfZUIJaDCcFFu3gMsyUpmPVq0WPScK6lmm21b/lj/es9NCgn xHfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PfiRWyhj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si8063356pfb.60.2019.08.18.02.34.47; Sun, 18 Aug 2019 02:34:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PfiRWyhj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726735AbfHRJeq (ORCPT + 28 others); Sun, 18 Aug 2019 05:34:46 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50621 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbfHRJen (ORCPT ); Sun, 18 Aug 2019 05:34:43 -0400 Received: by mail-wm1-f68.google.com with SMTP id v15so517263wml.0 for ; Sun, 18 Aug 2019 02:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3B6AxKAVmhTH5yjifOlS2cxjq6vLW/Jkk4lzyfrHej0=; b=PfiRWyhj3EoaKk4s24rEBm7ogBIuGodXl7gBoK84Adcotull3MSruCNobdbhPjSDmZ GD1ELNu2P9eLsrfZTPMkyIdVhQeMAH76qaNO+JZV00+VuS2H/9sdYrwWEjzRGc0Z1tdP 8gsN2kOp3ufy0SuN6yUuF9ur6FC7zevwWPQklPmB/Ir0hn6lXkRymXQovCSAqKx09ztx k+jC66LKglw185k9lJk8BgizZi5oTvWzkmQETG0tmkohdG8wi8EAxd4a4o1QAn9lnWHC 9knAnTHHfgty6ThUhkrttHmhlesrHKbb02WMr+mT/wehL2+aLbX3ZlAmzItymUFaYMXV nt8Q== 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=3B6AxKAVmhTH5yjifOlS2cxjq6vLW/Jkk4lzyfrHej0=; b=oyygkwFU91zcC8DkSKg26LUjmbZj/zJlScCnIXb26vn8Y41+sFrWHfHkrgldLtaAS8 WPTzsV9oISBJKnTziO2VdiA+FLjeKyUHyqtIuBWozeLtjmIIv33o8T4u1gWM2muMbj7n CedXrFX927O5z68t93vt8m8tj7IqITPBDPlVb7yUX7yqH1SPmVY9ZAkV72zJD8e3EPCU DMVQhO4H99sa+Y023u/wdt/XgWqaQT5zksr3BJkMjdJxzMvZ+vKLkVRS7RHiAxrxIbHg 4ahCfFc42URnVPmhMtGUpXezQHUKY/wUVybuwakNmgmrqyX2k3nsNeSFEe+jDYTAoeFl Dr6w== X-Gm-Message-State: APjAAAWPHlvuoedS7WrF0v28Ni2HkVVyRpSK/vSl80yJjWMKI33gH65Q c4r7/RwUoEhoj4tZ8OTL2d89NQ== X-Received: by 2002:a1c:c5c2:: with SMTP id v185mr15935750wmf.161.1566120881919; Sun, 18 Aug 2019 02:34:41 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id w13sm25042828wre.44.2019.08.18.02.34.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 02:34:41 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Fugang Duan , Srinivas Kandagatla Subject: [PATCH 6/7] dt-bindings: fsl: scu: add new compatible string for ocotp Date: Sun, 18 Aug 2019 10:33:44 +0100 Message-Id: <20190818093345.29647-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> References: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fugang Duan Add new compatible string "fsl,imx8qm-scu-ocotp" into binding doc for i.MX8 SCU OCOTP driver. Signed-off-by: Fugang Duan Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.21.0 diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index a575e42f7fec..c149fadc6f47 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -136,7 +136,9 @@ Required properties: OCOTP bindings based on SCU Message Protocol ------------------------------------------------------------ Required properties: -- compatible: Should be "fsl,imx8qxp-scu-ocotp" +- compatible: Should be one of: + "fsl,imx8qm-scu-ocotp", + "fsl,imx8qxp-scu-ocotp". - #address-cells: Must be 1. Contains byte index - #size-cells: Must be 1. Contains byte length From patchwork Sun Aug 18 09:33:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 171564 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1582844ily; Sun, 18 Aug 2019 02:34:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxENvAwggWpNaO3SIUVtQ7zNXHxHP7HKQkRE8YQZ1GdYLTV76eUyBZdm70b0bGjVPTRcdHk X-Received: by 2002:a62:24a:: with SMTP id 71mr133735pfc.148.1566120890846; Sun, 18 Aug 2019 02:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566120890; cv=none; d=google.com; s=arc-20160816; b=p/3yr2AoD8Zp8HSelsVcQPLx2z4DnTsNVa1XgJTwXJY34oGUQOJLkQHRWw7tFSASz7 IuGdV8VEJsXXmnFVZv9O7j8B4iOmiHbFj9yPn/ahlgGyqK8/IUKZRogHkerelt5C8FNZ sftjuiIjkvDlAP2Qg8vWS5CHcyIMro5hj5ZyX26KKHOXK0Okc0fZf5s31jViEPOObduV XjEoEAKH3v2cFoQxsTmULEmHAVD/9iUZWb0ggL1CbZBbbHd5GHigA5wroQp4RmXMWGnM TVWagLfZptt9SRdESEjelprWUZvS2S8a621MjUn+1eQ8GtcTvl9drgCDquw1zHEmEUQJ 45KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nWXubkdQ7PXTVA4rbdbQWeUwRLODNAVnbs8nKr10Ngk=; b=etQQTZ2PIHgiJsTyywMfjX8IUsgBTecu10iEe77aDJQgR6nxcPqXs9ezrLBNyROOJ1 OyynSmL0b0amJn1G1or4hJTm5H6LNa2Wxkeax58pJCaySUkDqAXYZhcyf22QfNb+ZKvN lioA1IgqD3yqxtmMGCqqoumnvqjSk5MwjIyz0dAHPtRYKFg05N47Lj3LajTuW4Ry3ViS 7oJdhVw24GddHErUhuLPWskkIME/dNMkVhUCqIIICCiV920fNn/8PxxPxsNaxSWKUFRS vu4NHxgenVSB0MVXzKmyGeQm1tSCFcuTl6/MnIxAidMm+lVeU1JFvV4WnUxoVwv6cSwE reLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uyHCBtJP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t189si7567122pgt.428.2019.08.18.02.34.50; Sun, 18 Aug 2019 02:34:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uyHCBtJP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726752AbfHRJet (ORCPT + 28 others); Sun, 18 Aug 2019 05:34:49 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50620 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbfHRJeo (ORCPT ); Sun, 18 Aug 2019 05:34:44 -0400 Received: by mail-wm1-f65.google.com with SMTP id v15so517282wml.0 for ; Sun, 18 Aug 2019 02:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nWXubkdQ7PXTVA4rbdbQWeUwRLODNAVnbs8nKr10Ngk=; b=uyHCBtJPhL2t4HoFPsFqz7jdzBHiKXfNwqItD4QKr43QD8qrjY+Qrrc5UoqruaC5EI /8gfBxgFrTwdT7XyNxcMkI+Z839MJspBP2/mlj+fX7eNQpt7VaicafitA9LBNWLfSevL dBfLBEKlxmuOqsxcd0Cb0nEk+g1eC/yfT3EEu4FnFcWjXRRTLHk1kUqJ/E1qCxkFRalr JdDMb4bGgjChdDt1FAXYZCPOHTjLrVb4mh14Opq9JpSBMr5sY9RcRl3ql3TCgSHkuhZE e8rjxPdpQW6w53adpFZ7I+nAmW/lepchXEELn1pWkQyjczgVf91fiVSytMwfe6VL/1zp jJww== 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=nWXubkdQ7PXTVA4rbdbQWeUwRLODNAVnbs8nKr10Ngk=; b=jzLTMDUVqrjgjrmqRGdbg5jUoQTzn76xEuhSVR6ulAN5z0m9un9SxOPm4KNMZi68dJ IrgibqsE4kozO4GnlV/4X5D0MHiq36XoBcOI95/bQvzm2EGvVcNo6wtvI4hHRtm4/TFf WXKxCMANeQkU+EfakpVDodAzB4ai0qpIVaP6MRaVXfqHQR3ESpEbXf1TKY+NqnA5X9va sAT1DMhEesvJoTbmPGlzFM8k5qj6eSfWrz/0G0YGOZaZJE4ZqF6fVYweXQv+Xz092T7T P8QTZIdOabgqtlvpYJiaLCTQvxG2ek+/XmNVUY0h0ZlMrAU1lEM8qRqzUAY/yruHbCBV WCLg== X-Gm-Message-State: APjAAAV3aFyfxX44VodwyTGHu2zefsmWzT+6w+dYBb0J8i23GkdmQjZr 4aAYkdyVK46ouUsUXisgXa1O0PwCvrA= X-Received: by 2002:a05:600c:2487:: with SMTP id 7mr15310917wms.141.1566120882869; Sun, 18 Aug 2019 02:34:42 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id w13sm25042828wre.44.2019.08.18.02.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 02:34:42 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Fugang Duan , Srinivas Kandagatla Subject: [PATCH 7/7] nvmem: imx: add i.MX8QM platform support Date: Sun, 18 Aug 2019 10:33:45 +0100 Message-Id: <20190818093345.29647-8-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> References: <20190818093345.29647-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fugang Duan i.MX8QM efuse table has some difference with i.MX8QXP platform, so add i.MX8QM platform support. Signed-off-by: Fugang Duan Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-ocotp-scu.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.21.0 diff --git a/drivers/nvmem/imx-ocotp-scu.c b/drivers/nvmem/imx-ocotp-scu.c index d9dc482ecb2f..61a17f943f47 100644 --- a/drivers/nvmem/imx-ocotp-scu.c +++ b/drivers/nvmem/imx-ocotp-scu.c @@ -16,6 +16,7 @@ enum ocotp_devtype { IMX8QXP, + IMX8QM, }; struct ocotp_devtype_data { @@ -39,6 +40,11 @@ static struct ocotp_devtype_data imx8qxp_data = { .nregs = 800, }; +static struct ocotp_devtype_data imx8qm_data = { + .devtype = IMX8QM, + .nregs = 800, +}; + static int imx_sc_misc_otp_fuse_read(struct imx_sc_ipc *ipc, u32 word, u32 *val) { @@ -118,6 +124,7 @@ static struct nvmem_config imx_scu_ocotp_nvmem_config = { static const struct of_device_id imx_scu_ocotp_dt_ids[] = { { .compatible = "fsl,imx8qxp-scu-ocotp", (void *)&imx8qxp_data }, + { .compatible = "fsl,imx8qm-scu-ocotp", (void *)&imx8qm_data }, { }, }; MODULE_DEVICE_TABLE(of, imx_scu_ocotp_dt_ids);