Created
June 5, 2020 18:26
-
-
Save gustavsl/12cd2c970bbd2a68d0a13135382d6b8d to your computer and use it in GitHub Desktop.
Overlay for H-Board v0.3 with NVD display and Colibri iMX6
This file contains hidden or 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__ { | |
atmel_mxt_ts: atmel_mxt_ts@4a { | |
compatible = "atmel,maxtouch"; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&pinctrl_h_board>; | |
reg = <0x4a>; | |
interrupt-parent = <&gpio2>; | |
interrupts = <22 IRQ_TYPE_EDGE_RISING>; | |
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 = <20>; | |
hfront-porch = <60>; | |
hback-porch = <12>; | |
vsync-len = <5>; | |
vfront-porch = <60>; | |
vback-porch = <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