Jump to content
  • 0

One Wire on UDOO


chiefwigms

Question

Armbianmonitor:

I'm trying to upgrade from Armbian 5.32 (Xenial Next/4.4.76) and was hoping to enable 1 wire again on my Udoo.  For that build, I had to add one wire modules to the kernel config, then edit the imx6qdl-udoo.dtsi to set the onewire status to okay (from disabled).

 

In the dtsi, after udoo_ard: udoo_ard_manager it had:

onewire@0 { /* example for pin 08 */
    compatible = "w1-gpio";
    pinctrl-names = "default";
    pinctrl-0 = <&w1_gpio_pins>;
    status = "disabled"; /* "okay" to enable */
    gpios = <&gpio1 21 0>; 
};

and in iomuxc, there was a section (in external_hog: hoggrp-2, MX6QDL_PAD_SD1_DAT3__GPIO1_IO21                 0x80000000  // pin 08):

w1_gpio_pins: w1-gpio@0 {
    fsl,pins = <
        MX6QDL_PAD_SD1_DAT3__GPIO1_IO21 0x80000000 /* example for pin 08 */
    >;
};

 

I tried adding the following to /boot/armbianEnv.txt

overlays=w1-gpio
param_w1_pin=21
param_w1_pin_int_pullup=0

with no luck.  Do I need to modify the dtsi and rebuild, or is there an overlay that will add one wire? (the current dtsi has no entries for one wire)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
5 hours ago, chiefwigms said:
Armbianmonitor:

I'm trying to upgrade from Armbian 5.32 (Xenial Next/4.4.76) and was hoping to enable 1 wire again on my Udoo.  For that build, I had to add one wire modules to the kernel config, then edit the imx6qdl-udoo.dtsi to set the onewire status to okay (from disabled).

 

In the dtsi, after udoo_ard: udoo_ard_manager it had:


onewire@0 { /* example for pin 08 */
    compatible = "w1-gpio";
    pinctrl-names = "default";
    pinctrl-0 = <&w1_gpio_pins>;
    status = "disabled"; /* "okay" to enable */
    gpios = <&gpio1 21 0>; 
};

and in iomuxc, there was a section (in external_hog: hoggrp-2, MX6QDL_PAD_SD1_DAT3__GPIO1_IO21                 0x80000000  // pin 08):


w1_gpio_pins: w1-gpio@0 {
    fsl,pins = <
        MX6QDL_PAD_SD1_DAT3__GPIO1_IO21 0x80000000 /* example for pin 08 */
    >;
};

 

I tried adding the following to /boot/armbianEnv.txt


overlays=w1-gpio
param_w1_pin=21
param_w1_pin_int_pullup=0

with no luck.  Do I need to modify the dtsi and rebuild, or is there an overlay that will add one wire? (the current dtsi has no entries for one wire)

 

 

Got a chance to look at the docs - I see that only Allwinner DT has overlay support... wahh wahh :(   You can close this

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines