<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>1-Wire W1 DS18B20 — Your Destination for Single Board Computers</title>
        <link>https://forum.loverpi.com/</link>
        <pubDate>Sat, 14 Jan 2023 08:09:56 +0000</pubDate>
        <language>en</language>
            <description>1-Wire W1 DS18B20 — Your Destination for Single Board Computers</description>
    <atom:link href="https://forum.loverpi.com/discussions/tagged/1-wire-w1-ds18b20/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>How to configure 1-Wire support</title>
        <link>https://forum.loverpi.com/discussion/233/how-to-configure-1-wire-support</link>
        <pubDate>Mon, 25 Jun 2018 03:39:11 +0000</pubDate>
        <category>ROC-RK3328-CC</category>
        <dc:creator>pdf</dc:creator>
        <guid isPermaLink="false">233@/discussions</guid>
        <description><![CDATA[<p>I want to port my little 1-Wire based temperature sensor app over from my RPi.</p>

<p>I have a DS18B20 temp sensor connected to the GPIO connector of my Raspberry Pi 3.<br />
I used the steps of this Adafruit lesson to get things working;<br />
<a rel="nofollow" href="/home/leaving?target=https%3A%2F%2Flearn.adafruit.com%2Fadafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing%2Foverview">https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/overview</a></p>

<p>How can I do the same on the ROC-RK3328-CC?</p>

<p>I've built a kernel with the W1 drivers "compiled in" (as opposed to compiled as modules).<br />
After rebooting the new kernel, I see the W1 drivers in <code>/sys/bus/w1/drivers</code>.<br />
But, despite having a DS18B20 connected to the GPIO header:<br />
pin-1 = +3.3v<br />
pin-6 = GND<br />
pin-7 = CLK</p>

<p>I do not see the sensor under <code>/sys/bus/w1/devices</code> like I do on the RPi.</p>

<p>I suspect this has something to do with the Device Tree.<br />
On the RPi I can tell the bootloader to add a DT Overlay (w1-gpio) by adding <code>dtoverlay=w1-gpio</code> to the <code>/boot/config.txt</code> file.</p>

<p>Near as I can tell, we don't have a similar ability to incorporate DT Overlays at boot time on the roc-rk3328-cc, right?<br />
So, I'm guessing the GPIO pin's signal isn't being correctly routed (or made visible to) the W1 kernel driver.  And to do so, will probably require some sort of modification to the <code>kernel/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts</code>.</p>

<p>Anybody gotten 1-Wire support working on this board?<br />
Any Device Tree guru's out there that know what mods have to be made to the Device Tree (.dts) files?</p>
]]>
        </description>
    </item>
   </channel>
</rss>
