105f7e3d1SMasahiro Yamada// SPDX-License-Identifier: GPL-2.0+ OR MIT 205f7e3d1SMasahiro Yamada// 305f7e3d1SMasahiro Yamada// Device Tree Source for UniPhier LD20 Global Board 405f7e3d1SMasahiro Yamada// 505f7e3d1SMasahiro Yamada// Copyright (C) 2015-2017 Socionext Inc. 605f7e3d1SMasahiro Yamada// Author: Masahiro Yamada <yamada.masahiro@socionext.com> 705f7e3d1SMasahiro 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>; 63*97e10f5aSKatsuhiro 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 }; 871b6d58acSKunihiko Hayashi}; 881b6d58acSKunihiko Hayashi 891b6d58acSKunihiko Hayashi&serial0 { 901b6d58acSKunihiko Hayashi status = "okay"; 911b6d58acSKunihiko Hayashi}; 921b6d58acSKunihiko Hayashi 931b6d58acSKunihiko Hayashi&serial1 { 941b6d58acSKunihiko Hayashi status = "okay"; 951b6d58acSKunihiko Hayashi}; 961b6d58acSKunihiko 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 1101b6d58acSKunihiko Hayashi&i2c0 { 1111b6d58acSKunihiko Hayashi status = "okay"; 1125aad7e2dSKatsuhiro Suzuki 1135aad7e2dSKatsuhiro Suzuki tas5707@1b { 1145aad7e2dSKatsuhiro Suzuki compatible = "ti,tas5711"; 1155aad7e2dSKatsuhiro Suzuki reg = <0x1b>; 1165aad7e2dSKatsuhiro Suzuki reset-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 0) GPIO_ACTIVE_LOW>; 1175aad7e2dSKatsuhiro Suzuki pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 1) 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 = <&_vcc_reg>; 1228191f4dbSKatsuhiro Suzuki PVDD_B-supply = <&_vcc_reg>; 1238191f4dbSKatsuhiro Suzuki PVDD_C-supply = <&_vcc_reg>; 1248191f4dbSKatsuhiro Suzuki PVDD_D-supply = <&_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 }; 1331b6d58acSKunihiko Hayashi}; 134e5aefb38SMasahiro Yamada 135c73730eeSKunihiko Hayashið { 136c73730eeSKunihiko Hayashi status = "okay"; 137c73730eeSKunihiko Hayashi phy-mode = "rmii"; 138c73730eeSKunihiko Hayashi pinctrl-0 = <&pinctrl_ether_rmii>; 139c73730eeSKunihiko Hayashi phy-handle = <ðphy>; 140c73730eeSKunihiko Hayashi}; 141c73730eeSKunihiko Hayashi 142c73730eeSKunihiko Hayashi&mdio { 143c73730eeSKunihiko Hayashi ethphy: ethphy@1 { 144c73730eeSKunihiko Hayashi reg = <1>; 145c73730eeSKunihiko Hayashi }; 146c73730eeSKunihiko Hayashi}; 147c73730eeSKunihiko Hayashi 148e5aefb38SMasahiro Yamada&nand { 149e5aefb38SMasahiro Yamada status = "okay"; 150e5aefb38SMasahiro Yamada}; 151