]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/x86/dts/minnowmax.dts
x86: gpio: add pinctrl support from the device tree
[karo-tx-uboot.git] / arch / x86 / dts / minnowmax.dts
index 7103bc50777074b5fb5f0be1d7b5f8ce5c4c7d04..bd21bfb0b4f0130bd5e759067f536c4c840b9303 100644 (file)
@@ -6,6 +6,8 @@
 
 /dts-v1/;
 
+#include <dt-bindings/gpio/x86-gpio.h>
+
 /include/ "skeleton.dtsi"
 /include/ "serial.dtsi"
 
                silent_console = <0>;
        };
 
+       pch_pinctrl {
+               compatible = "intel,x86-pinctrl";
+               io-base = <0x4c>;
+
+               pin_usb_host_en0@0 {
+                       gpio-offset = <0x80 8>;
+                       pad-offset = <0x260>;
+                       mode-gpio;
+                       output-value = <1>;
+                       direction = <PIN_OUTPUT>;
+               };
+
+               pin_usb_host_en1@0 {
+                       gpio-offset = <0x80 9>;
+                       pad-offset = <0x258>;
+                       mode-gpio;
+                       output-value = <1>;
+                       direction = <PIN_OUTPUT>;
+               };
+       };
+
        gpioa {
                compatible = "intel,ich6-gpio";
                u-boot,dm-pre-reloc;