xref: /linux/arch/arm/boot/dts/nxp/imx/imx53-kp.dtsi (revision 25768de50b1f2dbb6ea44bd5148a87fe2c9c3688)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright 2018
4724ba675SRob Herring * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
5724ba675SRob Herring */
6724ba675SRob Herring
7724ba675SRob Herring/dts-v1/;
8724ba675SRob Herring#include "imx53-tqma53.dtsi"
9724ba675SRob Herring#include <dt-bindings/input/input.h>
10724ba675SRob Herring
11724ba675SRob Herring/ {
12724ba675SRob Herring	buzzer {
13724ba675SRob Herring		compatible = "pwm-beeper";
14724ba675SRob Herring		pinctrl-names = "default";
15724ba675SRob Herring		pinctrl-0 = <&pinctrl_buzzer>;
16*ca969288SUwe Kleine-König		pwms = <&pwm1 0 500000 0>;
17724ba675SRob Herring	};
18724ba675SRob Herring
19724ba675SRob Herring	gpio-buttons {
20724ba675SRob Herring		compatible = "gpio-keys";
21724ba675SRob Herring		pinctrl-names = "default";
22724ba675SRob Herring		pinctrl-0 = <&pinctrl_gpiobuttons>;
23724ba675SRob Herring
24724ba675SRob Herring		button-kalt {
25724ba675SRob Herring			label = "Kaltstart";
26724ba675SRob Herring			linux,code = <KEY_F6>;
27724ba675SRob Herring			gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
28724ba675SRob Herring		};
29724ba675SRob Herring
30724ba675SRob Herring		button-pwr {
31724ba675SRob Herring			label = "PowerFailInterrupt";
32724ba675SRob Herring			linux,code = <KEY_F7>;
33724ba675SRob Herring			gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
34724ba675SRob Herring		};
35724ba675SRob Herring	};
36724ba675SRob Herring
37724ba675SRob Herring	leds {
38724ba675SRob Herring		compatible = "gpio-leds";
39724ba675SRob Herring		pinctrl-names = "default";
40724ba675SRob Herring		pinctrl-0 = <&pinctrl_leds>;
41724ba675SRob Herring
42724ba675SRob Herring		led-bus {
43724ba675SRob Herring			label = "bus";
44724ba675SRob Herring			gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>;
45724ba675SRob Herring			linux,default-trigger = "gpio";
46724ba675SRob Herring			default-state = "off";
47724ba675SRob Herring		};
48724ba675SRob Herring
49724ba675SRob Herring		led-error {
50724ba675SRob Herring			label = "error";
51724ba675SRob Herring			gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
52724ba675SRob Herring			linux,default-trigger = "gpio";
53724ba675SRob Herring			default-state = "off";
54724ba675SRob Herring		};
55724ba675SRob Herring
56724ba675SRob Herring		led-flash {
57724ba675SRob Herring			label = "flash";
58724ba675SRob Herring			gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>;
59724ba675SRob Herring			linux,default-trigger = "heartbeat";
60724ba675SRob Herring		};
61724ba675SRob Herring	};
62724ba675SRob Herring
63724ba675SRob Herring	reg_3v3: regulator-3v3 {
64724ba675SRob Herring		compatible = "regulator-fixed";
65724ba675SRob Herring		regulator-name = "3V3";
66724ba675SRob Herring		regulator-min-microvolt = <3300000>;
67724ba675SRob Herring		regulator-max-microvolt = <3300000>;
68724ba675SRob Herring		regulator-always-on;
69724ba675SRob Herring	};
70724ba675SRob Herring};
71724ba675SRob Herring
72724ba675SRob Herring&can1 {
73724ba675SRob Herring	status = "okay";
74724ba675SRob Herring};
75724ba675SRob Herring
76724ba675SRob Herring&can2 {
77724ba675SRob Herring	status = "okay";
78724ba675SRob Herring};
79724ba675SRob Herring
80724ba675SRob Herring&i2c3 {
81724ba675SRob Herring	status = "okay";
82724ba675SRob Herring
83724ba675SRob Herring	gpio-expander1@22 {
84724ba675SRob Herring		compatible = "nxp,pcf8574";
85724ba675SRob Herring		reg = <0x22>;
86724ba675SRob Herring		interrupts = <109>;
87724ba675SRob Herring		#gpio-cells = <2>;
88724ba675SRob Herring		gpio-controller;
89724ba675SRob Herring	};
90724ba675SRob Herring
91724ba675SRob Herring	rtc@51 {
92724ba675SRob Herring		compatible = "nxp,pcf8563";
93724ba675SRob Herring		reg = <0x51>;
94724ba675SRob Herring	};
95724ba675SRob Herring};
96724ba675SRob Herring
97724ba675SRob Herring&iomuxc {
98724ba675SRob Herring	pinctrl-names = "default";
99724ba675SRob Herring	pinctrl-0 = <&pinctrl_kp_common>;
100724ba675SRob Herring
101724ba675SRob Herring	pinctrl_buzzer: buzzergrp {
102724ba675SRob Herring		fsl,pins = <
103724ba675SRob Herring			MX53_PAD_SD1_DATA3__PWM1_PWMO 0x1e4
104724ba675SRob Herring		>;
105724ba675SRob Herring	};
106724ba675SRob Herring
107724ba675SRob Herring	pinctrl_gpiobuttons: gpiobuttonsgrp {
108724ba675SRob Herring		fsl,pins = <
109724ba675SRob Herring			MX53_PAD_EIM_RW__GPIO2_26 0x1e4
110724ba675SRob Herring			MX53_PAD_EIM_D22__GPIO3_22 0x1e4
111724ba675SRob Herring		>;
112724ba675SRob Herring	};
113724ba675SRob Herring
114724ba675SRob Herring	pinctrl_kp_common: kpcommongrp {
115724ba675SRob Herring		fsl,pins = <
116724ba675SRob Herring			MX53_PAD_EIM_CS0__GPIO2_23 0x1e4
117724ba675SRob Herring			MX53_PAD_GPIO_19__GPIO4_5  0x1e4
118724ba675SRob Herring			MX53_PAD_PATA_DATA6__GPIO2_6 0x1e4
119724ba675SRob Herring			MX53_PAD_PATA_DATA7__GPIO2_7 0xe0
120724ba675SRob Herring			MX53_PAD_CSI0_DAT14__GPIO6_0 0x1e4
121724ba675SRob Herring			MX53_PAD_CSI0_DAT16__GPIO6_2 0x1e4
122724ba675SRob Herring			MX53_PAD_CSI0_DAT18__GPIO6_4 0x1e4
123724ba675SRob Herring			MX53_PAD_EIM_D17__GPIO3_17 0x1e4
124724ba675SRob Herring			MX53_PAD_EIM_D18__GPIO3_18 0x1e4
125724ba675SRob Herring			MX53_PAD_EIM_D21__GPIO3_21 0x1e4
126724ba675SRob Herring			MX53_PAD_EIM_D29__GPIO3_29 0x1e4
127724ba675SRob Herring			MX53_PAD_EIM_DA11__GPIO3_11 0x1e4
128724ba675SRob Herring			MX53_PAD_EIM_DA13__GPIO3_13 0x1e4
129724ba675SRob Herring			MX53_PAD_EIM_DA14__GPIO3_14 0x1e4
130724ba675SRob Herring			MX53_PAD_SD1_DATA0__GPIO1_16 0x1e4
131724ba675SRob Herring			MX53_PAD_SD1_CMD__GPIO1_18 0x1e4
132724ba675SRob Herring			MX53_PAD_SD1_CLK__GPIO1_20 0x1e4
133724ba675SRob Herring		>;
134724ba675SRob Herring	};
135724ba675SRob Herring
136724ba675SRob Herring	pinctrl_leds: ledgrp {
137724ba675SRob Herring		fsl,pins = <
138724ba675SRob Herring			MX53_PAD_EIM_EB2__GPIO2_30 0x1d4
139724ba675SRob Herring			MX53_PAD_EIM_D28__GPIO3_28 0x1d4
140724ba675SRob Herring			MX53_PAD_EIM_WAIT__GPIO5_0 0x1d4
141724ba675SRob Herring		>;
142724ba675SRob Herring	};
143724ba675SRob Herring
144724ba675SRob Herring	pinctrl_uart4: uart4grp {
145724ba675SRob Herring		fsl,pins = <
146724ba675SRob Herring			MX53_PAD_CSI0_DAT12__UART4_TXD_MUX 0x1e4
147724ba675SRob Herring			MX53_PAD_CSI0_DAT13__UART4_RXD_MUX 0x1e4
148724ba675SRob Herring		>;
149724ba675SRob Herring	};
150724ba675SRob Herring};
151724ba675SRob Herring
152724ba675SRob Herring&pinctrl_uart1 {
153724ba675SRob Herring	fsl,pins = <
154724ba675SRob Herring		MX53_PAD_EIM_D23__GPIO3_23 0x1e4
155724ba675SRob Herring		MX53_PAD_EIM_EB3__GPIO2_31 0x1e4
156724ba675SRob Herring		MX53_PAD_EIM_D24__GPIO3_24 0x1e4
157724ba675SRob Herring		MX53_PAD_EIM_D25__GPIO3_25 0x1e4
158724ba675SRob Herring		MX53_PAD_EIM_D19__GPIO3_19 0x1e4
159724ba675SRob Herring		MX53_PAD_EIM_D20__GPIO3_20 0x1e4
160724ba675SRob Herring	>;
161724ba675SRob Herring};
162724ba675SRob Herring
163724ba675SRob Herring&uart1 {
164724ba675SRob Herring	status = "okay";
165724ba675SRob Herring};
166724ba675SRob Herring
167724ba675SRob Herring&uart2 {
168724ba675SRob Herring	status = "okay";
169724ba675SRob Herring};
170724ba675SRob Herring
171724ba675SRob Herring&uart3 {
172724ba675SRob Herring	status = "okay";
173724ba675SRob Herring};
174724ba675SRob Herring
175724ba675SRob Herring&uart4 {
176724ba675SRob Herring	pinctrl-names = "default";
177724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart4>;
178724ba675SRob Herring	status = "okay";
179724ba675SRob Herring};
180724ba675SRob Herring
181724ba675SRob Herring&usbh1 {
182724ba675SRob Herring	status = "okay";
183724ba675SRob Herring};
184724ba675SRob Herring
185724ba675SRob Herring&usbphy0 {
186724ba675SRob Herring	status = "disabled";
187724ba675SRob Herring};
188