Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / arch / arm64 / boot / dts / freescale / imx8mq-zii-ultra-rmb3.dts
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3  * Copyright (C) 2019 Zodiac Inflight Innovations
4  */
5
6 /dts-v1/;
7
8 #include "imx8mq-zii-ultra.dtsi"
9
10 / {
11         model = "ZII i.MX8MQ Ultra RMB3 Board";
12         compatible = "zii,imx8mq-ultra-rmb3", "zii,imx8mq-ultra", "fsl,imx8mq";
13 };
14
15 &ecspi1 {
16         pinctrl-names = "default";
17         pinctrl-0 = <&pinctrl_ecspi1>;
18         cs-gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>;
19         status = "okay";
20         #address-cells = <1>;
21         #size-cells = <0>;
22
23         nor_flash: flash@0 {
24                 compatible = "st,n25q128a13", "jedec,spi-nor";
25                 spi-max-frequency = <20000000>;
26                 reg = <0>;
27         };
28 };
29
30 &i2c2 {
31         temp-sense@48 {
32                 compatible = "national,lm75";
33                 reg = <0x48>;
34         };
35 };
36
37 &i2c4 {
38         touchscreen@20 {
39                 compatible = "syna,rmi4-i2c";
40                 pinctrl-names = "default";
41                 pinctrl-0 = <&pinctrl_ts>;
42                 reg = <0x20>;
43                 interrupt-parent = <&gpio1>;
44                 interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
45
46                 #address-cells = <1>;
47                 #size-cells = <0>;
48
49                 rmi4-f01@1 {
50                         reg = <0x1>;
51                         syna,nosleep-mode = <2>;
52                 };
53
54                 rmi4-f11@11 {
55                         reg = <0x11>;
56                         touchscreen-inverted-x;
57                         touchscreen-swapped-x-y;
58                         syna,sensor-type = <1>;
59                 };
60
61                 rmi4-f12@12 {
62                         reg = <0x12>;
63                         touchscreen-inverted-x;
64                         touchscreen-swapped-x-y;
65                         syna,sensor-type = <1>;
66                 };
67         };
68
69         touchscreen@2a {
70                 compatible = "eeti,exc3000";
71                 pinctrl-names = "default";
72                 pinctrl-0 = <&pinctrl_ts>;
73                 reg = <0x2a>;
74                 interrupt-parent = <&gpio1>;
75                 interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
76                 touchscreen-inverted-x;
77                 touchscreen-swapped-x-y;
78                 status = "disabled";
79         };
80 };
81
82 &usbhub {
83         swap-dx-lanes = <0>;
84 };
85
86 &iomuxc {
87         pinctrl_ecspi1: ecspi1grp {
88                 fsl,pins = <
89                         MX8MQ_IOMUXC_ECSPI1_SS0_GPIO5_IO9       0x19
90                         MX8MQ_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK    0x82
91                         MX8MQ_IOMUXC_ECSPI1_MISO_ECSPI1_MISO    0x82
92                         MX8MQ_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI    0x82
93                 >;
94         };
95 };