sandbox: DTS: w1: add node for one wire interface on GPIO
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 18 Sep 2018 07:35:35 +0000 (10:35 +0300)
committerTom Rini <trini@konsulko.com>
Sat, 29 Sep 2018 00:22:37 +0000 (20:22 -0400)
Add a node for the one wire uclass and one wire gpio driver
in sandbox.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
arch/sandbox/dts/sandbox.dts

index 6ac37f1ed7bedfc6e790d96a3accbc65ba6045b0..1aa0f8eef53a7c03ef535679c61badda229fd4ee 100644 (file)
 
        pinctrl {
                compatible = "sandbox,pinctrl";
+               status = "okay";
 
                pinctrl_i2c0: i2c0 {
                        groups = "i2c";
                        groups = "serial_a";
                        function = "serial";
                };
+
+               pinctrl_onewire0: onewire0 {
+                       groups = "w1";
+                       function = "w1";
+                       bias-pull-up;
+               };
        };
 
        reset@1 {
                        reg = <0x0 0x400>;
                };
        };
+
+       onewire0: onewire {
+               compatible = "w1-gpio";
+               gpios = <&gpio_a 8>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_onewire0>;
+               status = "okay";
+
+               sandbox_eeprom0: sandbox_eeprom@0 {
+                       compatible = "sandbox,w1-eeprom";
+                       status = "okay";
+               };
+       };
 };
 
 #include "cros-ec-keyboard.dtsi"