xref: /linux/scripts/dtc/include-prefixes/arm/aspeed/ast2600-facebook-netbmc-common.dtsi (revision 06d07429858317ded2db7986113a9e0129cd599b)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+
2724ba675SRob Herring// Copyright (c) 2020 Facebook Inc.
3724ba675SRob Herring
4724ba675SRob Herring#include "aspeed-g6.dtsi"
5724ba675SRob Herring#include <dt-bindings/gpio/aspeed-gpio.h>
6724ba675SRob Herring
7724ba675SRob Herring/ {
8724ba675SRob Herring	aliases {
9724ba675SRob Herring		mmc0 = &emmc;
10724ba675SRob Herring		spi1 = &spi1;
11724ba675SRob Herring		spi2 = &spi_gpio;
12724ba675SRob Herring	};
13724ba675SRob Herring
14724ba675SRob Herring	chosen {
15724ba675SRob Herring		bootargs = "console=ttyS0,9600n8 root=/dev/ram rw vmalloc=640M";
16724ba675SRob Herring	};
17724ba675SRob Herring
18724ba675SRob Herring	memory@80000000 {
19724ba675SRob Herring		device_type = "memory";
20724ba675SRob Herring		reg = <0x80000000 0x80000000>;
21724ba675SRob Herring	};
22724ba675SRob Herring
23724ba675SRob Herring	/*
24724ba675SRob Herring	 * GPIO-based SPI Master is required to access SPI TPM, because
25724ba675SRob Herring	 * full-duplex SPI transactions are not supported by ASPEED SPI
26724ba675SRob Herring	 * Controllers.
27724ba675SRob Herring	 */
28724ba675SRob Herring	spi_gpio: spi {
29724ba675SRob Herring		status = "okay";
30724ba675SRob Herring		compatible = "spi-gpio";
31724ba675SRob Herring		#address-cells = <1>;
32724ba675SRob Herring		#size-cells = <0>;
33724ba675SRob Herring
34724ba675SRob Herring		gpio-sck = <&gpio0 ASPEED_GPIO(X, 3) GPIO_ACTIVE_HIGH>;
35724ba675SRob Herring		gpio-mosi = <&gpio0 ASPEED_GPIO(X, 4) GPIO_ACTIVE_HIGH>;
36724ba675SRob Herring		gpio-miso = <&gpio0 ASPEED_GPIO(X, 5) GPIO_ACTIVE_HIGH>;
37724ba675SRob Herring
38*8412c47dSLukas Wunner		tpm@0 {
39*8412c47dSLukas Wunner			compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
40724ba675SRob Herring			spi-max-frequency = <33000000>;
41724ba675SRob Herring			reg = <0>;
42724ba675SRob Herring		};
43724ba675SRob Herring	};
44724ba675SRob Herring};
45724ba675SRob Herring
46724ba675SRob Herring&fmc {
47724ba675SRob Herring	status = "okay";
48724ba675SRob Herring
49724ba675SRob Herring	flash@0 {
50724ba675SRob Herring		status = "okay";
51724ba675SRob Herring		m25p,fast-read;
52724ba675SRob Herring		label = "spi0.0";
53724ba675SRob Herring
54724ba675SRob Herring#include "facebook-bmc-flash-layout-128.dtsi"
55724ba675SRob Herring	};
56724ba675SRob Herring
57724ba675SRob Herring	flash@1 {
58724ba675SRob Herring		status = "okay";
59724ba675SRob Herring		m25p,fast-read;
60724ba675SRob Herring		label = "spi0.1";
61724ba675SRob Herring
62724ba675SRob Herring		partitions {
63724ba675SRob Herring			compatible = "fixed-partitions";
64724ba675SRob Herring			#address-cells = <1>;
65724ba675SRob Herring			#size-cells = <1>;
66724ba675SRob Herring
67724ba675SRob Herring			flash1@0 {
68724ba675SRob Herring				reg = <0x0 0x8000000>;
69724ba675SRob Herring				label = "flash1";
70724ba675SRob Herring			};
71724ba675SRob Herring		};
72724ba675SRob Herring	};
73724ba675SRob Herring};
74724ba675SRob Herring
75724ba675SRob Herring&spi1 {
76724ba675SRob Herring	status = "okay";
77724ba675SRob Herring};
78724ba675SRob Herring
79724ba675SRob Herring&uart1 {
80724ba675SRob Herring	status = "okay";
81724ba675SRob Herring};
82724ba675SRob Herring
83724ba675SRob Herring&uart2 {
84724ba675SRob Herring	status = "okay";
85724ba675SRob Herring};
86724ba675SRob Herring
87724ba675SRob Herring&uart5 {
88724ba675SRob Herring	status = "okay";
89724ba675SRob Herring};
90724ba675SRob Herring
91724ba675SRob Herring&wdt1 {
92724ba675SRob Herring	status = "okay";
93724ba675SRob Herring};
94724ba675SRob Herring
95724ba675SRob Herring&i2c0 {
96724ba675SRob Herring	status = "okay";
97724ba675SRob Herring};
98724ba675SRob Herring
99724ba675SRob Herring&i2c1 {
100724ba675SRob Herring	status = "okay";
101724ba675SRob Herring};
102724ba675SRob Herring
103724ba675SRob Herring&i2c2 {
104724ba675SRob Herring	status = "okay";
105724ba675SRob Herring};
106724ba675SRob Herring
107724ba675SRob Herring&i2c3 {
108724ba675SRob Herring	status = "okay";
109724ba675SRob Herring};
110724ba675SRob Herring
111724ba675SRob Herring&i2c4 {
112724ba675SRob Herring	status = "okay";
113724ba675SRob Herring};
114724ba675SRob Herring
115724ba675SRob Herring&i2c5 {
116724ba675SRob Herring	status = "okay";
117724ba675SRob Herring};
118724ba675SRob Herring
119724ba675SRob Herring&i2c6 {
120724ba675SRob Herring	status = "okay";
121724ba675SRob Herring};
122724ba675SRob Herring
123724ba675SRob Herring&i2c7 {
124724ba675SRob Herring	status = "okay";
125724ba675SRob Herring};
126724ba675SRob Herring
127724ba675SRob Herring&i2c8 {
128724ba675SRob Herring	status = "okay";
129724ba675SRob Herring};
130724ba675SRob Herring
131724ba675SRob Herring&i2c9 {
132724ba675SRob Herring	status = "okay";
133724ba675SRob Herring};
134724ba675SRob Herring
135724ba675SRob Herring&i2c10 {
136724ba675SRob Herring	status = "okay";
137724ba675SRob Herring};
138724ba675SRob Herring
139724ba675SRob Herring&i2c12 {
140724ba675SRob Herring	status = "okay";
141724ba675SRob Herring};
142724ba675SRob Herring
143724ba675SRob Herring&i2c13 {
144724ba675SRob Herring	status = "okay";
145724ba675SRob Herring};
146724ba675SRob Herring
147724ba675SRob Herring&i2c15 {
148724ba675SRob Herring	status = "okay";
149724ba675SRob Herring};
150724ba675SRob Herring
151724ba675SRob Herring&vhub {
152724ba675SRob Herring	status = "okay";
153724ba675SRob Herring};
154724ba675SRob Herring
155724ba675SRob Herring&emmc_controller {
156724ba675SRob Herring	status = "okay";
157724ba675SRob Herring};
158724ba675SRob Herring
159724ba675SRob Herring&emmc {
160724ba675SRob Herring	status = "okay";
161724ba675SRob Herring
162724ba675SRob Herring	non-removable;
163724ba675SRob Herring	max-frequency = <25000000>;
164724ba675SRob Herring	bus-width = <4>;
165724ba675SRob Herring};
166724ba675SRob Herring
167724ba675SRob Herring&rtc {
168724ba675SRob Herring	status = "okay";
169724ba675SRob Herring};
170