xref: /linux/scripts/dtc/include-prefixes/arm64/socionext/uniphier-ld20-global.dts (revision 5aad7e2d270ccfbeeadc6bd8d89cd2d7d5c34117)
11b6d58acSKunihiko Hayashi/*
21b6d58acSKunihiko Hayashi * Device Tree Source for UniPhier LD20 Global Board
31b6d58acSKunihiko Hayashi *
41b6d58acSKunihiko Hayashi * Copyright (C) 2015-2017 Socionext Inc.
51b6d58acSKunihiko Hayashi *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
61b6d58acSKunihiko Hayashi *           Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
71b6d58acSKunihiko Hayashi *
81b6d58acSKunihiko Hayashi * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
91b6d58acSKunihiko Hayashi */
101b6d58acSKunihiko Hayashi
111b6d58acSKunihiko Hayashi/dts-v1/;
12*5aad7e2dSKatsuhiro Suzuki#include <dt-bindings/gpio/uniphier-gpio.h>
135740ea4eSMasahiro Yamada#include "uniphier-ld20.dtsi"
141b6d58acSKunihiko Hayashi
151b6d58acSKunihiko Hayashi/ {
161b6d58acSKunihiko Hayashi	model = "UniPhier LD20 Global Board (REF_LD20_GP)";
171b6d58acSKunihiko Hayashi	compatible = "socionext,uniphier-ld20-global",
181b6d58acSKunihiko Hayashi		     "socionext,uniphier-ld20";
191b6d58acSKunihiko Hayashi
201b6d58acSKunihiko Hayashi	chosen {
211b6d58acSKunihiko Hayashi		stdout-path = "serial0:115200n8";
221b6d58acSKunihiko Hayashi	};
231b6d58acSKunihiko Hayashi
241b6d58acSKunihiko Hayashi	aliases {
251b6d58acSKunihiko Hayashi		serial0 = &serial0;
261b6d58acSKunihiko Hayashi		serial1 = &serial1;
271b6d58acSKunihiko Hayashi		serial2 = &serial2;
281b6d58acSKunihiko Hayashi		serial3 = &serial3;
291b6d58acSKunihiko Hayashi		i2c0 = &i2c0;
301b6d58acSKunihiko Hayashi		i2c1 = &i2c1;
311b6d58acSKunihiko Hayashi		i2c2 = &i2c2;
321b6d58acSKunihiko Hayashi		i2c3 = &i2c3;
331b6d58acSKunihiko Hayashi		i2c4 = &i2c4;
341b6d58acSKunihiko Hayashi		i2c5 = &i2c5;
351b6d58acSKunihiko Hayashi	};
361b6d58acSKunihiko Hayashi
371b6d58acSKunihiko Hayashi	memory@80000000 {
381b6d58acSKunihiko Hayashi		device_type = "memory";
391b6d58acSKunihiko Hayashi		reg = <0 0x80000000 0 0xc0000000>;
401b6d58acSKunihiko Hayashi	};
41fb21a0acSKatsuhiro Suzuki
42fb21a0acSKatsuhiro Suzuki	sound {
43fb21a0acSKatsuhiro Suzuki		compatible = "audio-graph-card";
44fb21a0acSKatsuhiro Suzuki		label = "UniPhier LD20";
45fb21a0acSKatsuhiro Suzuki		widgets = "Headphone", "Headphone Jack";
46fb21a0acSKatsuhiro Suzuki		dais = <&i2s_port2
47*5aad7e2dSKatsuhiro Suzuki			&i2s_port3
48fb21a0acSKatsuhiro Suzuki			&i2s_port4
49fb21a0acSKatsuhiro Suzuki			&spdif_port0>;
50fb21a0acSKatsuhiro Suzuki	};
51fb21a0acSKatsuhiro Suzuki
52fb21a0acSKatsuhiro Suzuki	spdif-out {
53fb21a0acSKatsuhiro Suzuki		compatible = "linux,spdif-dit";
54fb21a0acSKatsuhiro Suzuki		#sound-dai-cells = <0>;
55fb21a0acSKatsuhiro Suzuki
56fb21a0acSKatsuhiro Suzuki		port@0 {
57fb21a0acSKatsuhiro Suzuki			spdif_tx: endpoint {
58fb21a0acSKatsuhiro Suzuki				remote-endpoint = <&spdif_hiecout1>;
59fb21a0acSKatsuhiro Suzuki			};
60fb21a0acSKatsuhiro Suzuki		};
61fb21a0acSKatsuhiro Suzuki	};
621b6d58acSKunihiko Hayashi};
631b6d58acSKunihiko Hayashi
641b6d58acSKunihiko Hayashi&serial0 {
651b6d58acSKunihiko Hayashi	status = "okay";
661b6d58acSKunihiko Hayashi};
671b6d58acSKunihiko Hayashi
681b6d58acSKunihiko Hayashi&serial1 {
691b6d58acSKunihiko Hayashi	status = "okay";
701b6d58acSKunihiko Hayashi};
711b6d58acSKunihiko Hayashi
72*5aad7e2dSKatsuhiro Suzuki&i2s_hpcmout1 {
73*5aad7e2dSKatsuhiro Suzuki	dai-format = "i2s";
74*5aad7e2dSKatsuhiro Suzuki	remote-endpoint = <&tas_speaker>;
75*5aad7e2dSKatsuhiro Suzuki};
76*5aad7e2dSKatsuhiro Suzuki
77fb21a0acSKatsuhiro Suzuki&spdif_hiecout1 {
78fb21a0acSKatsuhiro Suzuki	remote-endpoint = <&spdif_tx>;
79fb21a0acSKatsuhiro Suzuki};
80fb21a0acSKatsuhiro Suzuki
811b6d58acSKunihiko Hayashi&i2c0 {
821b6d58acSKunihiko Hayashi	status = "okay";
83*5aad7e2dSKatsuhiro Suzuki
84*5aad7e2dSKatsuhiro Suzuki	tas5707@1b {
85*5aad7e2dSKatsuhiro Suzuki		compatible = "ti,tas5711";
86*5aad7e2dSKatsuhiro Suzuki		reg = <0x1b>;
87*5aad7e2dSKatsuhiro Suzuki		reset-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 0) GPIO_ACTIVE_LOW>;
88*5aad7e2dSKatsuhiro Suzuki		pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 1) GPIO_ACTIVE_LOW>;
89*5aad7e2dSKatsuhiro Suzuki		#sound-dai-cells = <0>;
90*5aad7e2dSKatsuhiro Suzuki
91*5aad7e2dSKatsuhiro Suzuki		port@0 {
92*5aad7e2dSKatsuhiro Suzuki			tas_speaker: endpoint {
93*5aad7e2dSKatsuhiro Suzuki				dai-format = "i2s";
94*5aad7e2dSKatsuhiro Suzuki				remote-endpoint = <&i2s_hpcmout1>;
95*5aad7e2dSKatsuhiro Suzuki			};
96*5aad7e2dSKatsuhiro Suzuki		};
97*5aad7e2dSKatsuhiro Suzuki	};
981b6d58acSKunihiko Hayashi};
99e5aefb38SMasahiro Yamada
100e5aefb38SMasahiro Yamada&nand {
101e5aefb38SMasahiro Yamada	status = "okay";
102e5aefb38SMasahiro Yamada};
103