From owner-freebsd-arm@freebsd.org Mon Aug 27 09:33:37 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 9A9721081DC7 for ; Mon, 27 Aug 2018 09:33:37 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) 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 121688656D for ; Mon, 27 Aug 2018 09:33:37 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.ysv.freebsd.org (Postfix) id C97E81081DC3; Mon, 27 Aug 2018 09:33:36 +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 96CC41081DC2 for ; Mon, 27 Aug 2018 09:33:36 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1396C8656B for ; Mon, 27 Aug 2018 09:33:35 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from bach.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1fuDtm-000E9B-36; Mon, 27 Aug 2018 12:33:26 +0300 From: Daniel Braniss Message-Id: <0897C7CF-D6D0-4E5C-A538-7A4F5502C30B@cs.huji.ac.il> Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: thermal DTS for allwinner/h3 Date: Mon, 27 Aug 2018 12:33:25 +0300 In-Reply-To: <20180827094837.187596ce4421eae4b87b6f9f@bidouilliste.com> Cc: "freebsd-arm@freebsd.org" To: Emmanuel Vadot References: <23EA1292-4DF7-4C08-9EDA-C235CC461F1D@cs.huji.ac.il> <5E41E0AE-35B4-45AC-951E-705CAEADBFDA@cs.huji.ac.il> <20180827094837.187596ce4421eae4b87b6f9f@bidouilliste.com> X-Mailer: Apple Mail (2.3445.9.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 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 09:33:38 -0000 > On 27 Aug 2018, at 10:48, Emmanuel Vadot = wrote: >=20 >=20 > Hi Daniel, >=20 > On Mon, 27 Aug 2018 08:43:51 +0300 > Daniel Braniss > = wrote: >=20 >> iI hate spell checkers >>=20 >>=20 >>> On 27 Aug 2018, at 08:40, Daniel Braniss > wrote: >>>=20 >>> hi, >>> this overlay is working form me, though I think the actual = temperature reported is a bit off (40-50C) >=20 > Thanks, >=20 > 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 >=20 >>> /dts-v1/; >>> /plugin/; >>>=20 >>> #include >>> #include >>> #include >>>=20 >>> / { >>> compatible =3D "allwinner,sun8i-h3"; >>> }; >>>=20 >>> &{/soc} { >>> ths: thermal_sensor@1c25000 { >>> compatible =3D "allwinner,sun8i-h3-ths"; >>> reg =3D <0x01c25000 0x100>; >>> interrupts =3D ; >>> clocks =3D <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; >>> clock-names =3D "apb", "ths"; >>> resets =3D <&ccu RST_BUS_THS>; >>> reset-names =3D "apb"; >>> status =3D "okay"; >>> nvmem-cells =3D <&ths_calib>; >>> nvmem-cell-names =3D "ths-calib"; >>> }; >>> }; >>>=20 >>>=20 >>> _______________________________________________ >>> 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" >>=20 >> _______________________________________________ >> 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 = " >=20 if you send me the missing bits I can test it. danny >=20 > --=20 > Emmanuel Vadot > = >