diff mbox

[v2,12/12] at91: dt: sam9261: Added DM9000 in the device tree

Message ID 1389270709-32662-13-git-send-email-jjhiblot@traphandler.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jean-Jacques Hiblot Jan. 9, 2014, 12:31 p.m. UTC
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
---
 arch/arm/boot/dts/at91sam9261ek.dts | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Comments

Jean-Christophe PLAGNIOL-VILLARD Jan. 15, 2014, 11:23 a.m. UTC | #1
On 13:31 Thu 09 Jan     , Jean-Jacques Hiblot wrote:
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
> ---
>  arch/arm/boot/dts/at91sam9261ek.dts | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/at91sam9261ek.dts b/arch/arm/boot/dts/at91sam9261ek.dts
> index e92cb8e..a3d9d5a 100644
> --- a/arch/arm/boot/dts/at91sam9261ek.dts
> +++ b/arch/arm/boot/dts/at91sam9261ek.dts
> @@ -76,6 +76,38 @@
>  		smc: smc@ffffec00 {
>  			status = "okay";
>  
> +			ebi_cs2@2,0 {
> +				status = "okay";
> +				smc,converter = "nanosec";
> +				smc,ncs_read_setup = <0>;
> +				smc,nrd_setup = <20>;
> +				smc,ncs_write_setup = <0>;
> +				smc,nwe_setup = <20>;
> +				smc,ncs_read_pulse = <80>;
> +				smc,nrd_pulse = <40>;
> +				smc,ncs_write_pulse = <80>;
> +				smc,nwe_pulse = <40>;
> +				smc,read_cycle = <160>;
> +				smc,write_cycle = <160>;
> +				smc,tdf_cycles = <10>;
> +				smc,tdf_optimized = <0>;
> +				smc,page_size = <0>;
> +				smc,byte_access_type = <1>;
> +				smc,bus_width = <1>;
> +				smc,nwait_mode = <0>;
> +				smc,read_mode = <1>;
> +				smc,write_mode = <1>;
> +
> +				ethernet@2,0 {
> +					compatible = "davicom,dm9000";
> +					reg = <0x0 0x2 0x4 0x2>;
> +					interrupt-parent = <&pioC>;
> +					interrupts = <11 IRQ_TYPE_EDGE_BOTH>;
use the new binding no interrupt-parent now
> +					local-mac-address = [00 00 de ad be ef];
drop the mac this is board specific
> +					davicom,no-eeprom;
> +				};
> +			};
> +
>  			ebi_cs3@3,0 {
>  				status = "okay";
>  				smc,ncs_read_setup = <0>;
> -- 
> 1.8.5.2
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list:wqa

> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff mbox

Patch

diff --git a/arch/arm/boot/dts/at91sam9261ek.dts b/arch/arm/boot/dts/at91sam9261ek.dts
index e92cb8e..a3d9d5a 100644
--- a/arch/arm/boot/dts/at91sam9261ek.dts
+++ b/arch/arm/boot/dts/at91sam9261ek.dts
@@ -76,6 +76,38 @@ 
 		smc: smc@ffffec00 {
 			status = "okay";
 
+			ebi_cs2@2,0 {
+				status = "okay";
+				smc,converter = "nanosec";
+				smc,ncs_read_setup = <0>;
+				smc,nrd_setup = <20>;
+				smc,ncs_write_setup = <0>;
+				smc,nwe_setup = <20>;
+				smc,ncs_read_pulse = <80>;
+				smc,nrd_pulse = <40>;
+				smc,ncs_write_pulse = <80>;
+				smc,nwe_pulse = <40>;
+				smc,read_cycle = <160>;
+				smc,write_cycle = <160>;
+				smc,tdf_cycles = <10>;
+				smc,tdf_optimized = <0>;
+				smc,page_size = <0>;
+				smc,byte_access_type = <1>;
+				smc,bus_width = <1>;
+				smc,nwait_mode = <0>;
+				smc,read_mode = <1>;
+				smc,write_mode = <1>;
+
+				ethernet@2,0 {
+					compatible = "davicom,dm9000";
+					reg = <0x0 0x2 0x4 0x2>;
+					interrupt-parent = <&pioC>;
+					interrupts = <11 IRQ_TYPE_EDGE_BOTH>;
+					local-mac-address = [00 00 de ad be ef];
+					davicom,no-eeprom;
+				};
+			};
+
 			ebi_cs3@3,0 {
 				status = "okay";
 				smc,ncs_read_setup = <0>;