Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Again More than one Wire pin

Featured Replies

Hello!
In this topic:

It was confirmed that more than 1 pin GPIO can be used for 1-wire bus. How can I edit or create my sun8i-h3-w1-gpio.dts for this?

Spoiler

/dts-v1/;

/plugin/;

 

/ {

        compatible = "allwinner,sun8i-h3";

 

        fragment@0 {

                target = <&pio>;

                __overlay__ {

                        w1_pins: w1_pins {

                                pins = "PD14";

                                function = "gpio_in";

                        };

                };

        };

 

        fragment@1 {

                target-path = "/";

                __overlay__ {

                        onewire@0 {

                                compatible = "w1-gpio";

                                pinctrl-names = "default";

                                pinctrl-0 = <&w1_pins>;

                                gpios = <&pio 3 14 0>; /* PD14 */

                                status = "okay";

                        };

                };

        };

};

Can anyone give an example?
Thank you in advance!

Edited by dan1234

  • Author

If I change sun8i-h3-w1-gpio.dts as follows:

/dts-v1/;
/plugin/;

/ {
	compatible = "allwinner,sun8i-h3";

	fragment@0 {
		target = <&pio>;
		__overlay__ {
			w1_pins: w1_pins {
				pins = "PA20" ,"PA10";
				functions = "gpio_in";
			};
		};
	};

	fragment@1 {
		target-path = "/";
		__overlay__ {
			onewire@0 {
				compatible = "w1-gpio";
				pinctrl-names = "default";
				pinctrl-0 = <&w1_pins>;
				gpios = <&pio 0 20 0>, <&pio 0 10 0>;
				status = "okay";
			};
		};
	};
};

That as 1-wire bus works only the first pin (PA20) from the specified. The second pin (PA10) is not working as 1-wire bus.
What am I doing wrong?

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.