diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2021-06-23 16:13:35 +0300 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@microchip.com> | 2021-07-06 15:17:10 +0300 |
commit | 89bd68a7484880900b47bcadd1b5671c52592d16 (patch) | |
tree | 332348bc02da2e47dab3f97f0c42583d1145d2f7 /arch/arm/dts/at91-sama5d2_xplained.dts | |
parent | dffea443a3c4d899085f7c0d307dbb8e88ea849a (diff) |
ARM: dts: at91: fix the GPIO polarity for onewire
The GPIO polarity for onewire must be GPIO_ACTIVE_HIGH.
On previous versions this used to work as it looks like the right flag values
are being passed since :
https://lists.denx.de/pipermail/u-boot/2020-April/407195.html
And that series broke the old functionality for onewire nodes.
Some boards had the correct value for the polarity, but it wasn't clear
so I replaced it with the right macro for the flag, instead of an empty value.
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'arch/arm/dts/at91-sama5d2_xplained.dts')
-rw-r--r-- | arch/arm/dts/at91-sama5d2_xplained.dts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/dts/at91-sama5d2_xplained.dts b/arch/arm/dts/at91-sama5d2_xplained.dts index 7f0d1696ba..b733c4d4ce 100644 --- a/arch/arm/dts/at91-sama5d2_xplained.dts +++ b/arch/arm/dts/at91-sama5d2_xplained.dts @@ -1,4 +1,5 @@ /dts-v1/; +#include <dt-bindings/gpio/gpio.h> #include "sama5d2.dtsi" #include "sama5d2-pinfunc.h" @@ -12,7 +13,7 @@ }; onewire_tm: onewire { - gpios = <&pioA PIN_PB0 0>; + gpios = <&pioA PIN_PB0 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_onewire_tm_default>; status = "okay"; |