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