xref: /freebsd/sys/contrib/device-tree/src/arm/aspeed/aspeed-bmc-facebook-wedge40.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2*f126890aSEmmanuel Vadot// Copyright (c) 2018 Facebook Inc.
3*f126890aSEmmanuel Vadot/dts-v1/;
4*f126890aSEmmanuel Vadot
5*f126890aSEmmanuel Vadot#include "ast2400-facebook-netbmc-common.dtsi"
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot/ {
8*f126890aSEmmanuel Vadot	model = "Facebook Wedge 40 BMC";
9*f126890aSEmmanuel Vadot	compatible = "facebook,wedge40-bmc", "aspeed,ast2400";
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot	chosen {
12*f126890aSEmmanuel Vadot		stdout-path = &uart3;
13*f126890aSEmmanuel Vadot		bootargs = "console=ttyS2,9600n8 root=/dev/ram rw";
14*f126890aSEmmanuel Vadot	};
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	ast-adc-hwmon {
17*f126890aSEmmanuel Vadot		compatible = "iio-hwmon";
18*f126890aSEmmanuel Vadot		io-channels = <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>;
19*f126890aSEmmanuel Vadot	};
20*f126890aSEmmanuel Vadot};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot&wdt2 {
23*f126890aSEmmanuel Vadot	status = "disabled";
24*f126890aSEmmanuel Vadot};
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot&pwm_tacho {
27*f126890aSEmmanuel Vadot	status = "okay";
28*f126890aSEmmanuel Vadot	pinctrl-names = "default";
29*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_pwm0_default
30*f126890aSEmmanuel Vadot		     &pinctrl_pwm1_default
31*f126890aSEmmanuel Vadot		     &pinctrl_pwm6_default
32*f126890aSEmmanuel Vadot		     &pinctrl_pwm7_default>;
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot	fan@0 {
35*f126890aSEmmanuel Vadot		reg = <0x00>;
36*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>;
37*f126890aSEmmanuel Vadot	};
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot	fan@1 {
40*f126890aSEmmanuel Vadot		reg = <0x01>;
41*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>;
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot	fan@6 {
45*f126890aSEmmanuel Vadot		reg = <0x06>;
46*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>;
47*f126890aSEmmanuel Vadot	};
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot	fan@7 {
50*f126890aSEmmanuel Vadot		reg = <0x07>;
51*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>;
52*f126890aSEmmanuel Vadot	};
53*f126890aSEmmanuel Vadot};
54