From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B1CEC433FE for ; Wed, 26 Oct 2022 12:39:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233760AbiJZMjs (ORCPT ); Wed, 26 Oct 2022 08:39:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233758AbiJZMj2 (ORCPT ); Wed, 26 Oct 2022 08:39:28 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38C05EB768; Wed, 26 Oct 2022 05:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1666787961; x=1698323961; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=frQgPdhR6+K9jjNm5bd+NjScO8XoXbn1bdTrKlRyHtk=; b=Mt9UR7W6cEJVORCZSYHr6rsOLz10FjOvLln6qnZ5JNnjyKmgKonRGokS CSP6NjTa21sP5mrtj4NDmtdR0g8XhHAuQu6XUj4IeHmFCRcjlW24zowA9 w9rhiDdIDQSfkmG2ZyNuQVjzUYK3sN1z93++NqDIVHAtctyaZZvky5w+P Tz8VbVN2/Sml4IibkaTJOGnvaLOdOgNqOsDlQnS/oo39aDkCwrDfhaFrp GCKdwAlJPBWcbY73N30VZ6WquF22OlDnFDKL91lMQmqmA8kC/OaaVUxAE 6nkopT1rww8TVpWc9AEFrNlhUsh8T74g1WDCf0/rHfEC6XGDnQACr7bAY A==; X-IronPort-AV: E=Sophos;i="5.95,214,1661842800"; d="scan'208";a="183984528" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 26 Oct 2022 05:39:20 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Wed, 26 Oct 2022 05:39:15 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Wed, 26 Oct 2022 05:39:13 -0700 From: Claudiu Beznea To: , , , , , CC: , , , Claudiu Beznea Subject: [PATCH 05/11] ARM: dts: at91: sama7g5: add temperature sensor Date: Wed, 26 Oct 2022 15:41:08 +0300 Message-ID: <20221026124114.985876-6-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20221026124114.985876-1-claudiu.beznea@microchip.com> References: <20221026124114.985876-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add temperature sensor node. Signed-off-by: Claudiu Beznea --- arch/arm/boot/dts/sama7g5.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi index 1094c0afc0c5..52829be04427 100644 --- a/arch/arm/boot/dts/sama7g5.dtsi +++ b/arch/arm/boot/dts/sama7g5.dtsi @@ -9,6 +9,7 @@ * */ +#include #include #include #include @@ -109,6 +110,13 @@ ns_sram: sram@100000 { ranges; }; + thermal_sensor: thermal-sensor { + compatible = "generic-adc-thermal"; + #thermal-sensor-cells = <0>; + io-channels = <&adc AT91_SAMA7G5_ADC_TEMP_CHANNEL>; + io-channel-names = "sensor-channel"; + }; + soc { compatible = "simple-bus"; #address-cells = <1>; -- 2.34.1