Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: marvell,prestera: Add description for device-tree bindings

Add brief description how to configure base mac address binding in
device-tree.

Describe requirement for the PCI port which is connected to the ASIC, to
allow access to the firmware related registers.

Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Vadym Kochan and committed by
David S. Miller
40acc052 e1189d9a

+34
+34
Documentation/devicetree/bindings/net/marvell,prestera.txt
··· 45 45 ranges = <0 MBUS_ID(0x08, 0x00) 0 0x100000>; 46 46 reg = <MBUS_ID(0x08, 0x00) 0 0x100000>; 47 47 }; 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 + };