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; 33*44f0746dSKunihiko Hayashi ethernet0 = ð 341b6d58acSKunihiko Hayashi }; 351b6d58acSKunihiko Hayashi 361b6d58acSKunihiko Hayashi memory@80000000 { 371b6d58acSKunihiko Hayashi device_type = "memory"; 381b6d58acSKunihiko Hayashi reg = <0 0x80000000 0 0xc0000000>; 391b6d58acSKunihiko 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 = <12000000>; 528191f4dbSKatsuhiro Suzuki regulator-max-microvolt = <12000000>; 538191f4dbSKatsuhiro Suzuki }; 548191f4dbSKatsuhiro Suzuki 55fb21a0acSKatsuhiro Suzuki sound { 56fb21a0acSKatsuhiro Suzuki compatible = "audio-graph-card"; 57fb21a0acSKatsuhiro Suzuki label = "UniPhier LD20"; 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>; 6497e10f5aSKatsuhiro 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 }; 881b6d58acSKunihiko Hayashi}; 891b6d58acSKunihiko Hayashi 901b6d58acSKunihiko Hayashi&serial0 { 911b6d58acSKunihiko Hayashi status = "okay"; 921b6d58acSKunihiko Hayashi}; 931b6d58acSKunihiko Hayashi 941b6d58acSKunihiko Hayashi&serial1 { 951b6d58acSKunihiko Hayashi status = "okay"; 961b6d58acSKunihiko Hayashi}; 971b6d58acSKunihiko 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 1111b6d58acSKunihiko Hayashi&i2c0 { 1121b6d58acSKunihiko Hayashi status = "okay"; 1135aad7e2dSKatsuhiro Suzuki 1145aad7e2dSKatsuhiro Suzuki tas5707@1b { 1155aad7e2dSKatsuhiro Suzuki compatible = "ti,tas5711"; 1165aad7e2dSKatsuhiro Suzuki reg = <0x1b>; 1175aad7e2dSKatsuhiro Suzuki reset-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 0) GPIO_ACTIVE_LOW>; 1185aad7e2dSKatsuhiro Suzuki pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 1) 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 = <&_vcc_reg>; 1238191f4dbSKatsuhiro Suzuki PVDD_B-supply = <&_vcc_reg>; 1248191f4dbSKatsuhiro Suzuki PVDD_C-supply = <&_vcc_reg>; 1258191f4dbSKatsuhiro Suzuki PVDD_D-supply = <&_vcc_reg>; 1265aad7e2dSKatsuhiro Suzuki 1275aad7e2dSKatsuhiro Suzuki port@0 { 1285aad7e2dSKatsuhiro Suzuki tas_speaker: endpoint { 1295aad7e2dSKatsuhiro Suzuki dai-format = "i2s"; 1305aad7e2dSKatsuhiro Suzuki remote-endpoint = <&i2s_hpcmout1>; 1315aad7e2dSKatsuhiro Suzuki }; 1325aad7e2dSKatsuhiro Suzuki }; 1335aad7e2dSKatsuhiro Suzuki }; 1341b6d58acSKunihiko Hayashi}; 135e5aefb38SMasahiro Yamada 136c73730eeSKunihiko Hayashið { 137c73730eeSKunihiko Hayashi status = "okay"; 138c73730eeSKunihiko Hayashi phy-mode = "rmii"; 139c73730eeSKunihiko Hayashi pinctrl-0 = <&pinctrl_ether_rmii>; 140c73730eeSKunihiko Hayashi phy-handle = <ðphy>; 141c73730eeSKunihiko Hayashi}; 142c73730eeSKunihiko Hayashi 143c73730eeSKunihiko Hayashi&mdio { 144c73730eeSKunihiko Hayashi ethphy: ethphy@1 { 145c73730eeSKunihiko Hayashi reg = <1>; 146c73730eeSKunihiko Hayashi }; 147c73730eeSKunihiko Hayashi}; 148c73730eeSKunihiko Hayashi 149519904a4SMasahiro Yamada&usb { 150e5aefb38SMasahiro Yamada status = "okay"; 151e5aefb38SMasahiro Yamada}; 152d7b9beb8SKunihiko Hayashi 153519904a4SMasahiro Yamada&nand { 154d7b9beb8SKunihiko Hayashi status = "okay"; 155d7b9beb8SKunihiko Hayashi}; 156