From patchwork Wed Oct 26 12:41:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13020533 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EFEC0C38A2D for ; Wed, 26 Oct 2022 12:42:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=F4HA4CiWDXFpwi/KKuwGdAtg8UveiFFwlFSfAR/A9MY=; b=jStUNwK+tSi9vV hb+7Vq2hm7AdXj4smbOyNYJExhS6L/JhLxatwP1QXUZfblpNqPKsBva0sZKNw+MnmASsh5h+q7XxV LgKlqOXVuqGnDJeUiLZNNt90IEcnFWkAtlSuaV+0YRJplnkuePhn5NpRkzEdTHO/U9uK+FxC85CWy b2by1+yAltKNvlzxJKx5LnOPM1uHaXnc3lclBfsH784lY6QU3KVCwOk9n/1idWuL1OnSXgAxm8e5Y HmviKXz0Ds3AQXPv2fo5ORfi26xKuyuUvF4rUsDLKe1miM2AyHpIB6MTwHiLi7emPrJy4JQex1sIF MH1Zztk+fI3nwdRDFvXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onfiJ-009D6B-KL; Wed, 26 Oct 2022 12:40:55 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1onfgp-009CKh-5Y for linux-arm-kernel@lists.infradead.org; Wed, 26 Oct 2022 12:39:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1666787963; x=1698323963; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=frQgPdhR6+K9jjNm5bd+NjScO8XoXbn1bdTrKlRyHtk=; b=j3hmgZWJTobrMf5ZlA38z6JTHZnH1jCYbWxWwn96pJ8T0PMb5VCvdHFK /KvrQ+x4Nhp1YJ0n9Cq4kJKRTq1SgH/ikP36JEZI8Ka+ih2w82ZEpU2+4 HZV+I6vFEesOc3x4xkbO9n0CWBrQRqRhZz+emIGd3TJODXQfto5AsAwop w6hBOoGrOForXDKz1YXJBHtcsaedNmZgJAT/65J/9DtsAm+GnCEwDcF9N 6Ja/PWxr3zQrtd5X9DVaeupC65RlfzZrOsugUYbdFL05+oo57b4hp2sOA 8j7rEpXw6AzmYQPTsFfi/mdHjl8jwSpJRbeM1cJDXb1CrC2nRNhWxnNLY 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221026_053923_318977_A3693C3D X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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>;