xref: /freebsd/sys/contrib/device-tree/src/arm/st/stih418.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2014 STMicroelectronics Limited.
4*f126890aSEmmanuel Vadot * Author: Peter Griffin <peter.griffin@linaro.org>
5*f126890aSEmmanuel Vadot */
6*f126890aSEmmanuel Vadot#include "stih418-clock.dtsi"
7*f126890aSEmmanuel Vadot#include "stih407-family.dtsi"
8*f126890aSEmmanuel Vadot#include "stih410-pinctrl.dtsi"
9*f126890aSEmmanuel Vadot/ {
10*f126890aSEmmanuel Vadot	cpus {
11*f126890aSEmmanuel Vadot		#address-cells = <1>;
12*f126890aSEmmanuel Vadot		#size-cells = <0>;
13*f126890aSEmmanuel Vadot		cpu@2 {
14*f126890aSEmmanuel Vadot			device_type = "cpu";
15*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a9";
16*f126890aSEmmanuel Vadot			reg = <2>;
17*f126890aSEmmanuel Vadot			/* u-boot puts hpen in SBC dmem at 0xa4 offset */
18*f126890aSEmmanuel Vadot			cpu-release-addr = <0x94100A4>;
19*f126890aSEmmanuel Vadot		};
20*f126890aSEmmanuel Vadot		cpu@3 {
21*f126890aSEmmanuel Vadot			device_type = "cpu";
22*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a9";
23*f126890aSEmmanuel Vadot			reg = <3>;
24*f126890aSEmmanuel Vadot			/* u-boot puts hpen in SBC dmem at 0xa4 offset */
25*f126890aSEmmanuel Vadot			cpu-release-addr = <0x94100A4>;
26*f126890aSEmmanuel Vadot		};
27*f126890aSEmmanuel Vadot	};
28*f126890aSEmmanuel Vadot
29*f126890aSEmmanuel Vadot	usb2_picophy1: phy2 {
30*f126890aSEmmanuel Vadot		compatible = "st,stih407-usb2-phy";
31*f126890aSEmmanuel Vadot		#phy-cells = <0>;
32*f126890aSEmmanuel Vadot		st,syscfg = <&syscfg_core 0xf8 0xf4>;
33*f126890aSEmmanuel Vadot		resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
34*f126890aSEmmanuel Vadot			 <&picophyreset STIH407_PICOPHY0_RESET>;
35*f126890aSEmmanuel Vadot		reset-names = "global", "port";
36*f126890aSEmmanuel Vadot	};
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot	usb2_picophy2: phy3 {
39*f126890aSEmmanuel Vadot		compatible = "st,stih407-usb2-phy";
40*f126890aSEmmanuel Vadot		#phy-cells = <0>;
41*f126890aSEmmanuel Vadot		st,syscfg = <&syscfg_core 0xfc 0xf4>;
42*f126890aSEmmanuel Vadot		resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
43*f126890aSEmmanuel Vadot			 <&picophyreset STIH407_PICOPHY1_RESET>;
44*f126890aSEmmanuel Vadot		reset-names = "global", "port";
45*f126890aSEmmanuel Vadot	};
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot	soc {
48*f126890aSEmmanuel Vadot		rng11: rng@8a8a000 {
49*f126890aSEmmanuel Vadot			status = "disabled";
50*f126890aSEmmanuel Vadot		};
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot		ohci0: usb@9a03c00 {
53*f126890aSEmmanuel Vadot			compatible = "st,st-ohci-300x";
54*f126890aSEmmanuel Vadot			reg = <0x9a03c00 0x100>;
55*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
56*f126890aSEmmanuel Vadot			clocks = <&clk_s_c0_flexgen CLK_TX_ICN_DISP_0>;
57*f126890aSEmmanuel Vadot			resets = <&powerdown STIH407_USB2_PORT0_POWERDOWN>,
58*f126890aSEmmanuel Vadot				 <&softreset STIH407_USB2_PORT0_SOFTRESET>;
59*f126890aSEmmanuel Vadot			reset-names = "power", "softreset";
60*f126890aSEmmanuel Vadot			phys = <&usb2_picophy1>;
61*f126890aSEmmanuel Vadot			phy-names = "usb";
62*f126890aSEmmanuel Vadot		};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot		ehci0: usb@9a03e00 {
65*f126890aSEmmanuel Vadot			compatible = "st,st-ehci-300x";
66*f126890aSEmmanuel Vadot			reg = <0x9a03e00 0x100>;
67*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>;
68*f126890aSEmmanuel Vadot			pinctrl-names = "default";
69*f126890aSEmmanuel Vadot			pinctrl-0 = <&pinctrl_usb0>;
70*f126890aSEmmanuel Vadot			clocks = <&clk_s_c0_flexgen CLK_TX_ICN_DISP_0>;
71*f126890aSEmmanuel Vadot			resets = <&powerdown STIH407_USB2_PORT0_POWERDOWN>,
72*f126890aSEmmanuel Vadot				 <&softreset STIH407_USB2_PORT0_SOFTRESET>;
73*f126890aSEmmanuel Vadot			reset-names = "power", "softreset";
74*f126890aSEmmanuel Vadot			phys = <&usb2_picophy1>;
75*f126890aSEmmanuel Vadot			phy-names = "usb";
76*f126890aSEmmanuel Vadot		};
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot		ohci1: usb@9a83c00 {
79*f126890aSEmmanuel Vadot			compatible = "st,st-ohci-300x";
80*f126890aSEmmanuel Vadot			reg = <0x9a83c00 0x100>;
81*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>;
82*f126890aSEmmanuel Vadot			clocks = <&clk_s_c0_flexgen CLK_TX_ICN_DISP_0>;
83*f126890aSEmmanuel Vadot			resets = <&powerdown STIH407_USB2_PORT1_POWERDOWN>,
84*f126890aSEmmanuel Vadot				 <&softreset STIH407_USB2_PORT1_SOFTRESET>;
85*f126890aSEmmanuel Vadot			reset-names = "power", "softreset";
86*f126890aSEmmanuel Vadot			phys = <&usb2_picophy2>;
87*f126890aSEmmanuel Vadot			phy-names = "usb";
88*f126890aSEmmanuel Vadot		};
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot		ehci1: usb@9a83e00 {
91*f126890aSEmmanuel Vadot			compatible = "st,st-ehci-300x";
92*f126890aSEmmanuel Vadot			reg = <0x9a83e00 0x100>;
93*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
94*f126890aSEmmanuel Vadot			pinctrl-names = "default";
95*f126890aSEmmanuel Vadot			pinctrl-0 = <&pinctrl_usb1>;
96*f126890aSEmmanuel Vadot			clocks = <&clk_s_c0_flexgen CLK_TX_ICN_DISP_0>;
97*f126890aSEmmanuel Vadot			resets = <&powerdown STIH407_USB2_PORT1_POWERDOWN>,
98*f126890aSEmmanuel Vadot				 <&softreset STIH407_USB2_PORT1_SOFTRESET>;
99*f126890aSEmmanuel Vadot			reset-names = "power", "softreset";
100*f126890aSEmmanuel Vadot			phys = <&usb2_picophy2>;
101*f126890aSEmmanuel Vadot			phy-names = "usb";
102*f126890aSEmmanuel Vadot		};
103*f126890aSEmmanuel Vadot
104*f126890aSEmmanuel Vadot		mmc0: sdhci@9060000 {
105*f126890aSEmmanuel Vadot			assigned-clocks = <&clk_s_c0_flexgen CLK_MMC_0>;
106*f126890aSEmmanuel Vadot			assigned-clock-parents = <&clk_s_c0_pll1 0>;
107*f126890aSEmmanuel Vadot			assigned-clock-rates = <200000000>;
108*f126890aSEmmanuel Vadot		};
109*f126890aSEmmanuel Vadot
110*f126890aSEmmanuel Vadot		thermal@91a0000 {
111*f126890aSEmmanuel Vadot			compatible = "st,stih407-thermal";
112*f126890aSEmmanuel Vadot			reg = <0x91a0000 0x28>;
113*f126890aSEmmanuel Vadot			clock-names = "thermal";
114*f126890aSEmmanuel Vadot			clocks = <&clk_sysin>;
115*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 205 IRQ_TYPE_EDGE_RISING>;
116*f126890aSEmmanuel Vadot		};
117*f126890aSEmmanuel Vadot	};
118*f126890aSEmmanuel Vadot};
119