Skip to content

Commit

Permalink
[POWERPC] lite5200(b) support for i2c
Browse files Browse the repository at this point in the history
Add fsl-i2c to mpc5200 i2c node in device tree, and enable FSL_SOC.

Tested to work with built-in eeprom on lite5200b.

Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Domen Puncer authored and Paul Mackerras committed May 7, 2007
1 parent 0d0f4bc commit 5cae84c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions arch/powerpc/boot/dts/lite5200.dts
Original file line number Diff line number Diff line change
Expand Up @@ -318,20 +318,22 @@

i2c@3d00 {
device_type = "i2c";
compatible = "mpc5200-i2c";
compatible = "mpc5200-i2c\0fsl-i2c";
cell-index = <0>;
reg = <3d00 40>;
interrupts = <2 f 0>;
interrupt-parent = <500>;
fsl5200-clocking;
};

i2c@3d40 {
device_type = "i2c";
compatible = "mpc5200-i2c";
compatible = "mpc5200-i2c\0fsl-i2c";
cell-index = <1>;
reg = <3d40 40>;
interrupts = <2 10 0>;
interrupt-parent = <500>;
fsl5200-clocking;
};
sram@8000 {
device_type = "sram";
Expand Down
6 changes: 4 additions & 2 deletions arch/powerpc/boot/dts/lite5200b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -323,20 +323,22 @@

i2c@3d00 {
device_type = "i2c";
compatible = "mpc5200b-i2c\0mpc5200-i2c";
compatible = "mpc5200b-i2c\0mpc5200-i2c\0fsl-i2c";
cell-index = <0>;
reg = <3d00 40>;
interrupts = <2 f 0>;
interrupt-parent = <500>;
fsl5200-clocking;
};

i2c@3d40 {
device_type = "i2c";
compatible = "mpc5200b-i2c\0mpc5200-i2c";
compatible = "mpc5200b-i2c\0mpc5200-i2c\0fsl-i2c";
cell-index = <1>;
reg = <3d40 40>;
interrupts = <2 10 0>;
interrupt-parent = <500>;
fsl5200-clocking;
};
sram@8000 {
device_type = "sram";
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/platforms/52xx/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
config PPC_MPC52xx
bool
select FSL_SOC
default n

config PPC_MPC5200
Expand Down

0 comments on commit 5cae84c

Please sign in to comment.