Skip to content

Commit

Permalink
ARM: dts: imx28-m28/sps1: Convert to use label references
Browse files Browse the repository at this point in the history
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: Stefan Wahren <stefan.wahren@i2se.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Wolfgang Grandegger <wg@aries-embedded.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
  • Loading branch information
Stefan Wahren authored and Shawn Guo committed Mar 14, 2023
1 parent 75a21ed commit 0bde5d3
Show file tree
Hide file tree
Showing 4 changed files with 494 additions and 525 deletions.
44 changes: 19 additions & 25 deletions arch/arm/boot/dts/imx28-m28.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,6 @@
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 {
compatible = "simple-bus";
#address-cells = <1>;
Expand All @@ -54,3 +29,22 @@
};
};
};

&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>;
};
};
Loading

0 comments on commit 0bde5d3

Please sign in to comment.