uniphier-ld11-global.dts 2.8 KB
Newer Older
1 2 3 4 5 6 7
// SPDX-License-Identifier: GPL-2.0+ OR MIT
//
// Device Tree Source for UniPhier LD11 Global Board
//
// Copyright (C) 2016-2017 Socionext Inc.
//   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
//           Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
8 9

/dts-v1/;
10
#include <dt-bindings/gpio/uniphier-gpio.h>
11
#include "uniphier-ld11.dtsi"
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

/ {
	model = "UniPhier LD11 Global Board (REF_LD11_GP)";
	compatible = "socionext,uniphier-ld11-global",
		     "socionext,uniphier-ld11";

	chosen {
		stdout-path = "serial0:115200n8";
	};

	aliases {
		serial0 = &serial0;
		serial1 = &serial1;
		serial2 = &serial2;
		serial3 = &serial3;
		i2c0 = &i2c0;
		i2c1 = &i2c1;
		i2c2 = &i2c2;
		i2c3 = &i2c3;
		i2c4 = &i2c4;
		i2c5 = &i2c5;
	};

	memory@80000000 {
		device_type = "memory";
		reg = <0 0x80000000 0 0x40000000>;
	};
39

40 41 42 43 44 45 46 47 48 49 50 51 52 53
	dvdd_reg: reg-fixed {
		compatible = "regulator-fixed";
		regulator-name = "DVDD";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
	};

	amp_vcc_reg: reg-fixed {
		compatible = "regulator-fixed";
		regulator-name = "AMP_VCC";
		regulator-min-microvolt = <24000000>;
		regulator-max-microvolt = <24000000>;
	};

54 55 56
	sound {
		compatible = "audio-graph-card";
		label = "UniPhier LD11";
57
		widgets = "Headphone", "Headphones";
58
		dais = <&i2s_port2
59
			&i2s_port3
60
			&i2s_port4
61 62
			&spdif_port0
			&comp_spdif_port0>;
63 64 65 66 67 68 69 70 71 72 73 74
	};

	spdif-out {
		compatible = "linux,spdif-dit";
		#sound-dai-cells = <0>;

		port@0 {
			spdif_tx: endpoint {
				remote-endpoint = <&spdif_hiecout1>;
			};
		};
	};
75 76 77 78 79 80 81 82 83 84 85

	comp-spdif-out {
		compatible = "linux,spdif-dit";
		#sound-dai-cells = <0>;

		port@0 {
			comp_spdif_tx: endpoint {
				remote-endpoint = <&comp_spdif_hiecout1>;
			};
		};
	};
86 87 88 89 90 91 92 93 94 95
};

&serial0 {
	status = "okay";
};

&serial1 {
	status = "okay";
};

96 97 98 99 100
&i2s_hpcmout1 {
	dai-format = "i2s";
	remote-endpoint = <&tas_speaker>;
};

101 102 103 104
&spdif_hiecout1 {
	remote-endpoint = <&spdif_tx>;
};

105 106 107 108
&comp_spdif_hiecout1 {
	remote-endpoint = <&comp_spdif_tx>;
};

109 110 111
&i2c0 {
	status = "okay";

112 113 114 115 116 117
	tas5707a@1d {
		compatible = "ti,tas5711";
		reg = <0x1d>;
		reset-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 4) GPIO_ACTIVE_LOW>;
		pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 5) GPIO_ACTIVE_LOW>;
		#sound-dai-cells = <0>;
118 119 120 121 122 123
		AVDD-supply = <&dvdd_reg>;
		DVDD-supply = <&dvdd_reg>;
		PVDD_A-supply = <&amp_vcc_reg>;
		PVDD_B-supply = <&amp_vcc_reg>;
		PVDD_C-supply = <&amp_vcc_reg>;
		PVDD_D-supply = <&amp_vcc_reg>;
124 125 126 127 128 129 130 131 132

		port@0 {
			tas_speaker: endpoint {
				dai-format = "i2s";
				remote-endpoint = <&i2s_hpcmout1>;
			};
		};
	};

133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
	eeprom@50 {
		compatible = "st,24c64", "atmel,24c64";
		reg = <0x50>;
		pagesize = <32>;
	};
};

&usb0 {
	status = "okay";
};

&usb1 {
	status = "okay";
};

&usb2 {
	status = "okay";
};
151

152 153 154 155 156 157 158 159 160 161 162
&eth {
	status = "okay";
	phy-handle = <&ethphy>;
};

&mdio {
	ethphy: ethphy@1 {
		reg = <1>;
	};
};

163 164 165
&nand {
	status = "okay";
};