brcm63xx: probe SPI flash through DT
Now that we support problem the SPI controllers through DT, we can also probe flash through DT. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
This commit is contained in:
		| @@ -57,3 +57,36 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <16666667>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
|  | ||||
| 		cfe@0 { | ||||
| 			reg = <0x000000 0x010000>; | ||||
| 			label = "cfe"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		linux@10000 { | ||||
| 			reg = <0x010000 0x7e0000>; | ||||
| 			label = "linux"; | ||||
| 		}; | ||||
|  | ||||
| 		nvram@7f0000 { | ||||
| 			reg = <0x7f0000 0x010000>; | ||||
| 			label = "nvram"; | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -85,3 +85,36 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <16666667>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
|  | ||||
| 		cfe@0 { | ||||
| 			reg = <0x000000 0x010000>; | ||||
| 			label = "cfe"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		linux@10000 { | ||||
| 			reg = <0x010000 0xfe0000>; | ||||
| 			label = "linux"; | ||||
| 		}; | ||||
|  | ||||
| 		nvram@ff0000 { | ||||
| 			reg = <0xff0000 0x010000>; | ||||
| 			label = "nvram"; | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -44,3 +44,36 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <16666667>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
|  | ||||
| 		cfe@0 { | ||||
| 			reg = <0x000000 0x010000>; | ||||
| 			label = "cfe"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		linux@10000 { | ||||
| 			reg = <0x010000 0xfe0000>; | ||||
| 			label = "linux"; | ||||
| 		}; | ||||
|  | ||||
| 		nvram@ff0000 { | ||||
| 			reg = <0xff0000 0x010000>; | ||||
| 			label = "nvram"; | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -52,3 +52,36 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <16666667>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
|  | ||||
| 		cfe@0 { | ||||
| 			reg = <0x000000 0x010000>; | ||||
| 			label = "cfe"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		linux@10000 { | ||||
| 			reg = <0x010000 0xfe0000>; | ||||
| 			label = "linux"; | ||||
| 		}; | ||||
|  | ||||
| 		nvram@ff0000 { | ||||
| 			reg = <0xff0000 0x010000>; | ||||
| 			label = "nvram"; | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -51,3 +51,20 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <62500000>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -57,3 +57,20 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <62500000>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -32,3 +32,20 @@ | ||||
| 		}; | ||||
|         }; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <20000000>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -40,3 +40,20 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <20000000>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -42,3 +42,20 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <16666667>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -42,3 +42,20 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <16666667>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -66,3 +66,42 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <16666667>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
|  | ||||
| 		cfe@0 { | ||||
| 			reg = <0x000000 0x010000>; | ||||
| 			label = "cfe"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		linux@10000 { | ||||
| 			reg = <0x010000 0x7c0000>; | ||||
| 			label = "linux"; | ||||
| 		}; | ||||
|  | ||||
| 		cal_data@7d0000 { | ||||
| 			reg = <0x7d0000 0x010000>; | ||||
| 			label = "cal_data"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		nvram@7e0000 { | ||||
| 			reg = <0x7e0000 0x020000>; | ||||
| 			label = "nvram"; | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -79,3 +79,36 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <62500000>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
|  | ||||
| 		cfe@0 { | ||||
| 			reg = <0x000000 0x010000>; | ||||
| 			label = "cfe"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		linux@10000 { | ||||
| 			reg = <0x010000 0x7e0000>; | ||||
| 			label = "linux"; | ||||
| 		}; | ||||
|  | ||||
| 		nvram@7f0000 { | ||||
| 			reg = <0x7f0000 0x010000>; | ||||
| 			label = "nvram"; | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -61,3 +61,36 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <20000000>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
|  | ||||
| 		cfe@0 { | ||||
| 			reg = <0x000000 0x010000>; | ||||
| 			label = "cfe"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		linux@10000 { | ||||
| 			reg = <0x010000 0x7e0000>; | ||||
| 			label = "linux"; | ||||
| 		}; | ||||
|  | ||||
| 		nvram@7f0000 { | ||||
| 			reg = <0x7f0000 0x010000>; | ||||
| 			label = "nvram"; | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -86,3 +86,36 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <62500000>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
|  | ||||
| 		cfe@0 { | ||||
| 			reg = <0x000000 0x010000>; | ||||
| 			label = "cfe"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		linux@10000 { | ||||
| 			reg = <0x010000 0x7e0000>; | ||||
| 			label = "linux"; | ||||
| 		}; | ||||
|  | ||||
| 		nvram@7f0000 { | ||||
| 			reg = <0x7f0000 0x010000>; | ||||
| 			label = "nvram"; | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -70,3 +70,36 @@ | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <16666667>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
|  | ||||
| 		cfe@0 { | ||||
| 			reg = <0x000000 0x010000>; | ||||
| 			label = "cfe"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		linux@10000 { | ||||
| 			reg = <0x010000 0x7e0000>; | ||||
| 			label = "linux"; | ||||
| 		}; | ||||
|  | ||||
| 		nvram@7f0000 { | ||||
| 			reg = <0x7f0000 0x010000>; | ||||
| 			label = "nvram"; | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -49,3 +49,36 @@ | ||||
| 		realtek,extif0 = <1 5 1 1 1 1 1 1 2>; | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <20000000>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
|  | ||||
| 		cfe@0 { | ||||
| 			reg = <0x000000 0x010000>; | ||||
| 			label = "cfe"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		linux@10000 { | ||||
| 			reg = <0x010000 0xfe0000>; | ||||
| 			label = "linux"; | ||||
| 		}; | ||||
|  | ||||
| 		nvram@ff0000 { | ||||
| 			reg = <0xff0000 0x010000>; | ||||
| 			label = "nvram"; | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -67,3 +67,35 @@ | ||||
| 	}; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <16666667>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
|  | ||||
| 		cfe@0 { | ||||
| 			reg = <0x000000 0x010000>; | ||||
| 			label = "cfe"; | ||||
| 			read-only; | ||||
| 		}; | ||||
|  | ||||
| 		linux@10000 { | ||||
| 			reg = <0x010000 0x7e0000>; | ||||
| 			label = "linux"; | ||||
| 		}; | ||||
|  | ||||
| 		nvram@7f0000 { | ||||
| 			reg = <0x7f0000 0x010000>; | ||||
| 			label = "nvram"; | ||||
| 		}; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -32,3 +32,20 @@ | ||||
| 		}; | ||||
|         }; | ||||
| }; | ||||
|  | ||||
| &hsspi { | ||||
| 	status = "ok"; | ||||
|  | ||||
| 	flash@0 { | ||||
| 		compatible = "jedec,spi-nor"; | ||||
| 		spi-max-frequency = <20000000>; | ||||
| 		spi-tx-bus-width = <2>; | ||||
| 		spi-rx-bus-width = <2>; | ||||
| 		reg = <0>; | ||||
|  | ||||
| 		#address-cells = <1>; | ||||
| 		#size-cells = <1>; | ||||
|  | ||||
| 		linux,part-probe = "bcm63xxpart"; | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonas Gorski
					Jonas Gorski