xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/mxs/imx28-sps1.dts (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright (C) 2012 Marek Vasut <marex@denx.de>
4f126890aSEmmanuel Vadot */
5f126890aSEmmanuel Vadot
6f126890aSEmmanuel Vadot/dts-v1/;
7f126890aSEmmanuel Vadot#include "imx28.dtsi"
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadot/ {
10f126890aSEmmanuel Vadot	model = "SchulerControl GmbH, SC SPS 1";
11f126890aSEmmanuel Vadot	compatible = "schulercontrol,imx28-sps1", "fsl,imx28";
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadot	memory@40000000 {
14f126890aSEmmanuel Vadot		device_type = "memory";
15f126890aSEmmanuel Vadot		reg = <0x40000000 0x08000000>;
16f126890aSEmmanuel Vadot	};
17f126890aSEmmanuel Vadot
18*aa1a8ff2SEmmanuel Vadot	reg_usb0_vbus: regulator-0 {
19f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
20f126890aSEmmanuel Vadot		regulator-name = "usb0_vbus";
21f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
22f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
23f126890aSEmmanuel Vadot		gpio = <&gpio3 9 0>;
24f126890aSEmmanuel Vadot	};
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot	leds {
27f126890aSEmmanuel Vadot		#address-cells = <1>;
28f126890aSEmmanuel Vadot		#size-cells = <0>;
29f126890aSEmmanuel Vadot		compatible = "gpio-leds";
30f126890aSEmmanuel Vadot		status = "okay";
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot		led@1 {
33f126890aSEmmanuel Vadot			label = "sps1-1:yellow:user";
34f126890aSEmmanuel Vadot			gpios = <&gpio0 6 0>;
35f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
36f126890aSEmmanuel Vadot			reg = <0>;
37f126890aSEmmanuel Vadot		};
38f126890aSEmmanuel Vadot
39f126890aSEmmanuel Vadot		led@2 {
40f126890aSEmmanuel Vadot			label = "sps1-2:red:user";
41f126890aSEmmanuel Vadot			gpios = <&gpio0 3 0>;
42f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
43f126890aSEmmanuel Vadot			reg = <1>;
44f126890aSEmmanuel Vadot		};
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel Vadot		led@3 {
47f126890aSEmmanuel Vadot			label = "sps1-3:red:user";
48f126890aSEmmanuel Vadot			gpios = <&gpio0 0 0>;
49f126890aSEmmanuel Vadot			default-trigger = "heartbeat";
50f126890aSEmmanuel Vadot			reg = <2>;
51f126890aSEmmanuel Vadot		};
52f126890aSEmmanuel Vadot
53f126890aSEmmanuel Vadot	};
54f126890aSEmmanuel Vadot};
55f126890aSEmmanuel Vadot
56f126890aSEmmanuel Vadot&auart0 {
57f126890aSEmmanuel Vadot	pinctrl-names = "default";
58f126890aSEmmanuel Vadot	pinctrl-0 = <&auart0_pins_a>;
59f126890aSEmmanuel Vadot	status = "okay";
60f126890aSEmmanuel Vadot};
61f126890aSEmmanuel Vadot
62f126890aSEmmanuel Vadot&duart {
63f126890aSEmmanuel Vadot	pinctrl-names = "default";
64f126890aSEmmanuel Vadot	pinctrl-0 = <&duart_pins_a>;
65f126890aSEmmanuel Vadot	status = "okay";
66f126890aSEmmanuel Vadot};
67f126890aSEmmanuel Vadot
68f126890aSEmmanuel Vadot&i2c0 {
69f126890aSEmmanuel Vadot	pinctrl-names = "default";
70f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c0_pins_a>;
71f126890aSEmmanuel Vadot	status = "okay";
72f126890aSEmmanuel Vadot
73f126890aSEmmanuel Vadot	rtc: rtc@51 {
74f126890aSEmmanuel Vadot		compatible = "nxp,pcf8563";
75f126890aSEmmanuel Vadot		reg = <0x51>;
76f126890aSEmmanuel Vadot	};
77f126890aSEmmanuel Vadot
78f126890aSEmmanuel Vadot	eeprom: eeprom@52 {
79f126890aSEmmanuel Vadot		compatible = "atmel,24c64";
80f126890aSEmmanuel Vadot		reg = <0x52>;
81f126890aSEmmanuel Vadot		pagesize = <32>;
82f126890aSEmmanuel Vadot	};
83f126890aSEmmanuel Vadot};
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot&mac0 {
86f126890aSEmmanuel Vadot	phy-mode = "rmii";
87f126890aSEmmanuel Vadot	pinctrl-names = "default";
88f126890aSEmmanuel Vadot	pinctrl-0 = <&mac0_pins_a>;
89f126890aSEmmanuel Vadot	status = "okay";
90f126890aSEmmanuel Vadot};
91f126890aSEmmanuel Vadot
92f126890aSEmmanuel Vadot&mac1 {
93f126890aSEmmanuel Vadot	phy-mode = "rmii";
94f126890aSEmmanuel Vadot	pinctrl-names = "default";
95f126890aSEmmanuel Vadot	pinctrl-0 = <&mac1_pins_a>;
96f126890aSEmmanuel Vadot	status = "okay";
97f126890aSEmmanuel Vadot};
98f126890aSEmmanuel Vadot
99f126890aSEmmanuel Vadot&pinctrl {
100f126890aSEmmanuel Vadot	pinctrl-names = "default";
101f126890aSEmmanuel Vadot	pinctrl-0 = <&hog_pins_a>;
102f126890aSEmmanuel Vadot
103f126890aSEmmanuel Vadot	hog_pins_a: hog-gpios@0 {
104f126890aSEmmanuel Vadot		reg = <0>;
105f126890aSEmmanuel Vadot		fsl,pinmux-ids = <
106f126890aSEmmanuel Vadot			MX28_PAD_GPMI_D00__GPIO_0_0
107f126890aSEmmanuel Vadot			MX28_PAD_GPMI_D03__GPIO_0_3
108f126890aSEmmanuel Vadot			MX28_PAD_GPMI_D06__GPIO_0_6
109f126890aSEmmanuel Vadot		>;
110f126890aSEmmanuel Vadot		fsl,drive-strength = <MXS_DRIVE_4mA>;
111f126890aSEmmanuel Vadot		fsl,voltage = <MXS_VOLTAGE_HIGH>;
112f126890aSEmmanuel Vadot		fsl,pull-up = <MXS_PULL_DISABLE>;
113f126890aSEmmanuel Vadot	};
114f126890aSEmmanuel Vadot};
115f126890aSEmmanuel Vadot
116f126890aSEmmanuel Vadot&ssp0 {
117f126890aSEmmanuel Vadot	compatible = "fsl,imx28-mmc";
118f126890aSEmmanuel Vadot	pinctrl-names = "default";
119f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc0_4bit_pins_a>;
120f126890aSEmmanuel Vadot	bus-width = <4>;
121f126890aSEmmanuel Vadot	status = "okay";
122f126890aSEmmanuel Vadot};
123f126890aSEmmanuel Vadot
124f126890aSEmmanuel Vadot&ssp2 {
125f126890aSEmmanuel Vadot	#address-cells = <1>;
126f126890aSEmmanuel Vadot	#size-cells = <0>;
127f126890aSEmmanuel Vadot	compatible = "fsl,imx28-spi";
128f126890aSEmmanuel Vadot	pinctrl-names = "default";
129f126890aSEmmanuel Vadot	pinctrl-0 = <&spi2_pins_a>;
130f126890aSEmmanuel Vadot	status = "okay";
131f126890aSEmmanuel Vadot
132f126890aSEmmanuel Vadot	flash: flash@0 {
133f126890aSEmmanuel Vadot		#address-cells = <1>;
134f126890aSEmmanuel Vadot		#size-cells = <1>;
135f126890aSEmmanuel Vadot		compatible = "everspin,mr25h256", "mr25h256";
136f126890aSEmmanuel Vadot		spi-max-frequency = <40000000>;
137f126890aSEmmanuel Vadot		reg = <0>;
138f126890aSEmmanuel Vadot	};
139f126890aSEmmanuel Vadot};
140f126890aSEmmanuel Vadot
141f126890aSEmmanuel Vadot&usb0 {
142f126890aSEmmanuel Vadot	vbus-supply = <&reg_usb0_vbus>;
143f126890aSEmmanuel Vadot	pinctrl-names = "default";
144f126890aSEmmanuel Vadot	pinctrl-0 = <&usb0_pins_b>;
145f126890aSEmmanuel Vadot	status = "okay";
146f126890aSEmmanuel Vadot};
147f126890aSEmmanuel Vadot
148f126890aSEmmanuel Vadot&usbphy0 {
149f126890aSEmmanuel Vadot	status = "okay";
150f126890aSEmmanuel Vadot};
151