1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot// Copyright (c) 2018 Inspur Corporation
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 = "ON5263M5 BMC";
10*f126890aSEmmanuel Vadot	compatible = "inspur,on5263m5-bmc", "aspeed,ast2500";
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot	chosen {
13*f126890aSEmmanuel Vadot		stdout-path = &uart5;
14*f126890aSEmmanuel Vadot		bootargs = "earlycon";
15*f126890aSEmmanuel Vadot	};
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	memory {
18*f126890aSEmmanuel Vadot		reg = <0x80000000 0x20000000>;
19*f126890aSEmmanuel Vadot	};
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot	reserved-memory {
22*f126890aSEmmanuel Vadot		#address-cells = <1>;
23*f126890aSEmmanuel Vadot		#size-cells = <1>;
24*f126890aSEmmanuel Vadot		ranges;
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot		vga_memory: framebuffer@9f000000 {
27*f126890aSEmmanuel Vadot			no-map;
28*f126890aSEmmanuel Vadot			reg = <0x9f000000 0x01000000>;
29*f126890aSEmmanuel Vadot		};
30*f126890aSEmmanuel Vadot	};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot	leds {
33*f126890aSEmmanuel Vadot	    compatible = "gpio-leds";
34*f126890aSEmmanuel Vadot	    bmc_alive {
35*f126890aSEmmanuel Vadot		label = "bmc_alive";
36*f126890aSEmmanuel Vadot		gpios = <&gpio ASPEED_GPIO(I, 1) GPIO_ACTIVE_LOW>;
37*f126890aSEmmanuel Vadot		linux,default-trigger = "timer";
38*f126890aSEmmanuel Vadot	    };
39*f126890aSEmmanuel Vadot	};
40*f126890aSEmmanuel Vadot
41*f126890aSEmmanuel Vadot	iio-hwmon {
42*f126890aSEmmanuel Vadot		compatible = "iio-hwmon";
43*f126890aSEmmanuel Vadot		io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
44*f126890aSEmmanuel Vadot			<&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>;
45*f126890aSEmmanuel Vadot	};
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot};
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot&fmc {
50*f126890aSEmmanuel Vadot	status = "okay";
51*f126890aSEmmanuel Vadot	flash@0 {
52*f126890aSEmmanuel Vadot		status = "okay";
53*f126890aSEmmanuel Vadot		m25p,fast-read;
54*f126890aSEmmanuel Vadot		label = "bmc";
55*f126890aSEmmanuel Vadot#include "openbmc-flash-layout.dtsi"
56*f126890aSEmmanuel Vadot	};
57*f126890aSEmmanuel Vadot};
58*f126890aSEmmanuel Vadot
59*f126890aSEmmanuel Vadot&spi1 {
60*f126890aSEmmanuel Vadot	status = "okay";
61*f126890aSEmmanuel Vadot	pinctrl-names = "default";
62*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_spi1_default>;
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot	flash@0 {
65*f126890aSEmmanuel Vadot		status = "okay";
66*f126890aSEmmanuel Vadot		m25p,fast-read;
67*f126890aSEmmanuel Vadot		label = "pnor";
68*f126890aSEmmanuel Vadot	};
69*f126890aSEmmanuel Vadot};
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot&uart5 {
72*f126890aSEmmanuel Vadot	status = "okay";
73*f126890aSEmmanuel Vadot};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot&mac0 {
76*f126890aSEmmanuel Vadot	status = "okay";
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot	pinctrl-names = "default";
79*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_rmii1_default>;
80*f126890aSEmmanuel Vadot	clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
81*f126890aSEmmanuel Vadot		 <&syscon ASPEED_CLK_MAC1RCLK>;
82*f126890aSEmmanuel Vadot	clock-names = "MACCLK", "RCLK";
83*f126890aSEmmanuel Vadot	use-ncsi;
84*f126890aSEmmanuel Vadot};
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot&mac1 {
87*f126890aSEmmanuel Vadot	status = "okay";
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot	pinctrl-names = "default";
90*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
91*f126890aSEmmanuel Vadot};
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot&i2c6 {
94*f126890aSEmmanuel Vadot	status = "okay";
95*f126890aSEmmanuel Vadot
96*f126890aSEmmanuel Vadot	tmp421@4e {
97*f126890aSEmmanuel Vadot		compatible = "ti,tmp421";
98*f126890aSEmmanuel Vadot		reg = <0x4e>;
99*f126890aSEmmanuel Vadot	};
100*f126890aSEmmanuel Vadot
101*f126890aSEmmanuel Vadot	tmp112@48 {
102*f126890aSEmmanuel Vadot		compatible = "ti,tmp112";
103*f126890aSEmmanuel Vadot		reg = <0x48>;
104*f126890aSEmmanuel Vadot	};
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot	eeprom@54 {
107*f126890aSEmmanuel Vadot		compatible = "atmel,24c64";
108*f126890aSEmmanuel Vadot		reg = <0x54>;
109*f126890aSEmmanuel Vadot		pagesize = <32>;
110*f126890aSEmmanuel Vadot	};
111*f126890aSEmmanuel Vadot};
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot&i2c7 {
114*f126890aSEmmanuel Vadot	status = "okay";
115*f126890aSEmmanuel Vadot
116*f126890aSEmmanuel Vadot	adm1278@11 {
117*f126890aSEmmanuel Vadot		  compatible = "adi,adm1278";
118*f126890aSEmmanuel Vadot		  reg = <0x11>;
119*f126890aSEmmanuel Vadot	};
120*f126890aSEmmanuel Vadot};
121*f126890aSEmmanuel Vadot
122*f126890aSEmmanuel Vadot&gfx {
123*f126890aSEmmanuel Vadot	status = "okay";
124*f126890aSEmmanuel Vadot};
125*f126890aSEmmanuel Vadot
126*f126890aSEmmanuel Vadot&pinctrl {
127*f126890aSEmmanuel Vadot	aspeed,external-nodes = <&gfx &lhc>;
128*f126890aSEmmanuel Vadot};
129*f126890aSEmmanuel Vadot
130*f126890aSEmmanuel Vadot&pwm_tacho {
131*f126890aSEmmanuel Vadot	status = "okay";
132*f126890aSEmmanuel Vadot	pinctrl-names = "default";
133*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
134*f126890aSEmmanuel Vadot
135*f126890aSEmmanuel Vadot	fan@0 {
136*f126890aSEmmanuel Vadot		reg = <0x00>;
137*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>;
138*f126890aSEmmanuel Vadot	};
139*f126890aSEmmanuel Vadot
140*f126890aSEmmanuel Vadot	fan@1 {
141*f126890aSEmmanuel Vadot		reg = <0x01>;
142*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>;
143*f126890aSEmmanuel Vadot	};
144*f126890aSEmmanuel Vadot};
145*f126890aSEmmanuel Vadot
146*f126890aSEmmanuel Vadot&adc {
147*f126890aSEmmanuel Vadot	status = "okay";
148*f126890aSEmmanuel Vadot};
149