1/*
2 * Device Tree Source for UniPhier LD20 Global Board
3 *
4 * Copyright (C) 2015-2017 Socionext Inc.
5 *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
6 *           Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
7 *
8 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
9 */
10
11/dts-v1/;
12#include <dt-bindings/gpio/uniphier-gpio.h>
13#include "uniphier-ld20.dtsi"
14
15/ {
16	model = "UniPhier LD20 Global Board (REF_LD20_GP)";
17	compatible = "socionext,uniphier-ld20-global",
18		     "socionext,uniphier-ld20";
19
20	chosen {
21		stdout-path = "serial0:115200n8";
22	};
23
24	aliases {
25		serial0 = &serial0;
26		serial1 = &serial1;
27		serial2 = &serial2;
28		serial3 = &serial3;
29		i2c0 = &i2c0;
30		i2c1 = &i2c1;
31		i2c2 = &i2c2;
32		i2c3 = &i2c3;
33		i2c4 = &i2c4;
34		i2c5 = &i2c5;
35	};
36
37	memory@80000000 {
38		device_type = "memory";
39		reg = <0 0x80000000 0 0xc0000000>;
40	};
41
42	sound {
43		compatible = "audio-graph-card";
44		label = "UniPhier LD20";
45		widgets = "Headphone", "Headphone Jack";
46		dais = <&i2s_port2
47			&i2s_port3
48			&i2s_port4
49			&spdif_port0>;
50	};
51
52	spdif-out {
53		compatible = "linux,spdif-dit";
54		#sound-dai-cells = <0>;
55
56		port@0 {
57			spdif_tx: endpoint {
58				remote-endpoint = <&spdif_hiecout1>;
59			};
60		};
61	};
62};
63
64&serial0 {
65	status = "okay";
66};
67
68&serial1 {
69	status = "okay";
70};
71
72&i2s_hpcmout1 {
73	dai-format = "i2s";
74	remote-endpoint = <&tas_speaker>;
75};
76
77&spdif_hiecout1 {
78	remote-endpoint = <&spdif_tx>;
79};
80
81&i2c0 {
82	status = "okay";
83
84	tas5707@1b {
85		compatible = "ti,tas5711";
86		reg = <0x1b>;
87		reset-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 0) GPIO_ACTIVE_LOW>;
88		pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 1) GPIO_ACTIVE_LOW>;
89		#sound-dai-cells = <0>;
90
91		port@0 {
92			tas_speaker: endpoint {
93				dai-format = "i2s";
94				remote-endpoint = <&i2s_hpcmout1>;
95			};
96		};
97	};
98};
99
100&nand {
101	status = "okay";
102};
103