Skip to content

Commit 98eb05d

Browse files
miquelraynalPaolo Abeni
authored andcommitted
Revert "dt-bindings: marvell,prestera: Add description for device-tree bindings"
This reverts commit 40acc05. marvell,prestera.txt is an old file describing the old Alleycat3 standalone switches. The commit mentioned above actually hacked these bindings to add support for a device tree property for a more modern version of the IP connected over PCI, using only the generic compatible in order to retrieve the device node from the prestera driver to read one static property. The problematic property discussed here is "base-mac-provider". The original intent was to point to a nvmem device which could produce the relevant nvmem-cell. This property has never been acked by DT maintainers and fails all the layering that has been brought with the nvmem bindings by pointing at a nvmem producer, bypassing the existing nvmem bindings, rather than a nvmem cell directly. Furthermore, the property cannot even be used upstream because it expected the ONIE tlv driver to produce a specific cell, driver which used nacked bindings and thus was never merged, replaced by a more integrated concept: the nvmem-layout. So let's forget about this temporary addition, safely avoiding the need for any backward compatibility handling. A new (yaml) binding file will be brought with the prestera bindings, and there we will actually include a description of the modern IP over PCI, including the right way to point to a nvmem cell. Cc: Vadym Kochan <vadym.kochan@plvision.eu> Cc: Taras Chornyi <tchornyi@marvell.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent d6dc62f commit 98eb05d

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

Documentation/devicetree/bindings/net/marvell,prestera.txt

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -45,37 +45,3 @@ dfx-server {
4545
ranges = <0 MBUS_ID(0x08, 0x00) 0 0x100000>;
4646
reg = <MBUS_ID(0x08, 0x00) 0 0x100000>;
4747
};
48-
49-
Marvell Prestera SwitchDev bindings
50-
-----------------------------------
51-
Optional properties:
52-
- compatible: must be "marvell,prestera"
53-
- base-mac-provider: describes handle to node which provides base mac address,
54-
might be a static base mac address or nvme cell provider.
55-
56-
Example:
57-
58-
eeprom_mac_addr: eeprom-mac-addr {
59-
compatible = "eeprom,mac-addr-cell";
60-
status = "okay";
61-
62-
nvmem = <&eeprom_at24>;
63-
};
64-
65-
prestera {
66-
compatible = "marvell,prestera";
67-
status = "okay";
68-
69-
base-mac-provider = <&eeprom_mac_addr>;
70-
};
71-
72-
The current implementation of Prestera Switchdev PCI interface driver requires
73-
that BAR2 is assigned to 0xf6000000 as base address from the PCI IO range:
74-
75-
&cp0_pcie0 {
76-
ranges = <0x81000000 0x0 0xfb000000 0x0 0xfb000000 0x0 0xf0000
77-
0x82000000 0x0 0xf6000000 0x0 0xf6000000 0x0 0x2000000
78-
0x82000000 0x0 0xf9000000 0x0 0xf9000000 0x0 0x100000>;
79-
phys = <&cp0_comphy0 0>;
80-
status = "okay";
81-
};

0 commit comments

Comments
 (0)