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