Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp955158ybk; Wed, 13 May 2020 18:20:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEHWKXf/YuvDbjeR9bQjs45/wT71xdigEZblxX18iQnR0wI8wy3KnjoZaBiYASt1IBge4D X-Received: by 2002:a17:906:f0d2:: with SMTP id dk18mr1714311ejb.163.1589419218929; Wed, 13 May 2020 18:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589419218; cv=none; d=google.com; s=arc-20160816; b=fY/lA74cHDZ8Bm/t+xqv87D0UXWcF7mXOM/xXDqBzccgt+ULLg2AcRgUYX/i9Qgdpg jPzutH4k5mNL7rozMBzNLQHvnMchQkStMLgAzOYFC8M22G8AtngwKqD5hVE7ucCM4XhH lKN/YGBTaWEk2YDZRgDr1NTXD6NawqApzu8whunj25ylXDYNlRkjtfxMRXFhsDVLtyWY p+DaH401rdTb3ciz5BMLfG0sRVvH/+cinC+iues3/6h5A16brS9WvvQxHBZXrVRUyiad 1uHdwHbJc4i50Lk7gwbUSmfUD2mgpe6bbuI8X9sbgzTXEdPzdDAQ53Et/IKuMf6a+IL2 PLow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=z9YyRzsb9yU7eENDA2LJ9CBposVQn0qPJHniIBPz2Cw=; b=T2qcA0dxo7L2iOEtw1bsdPBfRAp2yX733GV+NSpptvZLzgBCMq9MNbUSi8XByqM10G hmXPml9CLKAu5ysfpFuQnsuf680g+8WToKIggoB8xAXw9re1cBdKINopZI5pZX1rq/pE QFbAYn34BSSrU6ADmaDX/LWe0YvzSNHLS6YMsPrj8G65Odz2EbFUkisssPufF9JCRrLW W5va4bGTvXVb7e+RFijWVcbYlKaaOdJWO6R8RNggQgnGEwJJgj3UL4/bPD2iYUVW9TZA DVI+dqZA/cI8zN0Q7MexHVt23Yn0xS14xltqw2fOXSiSJ4axhhZMgPEU34EhZqApFBuE AMEg== 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 rs15si429476ejb.244.2020.05.13.18.19.56; Wed, 13 May 2020 18:20:18 -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 S1727033AbgENBSV (ORCPT + 99 others); Wed, 13 May 2020 21:18:21 -0400 Received: from inva020.nxp.com ([92.121.34.13]:39022 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbgENBSU (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 5E9931A15F1; Thu, 14 May 2020 03:18:18 +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 81F5F1A012E; Thu, 14 May 2020 03:18:14 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 70523402B4; Thu, 14 May 2020 09:18:09 +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 1/2] ARM: dts: imx6qdl: Use nvmem interface to get fuse data Date: Thu, 14 May 2020 09:08:47 +0800 Message-Id: <1589418528-26410-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 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.MX6QDL, OCOTP can be accessed directly, but since i.MX6QDL 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/imx6qdl.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index 98da446..1763c2b 100644 --- a/arch/arm/boot/dts/imx6qdl.dtsi +++ b/arch/arm/boot/dts/imx6qdl.dtsi @@ -74,7 +74,8 @@ interrupt-parent = <&gpc>; interrupts = <0 49 IRQ_TYPE_LEVEL_HIGH>; fsl,tempmon = <&anatop>; - fsl,tempmon-data = <&ocotp>; + nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; + nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6QDL_CLK_PLL3_USB_OTG>; #thermal-sensor-cells = <0>; }; @@ -1171,6 +1172,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>; + }; }; tzasc@21d0000 { /* TZASC1 */ -- 2.7.4