xref: /linux/scripts/dtc/include-prefixes/arm64/socionext/uniphier-ld11-global.dts (revision 621cde16e49b3ecf7d59a8106a20aaebfb4a59a9)
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;
3344f0746dSKunihiko Hayashi		ethernet0 = &eth;
3496f5a269SKunihiko Hayashi	};
3596f5a269SKunihiko Hayashi
3696f5a269SKunihiko Hayashi	memory@80000000 {
3796f5a269SKunihiko Hayashi		device_type = "memory";
3896f5a269SKunihiko Hayashi		reg = <0 0x80000000 0 0x40000000>;
3996f5a269SKunihiko Hayashi	};
40fb21a0acSKatsuhiro Suzuki
418191f4dbSKatsuhiro Suzuki	dvdd_reg: reg-fixed {
428191f4dbSKatsuhiro Suzuki		compatible = "regulator-fixed";
438191f4dbSKatsuhiro Suzuki		regulator-name = "DVDD";
448191f4dbSKatsuhiro Suzuki		regulator-min-microvolt = <3300000>;
458191f4dbSKatsuhiro Suzuki		regulator-max-microvolt = <3300000>;
468191f4dbSKatsuhiro Suzuki	};
478191f4dbSKatsuhiro Suzuki
488191f4dbSKatsuhiro Suzuki	amp_vcc_reg: reg-fixed {
498191f4dbSKatsuhiro Suzuki		compatible = "regulator-fixed";
508191f4dbSKatsuhiro Suzuki		regulator-name = "AMP_VCC";
518191f4dbSKatsuhiro Suzuki		regulator-min-microvolt = <24000000>;
528191f4dbSKatsuhiro Suzuki		regulator-max-microvolt = <24000000>;
538191f4dbSKatsuhiro Suzuki	};
548191f4dbSKatsuhiro Suzuki
55fb21a0acSKatsuhiro Suzuki	sound {
56fb21a0acSKatsuhiro Suzuki		compatible = "audio-graph-card";
57fb21a0acSKatsuhiro Suzuki		label = "UniPhier LD11";
5886676c46SKatsuhiro Suzuki		widgets = "Headphone", "Headphones";
59fb21a0acSKatsuhiro Suzuki		dais = <&i2s_port2
605aad7e2dSKatsuhiro Suzuki			&i2s_port3
61fb21a0acSKatsuhiro Suzuki			&i2s_port4
62acc625deSKatsuhiro Suzuki			&spdif_port0
63acc625deSKatsuhiro Suzuki			&comp_spdif_port0>;
641470075dSKatsuhiro Suzuki		hp-det-gpio = <&gpio UNIPHIER_GPIO_IRQ(0) GPIO_ACTIVE_LOW>;
65fb21a0acSKatsuhiro Suzuki	};
66fb21a0acSKatsuhiro Suzuki
67fb21a0acSKatsuhiro Suzuki	spdif-out {
68fb21a0acSKatsuhiro Suzuki		compatible = "linux,spdif-dit";
69fb21a0acSKatsuhiro Suzuki		#sound-dai-cells = <0>;
70fb21a0acSKatsuhiro Suzuki
71fb21a0acSKatsuhiro Suzuki		port@0 {
72fb21a0acSKatsuhiro Suzuki			spdif_tx: endpoint {
73fb21a0acSKatsuhiro Suzuki				remote-endpoint = <&spdif_hiecout1>;
74fb21a0acSKatsuhiro Suzuki			};
75fb21a0acSKatsuhiro Suzuki		};
76fb21a0acSKatsuhiro Suzuki	};
77acc625deSKatsuhiro Suzuki
78acc625deSKatsuhiro Suzuki	comp-spdif-out {
79acc625deSKatsuhiro Suzuki		compatible = "linux,spdif-dit";
80acc625deSKatsuhiro Suzuki		#sound-dai-cells = <0>;
81acc625deSKatsuhiro Suzuki
82acc625deSKatsuhiro Suzuki		port@0 {
83acc625deSKatsuhiro Suzuki			comp_spdif_tx: endpoint {
84acc625deSKatsuhiro Suzuki				remote-endpoint = <&comp_spdif_hiecout1>;
85acc625deSKatsuhiro Suzuki			};
86acc625deSKatsuhiro Suzuki		};
87acc625deSKatsuhiro Suzuki	};
8896f5a269SKunihiko Hayashi};
8996f5a269SKunihiko Hayashi
9096f5a269SKunihiko Hayashi&serial0 {
9196f5a269SKunihiko Hayashi	status = "okay";
9296f5a269SKunihiko Hayashi};
9396f5a269SKunihiko Hayashi
9496f5a269SKunihiko Hayashi&serial1 {
9596f5a269SKunihiko Hayashi	status = "okay";
9696f5a269SKunihiko Hayashi};
9796f5a269SKunihiko Hayashi
985aad7e2dSKatsuhiro Suzuki&i2s_hpcmout1 {
995aad7e2dSKatsuhiro Suzuki	dai-format = "i2s";
1005aad7e2dSKatsuhiro Suzuki	remote-endpoint = <&tas_speaker>;
1015aad7e2dSKatsuhiro Suzuki};
1025aad7e2dSKatsuhiro Suzuki
103fb21a0acSKatsuhiro Suzuki&spdif_hiecout1 {
104fb21a0acSKatsuhiro Suzuki	remote-endpoint = <&spdif_tx>;
105fb21a0acSKatsuhiro Suzuki};
106fb21a0acSKatsuhiro Suzuki
107acc625deSKatsuhiro Suzuki&comp_spdif_hiecout1 {
108acc625deSKatsuhiro Suzuki	remote-endpoint = <&comp_spdif_tx>;
109acc625deSKatsuhiro Suzuki};
110acc625deSKatsuhiro Suzuki
11196f5a269SKunihiko Hayashi&i2c0 {
11296f5a269SKunihiko Hayashi	status = "okay";
11396f5a269SKunihiko Hayashi
114345531dfSKrzysztof Kozlowski	audio-codec@1d {
1155aad7e2dSKatsuhiro Suzuki		compatible = "ti,tas5711";
1165aad7e2dSKatsuhiro Suzuki		reg = <0x1d>;
1175aad7e2dSKatsuhiro Suzuki		reset-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 4) GPIO_ACTIVE_LOW>;
1185aad7e2dSKatsuhiro Suzuki		pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 5) GPIO_ACTIVE_LOW>;
1195aad7e2dSKatsuhiro Suzuki		#sound-dai-cells = <0>;
1208191f4dbSKatsuhiro Suzuki		AVDD-supply = <&dvdd_reg>;
1218191f4dbSKatsuhiro Suzuki		DVDD-supply = <&dvdd_reg>;
1228191f4dbSKatsuhiro Suzuki		PVDD_A-supply = <&amp_vcc_reg>;
1238191f4dbSKatsuhiro Suzuki		PVDD_B-supply = <&amp_vcc_reg>;
1248191f4dbSKatsuhiro Suzuki		PVDD_C-supply = <&amp_vcc_reg>;
1258191f4dbSKatsuhiro Suzuki		PVDD_D-supply = <&amp_vcc_reg>;
1265aad7e2dSKatsuhiro Suzuki
127*2e279837SKrzysztof Kozlowski		port {
1285aad7e2dSKatsuhiro Suzuki			tas_speaker: endpoint {
1295aad7e2dSKatsuhiro Suzuki				dai-format = "i2s";
1305aad7e2dSKatsuhiro Suzuki				remote-endpoint = <&i2s_hpcmout1>;
1315aad7e2dSKatsuhiro Suzuki			};
1325aad7e2dSKatsuhiro Suzuki		};
1335aad7e2dSKatsuhiro Suzuki	};
1345aad7e2dSKatsuhiro Suzuki
13596f5a269SKunihiko Hayashi	eeprom@50 {
13696f5a269SKunihiko Hayashi		compatible = "st,24c64", "atmel,24c64";
13796f5a269SKunihiko Hayashi		reg = <0x50>;
13896f5a269SKunihiko Hayashi		pagesize = <32>;
13996f5a269SKunihiko Hayashi	};
14096f5a269SKunihiko Hayashi};
14196f5a269SKunihiko Hayashi
14296f5a269SKunihiko Hayashi&usb0 {
14396f5a269SKunihiko Hayashi	status = "okay";
14496f5a269SKunihiko Hayashi};
14596f5a269SKunihiko Hayashi
14696f5a269SKunihiko Hayashi&usb1 {
14796f5a269SKunihiko Hayashi	status = "okay";
14896f5a269SKunihiko Hayashi};
14996f5a269SKunihiko Hayashi
15096f5a269SKunihiko Hayashi&usb2 {
15196f5a269SKunihiko Hayashi	status = "okay";
15296f5a269SKunihiko Hayashi};
153e5aefb38SMasahiro Yamada
154c73730eeSKunihiko Hayashi&eth {
155c73730eeSKunihiko Hayashi	status = "okay";
156c73730eeSKunihiko Hayashi	phy-handle = <&ethphy>;
157c73730eeSKunihiko Hayashi};
158c73730eeSKunihiko Hayashi
159c73730eeSKunihiko Hayashi&mdio {
160dcd54fa8SKunihiko Hayashi	ethphy: ethernet-phy@1 {
161c73730eeSKunihiko Hayashi		reg = <1>;
162c73730eeSKunihiko Hayashi	};
163c73730eeSKunihiko Hayashi};
164c73730eeSKunihiko Hayashi
165e5aefb38SMasahiro Yamada&nand {
166e5aefb38SMasahiro Yamada	status = "okay";
16753c580c1SMasahiro Yamada
16853c580c1SMasahiro Yamada	nand@0 {
16953c580c1SMasahiro Yamada		reg = <0>;
17053c580c1SMasahiro Yamada	};
171e5aefb38SMasahiro Yamada};
172