Hi Alex,

On Thu, 25 Jul 2019 at 19:12, @lex <alex.mob...@gmail.com> wrote:
>
> Hi Clément,
>
> No. i did not read the R40 manual until now, Base address: 1c24c00
> But how to find the correct interrupt number and the correct Mapping in the 
> Manual? What should o look for?
You have to look for GIC interrupt table (page 205).
And you have to find the correct interrupt number.
To have it you have to subtract 32 (the first 32 interrupts are ARM reserved).

Regards,
Clément

>
> Thanks for the answer.
>
> @lex
>
>
>
> On Wednesday, July 24, 2019 at 1:46:47 PM UTC-3, @lex wrote:
>>
>> Hi,
>>
>> I am trying to get the thermal readout to work on bpi m2 ultra using the 
>> same setup from the H3 without success.
>> i get:
>> [  802.038807] thermal thermal_zone0: failed to read out thermal zone (-16)
>>
>> Anyone have this working or have a fix for this?
>>
>> This is what i am using:
>>
>>     ths: ths@1c25000 {
>>         #thermal-sensor-cells = <0>;
>>         compatible = "allwinner,sun8i-h3-ths";
>>         reg = <0x01c25000 0x400>,
>>               <0x01c14234 0x4>;
>>         reg-names = "ths", "calibration";
>>         interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
>>         resets = <&ccu RST_BUS_THS>;
>>         reset-names = "ahb";
>>         clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
>>         clock-names = "ahb", "ths";
>>     };
>>
>> BR
>
> --
> You received this message because you are subscribed to the Google Groups 
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to linux-sunxi+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit 
> https://groups.google.com/d/msgid/linux-sunxi/29d0e510-bc3f-479d-9f8b-5f7f4fa3b77a%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/CAJiuCcfji5LJpQSJv2tZpgnuTLfdoe0bNQOH3uNp%3DRHBye1gXA%40mail.gmail.com.

Reply via email to