Commit 0bde5d3f authored by Stefan Wahren's avatar Stefan Wahren Committed by Shawn Guo
Browse files

ARM: dts: imx28-m28/sps1: Convert to use label references



These board files still use node name and unit address to
reference parts from the imx28.dtsi . This causes a lot of
redundancy. So use label references in orer to make it
easier to maintain.

Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Wolfgang Grandegger <wg@aries-embedded.de>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 75a21ed9
Loading
Loading
Loading
Loading
+19 −25
Original line number Diff line number Diff line
@@ -14,19 +14,31 @@ memory@40000000 {
		reg = <0x40000000 0x08000000>;
	};

	apb@80000000 {
		apbh@80000000 {
			nand-controller@8000c000 {
	regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		reg_3p3v: regulator@0 {
			compatible = "regulator-fixed";
			reg = <0>;
			regulator-name = "3P3V";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};
	};
};

&gpmi {
	#address-cells = <1>;
	#size-cells = <1>;
	pinctrl-names = "default";
	pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>;
	status = "okay";
};
		};

		apbx@80040000 {
			i2c0: i2c@80058000 {
&i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c0_pins_a>;
	status = "okay";
@@ -36,21 +48,3 @@ rtc: rtc@68 {
		reg = <0x68>;
	};
};
		};
	};

	regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		reg_3p3v: regulator@0 {
			compatible = "regulator-fixed";
			reg = <0>;
			regulator-name = "3P3V";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};
	};
};
+173 −181
Original line number Diff line number Diff line
@@ -15,9 +15,94 @@ memory@40000000 {
		reg = <0x40000000 0x08000000>;
	};

	apb@80000000 {
		apbh@80000000 {
			nand-controller@8000c000 {
	backlight {
		compatible = "pwm-backlight";
		pwms = <&pwm 3 5000000>;
		brightness-levels = <0 4 8 16 32 64 128 255>;
		default-brightness-level = <6>;
	};

	leds {
		compatible = "gpio-leds";
		pinctrl-names = "default";
		pinctrl-0 = <&led_pins_gpio>;

		user1 {
			label = "sd0-led";
			gpios = <&gpio2 26 0>;
			linux,default-trigger = "mmc0";
		};

		user2 {
			label = "sd1-led";
			gpios = <&gpio2 24 0>;
			linux,default-trigger = "mmc2";
		};
	};

	regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		reg_3p3v: regulator@0 {
			compatible = "regulator-fixed";
			reg = <0>;
			regulator-name = "3P3V";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};

		reg_vddio_sd0: regulator@1 {
			compatible = "regulator-fixed";
			reg = <1>;
			regulator-name = "vddio-sd0";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			gpio = <&gpio3 29 0>;
		};

		reg_vddio_sd1: regulator@2 {
			compatible = "regulator-fixed";
			reg = <2>;
			regulator-name = "vddio-sd1";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			gpio = <&gpio2 19 0>;
		};

		reg_usb1_vbus: regulator@3 {
			compatible = "regulator-fixed";
			reg = <3>;
			regulator-name = "usb1_vbus";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			gpio = <&gpio3 8 0>;
			enable-active-high;
		};
	};
};

&auart0 {
	pinctrl-names = "default";
	pinctrl-0 = <&auart0_2pins_a>;
	status = "okay";
};

&auart3 {
	pinctrl-names = "default";
	pinctrl-0 = <&auart3_2pins_b>;
	status = "okay";
};

&duart {
	pinctrl-names = "default";
	pinctrl-0 = <&duart_pins_b>;
	status = "okay";
};

&gpmi {
	#address-cells = <1>;
	#size-cells = <1>;
	pinctrl-names = "default";
@@ -36,29 +121,59 @@ partition@1 {
	};
};

			ssp0: spi@80010000 {
				compatible = "fsl,imx28-mmc";
&lcdif {
	pinctrl-names = "default";
				pinctrl-0 = <&mmc0_4bit_pins_a
					     &mmc0_cd_cfg
					     &mmc0_sck_cfg>;
				bus-width = <4>;
				vmmc-supply = <&reg_vddio_sd0>;
	pinctrl-0 = <&lcdif_24bit_pins_a
		     &lcdif_pins_m28>;
	display = <&display0>;
	status = "okay";

	display0: display0 {
		bits-per-pixel = <32>;
		bus-width = <24>;

		display-timings {
			native-mode = <&timing0>;
			timing0: timing0 {
				clock-frequency = <6410256>;
				hactive = <320>;
				vactive = <240>;
				hback-porch = <38>;
				hfront-porch = <20>;
				vback-porch = <15>;
				vfront-porch = <5>;
				hsync-len = <30>;
				vsync-len = <3>;
				hsync-active = <0>;
				vsync-active = <0>;
				de-active = <1>;
				pixelclk-active = <1>;
			};
		};
	};
};

			ssp2: spi@80014000 {
				compatible = "fsl,imx28-mmc";
&mac0 {
	phy-mode = "rmii";
	pinctrl-names = "default";
				pinctrl-0 = <&mmc2_4bit_pins_a
					     &mmc2_cd_cfg
					     &mmc2_sck_cfg_a>;
				bus-width = <4>;
				vmmc-supply = <&reg_vddio_sd1>;
	pinctrl-0 = <&mac0_pins_a>;
	phy-reset-gpios = <&gpio4 13 GPIO_ACTIVE_LOW>;
	phy-reset-duration = <100>;
	status = "okay";
};

			pinctrl@80018000 {
&mac1 {
	phy-mode = "rmii";
	pinctrl-names = "default";
	pinctrl-0 = <&mac1_pins_a>;
	status = "okay";
};

&ocotp {
	status = "okay";
};

&pinctrl {
	pinctrl-names = "default";
	pinctrl-0 = <&hog_pins_a>;

@@ -102,76 +217,35 @@ MX28_PAD_SSP3_SCK__GPIO_2_24
	};
};

			ocotp@8002c000 {
				status = "okay";
			};

			lcdif@80030000 {
				pinctrl-names = "default";
				pinctrl-0 = <&lcdif_24bit_pins_a
					     &lcdif_pins_m28>;
				display = <&display0>;
				status = "okay";

				display0: display0 {
					bits-per-pixel = <32>;
					bus-width = <24>;

					display-timings {
						native-mode = <&timing0>;
						timing0: timing0 {
							clock-frequency = <6410256>;
							hactive = <320>;
							vactive = <240>;
							hback-porch = <38>;
							hfront-porch = <20>;
							vback-porch = <15>;
							vfront-porch = <5>;
							hsync-len = <30>;
							vsync-len = <3>;
							hsync-active = <0>;
							vsync-active = <0>;
							de-active = <1>;
							pixelclk-active = <1>;
						};
					};
				};
			};
		};

		apbx@80040000 {
			duart: serial@80074000 {
				pinctrl-names = "default";
				pinctrl-0 = <&duart_pins_b>;
				status = "okay";
			};

			usbphy1: usbphy@8007e000 {
				status = "okay";
			};

			auart0: serial@8006a000 {
&pwm {
	pinctrl-names = "default";
				pinctrl-0 = <&auart0_2pins_a>;
	pinctrl-0 = <&pwm3_pins_a>;
	status = "okay";
};

			auart3: serial@80070000 {
&ssp0 {
	compatible = "fsl,imx28-mmc";
	pinctrl-names = "default";
				pinctrl-0 = <&auart3_2pins_b>;
	pinctrl-0 = <&mmc0_4bit_pins_a
		     &mmc0_cd_cfg
		     &mmc0_sck_cfg>;
	bus-width = <4>;
	vmmc-supply = <&reg_vddio_sd0>;
	status = "okay";
};

			pwm: pwm@80064000 {
&ssp2 {
	compatible = "fsl,imx28-mmc";
	pinctrl-names = "default";
				pinctrl-0 = <&pwm3_pins_a>;
	pinctrl-0 = <&mmc2_4bit_pins_a
		     &mmc2_cd_cfg
		     &mmc2_sck_cfg_a>;
	bus-width = <4>;
	vmmc-supply = <&reg_vddio_sd1>;
	status = "okay";
};
		};
	};

	ahb@80080000 {
		usb1: usb@80090000 {
&usb1 {
	vbus-supply = <&reg_usb1_vbus>;
	pinctrl-names = "default";
	pinctrl-0 = <&usb1_pins_a>;
@@ -179,88 +253,6 @@ usb1: usb@80090000 {
	status = "okay";
};

		mac0: ethernet@800f0000 {
			phy-mode = "rmii";
			pinctrl-names = "default";
			pinctrl-0 = <&mac0_pins_a>;
			phy-reset-gpios = <&gpio4 13 GPIO_ACTIVE_LOW>;
			phy-reset-duration = <100>;
			status = "okay";
		};

		mac1: ethernet@800f4000 {
			phy-mode = "rmii";
			pinctrl-names = "default";
			pinctrl-0 = <&mac1_pins_a>;
&usbphy1 {
	status = "okay";
};
	};

	backlight {
		compatible = "pwm-backlight";
		pwms = <&pwm 3 5000000>;
		brightness-levels = <0 4 8 16 32 64 128 255>;
		default-brightness-level = <6>;
	};

	leds {
		compatible = "gpio-leds";
		pinctrl-names = "default";
		pinctrl-0 = <&led_pins_gpio>;

		user1 {
			label = "sd0-led";
			gpios = <&gpio2 26 0>;
			linux,default-trigger = "mmc0";
		};

		user2 {
			label = "sd1-led";
			gpios = <&gpio2 24 0>;
			linux,default-trigger = "mmc2";
		};
	};

	regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		reg_3p3v: regulator@0 {
			compatible = "regulator-fixed";
			reg = <0>;
			regulator-name = "3P3V";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};

		reg_vddio_sd0: regulator@1 {
			compatible = "regulator-fixed";
			reg = <1>;
			regulator-name = "vddio-sd0";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			gpio = <&gpio3 29 0>;
		};

		reg_vddio_sd1: regulator@2 {
			compatible = "regulator-fixed";
			reg = <2>;
			regulator-name = "vddio-sd1";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			gpio = <&gpio2 19 0>;
		};

		reg_usb1_vbus: regulator@3 {
			compatible = "regulator-fixed";
			reg = <3>;
			regulator-name = "usb1_vbus";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			gpio = <&gpio3 8 0>;
			enable-active-high;
		};
	};
};
+206 −214
Original line number Diff line number Diff line
@@ -11,68 +11,93 @@ / {
	model = "Aries/DENX M28EVK";
	compatible = "aries,m28evk", "denx,m28evk", "fsl,imx28";

	apb@80000000 {
		apbh@80000000 {
			ssp0: spi@80010000 {
				compatible = "fsl,imx28-mmc";
	backlight {
		compatible = "pwm-backlight";
		pwms = <&pwm 4 5000000>;
		brightness-levels = <0 4 8 16 32 64 128 255>;
		default-brightness-level = <6>;
	};

	regulators {
		reg_vddio_sd0: regulator@1 {
			compatible = "regulator-fixed";
			reg = <1>;
			regulator-name = "vddio-sd0";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			gpio = <&gpio3 28 0>;
		};

		reg_usb0_vbus: regulator@2 {
			compatible = "regulator-fixed";
			reg = <2>;
			regulator-name = "usb0_vbus";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			gpio = <&gpio3 12 0>;
		};

		reg_usb1_vbus: regulator@3 {
			compatible = "regulator-fixed";
			reg = <3>;
			regulator-name = "usb1_vbus";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			gpio = <&gpio3 13 0>;
		};
	};

	sound {
		compatible = "denx,m28evk-sgtl5000",
			     "fsl,mxs-audio-sgtl5000";
		model = "m28evk-sgtl5000";
		saif-controllers = <&saif0 &saif1>;
		audio-codec = <&sgtl5000>;
	};
};

&auart0 {
	pinctrl-names = "default";
				pinctrl-0 = <&mmc0_8bit_pins_a
					     &mmc0_cd_cfg
					     &mmc0_sck_cfg>;
				bus-width = <8>;
				wp-gpios = <&gpio3 10 0>;
				vmmc-supply = <&reg_vddio_sd0>;
	pinctrl-0 = <&auart0_pins_a>;
	status = "okay";
};

			ssp2: spi@80014000 {
				#address-cells = <1>;
				#size-cells = <0>;
				compatible = "fsl,imx28-spi";
&auart1 {
	pinctrl-names = "default";
				pinctrl-0 = <&spi2_pins_a>;
	pinctrl-0 = <&auart1_pins_a>;
	status = "okay";

				flash: flash@0 {
					#address-cells = <1>;
					#size-cells = <1>;
					compatible = "m25p80", "jedec,spi-nor";
					spi-max-frequency = <40000000>;
					reg = <0>;
};

&auart2 {
	pinctrl-names = "default";
	pinctrl-0 = <&auart2_2pins_b>;
	status = "okay";
};

			pinctrl@80018000 {
&duart {
	pinctrl-names = "default";
				pinctrl-0 = <&hog_pins_a>;
	pinctrl-0 = <&duart_pins_a>;
	status = "okay";
};

				hog_pins_a: hog@0 {
					reg = <0>;
					fsl,pinmux-ids = <
						MX28_PAD_PWM3__GPIO_3_28
						MX28_PAD_AUART2_CTS__GPIO_3_10
						MX28_PAD_AUART2_RTS__GPIO_3_11
						MX28_PAD_AUART3_RX__GPIO_3_12
						MX28_PAD_AUART3_TX__GPIO_3_13
					>;
					fsl,drive-strength = <MXS_DRIVE_4mA>;
					fsl,voltage = <MXS_VOLTAGE_HIGH>;
					fsl,pull-up = <MXS_PULL_DISABLE>;
&i2c0 {
	sgtl5000: codec@a {
		compatible = "fsl,sgtl5000";
		reg = <0x0a>;
		#sound-dai-cells = <0>;
		VDDA-supply = <&reg_3p3v>;
		VDDIO-supply = <&reg_3p3v>;
		clocks = <&saif0>;
	};

				lcdif_pins_m28: lcdif-m28@0 {
					reg = <0>;
					fsl,pinmux-ids = <
						MX28_PAD_LCD_DOTCLK__LCD_DOTCLK
						MX28_PAD_LCD_ENABLE__LCD_ENABLE
					>;
					fsl,drive-strength = <MXS_DRIVE_4mA>;
					fsl,voltage = <MXS_VOLTAGE_HIGH>;
					fsl,pull-up = <MXS_PULL_DISABLE>;
	eeprom: eeprom@51 {
		compatible = "atmel,24c128";
		reg = <0x51>;
		pagesize = <32>;
	};
};

			lcdif@80030000 {
&lcdif {
	pinctrl-names = "default";
	pinctrl-0 = <&lcdif_24bit_pins_a
		     &lcdif_pins_m28>;
@@ -104,168 +129,135 @@ timing0: timing0 {
	};
};

			can0: can@80032000 {
&lradc {
	status = "okay";
	fsl,lradc-touchscreen-wires = <4>;
};

&can0 {
	pinctrl-names = "default";
	pinctrl-0 = <&can0_pins_a>;
	status = "okay";
};

			can1: can@80034000 {
&can1 {
	pinctrl-names = "default";
	pinctrl-0 = <&can1_pins_a>;
	status = "okay";
};
		};

		apbx@80040000 {
			saif0: saif@80042000 {
&mac0 {
	phy-mode = "rmii";
	pinctrl-names = "default";
				pinctrl-0 = <&saif0_pins_a>;
	pinctrl-0 = <&mac0_pins_a>;
	clocks = <&clks 57>, <&clks 57>;
	clock-names = "ipg", "ahb";
	status = "okay";
};

			saif1: saif@80046000 {
&mac1 {
	phy-mode = "rmii";
	pinctrl-names = "default";
				pinctrl-0 = <&saif1_pins_a>;
				fsl,saif-master = <&saif0>;
	pinctrl-0 = <&mac1_pins_a>;
	status = "okay";
};

			i2c0: i2c@80058000 {
				sgtl5000: codec@a {
					compatible = "fsl,sgtl5000";
					reg = <0x0a>;
					#sound-dai-cells = <0>;
					VDDA-supply = <&reg_3p3v>;
					VDDIO-supply = <&reg_3p3v>;
					clocks = <&saif0>;
				};

				eeprom: eeprom@51 {
					compatible = "atmel,24c128";
					reg = <0x51>;
					pagesize = <32>;
				};
			};
&pinctrl {
	pinctrl-names = "default";
	pinctrl-0 = <&hog_pins_a>;

			lradc@80050000 {
				status = "okay";
				fsl,lradc-touchscreen-wires = <4>;
	hog_pins_a: hog@0 {
		reg = <0>;
		fsl,pinmux-ids = <
			MX28_PAD_PWM3__GPIO_3_28
			MX28_PAD_AUART2_CTS__GPIO_3_10
			MX28_PAD_AUART2_RTS__GPIO_3_11
			MX28_PAD_AUART3_RX__GPIO_3_12
			MX28_PAD_AUART3_TX__GPIO_3_13
		>;
		fsl,drive-strength = <MXS_DRIVE_4mA>;
		fsl,voltage = <MXS_VOLTAGE_HIGH>;
		fsl,pull-up = <MXS_PULL_DISABLE>;
	};

			duart: serial@80074000 {
				pinctrl-names = "default";
				pinctrl-0 = <&duart_pins_a>;
				status = "okay";
	lcdif_pins_m28: lcdif-m28@0 {
		reg = <0>;
		fsl,pinmux-ids = <
			MX28_PAD_LCD_DOTCLK__LCD_DOTCLK
			MX28_PAD_LCD_ENABLE__LCD_ENABLE
		>;
		fsl,drive-strength = <MXS_DRIVE_4mA>;
		fsl,voltage = <MXS_VOLTAGE_HIGH>;
		fsl,pull-up = <MXS_PULL_DISABLE>;
	};

			usbphy0: usbphy@8007c000 {
				status = "okay";
};

			usbphy1: usbphy@8007e000 {
&pwm {
	pinctrl-names = "default";
	pinctrl-0 = <&pwm4_pins_a>;
	status = "okay";
};

			auart0: serial@8006a000 {
&saif0 {
	pinctrl-names = "default";
				pinctrl-0 = <&auart0_pins_a>;
	pinctrl-0 = <&saif0_pins_a>;
	status = "okay";
};

			auart1: serial@8006c000 {
&saif1 {
	pinctrl-names = "default";
				pinctrl-0 = <&auart1_pins_a>;
	pinctrl-0 = <&saif1_pins_a>;
	fsl,saif-master = <&saif0>;
	status = "okay";
};

			auart2: serial@8006e000 {
&ssp0 {
	compatible = "fsl,imx28-mmc";
	pinctrl-names = "default";
				pinctrl-0 = <&auart2_2pins_b>;
	pinctrl-0 = <&mmc0_8bit_pins_a
		     &mmc0_cd_cfg
		     &mmc0_sck_cfg>;
	bus-width = <8>;
	wp-gpios = <&gpio3 10 0>;
	vmmc-supply = <&reg_vddio_sd0>;
	status = "okay";
};

			pwm: pwm@80064000 {
&ssp2 {
	#address-cells = <1>;
	#size-cells = <0>;
	compatible = "fsl,imx28-spi";
	pinctrl-names = "default";
				pinctrl-0 = <&pwm4_pins_a>;
	pinctrl-0 = <&spi2_pins_a>;
	status = "okay";
			};

	flash: flash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "m25p80", "jedec,spi-nor";
		spi-max-frequency = <40000000>;
		reg = <0>;
	};
};

	ahb@80080000 {
		usb0: usb@80080000 {
&usb0 {
	vbus-supply = <&reg_usb0_vbus>;
	pinctrl-names = "default";
	pinctrl-0 = <&usb0_pins_a>;
	status = "okay";
};

		usb1: usb@80090000 {
&usb1 {
	vbus-supply = <&reg_usb1_vbus>;
	pinctrl-names = "default";
	pinctrl-0 = <&usb1_pins_a>;
	status = "okay";
};

		mac0: ethernet@800f0000 {
			phy-mode = "rmii";
			pinctrl-names = "default";
			pinctrl-0 = <&mac0_pins_a>;
			clocks = <&clks 57>, <&clks 57>;
			clock-names = "ipg", "ahb";
&usbphy0 {
	status = "okay";
};

		mac1: ethernet@800f4000 {
			phy-mode = "rmii";
			pinctrl-names = "default";
			pinctrl-0 = <&mac1_pins_a>;
&usbphy1 {
	status = "okay";
};
	};

	backlight {
		compatible = "pwm-backlight";
		pwms = <&pwm 4 5000000>;
		brightness-levels = <0 4 8 16 32 64 128 255>;
		default-brightness-level = <6>;
	};

	regulators {
		reg_vddio_sd0: regulator@1 {
			compatible = "regulator-fixed";
			reg = <1>;
			regulator-name = "vddio-sd0";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			gpio = <&gpio3 28 0>;
		};

		reg_usb0_vbus: regulator@2 {
			compatible = "regulator-fixed";
			reg = <2>;
			regulator-name = "usb0_vbus";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			gpio = <&gpio3 12 0>;
		};

		reg_usb1_vbus: regulator@3 {
			compatible = "regulator-fixed";
			reg = <3>;
			regulator-name = "usb1_vbus";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			gpio = <&gpio3 13 0>;
		};
	};

	sound {
		compatible = "denx,m28evk-sgtl5000",
			     "fsl,mxs-audio-sgtl5000";
		model = "m28evk-sgtl5000";
		saif-controllers = <&saif0 &saif1>;
		audio-codec = <&sgtl5000>;
	};
};
+96 −105
Original line number Diff line number Diff line
@@ -15,152 +15,143 @@ memory@40000000 {
		reg = <0x40000000 0x08000000>;
	};

	apb@80000000 {
		apbh@80000000 {
			pinctrl@80018000 {
				pinctrl-names = "default";
				pinctrl-0 = <&hog_pins_a>;
	regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

				hog_pins_a: hog-gpios@0 {
		reg_usb0_vbus: regulator@0 {
			compatible = "regulator-fixed";
			reg = <0>;
					fsl,pinmux-ids = <
						MX28_PAD_GPMI_D00__GPIO_0_0
						MX28_PAD_GPMI_D03__GPIO_0_3
						MX28_PAD_GPMI_D06__GPIO_0_6
					>;
					fsl,drive-strength = <MXS_DRIVE_4mA>;
					fsl,voltage = <MXS_VOLTAGE_HIGH>;
					fsl,pull-up = <MXS_PULL_DISABLE>;
				};

			regulator-name = "usb0_vbus";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			gpio = <&gpio3 9 0>;
		};

			ssp0: spi@80010000 {
				compatible = "fsl,imx28-mmc";
				pinctrl-names = "default";
				pinctrl-0 = <&mmc0_4bit_pins_a>;
				bus-width = <4>;
				status = "okay";
	};

			ssp2: spi@80014000 {
	leds {
		#address-cells = <1>;
		#size-cells = <0>;
				compatible = "fsl,imx28-spi";
				pinctrl-names = "default";
				pinctrl-0 = <&spi2_pins_a>;
		compatible = "gpio-leds";
		status = "okay";

				flash: flash@0 {
					#address-cells = <1>;
					#size-cells = <1>;
					compatible = "everspin,mr25h256", "mr25h256";
					spi-max-frequency = <40000000>;
		led@1 {
			label = "sps1-1:yellow:user";
			gpios = <&gpio0 6 0>;
			linux,default-trigger = "heartbeat";
			reg = <0>;
		};
			};
		};

		apbx@80040000 {
			i2c0: i2c@80058000 {
				pinctrl-names = "default";
				pinctrl-0 = <&i2c0_pins_a>;
				status = "okay";
		led@2 {
			label = "sps1-2:red:user";
			gpios = <&gpio0 3 0>;
			linux,default-trigger = "heartbeat";
			reg = <1>;
		};

				rtc: rtc@51 {
					compatible = "nxp,pcf8563";
					reg = <0x51>;
		led@3 {
			label = "sps1-3:red:user";
			gpios = <&gpio0 0 0>;
			default-trigger = "heartbeat";
			reg = <2>;
		};

				eeprom: eeprom@52 {
					compatible = "atmel,24c64";
					reg = <0x52>;
					pagesize = <32>;
	};
};

			duart: serial@80074000 {
&auart0 {
	pinctrl-names = "default";
				pinctrl-0 = <&duart_pins_a>;
	pinctrl-0 = <&auart0_pins_a>;
	status = "okay";
};

			usbphy0: usbphy@8007c000 {
&duart {
	pinctrl-names = "default";
	pinctrl-0 = <&duart_pins_a>;
	status = "okay";
};

			auart0: serial@8006a000 {
&i2c0 {
	pinctrl-names = "default";
				pinctrl-0 = <&auart0_pins_a>;
	pinctrl-0 = <&i2c0_pins_a>;
	status = "okay";
			};
		};

	rtc: rtc@51 {
		compatible = "nxp,pcf8563";
		reg = <0x51>;
	};

	ahb@80080000 {
		usb0: usb@80080000 {
			vbus-supply = <&reg_usb0_vbus>;
			pinctrl-names = "default";
			pinctrl-0 = <&usb0_pins_b>;
			status = "okay";
	eeprom: eeprom@52 {
		compatible = "atmel,24c64";
		reg = <0x52>;
		pagesize = <32>;
	};
};

		mac0: ethernet@800f0000 {
&mac0 {
	phy-mode = "rmii";
	pinctrl-names = "default";
	pinctrl-0 = <&mac0_pins_a>;
	status = "okay";
};

		mac1: ethernet@800f4000 {
&mac1 {
	phy-mode = "rmii";
	pinctrl-names = "default";
	pinctrl-0 = <&mac1_pins_a>;
	status = "okay";
};
	};

	regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;
&pinctrl {
	pinctrl-names = "default";
	pinctrl-0 = <&hog_pins_a>;

		reg_usb0_vbus: regulator@0 {
			compatible = "regulator-fixed";
	hog_pins_a: hog-gpios@0 {
		reg = <0>;
			regulator-name = "usb0_vbus";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			gpio = <&gpio3 9 0>;
		fsl,pinmux-ids = <
			MX28_PAD_GPMI_D00__GPIO_0_0
			MX28_PAD_GPMI_D03__GPIO_0_3
			MX28_PAD_GPMI_D06__GPIO_0_6
		>;
		fsl,drive-strength = <MXS_DRIVE_4mA>;
		fsl,voltage = <MXS_VOLTAGE_HIGH>;
		fsl,pull-up = <MXS_PULL_DISABLE>;
	};
};

	leds {
&ssp0 {
	compatible = "fsl,imx28-mmc";
	pinctrl-names = "default";
	pinctrl-0 = <&mmc0_4bit_pins_a>;
	bus-width = <4>;
	status = "okay";
};

&ssp2 {
	#address-cells = <1>;
	#size-cells = <0>;
		compatible = "gpio-leds";
	compatible = "fsl,imx28-spi";
	pinctrl-names = "default";
	pinctrl-0 = <&spi2_pins_a>;
	status = "okay";

		led@1 {
			label = "sps1-1:yellow:user";
			gpios = <&gpio0 6 0>;
			linux,default-trigger = "heartbeat";
	flash: flash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "everspin,mr25h256", "mr25h256";
		spi-max-frequency = <40000000>;
		reg = <0>;
	};

		led@2 {
			label = "sps1-2:red:user";
			gpios = <&gpio0 3 0>;
			linux,default-trigger = "heartbeat";
			reg = <1>;
};

		led@3 {
			label = "sps1-3:red:user";
			gpios = <&gpio0 0 0>;
			default-trigger = "heartbeat";
			reg = <2>;
&usb0 {
	vbus-supply = <&reg_usb0_vbus>;
	pinctrl-names = "default";
	pinctrl-0 = <&usb0_pins_b>;
	status = "okay";
};

	};
&usbphy0 {
	status = "okay";
};