xref: /freebsd-src/sys/contrib/device-tree/src/arm/st/stih418-b2264.dts (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright (C) 2021 STMicroelectronics
4f126890aSEmmanuel Vadot * Author: Alain Volmat <avolmat@me.com>
5f126890aSEmmanuel Vadot */
6f126890aSEmmanuel Vadot/dts-v1/;
7f126890aSEmmanuel Vadot#include "stih418.dtsi"
8f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
9f126890aSEmmanuel Vadot/ {
10f126890aSEmmanuel Vadot	model = "STiH418 B2264";
11f126890aSEmmanuel Vadot	compatible = "st,stih418-b2264", "st,stih418";
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadot	chosen {
14f126890aSEmmanuel Vadot		stdout-path = &sbc_serial0;
15f126890aSEmmanuel Vadot	};
16f126890aSEmmanuel Vadot
17f126890aSEmmanuel Vadot	memory@40000000 {
18f126890aSEmmanuel Vadot		device_type = "memory";
19f126890aSEmmanuel Vadot		reg = <0x40000000 0xc0000000>;
20f126890aSEmmanuel Vadot	};
21f126890aSEmmanuel Vadot
22f126890aSEmmanuel Vadot	cpus {
23f126890aSEmmanuel Vadot		cpu@0 {
24f126890aSEmmanuel Vadot			operating-points-v2 = <&cpu_opp_table>;
25f126890aSEmmanuel Vadot			/* u-boot puts hpen in SBC dmem at 0xb8 offset */
26f126890aSEmmanuel Vadot			cpu-release-addr = <0x94100b8>;
27f126890aSEmmanuel Vadot		};
28f126890aSEmmanuel Vadot		cpu@1 {
29f126890aSEmmanuel Vadot			operating-points-v2 = <&cpu_opp_table>;
30f126890aSEmmanuel Vadot			/* u-boot puts hpen in SBC dmem at 0xb8 offset */
31f126890aSEmmanuel Vadot			cpu-release-addr = <0x94100b8>;
32f126890aSEmmanuel Vadot		};
33f126890aSEmmanuel Vadot		cpu@2 {
34f126890aSEmmanuel Vadot			operating-points-v2 = <&cpu_opp_table>;
35f126890aSEmmanuel Vadot			/* u-boot puts hpen in SBC dmem at 0xb8 offset */
36f126890aSEmmanuel Vadot			cpu-release-addr = <0x94100b8>;
37f126890aSEmmanuel Vadot		};
38f126890aSEmmanuel Vadot		cpu@3 {
39f126890aSEmmanuel Vadot			operating-points-v2 = <&cpu_opp_table>;
40f126890aSEmmanuel Vadot			/* u-boot puts hpen in SBC dmem at 0xb8 offset */
41f126890aSEmmanuel Vadot			cpu-release-addr = <0x94100b8>;
42f126890aSEmmanuel Vadot		};
43f126890aSEmmanuel Vadot	};
44f126890aSEmmanuel Vadot
45f126890aSEmmanuel Vadot	cpu_opp_table: opp-table {
46f126890aSEmmanuel Vadot		compatible = "operating-points-v2";
47f126890aSEmmanuel Vadot		opp-shared;
48f126890aSEmmanuel Vadot
49f126890aSEmmanuel Vadot		opp00 {
50f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <300000000>;
51f126890aSEmmanuel Vadot			opp-microvolt = <784000>;
52f126890aSEmmanuel Vadot		};
53f126890aSEmmanuel Vadot		opp01 {
54f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <500000000>;
55f126890aSEmmanuel Vadot			opp-microvolt = <784000>;
56f126890aSEmmanuel Vadot		};
57f126890aSEmmanuel Vadot		opp02 {
58f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <800000000>;
59f126890aSEmmanuel Vadot			opp-microvolt = <784000>;
60f126890aSEmmanuel Vadot		};
61f126890aSEmmanuel Vadot		opp03 {
62f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <1200000000>;
63f126890aSEmmanuel Vadot			opp-microvolt = <784000>;
64f126890aSEmmanuel Vadot		};
65f126890aSEmmanuel Vadot		opp04 {
66f126890aSEmmanuel Vadot			opp-hz = /bits/ 64 <1500000000>;
67f126890aSEmmanuel Vadot			opp-microvolt = <784000>;
68f126890aSEmmanuel Vadot		};
69f126890aSEmmanuel Vadot	};
70f126890aSEmmanuel Vadot
71f126890aSEmmanuel Vadot	aliases {
72*84943d6fSEmmanuel Vadot		serial0 = &sbc_serial0;
73f126890aSEmmanuel Vadot		ethernet0 = &ethernet0;
74f126890aSEmmanuel Vadot	};
75f126890aSEmmanuel Vadot
76f126890aSEmmanuel Vadot	leds {
77f126890aSEmmanuel Vadot		compatible = "gpio-leds";
78f126890aSEmmanuel Vadot		led-green {
79*84943d6fSEmmanuel Vadot			gpios = <&pio1 3 GPIO_ACTIVE_LOW>;
80f126890aSEmmanuel Vadot			default-state = "off";
81f126890aSEmmanuel Vadot		};
82f126890aSEmmanuel Vadot	};
83f126890aSEmmanuel Vadot
84*84943d6fSEmmanuel Vadot	soc {
85f126890aSEmmanuel Vadot		pin-controller-sbc@961f080 {
86f126890aSEmmanuel Vadot			gmac1 {
87f126890aSEmmanuel Vadot				rgmii1-0 {
88f126890aSEmmanuel Vadot					st,pins {
89f126890aSEmmanuel Vadot						rxd0 = <&pio1 4 ALT1 IN DE_IO 300 CLK_A>;
90f126890aSEmmanuel Vadot						rxd1 = <&pio1 5 ALT1 IN DE_IO 300 CLK_A>;
91f126890aSEmmanuel Vadot						rxd2 = <&pio1 6 ALT1 IN DE_IO 300 CLK_A>;
92f126890aSEmmanuel Vadot						rxd3 = <&pio1 7 ALT1 IN DE_IO 300 CLK_A>;
93f126890aSEmmanuel Vadot						rxdv = <&pio2 0 ALT1 IN DE_IO 300 CLK_A>;
94f126890aSEmmanuel Vadot					};
95f126890aSEmmanuel Vadot				};
96f126890aSEmmanuel Vadot			};
97f126890aSEmmanuel Vadot		};
98f126890aSEmmanuel Vadot
99f126890aSEmmanuel Vadot	};
100f126890aSEmmanuel Vadot};
101f126890aSEmmanuel Vadot
102f126890aSEmmanuel Vadot&ehci0 {
103f126890aSEmmanuel Vadot	status = "okay";
104f126890aSEmmanuel Vadot};
105f126890aSEmmanuel Vadot
106f126890aSEmmanuel Vadot&ethernet0 {
107f126890aSEmmanuel Vadot	phy-mode = "rgmii";
108f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_rgmii1 &pinctrl_rgmii1_mdio_1>;
109f126890aSEmmanuel Vadot	st,tx-retime-src = "clkgen";
110f126890aSEmmanuel Vadot
111f126890aSEmmanuel Vadot	snps,reset-gpio = <&pio0 7 0>;
112f126890aSEmmanuel Vadot	snps,reset-active-low;
113f126890aSEmmanuel Vadot	snps,reset-delays-us = <0 10000 1000000>;
114f126890aSEmmanuel Vadot
115f126890aSEmmanuel Vadot	status = "okay";
116f126890aSEmmanuel Vadot};
117f126890aSEmmanuel Vadot
118f126890aSEmmanuel Vadot&miphy28lp_phy {
119f126890aSEmmanuel Vadot	phy_port0: port@9b22000 {
120f126890aSEmmanuel Vadot		st,sata-gen = <2>; /* SATA GEN3 */
121f126890aSEmmanuel Vadot		st,osc-rdy;
122f126890aSEmmanuel Vadot	};
123f126890aSEmmanuel Vadot};
124f126890aSEmmanuel Vadot
125f126890aSEmmanuel Vadot&mmc0 {
126f126890aSEmmanuel Vadot	status = "okay";
127f126890aSEmmanuel Vadot};
128f126890aSEmmanuel Vadot
129f126890aSEmmanuel Vadot&ohci1 {
130f126890aSEmmanuel Vadot	status = "okay";
131f126890aSEmmanuel Vadot};
132f126890aSEmmanuel Vadot
133f126890aSEmmanuel Vadot&pwm1 {
134f126890aSEmmanuel Vadot	status = "okay";
135f126890aSEmmanuel Vadot};
136f126890aSEmmanuel Vadot
137f126890aSEmmanuel Vadot&sata0 {
138f126890aSEmmanuel Vadot	status = "okay";
139f126890aSEmmanuel Vadot};
140f126890aSEmmanuel Vadot
141f126890aSEmmanuel Vadot&sbc_serial0 {
142f126890aSEmmanuel Vadot	status = "okay";
143f126890aSEmmanuel Vadot};
144f126890aSEmmanuel Vadot
145f126890aSEmmanuel Vadot&spifsm {
146f126890aSEmmanuel Vadot	status = "okay";
147f126890aSEmmanuel Vadot};
148f126890aSEmmanuel Vadot
149f126890aSEmmanuel Vadot&st_dwc3 {
150f126890aSEmmanuel Vadot	status = "okay";
151f126890aSEmmanuel Vadot};
152