Created
May 14, 2020 22:01
-
-
Save gustavsl/769b3ce4cf5cbc849991453120990fe8 to your computer and use it in GitHub Desktop.
Device Tree Overlay for Colibri iMX6 on H-Board v0.3 with Aison display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/plugin/; | |
#include "/device-tree-overlays/dts-arm32/imx6dl-pinfunc.h" | |
#include <dt-bindings/gpio/gpio.h> | |
#include <dt-bindings/interrupt-controller/irq.h> | |
/ { | |
compatible = "toradex,colibri-imx6dl"; | |
fragment@0 { | |
target = <&i2c3>; | |
__overlay__ { | |
tdo07: gt911@5d { | |
pinctrl-names = "default"; | |
pinctrl-0 = <&pinctrl_h_board>; | |
compatible = "goodix,gt911"; | |
reg = <0x5d>; | |
interrupt-parent = <&gpio2>; | |
interrupts = <22 IRQ_TYPE_EDGE_FALLING>; | |
reset-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>; | |
status = "okay"; | |
}; | |
}; | |
}; | |
fragment@1 { | |
target-path = "/panel-dpi"; | |
__overlay__ { | |
status = "okay"; | |
width-mm = <154>; | |
height-mm = <86>; | |
panel-timing { | |
clock-frequency = <33000000>; | |
hactive = <800>; | |
vactive = <480>; | |
hsync-len = <2>; | |
hfront-porch = <49>; | |
hback-porch = <32>; | |
vsync-len = <3>; | |
vfront-porch = <52>; | |
vback-porch = <5>; | |
pixelclk-active = <0>; | |
}; | |
}; | |
}; | |
fragment@2 { | |
target-path = "/backlight"; | |
__overlay__ { | |
pwms = <&pwm2 0 5000000 0>; | |
enable-gpios = <&gpio2 8 0>; | |
}; | |
}; | |
fragment@3 { | |
target = <&iomuxc>; | |
__overlay__ { | |
pinctrl_h_board: h-board { | |
fsl,pins = < | |
MX6QDL_PAD_EIM_A16__GPIO2_IO22 0x1b0b1 | |
MX6QDL_PAD_SD4_DAT3__GPIO2_IO11 0x1b0b1 | |
>; | |
}; | |
}; | |
}; | |
fragment@4 { | |
target-path = "/gpio-keys"; | |
__overlay__ { | |
status = "disabled"; | |
wakeup { | |
status = "disabled"; | |
}; | |
}; | |
}; | |
fragment@5 { | |
target = <&uart1>; | |
__overlay__ { | |
pinctrl-names = "default"; | |
pinctrl-0 = <&pinctrl_uart1_dte>; | |
fsl,dte-mode; | |
status = "okay"; | |
}; | |
}; | |
fragment@6 { | |
target = <&uart3>; | |
__overlay__ { | |
pinctrl-0 = <&pinctrl_uart3_dte &pinctrl_uart3_rts>; | |
linux,rs485-enabled-at-boot-time; | |
rs485-rts-active-low; | |
rs485-rx-during-tx; | |
rts-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>; | |
}; | |
}; | |
fragment@7 { | |
target = <&can1>; | |
__overlay__ { | |
status = "okay"; | |
}; | |
}; | |
fragment@8 { | |
target = <&iomuxc>; | |
__overlay__ { | |
pinctrl_uart3_rts: uart3_rts { | |
fsl,pins = < | |
MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x1b0b1 | |
>; | |
}; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment