[opensuse-arm] Temperature sensor of DHT11
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 ? Best Regards. Ryo -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
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. After that you have to create a device tree overlay which gets loaded by u-boot (by adding it to /boot/efi/extraconfig.txt). Good luck, Matthias -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi,
-----Original Message----- From: Matthias Brugger <mbrugger@suse.com> Sent: 17 June 2019 11:17 To: 村川 了 <FZZ01471@nifty.ne.jp>; opensuse-arm@opensuse.org 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=o... I guess we should enable it.
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: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
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.
On 17/06/2019 12:26, Guillaume Gardet wrote:
Hi,
-----Original Message----- From: Matthias Brugger <mbrugger@suse.com> Sent: 17 June 2019 11:17 To: 村川 了 <FZZ01471@nifty.ne.jp>; opensuse-arm@opensuse.org 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=o... 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: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
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: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
-----Original Message----- From: Matthias Brugger <mbrugger@suse.com> Sent: 17 June 2019 13:13 To: Guillaume Gardet <Guillaume.Gardet@arm.com>; 村川 了 <FZZ01471@nifty.ne.jp>; opensuse-arm@opensuse.org Subject: Re: [opensuse-arm] Temperature sensor of DHT11
On 17/06/2019 12:26, Guillaume Gardet wrote:
Hi,
-----Original Message----- From: Matthias Brugger <mbrugger@suse.com> Sent: 17 June 2019 11:17 To: 村川 了 <FZZ01471@nifty.ne.jp>; opensuse-arm@opensuse.org 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/defau lt?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?
I will probably not be able to send a patch this week.
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.
I agree. Cheers, Guillaume
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: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
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==
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.
Am 17.06.19 um 13:12 schrieb Matthias Brugger:
On 17/06/2019 12:26, Guillaume Gardet wrote:
DHT11 driver is not enable: https://kernel.opensuse.org/cgit/kernel-source/tree/config/arm64/default?h=o... 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.
Whenever I updated the arm configs I did enable all new iio modules. Unless Yousaf missed something, we probably just didn't enable old ones? Feel free to go ahead and enable them, but try to check history for whether someone disabled them for a reason, such as them being specific to non-arm platforms (e.g., git blame / git gui in local repo). I recall a few iio drivers conflicting with their hwmon counterparts. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi Thank you for your information. Currently I can find 1-wire interface after reboot. I will try to get the register value. Best Regards. Ryo On 2019/06/17 19:26, "Guillaume Gardet" <Guillaume.Gardet@arm.com> wrote: Hi, > -----Original Message----- > From: Matthias Brugger <mbrugger@suse.com> > Sent: 17 June 2019 11:17 > To: 村川 了 <FZZ01471@nifty.ne.jp>; opensuse-arm@opensuse.org > 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=o... I guess we should enable it. > 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: opensuse-arm+unsubscribe@opensuse.org > To contact the owner, e-mail: opensuse-arm+owner@opensuse.org 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. -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (4)
-
Andreas Färber
-
Guillaume Gardet
-
Matthias Brugger
-
村川 了