Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp955044ybk; Wed, 13 May 2020 18:20:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBNPQKW5Qx6wMo66iqeFWtp46mps+EJDfJBLzsZ25Ok0EzGSe3Nq4LuNpU6KjQ25fcmAQf X-Received: by 2002:a17:906:404a:: with SMTP id y10mr1672255ejj.130.1589419203207; Wed, 13 May 2020 18:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589419203; cv=none; d=google.com; s=arc-20160816; b=F1WewLbk2qpAeguYd63iPpJvG+Mo3+QEKIJTtufV3PoMBB89XDYqZ6WBPQaBQuBM/H brcW7w0Fsc5UPKPFhbMfuUIUPKEDuUI+cRAO2nF9ECIMcN91jgv9Om9DEl6ZECvnvugY GtVlRI1190dJz6BjOKahCH4KdFMHlYS1VcJqZfF0M7cGmr1Xb2EV19QErJacmiJgyzyg f3dkaQEPw2DElL2mkthdPy6UIuZWAyfL9Rtt2aljbfJGgcuRj8Vc3o3Lkr8Ka1IK4pBa H/vWS1ZKCkn6H2Bb/X2QJQUwOZBk0etOyyA+jyEpp1Kpz1a8LBFMeOtjQzEtvhSZ/XE0 XZJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=YeFnVnCI+uxw2I/ett+go/W3ef1WlyzVV3y9Qhj5eJM=; b=rRwk0ajq3D5XTKpu1RXBFZtydfTMUtOeaFM1Qas4njosEDZzK455Dh+B8xFiCW7jcX SCHTQCVA9jfFtN1P4c+C5MFlo8t9ZYdmu6ZBIMbjeJvuDjhS76k1ptbSLWGzlwuXsrUQ Q9g688K39R4CrbRyesBIPz0I8h8BKumkoG+OeXCKWpORE+07Q3MsZ4ICDclB5S+VyfTE ZMK3Oz0oftAQQR34reg19FN69zUYUE3OLWE68x5LHXhEvBbj9TbmzRY1OWYLWa7pYyk+ RXp1BAAnbJJp7GgeTs1IWjg41sRRGWWhSH4eFXJxAbMUHVAQFpAqIn5TsMBO6y8/f6gj KTNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si856233ejq.534.2020.05.13.18.19.40; Wed, 13 May 2020 18:20:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728053AbgENBSW (ORCPT + 99 others); Wed, 13 May 2020 21:18:22 -0400 Received: from inva020.nxp.com ([92.121.34.13]:39050 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725952AbgENBSU (ORCPT ); Wed, 13 May 2020 21:18:20 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 4E25B1A0194; Thu, 14 May 2020 03:18:19 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7CCCD1A0167; Thu, 14 May 2020 03:18:15 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 6F753402BB; Thu, 14 May 2020 09:18:10 +0800 (SGT) From: Anson Huang To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/2] ARM: dts: imx6sl: Use nvmem interface to get fuse data Date: Thu, 14 May 2020 09:08:48 +0800 Message-Id: <1589418528-26410-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589418528-26410-1-git-send-email-Anson.Huang@nxp.com> References: <1589418528-26410-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Although ocotp clock is always ON for i.MX6SL, OCOTP can be accessed directly, but since i.MX6SL nvmem interface is supported, and fsl,tempmon-data is deprecated, use it instead of getting fuse data by reading ocotp directly, this makes all i.MX6 SoCs aligned. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sl.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi index 8230b45..fcb84fe 100644 --- a/arch/arm/boot/dts/imx6sl.dtsi +++ b/arch/arm/boot/dts/imx6sl.dtsi @@ -98,7 +98,8 @@ interrupts = <0 49 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gpc>; fsl,tempmon = <&anatop>; - fsl,tempmon-data = <&ocotp>; + nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; + nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SL_CLK_PLL3_USB_OTG>; }; @@ -961,6 +962,14 @@ cpu_speed_grade: speed-grade@10 { reg = <0x10 4>; }; + + tempmon_calib: calib@38 { + reg = <0x38 4>; + }; + + tempmon_temp_grade: temp-grade@20 { + reg = <0x20 4>; + }; }; audmux: audmux@21d8000 { -- 2.7.4