On 17/06/2019 12:26, Guillaume Gardet wrote:
> Hi,
>
>> -----Original Message-----
>> From: Matthias Brugger <[email protected]>
>> Sent: 17 June 2019 11:17
>> To: 村川 了 <[email protected]>; [email protected]
>> Subject: Re: [opensuse-arm] Temperature sensor of DHT11
>>
>>
>>
>> On 17/06/2019 01:29, 村川 了 wrote:
>>> Hi
>>>
>>> I want to control the temperature sensor of DHT11 on openSUSE15 on
>> Raspberry Pi 3B+.
>>> Now I try to develop python3 application with mraa. I want to know if
>> openSUSE Leap 15 on Pi can handle DHT11 sensord with default or not.
>>> And what kind of action do I need to control this sensor with openSUSE
>> Leap 15 ?
>>>
>>
>> You will probably need kernel-default-extra package to pull in the driver.
>
> DHT11 driver is not enable:
> https://kernel.opensuse.org/cgit/kernel-source/tree/config/arm64/default?h=openSUSE-15.0
> I guess we should enable it.
>
That's a pity. Yes we definitely should enable it. Could you send a patch? While
at it, I think it would make sense to go through IIO subsystem and enable all
drivers as long as there is no good reason to not do that.
Regards,
Matthias
>> After that you have to create a device tree overlay which gets loaded by u-
>> boot (by adding it to /boot/efi/extraconfig.txt).
>
> You just need to add:
> dtoverlay=w1-gpio,gpiopin=X
> and replace the X with the wanted GPIO number used for the 1-wire interface.
>
> Then, your device should appear on /sys/bus/w1/devices/
> You should be able to read registers manually (since the kernel driver is not
> enabled yet).
>
> Cheers,
> Guillaume
>
>>
>> Good luck,
>> Matthias
>> --
>> To unsubscribe, e-mail: [email protected]
>> To contact the owner, e-mail: [email protected]
>
> IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store or copy the
> information in any medium. Thank you.
> N�����r��y隊Z)z{.�櫛맲��r��z�^�ˬz��N�(�֜��^� ޭ隊Z)z{.�櫛�0�����Ǩrg==
>
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]