Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2018 09:48:37 +0200
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Daniel Braniss <danny@cs.huji.ac.il>
Cc:        "freebsd-arm@freebsd.org" <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>

next in thread | previous in thread | raw e-mail | index | archive | help

 Hi Daniel,

On Mon, 27 Aug 2018 08:43:51 +0300
Daniel Braniss <danny@cs.huji.ac.il> wrote:

> iI hate spell checkers
> 
> 
> > On 27 Aug 2018, at 08:40, Daniel Braniss <danny@cs.huji.ac.il> 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 <dt-bindings/interrupt-controller/arm-gic.h>
> > #include <dt-bindings/clock/sun8i-h3-ccu.h>
> > #include <dt-bindings/reset/sun8i-h3-ccu.h>
> > 
> > / {
> > compatible = "allwinner,sun8i-h3";
> > };
> > 
> > &{/soc} {
> > 	ths: thermal_sensor@1c25000 {
> > 		 compatible = "allwinner,sun8i-h3-ths";
> > 		 reg = <0x01c25000 0x100>;
> > 		 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
> > 		 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 <manu@bidouilliste.com> <manu@freebsd.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180827094837.187596ce4421eae4b87b6f9f>