xref: /freebsd-src/sys/contrib/device-tree/src/arm/marvell/dove-d3plug.dts (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot/dts-v1/;
3f126890aSEmmanuel Vadot
4f126890aSEmmanuel Vadot#include "dove.dtsi"
5f126890aSEmmanuel Vadot
6f126890aSEmmanuel Vadot/ {
7f126890aSEmmanuel Vadot	model = "Globalscale D3Plug";
8f126890aSEmmanuel Vadot	compatible = "globalscale,d3plug", "marvell,dove";
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot	memory {
11f126890aSEmmanuel Vadot		device_type = "memory";
12f126890aSEmmanuel Vadot		reg = <0x00000000 0x40000000>;
13f126890aSEmmanuel Vadot	};
14f126890aSEmmanuel Vadot
15f126890aSEmmanuel Vadot	chosen {
16f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/mmcblk0p2 rw rootwait";
17f126890aSEmmanuel Vadot	};
18f126890aSEmmanuel Vadot
19f126890aSEmmanuel Vadot	leds {
20f126890aSEmmanuel Vadot		compatible = "gpio-leds";
21f126890aSEmmanuel Vadot		pinctrl-0 = <&pmx_gpio_0 &pmx_gpio_1 &pmx_gpio_2>;
22f126890aSEmmanuel Vadot		pinctrl-names = "default";
23f126890aSEmmanuel Vadot
24f126890aSEmmanuel Vadot		led-wlan-act {
25f126890aSEmmanuel Vadot			label = "wlan-act";
26f126890aSEmmanuel Vadot			gpios = <&gpio0 0 1>;
27f126890aSEmmanuel Vadot		};
28f126890aSEmmanuel Vadot
29f126890aSEmmanuel Vadot		led-wlan-ap {
30f126890aSEmmanuel Vadot			label = "wlan-ap";
31f126890aSEmmanuel Vadot			gpios = <&gpio0 1 1>;
32f126890aSEmmanuel Vadot		};
33f126890aSEmmanuel Vadot
34f126890aSEmmanuel Vadot		led-status {
35f126890aSEmmanuel Vadot			label = "status";
36f126890aSEmmanuel Vadot			gpios = <&gpio0 2 1>;
37f126890aSEmmanuel Vadot		};
38f126890aSEmmanuel Vadot	};
39f126890aSEmmanuel Vadot
40*aa1a8ff2SEmmanuel Vadot	usb_power: regulator-1 {
41f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
42f126890aSEmmanuel Vadot		regulator-name = "USB Power";
43f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
44f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
45f126890aSEmmanuel Vadot		enable-active-high;
46f126890aSEmmanuel Vadot		regulator-always-on;
47f126890aSEmmanuel Vadot		regulator-boot-on;
48f126890aSEmmanuel Vadot		gpio = <&gpio0 8 0>;
49f126890aSEmmanuel Vadot		pinctrl-0 = <&pmx_gpio_8>;
50f126890aSEmmanuel Vadot		pinctrl-names = "default";
51f126890aSEmmanuel Vadot	};
52f126890aSEmmanuel Vadot};
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel Vadot&uart0 { status = "okay"; };
55f126890aSEmmanuel Vadot&sata0 { status = "okay"; };
56f126890aSEmmanuel Vadot&i2c0 { status = "okay"; };
57f126890aSEmmanuel Vadot
58f126890aSEmmanuel Vadot/* Samsung M8G2F eMMC */
59f126890aSEmmanuel Vadot&sdio0 {
60f126890aSEmmanuel Vadot	status = "okay";
61f126890aSEmmanuel Vadot	non-removable;
62f126890aSEmmanuel Vadot	bus-width = <4>;
63f126890aSEmmanuel Vadot};
64f126890aSEmmanuel Vadot
65f126890aSEmmanuel Vadot/* Marvell SD8787 WLAN/BT */
66f126890aSEmmanuel Vadot&sdio1 {
67f126890aSEmmanuel Vadot	status = "okay";
68f126890aSEmmanuel Vadot	non-removable;
69f126890aSEmmanuel Vadot};
70f126890aSEmmanuel Vadot
71f126890aSEmmanuel Vadot&spi0 {
72f126890aSEmmanuel Vadot	status = "okay";
73f126890aSEmmanuel Vadot
74f126890aSEmmanuel Vadot	/* spi0.0: 2M Flash Macronix MX25L1605D */
75f126890aSEmmanuel Vadot	flash@0 {
76f126890aSEmmanuel Vadot		compatible = "st,m25l1605d";
77f126890aSEmmanuel Vadot		spi-max-frequency = <86000000>;
78f126890aSEmmanuel Vadot		reg = <0>;
79f126890aSEmmanuel Vadot	};
80f126890aSEmmanuel Vadot};
81f126890aSEmmanuel Vadot
82f126890aSEmmanuel Vadot&pcie {
83f126890aSEmmanuel Vadot	status = "okay";
84f126890aSEmmanuel Vadot	/* Fresco Logic USB3.0 xHCI controller */
85f126890aSEmmanuel Vadot	pcie@1 {
86f126890aSEmmanuel Vadot		status = "okay";
87f126890aSEmmanuel Vadot		reset-gpios = <&gpio0 26 1>;
88f126890aSEmmanuel Vadot		reset-delay-us = <20000>;
89f126890aSEmmanuel Vadot		pinctrl-0 = <&pmx_camera_gpio>;
90f126890aSEmmanuel Vadot		pinctrl-names = "default";
91f126890aSEmmanuel Vadot	};
92f126890aSEmmanuel Vadot	/* Mini-PCIe slot */
93f126890aSEmmanuel Vadot	pcie@2 {
94f126890aSEmmanuel Vadot		status = "okay";
95f126890aSEmmanuel Vadot		reset-gpios = <&gpio0 25 1>;
96f126890aSEmmanuel Vadot	};
97f126890aSEmmanuel Vadot};
98