Skip to content

Commit

Permalink
arm/dts: omap4-sdp: Add ks8851 ethernet SPI device
Browse files Browse the repository at this point in the history
Add an ethernet SPI chip in the OMAP4 SDP/Blaze board DTS file.

Add a fixed regulator node controlled by a GPIO line to supply
the ethernet chip.

Based on original code from Rajendra.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
  • Loading branch information
Benoit Cousson committed Mar 12, 2012
1 parent fc72d24 commit e7c64db
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions arch/arm/boot/dts/omap4-sdp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@
device_type = "memory";
reg = <0x80000000 0x40000000>; /* 1 GB */
};

vdd_eth: fixedregulator@0 {
compatible = "regulator-fixed";
regulator-name = "VDD_ETH";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio2 16 0>; /* gpio line 48 */
enable-active-high;
regulator-boot-on;
};
};

&i2c1 {
Expand Down Expand Up @@ -70,3 +80,14 @@
reg = <0x1e>;
};
};

&mcspi1 {
eth@0 {
compatible = "ks8851";
spi-max-frequency = <24000000>;
reg = <0>;
interrupt-parent = <&gpio2>;
interrupts = <2>; /* gpio line 34 */
vdd-supply = <&vdd_eth>;
};
};

0 comments on commit e7c64db

Please sign in to comment.