xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx53-kp.dtsi (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright 2018
4f126890aSEmmanuel Vadot * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
5f126890aSEmmanuel Vadot */
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadot/dts-v1/;
8f126890aSEmmanuel Vadot#include "imx53-tqma53.dtsi"
9f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
10f126890aSEmmanuel Vadot
11f126890aSEmmanuel Vadot/ {
12f126890aSEmmanuel Vadot	buzzer {
13f126890aSEmmanuel Vadot		compatible = "pwm-beeper";
14f126890aSEmmanuel Vadot		pinctrl-names = "default";
15f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_buzzer>;
16*7d0873ebSEmmanuel Vadot		pwms = <&pwm1 0 500000 0>;
17f126890aSEmmanuel Vadot	};
18f126890aSEmmanuel Vadot
19f126890aSEmmanuel Vadot	gpio-buttons {
20f126890aSEmmanuel Vadot		compatible = "gpio-keys";
21f126890aSEmmanuel Vadot		pinctrl-names = "default";
22f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_gpiobuttons>;
23f126890aSEmmanuel Vadot
24f126890aSEmmanuel Vadot		button-kalt {
25f126890aSEmmanuel Vadot			label = "Kaltstart";
26f126890aSEmmanuel Vadot			linux,code = <KEY_F6>;
27f126890aSEmmanuel Vadot			gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
28f126890aSEmmanuel Vadot		};
29f126890aSEmmanuel Vadot
30f126890aSEmmanuel Vadot		button-pwr {
31f126890aSEmmanuel Vadot			label = "PowerFailInterrupt";
32f126890aSEmmanuel Vadot			linux,code = <KEY_F7>;
33f126890aSEmmanuel Vadot			gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
34f126890aSEmmanuel Vadot		};
35f126890aSEmmanuel Vadot	};
36f126890aSEmmanuel Vadot
37f126890aSEmmanuel Vadot	leds {
38f126890aSEmmanuel Vadot		compatible = "gpio-leds";
39f126890aSEmmanuel Vadot		pinctrl-names = "default";
40f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_leds>;
41f126890aSEmmanuel Vadot
42f126890aSEmmanuel Vadot		led-bus {
43f126890aSEmmanuel Vadot			label = "bus";
44f126890aSEmmanuel Vadot			gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>;
45f126890aSEmmanuel Vadot			linux,default-trigger = "gpio";
46f126890aSEmmanuel Vadot			default-state = "off";
47f126890aSEmmanuel Vadot		};
48f126890aSEmmanuel Vadot
49f126890aSEmmanuel Vadot		led-error {
50f126890aSEmmanuel Vadot			label = "error";
51f126890aSEmmanuel Vadot			gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
52f126890aSEmmanuel Vadot			linux,default-trigger = "gpio";
53f126890aSEmmanuel Vadot			default-state = "off";
54f126890aSEmmanuel Vadot		};
55f126890aSEmmanuel Vadot
56f126890aSEmmanuel Vadot		led-flash {
57f126890aSEmmanuel Vadot			label = "flash";
58f126890aSEmmanuel Vadot			gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>;
59f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
60f126890aSEmmanuel Vadot		};
61f126890aSEmmanuel Vadot	};
62f126890aSEmmanuel Vadot
63f126890aSEmmanuel Vadot	reg_3v3: regulator-3v3 {
64f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
65f126890aSEmmanuel Vadot		regulator-name = "3V3";
66f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
67f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
68f126890aSEmmanuel Vadot		regulator-always-on;
69f126890aSEmmanuel Vadot	};
70f126890aSEmmanuel Vadot};
71f126890aSEmmanuel Vadot
72f126890aSEmmanuel Vadot&can1 {
73f126890aSEmmanuel Vadot	status = "okay";
74f126890aSEmmanuel Vadot};
75f126890aSEmmanuel Vadot
76f126890aSEmmanuel Vadot&can2 {
77f126890aSEmmanuel Vadot	status = "okay";
78f126890aSEmmanuel Vadot};
79f126890aSEmmanuel Vadot
80f126890aSEmmanuel Vadot&i2c3 {
81f126890aSEmmanuel Vadot	status = "okay";
82f126890aSEmmanuel Vadot
83f126890aSEmmanuel Vadot	gpio-expander1@22 {
84f126890aSEmmanuel Vadot		compatible = "nxp,pcf8574";
85f126890aSEmmanuel Vadot		reg = <0x22>;
86f126890aSEmmanuel Vadot		interrupts = <109>;
87f126890aSEmmanuel Vadot		#gpio-cells = <2>;
88f126890aSEmmanuel Vadot		gpio-controller;
89f126890aSEmmanuel Vadot	};
90f126890aSEmmanuel Vadot
91f126890aSEmmanuel Vadot	rtc@51 {
92f126890aSEmmanuel Vadot		compatible = "nxp,pcf8563";
93f126890aSEmmanuel Vadot		reg = <0x51>;
94f126890aSEmmanuel Vadot	};
95f126890aSEmmanuel Vadot};
96f126890aSEmmanuel Vadot
97f126890aSEmmanuel Vadot&iomuxc {
98f126890aSEmmanuel Vadot	pinctrl-names = "default";
99f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_kp_common>;
100f126890aSEmmanuel Vadot
101f126890aSEmmanuel Vadot	imx53-kp-common {
102f126890aSEmmanuel Vadot		pinctrl_buzzer: buzzergrp {
103f126890aSEmmanuel Vadot			fsl,pins = <
104f126890aSEmmanuel Vadot				MX53_PAD_SD1_DATA3__PWM1_PWMO 0x1e4
105f126890aSEmmanuel Vadot			>;
106f126890aSEmmanuel Vadot		};
107f126890aSEmmanuel Vadot
108f126890aSEmmanuel Vadot		pinctrl_gpiobuttons: gpiobuttonsgrp {
109f126890aSEmmanuel Vadot			fsl,pins = <
110f126890aSEmmanuel Vadot				MX53_PAD_EIM_RW__GPIO2_26 0x1e4
111f126890aSEmmanuel Vadot				MX53_PAD_EIM_D22__GPIO3_22 0x1e4
112f126890aSEmmanuel Vadot			>;
113f126890aSEmmanuel Vadot		};
114f126890aSEmmanuel Vadot
115f126890aSEmmanuel Vadot		pinctrl_kp_common: kpcommongrp {
116f126890aSEmmanuel Vadot			fsl,pins = <
117f126890aSEmmanuel Vadot				MX53_PAD_EIM_CS0__GPIO2_23 0x1e4
118f126890aSEmmanuel Vadot				MX53_PAD_GPIO_19__GPIO4_5  0x1e4
119f126890aSEmmanuel Vadot				MX53_PAD_PATA_DATA6__GPIO2_6 0x1e4
120f126890aSEmmanuel Vadot				MX53_PAD_PATA_DATA7__GPIO2_7 0xe0
121f126890aSEmmanuel Vadot				MX53_PAD_CSI0_DAT14__GPIO6_0 0x1e4
122f126890aSEmmanuel Vadot				MX53_PAD_CSI0_DAT16__GPIO6_2 0x1e4
123f126890aSEmmanuel Vadot				MX53_PAD_CSI0_DAT18__GPIO6_4 0x1e4
124f126890aSEmmanuel Vadot				MX53_PAD_EIM_D17__GPIO3_17 0x1e4
125f126890aSEmmanuel Vadot				MX53_PAD_EIM_D18__GPIO3_18 0x1e4
126f126890aSEmmanuel Vadot				MX53_PAD_EIM_D21__GPIO3_21 0x1e4
127f126890aSEmmanuel Vadot				MX53_PAD_EIM_D29__GPIO3_29 0x1e4
128f126890aSEmmanuel Vadot				MX53_PAD_EIM_DA11__GPIO3_11 0x1e4
129f126890aSEmmanuel Vadot				MX53_PAD_EIM_DA13__GPIO3_13 0x1e4
130f126890aSEmmanuel Vadot				MX53_PAD_EIM_DA14__GPIO3_14 0x1e4
131f126890aSEmmanuel Vadot				MX53_PAD_SD1_DATA0__GPIO1_16 0x1e4
132f126890aSEmmanuel Vadot				MX53_PAD_SD1_CMD__GPIO1_18 0x1e4
133f126890aSEmmanuel Vadot				MX53_PAD_SD1_CLK__GPIO1_20 0x1e4
134f126890aSEmmanuel Vadot			>;
135f126890aSEmmanuel Vadot		};
136f126890aSEmmanuel Vadot
137f126890aSEmmanuel Vadot		pinctrl_leds: ledgrp {
138f126890aSEmmanuel Vadot			fsl,pins = <
139f126890aSEmmanuel Vadot				MX53_PAD_EIM_EB2__GPIO2_30 0x1d4
140f126890aSEmmanuel Vadot				MX53_PAD_EIM_D28__GPIO3_28 0x1d4
141f126890aSEmmanuel Vadot				MX53_PAD_EIM_WAIT__GPIO5_0 0x1d4
142f126890aSEmmanuel Vadot			>;
143f126890aSEmmanuel Vadot		};
144f126890aSEmmanuel Vadot
145f126890aSEmmanuel Vadot		pinctrl_uart4: uart4grp {
146f126890aSEmmanuel Vadot			fsl,pins = <
147f126890aSEmmanuel Vadot				MX53_PAD_CSI0_DAT12__UART4_TXD_MUX 0x1e4
148f126890aSEmmanuel Vadot				MX53_PAD_CSI0_DAT13__UART4_RXD_MUX 0x1e4
149f126890aSEmmanuel Vadot			>;
150f126890aSEmmanuel Vadot		};
151f126890aSEmmanuel Vadot	};
152f126890aSEmmanuel Vadot};
153f126890aSEmmanuel Vadot
154f126890aSEmmanuel Vadot&pinctrl_uart1 {
155f126890aSEmmanuel Vadot	fsl,pins = <
156f126890aSEmmanuel Vadot		MX53_PAD_EIM_D23__GPIO3_23 0x1e4
157f126890aSEmmanuel Vadot		MX53_PAD_EIM_EB3__GPIO2_31 0x1e4
158f126890aSEmmanuel Vadot		MX53_PAD_EIM_D24__GPIO3_24 0x1e4
159f126890aSEmmanuel Vadot		MX53_PAD_EIM_D25__GPIO3_25 0x1e4
160f126890aSEmmanuel Vadot		MX53_PAD_EIM_D19__GPIO3_19 0x1e4
161f126890aSEmmanuel Vadot		MX53_PAD_EIM_D20__GPIO3_20 0x1e4
162f126890aSEmmanuel Vadot	>;
163f126890aSEmmanuel Vadot};
164f126890aSEmmanuel Vadot
165f126890aSEmmanuel Vadot&uart1 {
166f126890aSEmmanuel Vadot	status = "okay";
167f126890aSEmmanuel Vadot};
168f126890aSEmmanuel Vadot
169f126890aSEmmanuel Vadot&uart2 {
170f126890aSEmmanuel Vadot	status = "okay";
171f126890aSEmmanuel Vadot};
172f126890aSEmmanuel Vadot
173f126890aSEmmanuel Vadot&uart3 {
174f126890aSEmmanuel Vadot	status = "okay";
175f126890aSEmmanuel Vadot};
176f126890aSEmmanuel Vadot
177f126890aSEmmanuel Vadot&uart4 {
178f126890aSEmmanuel Vadot	pinctrl-names = "default";
179f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart4>;
180f126890aSEmmanuel Vadot	status = "okay";
181f126890aSEmmanuel Vadot};
182f126890aSEmmanuel Vadot
183f126890aSEmmanuel Vadot&usbh1 {
184f126890aSEmmanuel Vadot	status = "okay";
185f126890aSEmmanuel Vadot};
186f126890aSEmmanuel Vadot
187f126890aSEmmanuel Vadot&usbphy0 {
188f126890aSEmmanuel Vadot	status = "disabled";
189f126890aSEmmanuel Vadot};
190