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

ARM: dts: r9a06g032: Describe switch

Add the description of the switch that is present on the RZ/N1 SoC. This
description includes ethernet-port descriptions for all the ports that
are present on the switch along with their connection to the MII
converter ports and to the GMAC for the CPU port.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220624144001.95518-15-clement.leger@bootlin.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

authored by

Clément Léger and committed by
Geert Uytterhoeven
cda41c14 c6f60092

+51
+51
arch/arm/boot/dts/r9a06g032.dtsi
··· 361 361 }; 362 362 }; 363 363 364 + switch: switch@44050000 { 365 + compatible = "renesas,r9a06g032-a5psw", "renesas,rzn1-a5psw"; 366 + reg = <0x44050000 0x10000>; 367 + clocks = <&sysctrl R9A06G032_HCLK_SWITCH>, 368 + <&sysctrl R9A06G032_CLK_SWITCH>; 369 + clock-names = "hclk", "clk"; 370 + power-domains = <&sysctrl>; 371 + status = "disabled"; 372 + 373 + ethernet-ports { 374 + #address-cells = <1>; 375 + #size-cells = <0>; 376 + 377 + switch_port0: port@0 { 378 + reg = <0>; 379 + pcs-handle = <&mii_conv5>; 380 + status = "disabled"; 381 + }; 382 + 383 + switch_port1: port@1 { 384 + reg = <1>; 385 + pcs-handle = <&mii_conv4>; 386 + status = "disabled"; 387 + }; 388 + 389 + switch_port2: port@2 { 390 + reg = <2>; 391 + pcs-handle = <&mii_conv3>; 392 + status = "disabled"; 393 + }; 394 + 395 + switch_port3: port@3 { 396 + reg = <3>; 397 + pcs-handle = <&mii_conv2>; 398 + status = "disabled"; 399 + }; 400 + 401 + switch_port4: port@4 { 402 + reg = <4>; 403 + ethernet = <&gmac2>; 404 + label = "cpu"; 405 + phy-mode = "internal"; 406 + status = "disabled"; 407 + fixed-link { 408 + speed = <1000>; 409 + full-duplex; 410 + }; 411 + }; 412 + }; 413 + }; 414 + 364 415 gic: interrupt-controller@44101000 { 365 416 compatible = "arm,gic-400", "arm,cortex-a7-gic"; 366 417 interrupt-controller;