]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: at91: sam9x60_curiosity: add onewire support
authorDurai Manickam KR <durai.manickamkr@microchip.com>
Thu, 7 Jul 2022 11:10:56 +0000 (16:40 +0530)
committerEugen Hristev <eugen.hristev@microchip.com>
Mon, 19 Sep 2022 06:50:17 +0000 (09:50 +0300)
Add support for onewire memory.

Signed-off-by: Durai Manickam KR <durai.manickamkr@microchip.com>
arch/arm/dts/at91-sam9x60_curiosity.dts

index 2e7ccb0ffb8abc1336ff57452e28133ac0cada6a..7c5b6ae2b87ae7d91d4381c1c6849794844e0af8 100644 (file)
                                                        <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE
                                                         AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE>;
                                        };
+
+                                       pinctrl_onewire_tm_default: onewire_tm_default {
+                                               atmel,pins =
+                                                       <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
+                                       };
                        };
                };
        };
        memory {
                reg = <0x20000000 0x8000000>;
        };
+
+       onewire_tm: onewire {
+               gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_onewire_tm_default>;
+               status = "okay";
+
+               w1_eeprom: w1_eeprom@0 {
+                       compatible = "maxim,ds24b33";
+                       status = "okay";
+               };
+       };
 };
 
 &macb0 {