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

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
...@@ -14,31 +14,6 @@ memory@40000000 { ...@@ -14,31 +14,6 @@ memory@40000000 {
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
apb@80000000 {
apbh@80000000 {
nand-controller@8000c000 {
#address-cells = <1>;
#size-cells = <1>;
pinctrl-names = "default";
pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>;
status = "okay";
};
};
apbx@80040000 {
i2c0: i2c@80058000 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>;
status = "okay";
rtc: rtc@68 {
compatible = "st,m41t62";
reg = <0x68>;
};
};
};
};
regulators { regulators {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
...@@ -54,3 +29,22 @@ reg_3p3v: regulator@0 { ...@@ -54,3 +29,22 @@ reg_3p3v: regulator@0 {
}; };
}; };
}; };
&gpmi {
#address-cells = <1>;
#size-cells = <1>;
pinctrl-names = "default";
pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>;
status = "okay";
};
&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>;
status = "okay";
rtc: rtc@68 {
compatible = "st,m41t62";
reg = <0x68>;
};
};
...@@ -15,9 +15,94 @@ memory@40000000 { ...@@ -15,9 +15,94 @@ memory@40000000 {
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
apb@80000000 { backlight {
apbh@80000000 { compatible = "pwm-backlight";
nand-controller@8000c000 { 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>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
pinctrl-names = "default"; pinctrl-names = "default";
...@@ -34,31 +119,61 @@ partition@1 { ...@@ -34,31 +119,61 @@ partition@1 {
label = "gpmi-nfc-general-use"; label = "gpmi-nfc-general-use";
reg = <0x01400000 0x0ec00000>; reg = <0x01400000 0x0ec00000>;
}; };
}; };
ssp0: spi@80010000 { &lcdif {
compatible = "fsl,imx28-mmc";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mmc0_4bit_pins_a pinctrl-0 = <&lcdif_24bit_pins_a
&mmc0_cd_cfg &lcdif_pins_m28>;
&mmc0_sck_cfg>; display = <&display0>;
bus-width = <4>;
vmmc-supply = <&reg_vddio_sd0>;
status = "okay"; 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 { &mac0 {
compatible = "fsl,imx28-mmc"; phy-mode = "rmii";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mmc2_4bit_pins_a pinctrl-0 = <&mac0_pins_a>;
&mmc2_cd_cfg phy-reset-gpios = <&gpio4 13 GPIO_ACTIVE_LOW>;
&mmc2_sck_cfg_a>; phy-reset-duration = <100>;
bus-width = <4>;
vmmc-supply = <&reg_vddio_sd1>;
status = "okay"; status = "okay";
}; };
&mac1 {
phy-mode = "rmii";
pinctrl-names = "default";
pinctrl-0 = <&mac1_pins_a>;
status = "okay";
};
pinctrl@80018000 { &ocotp {
status = "okay";
};
&pinctrl {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&hog_pins_a>; pinctrl-0 = <&hog_pins_a>;
...@@ -100,167 +215,44 @@ MX28_PAD_SSP3_SCK__GPIO_2_24 ...@@ -100,167 +215,44 @@ MX28_PAD_SSP3_SCK__GPIO_2_24
fsl,voltage = <MXS_VOLTAGE_HIGH>; fsl,voltage = <MXS_VOLTAGE_HIGH>;
fsl,pull-up = <MXS_PULL_DISABLE>; fsl,pull-up = <MXS_PULL_DISABLE>;
}; };
}; };
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-names = "default";
pinctrl-0 = <&auart0_2pins_a>; pinctrl-0 = <&pwm3_pins_a>;
status = "okay"; status = "okay";
}; };
auart3: serial@80070000 { &ssp0 {
compatible = "fsl,imx28-mmc";
pinctrl-names = "default"; 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"; status = "okay";
}; };
pwm: pwm@80064000 { &ssp2 {
compatible = "fsl,imx28-mmc";
pinctrl-names = "default"; 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"; status = "okay";
}; };
};
};
ahb@80080000 { &usb1 {
usb1: usb@80090000 {
vbus-supply = <&reg_usb1_vbus>; vbus-supply = <&reg_usb1_vbus>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&usb1_pins_a>; pinctrl-0 = <&usb1_pins_a>;
disable-over-current; disable-over-current;
status = "okay"; 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 { &usbphy1 {
phy-mode = "rmii";
pinctrl-names = "default";
pinctrl-0 = <&mac1_pins_a>;
status = "okay"; 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;
};
};
}; };
...@@ -11,68 +11,93 @@ / { ...@@ -11,68 +11,93 @@ / {
model = "Aries/DENX M28EVK"; model = "Aries/DENX M28EVK";
compatible = "aries,m28evk", "denx,m28evk", "fsl,imx28"; compatible = "aries,m28evk", "denx,m28evk", "fsl,imx28";
apb@80000000 { backlight {
apbh@80000000 { compatible = "pwm-backlight";
ssp0: spi@80010000 { pwms = <&pwm 4 5000000>;
compatible = "fsl,imx28-mmc"; 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-names = "default";
pinctrl-0 = <&mmc0_8bit_pins_a pinctrl-0 = <&auart0_pins_a>;
&mmc0_cd_cfg
&mmc0_sck_cfg>;
bus-width = <8>;
wp-gpios = <&gpio3 10 0>;
vmmc-supply = <&reg_vddio_sd0>;
status = "okay"; status = "okay";
}; };
ssp2: spi@80014000 { &auart1 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx28-spi";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&spi2_pins_a>; pinctrl-0 = <&auart1_pins_a>;
status = "okay"; status = "okay";
};
flash: flash@0 { &auart2 {
#address-cells = <1>; pinctrl-names = "default";
#size-cells = <1>; pinctrl-0 = <&auart2_2pins_b>;
compatible = "m25p80", "jedec,spi-nor"; status = "okay";
spi-max-frequency = <40000000>; };
reg = <0>;
};
};
pinctrl@80018000 { &duart {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&hog_pins_a>; pinctrl-0 = <&duart_pins_a>;
status = "okay";
};
hog_pins_a: hog@0 { &i2c0 {
reg = <0>; sgtl5000: codec@a {
fsl,pinmux-ids = < compatible = "fsl,sgtl5000";
MX28_PAD_PWM3__GPIO_3_28 reg = <0x0a>;
MX28_PAD_AUART2_CTS__GPIO_3_10 #sound-dai-cells = <0>;
MX28_PAD_AUART2_RTS__GPIO_3_11 VDDA-supply = <&reg_3p3v>;
MX28_PAD_AUART3_RX__GPIO_3_12 VDDIO-supply = <&reg_3p3v>;
MX28_PAD_AUART3_TX__GPIO_3_13 clocks = <&saif0>;
>;
fsl,drive-strength = <MXS_DRIVE_4mA>;
fsl,voltage = <MXS_VOLTAGE_HIGH>;
fsl,pull-up = <MXS_PULL_DISABLE>;
}; };
lcdif_pins_m28: lcdif-m28@0 { eeprom: eeprom@51 {
reg = <0>; compatible = "atmel,24c128";
fsl,pinmux-ids = < reg = <0x51>;
MX28_PAD_LCD_DOTCLK__LCD_DOTCLK pagesize = <32>;
MX28_PAD_LCD_ENABLE__LCD_ENABLE
>;
fsl,drive-strength = <MXS_DRIVE_4mA>;
fsl,voltage = <MXS_VOLTAGE_HIGH>;
fsl,pull-up = <MXS_PULL_DISABLE>;
};
}; };
};
lcdif@80030000 { &lcdif {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&lcdif_24bit_pins_a pinctrl-0 = <&lcdif_24bit_pins_a
&lcdif_pins_m28>; &lcdif_pins_m28>;
...@@ -102,170 +127,137 @@ timing0: timing0 { ...@@ -102,170 +127,137 @@ timing0: timing0 {
}; };
}; };
}; };
}; };
can0: can@80032000 { &lradc {
status = "okay";
fsl,lradc-touchscreen-wires = <4>;
};
&can0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&can0_pins_a>; pinctrl-0 = <&can0_pins_a>;
status = "okay"; status = "okay";
}; };
can1: can@80034000 { &can1 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&can1_pins_a>; pinctrl-0 = <&can1_pins_a>;
status = "okay"; status = "okay";
}; };
};
apbx@80040000 { &mac0 {
saif0: saif@80042000 { phy-mode = "rmii";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&saif0_pins_a>; pinctrl-0 = <&mac0_pins_a>;
clocks = <&clks 57>, <&clks 57>;
clock-names = "ipg", "ahb";
status = "okay"; status = "okay";
}; };
saif1: saif@80046000 { &mac1 {
phy-mode = "rmii";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&saif1_pins_a>; pinctrl-0 = <&mac1_pins_a>;
fsl,saif-master = <&saif0>;
status = "okay"; status = "okay";
}; };
i2c0: i2c@80058000 { &pinctrl {
sgtl5000: codec@a { pinctrl-names = "default";
compatible = "fsl,sgtl5000"; pinctrl-0 = <&hog_pins_a>;
reg = <0x0a>;
#sound-dai-cells = <0>;
VDDA-supply = <&reg_3p3v>;
VDDIO-supply = <&reg_3p3v>;
clocks = <&saif0>;
};
eeprom: eeprom@51 { hog_pins_a: hog@0 {
compatible = "atmel,24c128"; reg = <0>;
reg = <0x51>; fsl,pinmux-ids = <
pagesize = <32>; 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>;
}; };
lradc@80050000 { lcdif_pins_m28: lcdif-m28@0 {
status = "okay"; reg = <0>;
fsl,lradc-touchscreen-wires = <4>; 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>;
}; };
};
duart: serial@80074000 { &pwm {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&duart_pins_a>; pinctrl-0 = <&pwm4_pins_a>;
status = "okay";
};
usbphy0: usbphy@8007c000 {
status = "okay";
};
usbphy1: usbphy@8007e000 {
status = "okay"; status = "okay";
}; };
auart0: serial@8006a000 { &saif0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&auart0_pins_a>; pinctrl-0 = <&saif0_pins_a>;
status = "okay"; status = "okay";
}; };
auart1: serial@8006c000 { &saif1 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&auart1_pins_a>; pinctrl-0 = <&saif1_pins_a>;
fsl,saif-master = <&saif0>;
status = "okay"; status = "okay";
}; };
auart2: serial@8006e000 { &ssp0 {
compatible = "fsl,imx28-mmc";
pinctrl-names = "default"; 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"; status = "okay";
}; };
pwm: pwm@80064000 { &ssp2 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx28-spi";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwm4_pins_a>; pinctrl-0 = <&spi2_pins_a>;
status = "okay"; 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 {
usb0: usb@80080000 {
vbus-supply = <&reg_usb0_vbus>; vbus-supply = <&reg_usb0_vbus>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&usb0_pins_a>; pinctrl-0 = <&usb0_pins_a>;
status = "okay"; status = "okay";
}; };
usb1: usb@80090000 { &usb1 {
vbus-supply = <&reg_usb1_vbus>; vbus-supply = <&reg_usb1_vbus>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&usb1_pins_a>; pinctrl-0 = <&usb1_pins_a>;
status = "okay"; status = "okay";
}; };
mac0: ethernet@800f0000 { &usbphy0 {
phy-mode = "rmii";
pinctrl-names = "default";
pinctrl-0 = <&mac0_pins_a>;
clocks = <&clks 57>, <&clks 57>;
clock-names = "ipg", "ahb";
status = "okay"; status = "okay";
}; };
mac1: ethernet@800f4000 { &usbphy1 {
phy-mode = "rmii";
pinctrl-names = "default";
pinctrl-0 = <&mac1_pins_a>;
status = "okay"; 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>;
};
}; };
...@@ -15,54 +15,64 @@ memory@40000000 { ...@@ -15,54 +15,64 @@ memory@40000000 {
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
apb@80000000 { regulators {
apbh@80000000 { compatible = "simple-bus";
pinctrl@80018000 { #address-cells = <1>;
pinctrl-names = "default"; #size-cells = <0>;
pinctrl-0 = <&hog_pins_a>;
hog_pins_a: hog-gpios@0 { reg_usb0_vbus: regulator@0 {
compatible = "regulator-fixed";
reg = <0>; reg = <0>;
fsl,pinmux-ids = < regulator-name = "usb0_vbus";
MX28_PAD_GPMI_D00__GPIO_0_0 regulator-min-microvolt = <5000000>;
MX28_PAD_GPMI_D03__GPIO_0_3 regulator-max-microvolt = <5000000>;
MX28_PAD_GPMI_D06__GPIO_0_6 gpio = <&gpio3 9 0>;
>;
fsl,drive-strength = <MXS_DRIVE_4mA>;
fsl,voltage = <MXS_VOLTAGE_HIGH>;
fsl,pull-up = <MXS_PULL_DISABLE>;
};
}; };
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>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
compatible = "fsl,imx28-spi"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&spi2_pins_a>;
status = "okay"; status = "okay";
flash: flash@0 { led@1 {
#address-cells = <1>; label = "sps1-1:yellow:user";
#size-cells = <1>; gpios = <&gpio0 6 0>;
compatible = "everspin,mr25h256", "mr25h256"; linux,default-trigger = "heartbeat";
spi-max-frequency = <40000000>;
reg = <0>; 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>;
}; };
}; };
};
&auart0 {
pinctrl-names = "default";
pinctrl-0 = <&auart0_pins_a>;
status = "okay";
};
&duart {
pinctrl-names = "default";
pinctrl-0 = <&duart_pins_a>;
status = "okay";
};
apbx@80040000 { &i2c0 {
i2c0: i2c@80058000 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>; pinctrl-0 = <&i2c0_pins_a>;
status = "okay"; status = "okay";
...@@ -77,90 +87,71 @@ eeprom: eeprom@52 { ...@@ -77,90 +87,71 @@ eeprom: eeprom@52 {
reg = <0x52>; reg = <0x52>;
pagesize = <32>; pagesize = <32>;
}; };
}; };
duart: serial@80074000 {
pinctrl-names = "default";
pinctrl-0 = <&duart_pins_a>;
status = "okay";
};
usbphy0: usbphy@8007c000 {
status = "okay";
};
auart0: serial@8006a000 {
pinctrl-names = "default";
pinctrl-0 = <&auart0_pins_a>;
status = "okay";
};
};
};
ahb@80080000 {
usb0: usb@80080000 {
vbus-supply = <&reg_usb0_vbus>;
pinctrl-names = "default";
pinctrl-0 = <&usb0_pins_b>;
status = "okay";
};
mac0: ethernet@800f0000 { &mac0 {
phy-mode = "rmii"; phy-mode = "rmii";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mac0_pins_a>; pinctrl-0 = <&mac0_pins_a>;
status = "okay"; status = "okay";
}; };
mac1: ethernet@800f4000 { &mac1 {
phy-mode = "rmii"; phy-mode = "rmii";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mac1_pins_a>; pinctrl-0 = <&mac1_pins_a>;
status = "okay"; status = "okay";
}; };
};
regulators { &pinctrl {
compatible = "simple-bus"; pinctrl-names = "default";
#address-cells = <1>; pinctrl-0 = <&hog_pins_a>;
#size-cells = <0>;
reg_usb0_vbus: regulator@0 { hog_pins_a: hog-gpios@0 {
compatible = "regulator-fixed";
reg = <0>; reg = <0>;
regulator-name = "usb0_vbus"; fsl,pinmux-ids = <
regulator-min-microvolt = <5000000>; MX28_PAD_GPMI_D00__GPIO_0_0
regulator-max-microvolt = <5000000>; MX28_PAD_GPMI_D03__GPIO_0_3
gpio = <&gpio3 9 0>; 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>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
compatible = "gpio-leds"; compatible = "fsl,imx28-spi";
pinctrl-names = "default";
pinctrl-0 = <&spi2_pins_a>;
status = "okay"; status = "okay";
led@1 { flash: flash@0 {
label = "sps1-1:yellow:user"; #address-cells = <1>;
gpios = <&gpio0 6 0>; #size-cells = <1>;
linux,default-trigger = "heartbeat"; compatible = "everspin,mr25h256", "mr25h256";
spi-max-frequency = <40000000>;
reg = <0>; reg = <0>;
}; };
};
led@2 { &usb0 {
label = "sps1-2:red:user"; vbus-supply = <&reg_usb0_vbus>;
gpios = <&gpio0 3 0>; pinctrl-names = "default";
linux,default-trigger = "heartbeat"; pinctrl-0 = <&usb0_pins_b>;
reg = <1>; status = "okay";
}; };
led@3 {
label = "sps1-3:red:user";
gpios = <&gpio0 0 0>;
default-trigger = "heartbeat";
reg = <2>;
};
}; &usbphy0 {
status = "okay";
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment