mpc85xx: convert mtd-mac-address to nvmem implementation
Define nvmem-cells and convert mtd-mac-address to nvmem implementation. The conversion is done with an automated script. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
		 Ansuel Smith
					Ansuel Smith
				
			
				
					committed by
					
						 Petr Štetiar
						Petr Štetiar
					
				
			
			
				
	
			
			
			 Petr Štetiar
						Petr Štetiar
					
				
			
						parent
						
							293d4e61c2
						
					
				
				
					commit
					8ec21d6bb2
				
			| @@ -165,7 +165,8 @@ | |||||||
| 			status = "okay"; | 			status = "okay"; | ||||||
| 			phy-handle = <&phy0>; | 			phy-handle = <&phy0>; | ||||||
| 			phy-connection-type = "rgmii-id"; | 			phy-connection-type = "rgmii-id"; | ||||||
| 			mtd-mac-address = <&hwinfo 0>; | 			nvmem-cells = <&macaddr_hwinfo_0>; | ||||||
|  | 			nvmem-cell-names = "mac-address"; | ||||||
| 		}; | 		}; | ||||||
|  |  | ||||||
| 		enet1: ethernet@b1000 { | 		enet1: ethernet@b1000 { | ||||||
| @@ -176,7 +177,8 @@ | |||||||
| 			status = "okay"; | 			status = "okay"; | ||||||
| 			phy-handle = <&phy1>; | 			phy-handle = <&phy1>; | ||||||
| 			phy-connection-type = "rgmii-id"; | 			phy-connection-type = "rgmii-id"; | ||||||
| 			mtd-mac-address = <&hwinfo 0>; | 			nvmem-cells = <&macaddr_hwinfo_0>; | ||||||
|  | 			nvmem-cell-names = "mac-address"; | ||||||
| 			mac-address-increment = <1>; | 			mac-address-increment = <1>; | ||||||
| 		}; | 		}; | ||||||
|  |  | ||||||
| @@ -234,3 +236,13 @@ | |||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| /include/ "fsl/p1020si-post.dtsi" | /include/ "fsl/p1020si-post.dtsi" | ||||||
|  |  | ||||||
|  | &hwinfo { | ||||||
|  | 	compatible = "nvmem-cells"; | ||||||
|  | 	#address-cells = <1>; | ||||||
|  | 	#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 	macaddr_hwinfo_0: macaddr@0 { | ||||||
|  | 		reg = <0x0 0x6>; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|   | |||||||
| @@ -119,7 +119,8 @@ | |||||||
| 		enet0: ethernet@b0000 { | 		enet0: ethernet@b0000 { | ||||||
| 			phy-handle = <&phy0>; | 			phy-handle = <&phy0>; | ||||||
| 			phy-connection-type = "rgmii-id"; | 			phy-connection-type = "rgmii-id"; | ||||||
| 			mtd-mac-address = <&uboot 0x4fc00>; | 			nvmem-cells = <&macaddr_uboot_4fc00>; | ||||||
|  | 			nvmem-cell-names = "mac-address"; | ||||||
| 		}; | 		}; | ||||||
|  |  | ||||||
| 		enet1: ethernet@b1000 { | 		enet1: ethernet@b1000 { | ||||||
| @@ -290,3 +291,13 @@ | |||||||
| 		/delete-node/ crypto@30000; /* Pulled in by p1010si-post */ | 		/delete-node/ crypto@30000; /* Pulled in by p1010si-post */ | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | &uboot { | ||||||
|  | 	compatible = "nvmem-cells"; | ||||||
|  | 	#address-cells = <1>; | ||||||
|  | 	#size-cells = <1>; | ||||||
|  |  | ||||||
|  | 	macaddr_uboot_4fc00: macaddr@4fc00 { | ||||||
|  | 		reg = <0x4fc00 0x6>; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user