xref: /linux/arch/mips/boot/dts/qca/ar9331_openembed_som9331_board.dts (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1cbafa54aSOleksij Rempel// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2cbafa54aSOleksij Rempel/dts-v1/;
3cbafa54aSOleksij Rempel
4cbafa54aSOleksij Rempel#include <dt-bindings/gpio/gpio.h>
5cbafa54aSOleksij Rempel#include <dt-bindings/input/input.h>
6cbafa54aSOleksij Rempel#include <dt-bindings/leds/common.h>
7cbafa54aSOleksij Rempel
8cbafa54aSOleksij Rempel#include "ar9331.dtsi"
9cbafa54aSOleksij Rempel
10cbafa54aSOleksij Rempel/ {
11cbafa54aSOleksij Rempel	model = "OpenEmbed SOM9331 Board";
12cbafa54aSOleksij Rempel	compatible = "openembed,som9331";
13cbafa54aSOleksij Rempel
14cbafa54aSOleksij Rempel	aliases {
15cbafa54aSOleksij Rempel		serial0 = &uart;
16cbafa54aSOleksij Rempel	};
17cbafa54aSOleksij Rempel
18cbafa54aSOleksij Rempel	memory@0 {
19cbafa54aSOleksij Rempel		device_type = "memory";
20cbafa54aSOleksij Rempel		reg = <0x0 0x4000000>;
21cbafa54aSOleksij Rempel	};
22cbafa54aSOleksij Rempel
23cbafa54aSOleksij Rempel	leds {
24cbafa54aSOleksij Rempel		compatible = "gpio-leds";
25cbafa54aSOleksij Rempel
26cbafa54aSOleksij Rempel		led-0 {
27cbafa54aSOleksij Rempel			function = LED_FUNCTION_STATUS;
28cbafa54aSOleksij Rempel			color = <LED_COLOR_ID_RED>;
29cbafa54aSOleksij Rempel			gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
30cbafa54aSOleksij Rempel			default-state = "off";
31cbafa54aSOleksij Rempel		};
32cbafa54aSOleksij Rempel	};
33cbafa54aSOleksij Rempel
34cbafa54aSOleksij Rempel	gpio-keys {
35cbafa54aSOleksij Rempel		compatible = "gpio-keys";
36cbafa54aSOleksij Rempel
37*5ee46bfbSKrzysztof Kozlowski		button-0 {
38cbafa54aSOleksij Rempel			label = "reset";
39cbafa54aSOleksij Rempel			linux,code = <KEY_RESTART>;
40cbafa54aSOleksij Rempel			gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
41cbafa54aSOleksij Rempel		};
42cbafa54aSOleksij Rempel	};
43cbafa54aSOleksij Rempel};
44cbafa54aSOleksij Rempel
45cbafa54aSOleksij Rempel&ref {
46cbafa54aSOleksij Rempel	clock-frequency = <25000000>;
47cbafa54aSOleksij Rempel};
48cbafa54aSOleksij Rempel
49cbafa54aSOleksij Rempel&uart {
50cbafa54aSOleksij Rempel	status = "okay";
51cbafa54aSOleksij Rempel};
52cbafa54aSOleksij Rempel
53cbafa54aSOleksij Rempel&gpio {
54cbafa54aSOleksij Rempel	status = "okay";
55cbafa54aSOleksij Rempel};
56cbafa54aSOleksij Rempel
57cbafa54aSOleksij Rempel&usb {
58cbafa54aSOleksij Rempel	dr_mode = "host";
59cbafa54aSOleksij Rempel	status = "okay";
60cbafa54aSOleksij Rempel};
61cbafa54aSOleksij Rempel
62cbafa54aSOleksij Rempel&usb_phy {
63cbafa54aSOleksij Rempel	status = "okay";
64cbafa54aSOleksij Rempel};
65cbafa54aSOleksij Rempel
66cbafa54aSOleksij Rempel&spi {
67cbafa54aSOleksij Rempel	num-chipselects = <1>;
68cbafa54aSOleksij Rempel	status = "okay";
69cbafa54aSOleksij Rempel
70cbafa54aSOleksij Rempel	/* Winbond 25Q64FVSIG SPI flash */
71cbafa54aSOleksij Rempel	spiflash: w25q64@0 {
72cbafa54aSOleksij Rempel		#address-cells = <1>;
73cbafa54aSOleksij Rempel		#size-cells = <1>;
74cbafa54aSOleksij Rempel		compatible = "winbond,w25q64", "jedec,spi-nor";
75cbafa54aSOleksij Rempel		spi-max-frequency = <104000000>;
76cbafa54aSOleksij Rempel		reg = <0>;
77cbafa54aSOleksij Rempel	};
78cbafa54aSOleksij Rempel};
79cbafa54aSOleksij Rempel
80cbafa54aSOleksij Rempel&eth0 {
81cbafa54aSOleksij Rempel	status = "okay";
82cbafa54aSOleksij Rempel};
83cbafa54aSOleksij Rempel
84cbafa54aSOleksij Rempel&eth1 {
85cbafa54aSOleksij Rempel	status = "okay";
86cbafa54aSOleksij Rempel};
87cbafa54aSOleksij Rempel
88cbafa54aSOleksij Rempel&switch_port1 {
89cbafa54aSOleksij Rempel	label = "lan0";
90cbafa54aSOleksij Rempel	status = "okay";
91cbafa54aSOleksij Rempel};
92cbafa54aSOleksij Rempel
93cbafa54aSOleksij Rempel&switch_port3 {
94cbafa54aSOleksij Rempel	label = "lan1";
95cbafa54aSOleksij Rempel	status = "okay";
96cbafa54aSOleksij Rempel};
97cbafa54aSOleksij Rempel
98cbafa54aSOleksij Rempel&phy_port0 {
99cbafa54aSOleksij Rempel	status = "okay";
100cbafa54aSOleksij Rempel};
101cbafa54aSOleksij Rempel
102cbafa54aSOleksij Rempel&phy_port2 {
103cbafa54aSOleksij Rempel	status = "okay";
104cbafa54aSOleksij Rempel};
105cbafa54aSOleksij Rempel
106cbafa54aSOleksij Rempel&phy_port4 {
107cbafa54aSOleksij Rempel	status = "okay";
108cbafa54aSOleksij Rempel};
109