From owner-freebsd-arm@freebsd.org Mon Aug 27 07:48:41 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9278D109005A for ; Mon, 27 Aug 2018 07:48:41 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 228AF82FA0 for ; Mon, 27 Aug 2018 07:48:41 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: by mailman.ysv.freebsd.org (Postfix) id DA6151090059; Mon, 27 Aug 2018 07:48:40 +0000 (UTC) Delivered-To: arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C92971090058 for ; Mon, 27 Aug 2018 07:48:40 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3486C82F9F for ; Mon, 27 Aug 2018 07:48:39 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id e02d2618; Mon, 27 Aug 2018 09:48:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=KeCNImetm99buBHqtue6xBWeCEA=; b=T72PzkIg4LefeKLD1HKTraSG5tQE dgQ7i5LQNg+CXv0K3idyWT+0WBcsSAq4XX3UhioHVUfYiRRNBHk3oRXbtygDEc3f OsXxRtTkwr0gjCzCMkaLEkAoK+MTT8P6h0InAbJtQOuURDLe0MO8wqZomJjtl9Bf ZXICG2/7uT8t/MM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=j5AVttk9wpyZ2goSdnQ9bngMR1TSSR+5o3ZZh942MJDrgE88dFpp4oYg Ptl39IsxPakjUTPHmlfVegA5WcQ5VCtyqA8k5UOzvs1Os7S9hMC/Mp5EoEHTEv1Y OzOojhFii+k4VA7/ei2yYDgxulpkHxYNnyO6ly9QfK0+yF+3c2I= Received: from knuckles.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id c962f56e TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 27 Aug 2018 09:48:37 +0200 (CEST) Date: Mon, 27 Aug 2018 09:48:37 +0200 From: Emmanuel Vadot To: Daniel Braniss Cc: "freebsd-arm@freebsd.org" Subject: Re: thermal DTS for allwinner/h3 Message-Id: <20180827094837.187596ce4421eae4b87b6f9f@bidouilliste.com> In-Reply-To: <5E41E0AE-35B4-45AC-951E-705CAEADBFDA@cs.huji.ac.il> References: <23EA1292-4DF7-4C08-9EDA-C235CC461F1D@cs.huji.ac.il> <5E41E0AE-35B4-45AC-951E-705CAEADBFDA@cs.huji.ac.il> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2018 07:48:41 -0000 Hi Daniel, On Mon, 27 Aug 2018 08:43:51 +0300 Daniel Braniss wrote: > iI hate spell checkers > > > > On 27 Aug 2018, at 08:40, Daniel Braniss wrote: > > > > hi, > > this overlay is working form me, though I think the actual temperature reported is a bit off (40-50C) Thanks, You miss the nvmem cell declaration in the sid node that's why the temperature is a bit of I guess. But anyway H3 is a really hot SoC, on a idle board without cpufreq support (so cpu clocked at 1008Mhz iirc) my IR thermometer reports ~40C > > /dts-v1/; > > /plugin/; > > > > #include > > #include > > #include > > > > / { > > compatible = "allwinner,sun8i-h3"; > > }; > > > > &{/soc} { > > ths: thermal_sensor@1c25000 { > > compatible = "allwinner,sun8i-h3-ths"; > > reg = <0x01c25000 0x100>; > > interrupts = ; > > clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; > > clock-names = "apb", "ths"; > > resets = <&ccu RST_BUS_THS>; > > reset-names = "apb"; > > status = "okay"; > > nvmem-cells = <&ths_calib>; > > nvmem-cell-names = "ths-calib"; > > }; > > }; > > > > > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- Emmanuel Vadot