Skip to content

Commit dc7fde1

Browse files
geertumorimoto
authored andcommitted
arm64: dts: renesas: Factor out White Hawk Single board support
Move the common parts for the Renesas White Hawk Single board to white-hawk-single.dtsi, to enable future reuse. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/1661743b18a9ff9fac716f98a663b39fc8488d7e.1733156661.git.geert+renesas@glider.be (cherry picked from commit d43c077)
1 parent 04c80b6 commit dc7fde1

File tree

2 files changed

+74
-61
lines changed

2 files changed

+74
-61
lines changed

arch/arm64/boot/dts/renesas/r8a779g2-white-hawk-single.dts

Lines changed: 1 addition & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -7,70 +7,10 @@
77

88
/dts-v1/;
99
#include "r8a779g2.dtsi"
10-
#include "white-hawk-cpu-common.dtsi"
11-
#include "white-hawk-common.dtsi"
10+
#include "white-hawk-single.dtsi"
1211

1312
/ {
1413
model = "Renesas White Hawk Single board based on r8a779g2";
1514
compatible = "renesas,white-hawk-single", "renesas,r8a779g2",
1615
"renesas,r8a779g0";
1716
};
18-
19-
&hscif0 {
20-
uart-has-rtscts;
21-
};
22-
23-
&hscif0_pins {
24-
groups = "hscif0_data", "hscif0_ctrl";
25-
function = "hscif0";
26-
};
27-
28-
&pfc {
29-
tsn0_pins: tsn0 {
30-
mux {
31-
groups = "tsn0_link", "tsn0_mdio", "tsn0_rgmii",
32-
"tsn0_txcrefclk";
33-
function = "tsn0";
34-
};
35-
36-
link {
37-
groups = "tsn0_link";
38-
bias-disable;
39-
};
40-
41-
mdio {
42-
groups = "tsn0_mdio";
43-
drive-strength = <24>;
44-
bias-disable;
45-
};
46-
47-
rgmii {
48-
groups = "tsn0_rgmii";
49-
drive-strength = <24>;
50-
bias-disable;
51-
};
52-
};
53-
};
54-
55-
&tsn0 {
56-
pinctrl-0 = <&tsn0_pins>;
57-
pinctrl-names = "default";
58-
phy-mode = "rgmii";
59-
phy-handle = <&phy3>;
60-
status = "okay";
61-
62-
mdio {
63-
#address-cells = <1>;
64-
#size-cells = <0>;
65-
66-
reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
67-
reset-post-delay-us = <4000>;
68-
69-
phy3: ethernet-phy@0 {
70-
compatible = "ethernet-phy-id002b.0980",
71-
"ethernet-phy-ieee802.3-c22";
72-
reg = <0>;
73-
interrupts-extended = <&gpio4 3 IRQ_TYPE_LEVEL_LOW>;
74-
};
75-
};
76-
};
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
/*
3+
* Device Tree Source for the White Hawk Single board
4+
*
5+
* Copyright (C) 2023-2024 Glider bv
6+
*/
7+
8+
#include "white-hawk-cpu-common.dtsi"
9+
#include "white-hawk-common.dtsi"
10+
11+
/ {
12+
model = "Renesas White Hawk Single board";
13+
compatible = "renesas,white-hawk-single";
14+
};
15+
16+
&hscif0 {
17+
uart-has-rtscts;
18+
};
19+
20+
&hscif0_pins {
21+
groups = "hscif0_data", "hscif0_ctrl";
22+
function = "hscif0";
23+
};
24+
25+
&pfc {
26+
tsn0_pins: tsn0 {
27+
mux {
28+
groups = "tsn0_link", "tsn0_mdio", "tsn0_rgmii",
29+
"tsn0_txcrefclk";
30+
function = "tsn0";
31+
};
32+
33+
link {
34+
groups = "tsn0_link";
35+
bias-disable;
36+
};
37+
38+
mdio {
39+
groups = "tsn0_mdio";
40+
drive-strength = <24>;
41+
bias-disable;
42+
};
43+
44+
rgmii {
45+
groups = "tsn0_rgmii";
46+
drive-strength = <24>;
47+
bias-disable;
48+
};
49+
};
50+
};
51+
52+
&tsn0 {
53+
pinctrl-0 = <&tsn0_pins>;
54+
pinctrl-names = "default";
55+
phy-mode = "rgmii";
56+
phy-handle = <&phy3>;
57+
status = "okay";
58+
59+
mdio {
60+
#address-cells = <1>;
61+
#size-cells = <0>;
62+
63+
reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
64+
reset-post-delay-us = <4000>;
65+
66+
phy3: ethernet-phy@0 {
67+
compatible = "ethernet-phy-id002b.0980",
68+
"ethernet-phy-ieee802.3-c22";
69+
reg = <0>;
70+
interrupts-extended = <&gpio4 3 IRQ_TYPE_LEVEL_LOW>;
71+
};
72+
};
73+
};

0 commit comments

Comments
 (0)