Commit 8d59bf15 authored by Stefan Wahren's avatar Stefan Wahren Committed by Shawn Guo

ARM: dts: imx28-ts4600: Convert to use label references

This Technologic board file 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 order to make it easier
to maintain.
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 89b83148
...@@ -18,22 +18,24 @@ memory@40000000 { ...@@ -18,22 +18,24 @@ memory@40000000 {
reg = <0x40000000 0x10000000>; /* 256MB */ reg = <0x40000000 0x10000000>; /* 256MB */
}; };
apb@80000000 { reg_vddio_sd0: regulator-vddio-sd0 {
apbh@80000000 { compatible = "regulator-fixed";
ssp0: spi@80010000 { regulator-name = "vddio-sd0";
compatible = "fsl,imx28-mmc"; regulator-min-microvolt = <3300000>;
pinctrl-names = "default"; regulator-max-microvolt = <3300000>;
pinctrl-0 = <&mmc0_4bit_pins_a regulator-boot-on;
&mmc0_sck_cfg gpio = <&gpio3 28 GPIO_ACTIVE_LOW>;
&en_sd_pwr>;
broken-cd;
bus-width = <4>;
vmmc-supply = <&reg_vddio_sd0>;
status = "okay";
}; };
pinctrl@80018000 { };
&duart {
pinctrl-names = "default";
pinctrl-0 = <&duart_pins_a>;
status = "okay";
};
&pinctrl {
en_sd_pwr: en-sd-pwr@0 { en_sd_pwr: en-sd-pwr@0 {
reg = <0>; reg = <0>;
fsl,pinmux-ids = < fsl,pinmux-ids = <
...@@ -43,32 +45,22 @@ MX28_PAD_PWM3__GPIO_3_28 ...@@ -43,32 +45,22 @@ MX28_PAD_PWM3__GPIO_3_28
fsl,voltage = <MXS_VOLTAGE_HIGH>; fsl,voltage = <MXS_VOLTAGE_HIGH>;
fsl,pull-up = <MXS_PULL_DISABLE>; fsl,pull-up = <MXS_PULL_DISABLE>;
}; };
};
}; &pwm {
};
apbx@80040000 {
pwm: pwm@80064000 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwm2_pins_a>; pinctrl-0 = <&pwm2_pins_a>;
status = "okay"; status = "okay";
}; };
duart: serial@80074000 { &ssp0 {
compatible = "fsl,imx28-mmc";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&duart_pins_a>; pinctrl-0 = <&mmc0_4bit_pins_a
&mmc0_sck_cfg
&en_sd_pwr>;
broken-cd;
bus-width = <4>;
vmmc-supply = <&reg_vddio_sd0>;
status = "okay"; status = "okay";
};
};
};
reg_vddio_sd0: regulator-vddio-sd0 {
compatible = "regulator-fixed";
regulator-name = "vddio-sd0";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
gpio = <&gpio3 28 GPIO_ACTIVE_LOW>;
};
}; };
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