~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 885b5643f7c9c7bb6469548324af8aa302da7537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2018 Microsemi Corporation
 */

/dts-v1/;
#include "mscc,ocelot.dtsi"

/ {
	compatible = "mscc,ocelot";

	aliases {
		spi0 = &spi0;
		serial0 = &uart0;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};
};

&uart0 {
	status = "okay";
};

&spi0 {
	status = "okay";
	pinctrl-0 = <&spi_cs1_pin>;
	pinctrl-names = "default";

	spi-flash@0 {
		compatible = "jedec,spi-nor";
		spi-max-frequency = <18000000>; /* input clock */
		reg = <0>; /* CS0 */
	};

	spi-nand@1 {
		compatible = "spi-nand";
		spi-max-frequency = <18000000>; /* input clock */
		reg = <1>; /* CS1 */
	};
};