xref: /freebsd-src/sys/contrib/device-tree/src/arm/aspeed/aspeed-bmc-portwell-neptune.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot// Copyright (c) 2017 Facebook Inc.
3*f126890aSEmmanuel Vadot/dts-v1/;
4*f126890aSEmmanuel Vadot
5*f126890aSEmmanuel Vadot#include "aspeed-g5.dtsi"
6*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/aspeed-gpio.h>
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/ {
9*f126890aSEmmanuel Vadot	model = "Portwell Neptune BMC";
10*f126890aSEmmanuel Vadot	compatible = "portwell,neptune-bmc", "aspeed,ast2500";
11*f126890aSEmmanuel Vadot	aliases {
12*f126890aSEmmanuel Vadot		serial0 = &uart1;
13*f126890aSEmmanuel Vadot		serial4 = &uart5;
14*f126890aSEmmanuel Vadot	};
15*f126890aSEmmanuel Vadot	chosen {
16*f126890aSEmmanuel Vadot		stdout-path = &uart5;
17*f126890aSEmmanuel Vadot		bootargs = "console=ttyS4,115200 earlycon";
18*f126890aSEmmanuel Vadot	};
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	memory@80000000 {
21*f126890aSEmmanuel Vadot		reg = <0x80000000 0x20000000>;
22*f126890aSEmmanuel Vadot	};
23*f126890aSEmmanuel Vadot
24*f126890aSEmmanuel Vadot	leds {
25*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
26*f126890aSEmmanuel Vadot		postcode0 {
27*f126890aSEmmanuel Vadot			label = "BMC_UP";
28*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(H, 0) GPIO_ACTIVE_HIGH>;
29*f126890aSEmmanuel Vadot			default-state = "on";
30*f126890aSEmmanuel Vadot		};
31*f126890aSEmmanuel Vadot		postcode1 {
32*f126890aSEmmanuel Vadot			label = "BMC_HB";
33*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
34*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
35*f126890aSEmmanuel Vadot		};
36*f126890aSEmmanuel Vadot		postcode2 {
37*f126890aSEmmanuel Vadot			label = "FAULT";
38*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
39*f126890aSEmmanuel Vadot		};
40*f126890aSEmmanuel Vadot		// postcode3-7 are GPIOH3-H7
41*f126890aSEmmanuel Vadot	};
42*f126890aSEmmanuel Vadot};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot&fmc {
45*f126890aSEmmanuel Vadot	status = "okay";
46*f126890aSEmmanuel Vadot	flash@0 {
47*f126890aSEmmanuel Vadot		status = "okay";
48*f126890aSEmmanuel Vadot		m25p,fast-read;
49*f126890aSEmmanuel Vadot#include "openbmc-flash-layout.dtsi"
50*f126890aSEmmanuel Vadot	};
51*f126890aSEmmanuel Vadot};
52*f126890aSEmmanuel Vadot
53*f126890aSEmmanuel Vadot&spi1 {
54*f126890aSEmmanuel Vadot	status = "okay";
55*f126890aSEmmanuel Vadot	pinctrl-names = "default";
56*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_spi1_default>;
57*f126890aSEmmanuel Vadot	flash@0 {
58*f126890aSEmmanuel Vadot		status = "okay";
59*f126890aSEmmanuel Vadot		m25p,fast-read;
60*f126890aSEmmanuel Vadot		label = "pnor";
61*f126890aSEmmanuel Vadot	};
62*f126890aSEmmanuel Vadot};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot&uart1 {
65*f126890aSEmmanuel Vadot	// Host Console
66*f126890aSEmmanuel Vadot	status = "okay";
67*f126890aSEmmanuel Vadot	pinctrl-names = "default";
68*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_txd1_default
69*f126890aSEmmanuel Vadot		     &pinctrl_rxd1_default>;
70*f126890aSEmmanuel Vadot};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot&uart5 {
73*f126890aSEmmanuel Vadot	// BMC Console
74*f126890aSEmmanuel Vadot	status = "okay";
75*f126890aSEmmanuel Vadot};
76*f126890aSEmmanuel Vadot
77*f126890aSEmmanuel Vadot&mac0 {
78*f126890aSEmmanuel Vadot	status = "okay";
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot	pinctrl-names = "default";
81*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_rmii1_default
82*f126890aSEmmanuel Vadot		     &pinctrl_mdio1_default>;
83*f126890aSEmmanuel Vadot	clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
84*f126890aSEmmanuel Vadot		 <&syscon ASPEED_CLK_MAC1RCLK>;
85*f126890aSEmmanuel Vadot	clock-names = "MACCLK", "RCLK";
86*f126890aSEmmanuel Vadot};
87*f126890aSEmmanuel Vadot
88*f126890aSEmmanuel Vadot&mac1 {
89*f126890aSEmmanuel Vadot	status = "okay";
90*f126890aSEmmanuel Vadot	pinctrl-names = "default";
91*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_rmii2_default>;
92*f126890aSEmmanuel Vadot	clocks = <&syscon ASPEED_CLK_GATE_MAC2CLK>,
93*f126890aSEmmanuel Vadot		 <&syscon ASPEED_CLK_MAC2RCLK>;
94*f126890aSEmmanuel Vadot	clock-names = "MACCLK", "RCLK";
95*f126890aSEmmanuel Vadot	use-ncsi;
96*f126890aSEmmanuel Vadot};
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot&i2c1 {
99*f126890aSEmmanuel Vadot	status = "okay";
100*f126890aSEmmanuel Vadot	// To PCIe slot SMBUS
101*f126890aSEmmanuel Vadot};
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot&i2c2 {
104*f126890aSEmmanuel Vadot	status = "okay";
105*f126890aSEmmanuel Vadot	// To LAN I210
106*f126890aSEmmanuel Vadot};
107*f126890aSEmmanuel Vadot
108*f126890aSEmmanuel Vadot&i2c3 {
109*f126890aSEmmanuel Vadot	status = "okay";
110*f126890aSEmmanuel Vadot	// SMBus to COMe AB
111*f126890aSEmmanuel Vadot};
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot&i2c4 {
114*f126890aSEmmanuel Vadot	status = "okay";
115*f126890aSEmmanuel Vadot	// I2C to COMe AB
116*f126890aSEmmanuel Vadot};
117*f126890aSEmmanuel Vadot
118*f126890aSEmmanuel Vadot&i2c5 {
119*f126890aSEmmanuel Vadot	status = "okay";
120*f126890aSEmmanuel Vadot// 	USB Debug card
121*f126890aSEmmanuel Vadot	pca9555@27 {
122*f126890aSEmmanuel Vadot		compatible = "nxp,pca9555";
123*f126890aSEmmanuel Vadot		reg = <0x27>;
124*f126890aSEmmanuel Vadot		gpio-controller;
125*f126890aSEmmanuel Vadot		#gpio-cells = <2>;
126*f126890aSEmmanuel Vadot	};
127*f126890aSEmmanuel Vadot};
128*f126890aSEmmanuel Vadot
129*f126890aSEmmanuel Vadot&i2c6 {
130*f126890aSEmmanuel Vadot	status = "okay";
131*f126890aSEmmanuel Vadot	tpm@20 {
132*f126890aSEmmanuel Vadot		compatible = "infineon,slb9645tt";
133*f126890aSEmmanuel Vadot		reg = <0x20>;
134*f126890aSEmmanuel Vadot	};
135*f126890aSEmmanuel Vadot	tmp421@4e {
136*f126890aSEmmanuel Vadot		compatible = "ti,tmp421";
137*f126890aSEmmanuel Vadot		reg = <0x4e>;
138*f126890aSEmmanuel Vadot	};
139*f126890aSEmmanuel Vadot	tmp421@4f {
140*f126890aSEmmanuel Vadot		compatible = "ti,tmp421";
141*f126890aSEmmanuel Vadot		reg = <0x4f>;
142*f126890aSEmmanuel Vadot	};
143*f126890aSEmmanuel Vadot};
144*f126890aSEmmanuel Vadot
145*f126890aSEmmanuel Vadot&i2c8 {
146*f126890aSEmmanuel Vadot	status = "okay";
147*f126890aSEmmanuel Vadot	eeprom@51 {
148*f126890aSEmmanuel Vadot		compatible = "atmel,24c128";
149*f126890aSEmmanuel Vadot		reg = <0x51>;
150*f126890aSEmmanuel Vadot		pagesize = <32>;
151*f126890aSEmmanuel Vadot	};
152*f126890aSEmmanuel Vadot};
153*f126890aSEmmanuel Vadot
154*f126890aSEmmanuel Vadot&pwm_tacho {
155*f126890aSEmmanuel Vadot	status = "okay";
156*f126890aSEmmanuel Vadot	pinctrl-names = "default";
157*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
158*f126890aSEmmanuel Vadot	fan@0 {
159*f126890aSEmmanuel Vadot		reg = <0x00>;
160*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x00>;
161*f126890aSEmmanuel Vadot	};
162*f126890aSEmmanuel Vadot
163*f126890aSEmmanuel Vadot	fan@1 {
164*f126890aSEmmanuel Vadot		reg = <0x00>;
165*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x01>;
166*f126890aSEmmanuel Vadot	};
167*f126890aSEmmanuel Vadot};
168