xref: /linux/scripts/dtc/include-prefixes/arm64/socionext/uniphier-ld20-global.dts (revision 05f7e3d18673a35d1f6f2a7b61c5b0b895324b76)
1*05f7e3d1SMasahiro Yamada// SPDX-License-Identifier: GPL-2.0+ OR MIT
2*05f7e3d1SMasahiro Yamada//
3*05f7e3d1SMasahiro Yamada// Device Tree Source for UniPhier LD20 Global Board
4*05f7e3d1SMasahiro Yamada//
5*05f7e3d1SMasahiro Yamada// Copyright (C) 2015-2017 Socionext Inc.
6*05f7e3d1SMasahiro Yamada//   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
7*05f7e3d1SMasahiro Yamada//           Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
81b6d58acSKunihiko Hayashi
91b6d58acSKunihiko Hayashi/dts-v1/;
105aad7e2dSKatsuhiro Suzuki#include <dt-bindings/gpio/uniphier-gpio.h>
115740ea4eSMasahiro Yamada#include "uniphier-ld20.dtsi"
121b6d58acSKunihiko Hayashi
131b6d58acSKunihiko Hayashi/ {
141b6d58acSKunihiko Hayashi	model = "UniPhier LD20 Global Board (REF_LD20_GP)";
151b6d58acSKunihiko Hayashi	compatible = "socionext,uniphier-ld20-global",
161b6d58acSKunihiko Hayashi		     "socionext,uniphier-ld20";
171b6d58acSKunihiko Hayashi
181b6d58acSKunihiko Hayashi	chosen {
191b6d58acSKunihiko Hayashi		stdout-path = "serial0:115200n8";
201b6d58acSKunihiko Hayashi	};
211b6d58acSKunihiko Hayashi
221b6d58acSKunihiko Hayashi	aliases {
231b6d58acSKunihiko Hayashi		serial0 = &serial0;
241b6d58acSKunihiko Hayashi		serial1 = &serial1;
251b6d58acSKunihiko Hayashi		serial2 = &serial2;
261b6d58acSKunihiko Hayashi		serial3 = &serial3;
271b6d58acSKunihiko Hayashi		i2c0 = &i2c0;
281b6d58acSKunihiko Hayashi		i2c1 = &i2c1;
291b6d58acSKunihiko Hayashi		i2c2 = &i2c2;
301b6d58acSKunihiko Hayashi		i2c3 = &i2c3;
311b6d58acSKunihiko Hayashi		i2c4 = &i2c4;
321b6d58acSKunihiko Hayashi		i2c5 = &i2c5;
331b6d58acSKunihiko Hayashi	};
341b6d58acSKunihiko Hayashi
351b6d58acSKunihiko Hayashi	memory@80000000 {
361b6d58acSKunihiko Hayashi		device_type = "memory";
371b6d58acSKunihiko Hayashi		reg = <0 0x80000000 0 0xc0000000>;
381b6d58acSKunihiko 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 = <12000000>;
518191f4dbSKatsuhiro Suzuki		regulator-max-microvolt = <12000000>;
528191f4dbSKatsuhiro Suzuki	};
538191f4dbSKatsuhiro Suzuki
54fb21a0acSKatsuhiro Suzuki	sound {
55fb21a0acSKatsuhiro Suzuki		compatible = "audio-graph-card";
56fb21a0acSKatsuhiro Suzuki		label = "UniPhier LD20";
57fb21a0acSKatsuhiro Suzuki		widgets = "Headphone", "Headphone Jack";
58fb21a0acSKatsuhiro Suzuki		dais = <&i2s_port2
595aad7e2dSKatsuhiro Suzuki			&i2s_port3
60fb21a0acSKatsuhiro Suzuki			&i2s_port4
61acc625deSKatsuhiro Suzuki			&spdif_port0
62acc625deSKatsuhiro Suzuki			&comp_spdif_port0>;
63fb21a0acSKatsuhiro Suzuki	};
64fb21a0acSKatsuhiro Suzuki
65fb21a0acSKatsuhiro Suzuki	spdif-out {
66fb21a0acSKatsuhiro Suzuki		compatible = "linux,spdif-dit";
67fb21a0acSKatsuhiro Suzuki		#sound-dai-cells = <0>;
68fb21a0acSKatsuhiro Suzuki
69fb21a0acSKatsuhiro Suzuki		port@0 {
70fb21a0acSKatsuhiro Suzuki			spdif_tx: endpoint {
71fb21a0acSKatsuhiro Suzuki				remote-endpoint = <&spdif_hiecout1>;
72fb21a0acSKatsuhiro Suzuki			};
73fb21a0acSKatsuhiro Suzuki		};
74fb21a0acSKatsuhiro Suzuki	};
75acc625deSKatsuhiro Suzuki
76acc625deSKatsuhiro Suzuki	comp-spdif-out {
77acc625deSKatsuhiro Suzuki		compatible = "linux,spdif-dit";
78acc625deSKatsuhiro Suzuki		#sound-dai-cells = <0>;
79acc625deSKatsuhiro Suzuki
80acc625deSKatsuhiro Suzuki		port@0 {
81acc625deSKatsuhiro Suzuki			comp_spdif_tx: endpoint {
82acc625deSKatsuhiro Suzuki				remote-endpoint = <&comp_spdif_hiecout1>;
83acc625deSKatsuhiro Suzuki			};
84acc625deSKatsuhiro Suzuki		};
85acc625deSKatsuhiro Suzuki	};
861b6d58acSKunihiko Hayashi};
871b6d58acSKunihiko Hayashi
881b6d58acSKunihiko Hayashi&serial0 {
891b6d58acSKunihiko Hayashi	status = "okay";
901b6d58acSKunihiko Hayashi};
911b6d58acSKunihiko Hayashi
921b6d58acSKunihiko Hayashi&serial1 {
931b6d58acSKunihiko Hayashi	status = "okay";
941b6d58acSKunihiko Hayashi};
951b6d58acSKunihiko Hayashi
965aad7e2dSKatsuhiro Suzuki&i2s_hpcmout1 {
975aad7e2dSKatsuhiro Suzuki	dai-format = "i2s";
985aad7e2dSKatsuhiro Suzuki	remote-endpoint = <&tas_speaker>;
995aad7e2dSKatsuhiro Suzuki};
1005aad7e2dSKatsuhiro Suzuki
101fb21a0acSKatsuhiro Suzuki&spdif_hiecout1 {
102fb21a0acSKatsuhiro Suzuki	remote-endpoint = <&spdif_tx>;
103fb21a0acSKatsuhiro Suzuki};
104fb21a0acSKatsuhiro Suzuki
105acc625deSKatsuhiro Suzuki&comp_spdif_hiecout1 {
106acc625deSKatsuhiro Suzuki	remote-endpoint = <&comp_spdif_tx>;
107acc625deSKatsuhiro Suzuki};
108acc625deSKatsuhiro Suzuki
1091b6d58acSKunihiko Hayashi&i2c0 {
1101b6d58acSKunihiko Hayashi	status = "okay";
1115aad7e2dSKatsuhiro Suzuki
1125aad7e2dSKatsuhiro Suzuki	tas5707@1b {
1135aad7e2dSKatsuhiro Suzuki		compatible = "ti,tas5711";
1145aad7e2dSKatsuhiro Suzuki		reg = <0x1b>;
1155aad7e2dSKatsuhiro Suzuki		reset-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 0) GPIO_ACTIVE_LOW>;
1165aad7e2dSKatsuhiro Suzuki		pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 1) GPIO_ACTIVE_LOW>;
1175aad7e2dSKatsuhiro Suzuki		#sound-dai-cells = <0>;
1188191f4dbSKatsuhiro Suzuki		AVDD-supply = <&dvdd_reg>;
1198191f4dbSKatsuhiro Suzuki		DVDD-supply = <&dvdd_reg>;
1208191f4dbSKatsuhiro Suzuki		PVDD_A-supply = <&amp_vcc_reg>;
1218191f4dbSKatsuhiro Suzuki		PVDD_B-supply = <&amp_vcc_reg>;
1228191f4dbSKatsuhiro Suzuki		PVDD_C-supply = <&amp_vcc_reg>;
1238191f4dbSKatsuhiro Suzuki		PVDD_D-supply = <&amp_vcc_reg>;
1245aad7e2dSKatsuhiro Suzuki
1255aad7e2dSKatsuhiro Suzuki		port@0 {
1265aad7e2dSKatsuhiro Suzuki			tas_speaker: endpoint {
1275aad7e2dSKatsuhiro Suzuki				dai-format = "i2s";
1285aad7e2dSKatsuhiro Suzuki				remote-endpoint = <&i2s_hpcmout1>;
1295aad7e2dSKatsuhiro Suzuki			};
1305aad7e2dSKatsuhiro Suzuki		};
1315aad7e2dSKatsuhiro Suzuki	};
1321b6d58acSKunihiko Hayashi};
133e5aefb38SMasahiro Yamada
134c73730eeSKunihiko Hayashi&eth {
135c73730eeSKunihiko Hayashi	status = "okay";
136c73730eeSKunihiko Hayashi	phy-mode = "rmii";
137c73730eeSKunihiko Hayashi	pinctrl-0 = <&pinctrl_ether_rmii>;
138c73730eeSKunihiko Hayashi	phy-handle = <&ethphy>;
139c73730eeSKunihiko Hayashi};
140c73730eeSKunihiko Hayashi
141c73730eeSKunihiko Hayashi&mdio {
142c73730eeSKunihiko Hayashi	ethphy: ethphy@1 {
143c73730eeSKunihiko Hayashi		reg = <1>;
144c73730eeSKunihiko Hayashi	};
145c73730eeSKunihiko Hayashi};
146c73730eeSKunihiko Hayashi
147e5aefb38SMasahiro Yamada&nand {
148e5aefb38SMasahiro Yamada	status = "okay";
149e5aefb38SMasahiro Yamada};
150