105f7e3d1SMasahiro Yamada// SPDX-License-Identifier: GPL-2.0+ OR MIT
205f7e3d1SMasahiro Yamada//
305f7e3d1SMasahiro Yamada// Device Tree Source for UniPhier LD11 Global Board
405f7e3d1SMasahiro Yamada//
505f7e3d1SMasahiro Yamada// Copyright (C) 2016-2017 Socionext Inc.
605f7e3d1SMasahiro Yamada//   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
705f7e3d1SMasahiro Yamada//           Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
896f5a269SKunihiko Hayashi
996f5a269SKunihiko Hayashi/dts-v1/;
105aad7e2dSKatsuhiro Suzuki#include <dt-bindings/gpio/uniphier-gpio.h>
115740ea4eSMasahiro Yamada#include "uniphier-ld11.dtsi"
1296f5a269SKunihiko Hayashi
1396f5a269SKunihiko Hayashi/ {
1496f5a269SKunihiko Hayashi	model = "UniPhier LD11 Global Board (REF_LD11_GP)";
1596f5a269SKunihiko Hayashi	compatible = "socionext,uniphier-ld11-global",
1696f5a269SKunihiko Hayashi		     "socionext,uniphier-ld11";
1796f5a269SKunihiko Hayashi
1896f5a269SKunihiko Hayashi	chosen {
1996f5a269SKunihiko Hayashi		stdout-path = "serial0:115200n8";
2096f5a269SKunihiko Hayashi	};
2196f5a269SKunihiko Hayashi
2296f5a269SKunihiko Hayashi	aliases {
2396f5a269SKunihiko Hayashi		serial0 = &serial0;
2496f5a269SKunihiko Hayashi		serial1 = &serial1;
2596f5a269SKunihiko Hayashi		serial2 = &serial2;
2696f5a269SKunihiko Hayashi		serial3 = &serial3;
2796f5a269SKunihiko Hayashi		i2c0 = &i2c0;
2896f5a269SKunihiko Hayashi		i2c1 = &i2c1;
2996f5a269SKunihiko Hayashi		i2c2 = &i2c2;
3096f5a269SKunihiko Hayashi		i2c3 = &i2c3;
3196f5a269SKunihiko Hayashi		i2c4 = &i2c4;
3296f5a269SKunihiko Hayashi		i2c5 = &i2c5;
3396f5a269SKunihiko Hayashi	};
3496f5a269SKunihiko Hayashi
3596f5a269SKunihiko Hayashi	memory@80000000 {
3696f5a269SKunihiko Hayashi		device_type = "memory";
3796f5a269SKunihiko Hayashi		reg = <0 0x80000000 0 0x40000000>;
3896f5a269SKunihiko Hayashi	};
39fb21a0acSKatsuhiro Suzuki
408191f4dbSKatsuhiro Suzuki	dvdd_reg: reg-fixed {
418191f4dbSKatsuhiro Suzuki		compatible = "regulator-fixed";
428191f4dbSKatsuhiro Suzuki		regulator-name = "DVDD";
438191f4dbSKatsuhiro Suzuki		regulator-min-microvolt = <3300000>;
448191f4dbSKatsuhiro Suzuki		regulator-max-microvolt = <3300000>;
458191f4dbSKatsuhiro Suzuki	};
468191f4dbSKatsuhiro Suzuki
478191f4dbSKatsuhiro Suzuki	amp_vcc_reg: reg-fixed {
488191f4dbSKatsuhiro Suzuki		compatible = "regulator-fixed";
498191f4dbSKatsuhiro Suzuki		regulator-name = "AMP_VCC";
508191f4dbSKatsuhiro Suzuki		regulator-min-microvolt = <24000000>;
518191f4dbSKatsuhiro Suzuki		regulator-max-microvolt = <24000000>;
528191f4dbSKatsuhiro Suzuki	};
538191f4dbSKatsuhiro Suzuki
54fb21a0acSKatsuhiro Suzuki	sound {
55fb21a0acSKatsuhiro Suzuki		compatible = "audio-graph-card";
56fb21a0acSKatsuhiro Suzuki		label = "UniPhier LD11";
5786676c46SKatsuhiro Suzuki		widgets = "Headphone", "Headphones";
58fb21a0acSKatsuhiro Suzuki		dais = <&i2s_port2
595aad7e2dSKatsuhiro Suzuki			&i2s_port3
60fb21a0acSKatsuhiro Suzuki			&i2s_port4
61acc625deSKatsuhiro Suzuki			&spdif_port0
62acc625deSKatsuhiro Suzuki			&comp_spdif_port0>;
631470075dSKatsuhiro Suzuki		hp-det-gpio = <&gpio UNIPHIER_GPIO_IRQ(0) GPIO_ACTIVE_LOW>;
64fb21a0acSKatsuhiro Suzuki	};
65fb21a0acSKatsuhiro Suzuki
66fb21a0acSKatsuhiro Suzuki	spdif-out {
67fb21a0acSKatsuhiro Suzuki		compatible = "linux,spdif-dit";
68fb21a0acSKatsuhiro Suzuki		#sound-dai-cells = <0>;
69fb21a0acSKatsuhiro Suzuki
70fb21a0acSKatsuhiro Suzuki		port@0 {
71fb21a0acSKatsuhiro Suzuki			spdif_tx: endpoint {
72fb21a0acSKatsuhiro Suzuki				remote-endpoint = <&spdif_hiecout1>;
73fb21a0acSKatsuhiro Suzuki			};
74fb21a0acSKatsuhiro Suzuki		};
75fb21a0acSKatsuhiro Suzuki	};
76acc625deSKatsuhiro Suzuki
77acc625deSKatsuhiro Suzuki	comp-spdif-out {
78acc625deSKatsuhiro Suzuki		compatible = "linux,spdif-dit";
79acc625deSKatsuhiro Suzuki		#sound-dai-cells = <0>;
80acc625deSKatsuhiro Suzuki
81acc625deSKatsuhiro Suzuki		port@0 {
82acc625deSKatsuhiro Suzuki			comp_spdif_tx: endpoint {
83acc625deSKatsuhiro Suzuki				remote-endpoint = <&comp_spdif_hiecout1>;
84acc625deSKatsuhiro Suzuki			};
85acc625deSKatsuhiro Suzuki		};
86acc625deSKatsuhiro Suzuki	};
8796f5a269SKunihiko Hayashi};
8896f5a269SKunihiko Hayashi
8996f5a269SKunihiko Hayashi&serial0 {
9096f5a269SKunihiko Hayashi	status = "okay";
9196f5a269SKunihiko Hayashi};
9296f5a269SKunihiko Hayashi
9396f5a269SKunihiko Hayashi&serial1 {
9496f5a269SKunihiko Hayashi	status = "okay";
9596f5a269SKunihiko Hayashi};
9696f5a269SKunihiko Hayashi
975aad7e2dSKatsuhiro Suzuki&i2s_hpcmout1 {
985aad7e2dSKatsuhiro Suzuki	dai-format = "i2s";
995aad7e2dSKatsuhiro Suzuki	remote-endpoint = <&tas_speaker>;
1005aad7e2dSKatsuhiro Suzuki};
1015aad7e2dSKatsuhiro Suzuki
102fb21a0acSKatsuhiro Suzuki&spdif_hiecout1 {
103fb21a0acSKatsuhiro Suzuki	remote-endpoint = <&spdif_tx>;
104fb21a0acSKatsuhiro Suzuki};
105fb21a0acSKatsuhiro Suzuki
106acc625deSKatsuhiro Suzuki&comp_spdif_hiecout1 {
107acc625deSKatsuhiro Suzuki	remote-endpoint = <&comp_spdif_tx>;
108acc625deSKatsuhiro Suzuki};
109acc625deSKatsuhiro Suzuki
11096f5a269SKunihiko Hayashi&i2c0 {
11196f5a269SKunihiko Hayashi	status = "okay";
11296f5a269SKunihiko Hayashi
1135aad7e2dSKatsuhiro Suzuki	tas5707a@1d {
1145aad7e2dSKatsuhiro Suzuki		compatible = "ti,tas5711";
1155aad7e2dSKatsuhiro Suzuki		reg = <0x1d>;
1165aad7e2dSKatsuhiro Suzuki		reset-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 4) GPIO_ACTIVE_LOW>;
1175aad7e2dSKatsuhiro Suzuki		pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 5) GPIO_ACTIVE_LOW>;
1185aad7e2dSKatsuhiro Suzuki		#sound-dai-cells = <0>;
1198191f4dbSKatsuhiro Suzuki		AVDD-supply = <&dvdd_reg>;
1208191f4dbSKatsuhiro Suzuki		DVDD-supply = <&dvdd_reg>;
1218191f4dbSKatsuhiro Suzuki		PVDD_A-supply = <&amp_vcc_reg>;
1228191f4dbSKatsuhiro Suzuki		PVDD_B-supply = <&amp_vcc_reg>;
1238191f4dbSKatsuhiro Suzuki		PVDD_C-supply = <&amp_vcc_reg>;
1248191f4dbSKatsuhiro Suzuki		PVDD_D-supply = <&amp_vcc_reg>;
1255aad7e2dSKatsuhiro Suzuki
1265aad7e2dSKatsuhiro Suzuki		port@0 {
1275aad7e2dSKatsuhiro Suzuki			tas_speaker: endpoint {
1285aad7e2dSKatsuhiro Suzuki				dai-format = "i2s";
1295aad7e2dSKatsuhiro Suzuki				remote-endpoint = <&i2s_hpcmout1>;
1305aad7e2dSKatsuhiro Suzuki			};
1315aad7e2dSKatsuhiro Suzuki		};
1325aad7e2dSKatsuhiro Suzuki	};
1335aad7e2dSKatsuhiro Suzuki
13496f5a269SKunihiko Hayashi	eeprom@50 {
13596f5a269SKunihiko Hayashi		compatible = "st,24c64", "atmel,24c64";
13696f5a269SKunihiko Hayashi		reg = <0x50>;
13796f5a269SKunihiko Hayashi		pagesize = <32>;
13896f5a269SKunihiko Hayashi	};
13996f5a269SKunihiko Hayashi};
14096f5a269SKunihiko Hayashi
14196f5a269SKunihiko Hayashi&usb0 {
14296f5a269SKunihiko Hayashi	status = "okay";
14396f5a269SKunihiko Hayashi};
14496f5a269SKunihiko Hayashi
14596f5a269SKunihiko Hayashi&usb1 {
14696f5a269SKunihiko Hayashi	status = "okay";
14796f5a269SKunihiko Hayashi};
14896f5a269SKunihiko Hayashi
14996f5a269SKunihiko Hayashi&usb2 {
15096f5a269SKunihiko Hayashi	status = "okay";
15196f5a269SKunihiko Hayashi};
152e5aefb38SMasahiro Yamada
153c73730eeSKunihiko Hayashi&eth {
154c73730eeSKunihiko Hayashi	status = "okay";
155c73730eeSKunihiko Hayashi	phy-handle = <&ethphy>;
156c73730eeSKunihiko Hayashi};
157c73730eeSKunihiko Hayashi
158c73730eeSKunihiko Hayashi&mdio {
159c73730eeSKunihiko Hayashi	ethphy: ethphy@1 {
160c73730eeSKunihiko Hayashi		reg = <1>;
161c73730eeSKunihiko Hayashi	};
162c73730eeSKunihiko Hayashi};
163c73730eeSKunihiko Hayashi
164e5aefb38SMasahiro Yamada&nand {
165e5aefb38SMasahiro Yamada	status = "okay";
16653c580c1SMasahiro Yamada
16753c580c1SMasahiro Yamada	nand@0 {
16853c580c1SMasahiro Yamada		reg = <0>;
16953c580c1SMasahiro Yamada	};
170e5aefb38SMasahiro Yamada};
171