Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 | // |
| 3 | // Device Tree Source for UniPhier LD20 Global Board |
| 4 | // |
| 5 | // Copyright (C) 2015-2017 Socionext Inc. |
| 6 | // Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
| 7 | // Kunihiko Hayashi <hayashi.kunihiko@socionext.com> |
Kunihiko Hayashi | fe09290 | 2017-06-22 18:43:52 +0900 | [diff] [blame] | 8 | |
| 9 | /dts-v1/; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 10 | #include <dt-bindings/gpio/uniphier-gpio.h> |
Masahiro Yamada | 1a420bd | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 11 | #include "uniphier-ld20.dtsi" |
Kunihiko Hayashi | fe09290 | 2017-06-22 18:43:52 +0900 | [diff] [blame] | 12 | |
| 13 | / { |
| 14 | model = "UniPhier LD20 Global Board (REF_LD20_GP)"; |
| 15 | compatible = "socionext,uniphier-ld20-global", |
| 16 | "socionext,uniphier-ld20"; |
| 17 | |
| 18 | chosen { |
| 19 | stdout-path = "serial0:115200n8"; |
| 20 | }; |
| 21 | |
| 22 | aliases { |
| 23 | serial0 = &serial0; |
| 24 | serial1 = &serial1; |
| 25 | serial2 = &serial2; |
| 26 | serial3 = &serial3; |
| 27 | i2c0 = &i2c0; |
| 28 | i2c1 = &i2c1; |
| 29 | i2c2 = &i2c2; |
| 30 | i2c3 = &i2c3; |
| 31 | i2c4 = &i2c4; |
| 32 | i2c5 = &i2c5; |
| 33 | }; |
| 34 | |
| 35 | memory@80000000 { |
| 36 | device_type = "memory"; |
| 37 | reg = <0 0x80000000 0 0xc0000000>; |
| 38 | }; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 39 | |
| 40 | dvdd_reg: reg-fixed { |
| 41 | compatible = "regulator-fixed"; |
| 42 | regulator-name = "DVDD"; |
| 43 | regulator-min-microvolt = <3300000>; |
| 44 | regulator-max-microvolt = <3300000>; |
| 45 | }; |
| 46 | |
| 47 | amp_vcc_reg: reg-fixed { |
| 48 | compatible = "regulator-fixed"; |
| 49 | regulator-name = "AMP_VCC"; |
| 50 | regulator-min-microvolt = <12000000>; |
| 51 | regulator-max-microvolt = <12000000>; |
| 52 | }; |
| 53 | |
| 54 | sound { |
| 55 | compatible = "audio-graph-card"; |
| 56 | label = "UniPhier LD20"; |
| 57 | widgets = "Headphone", "Headphone Jack"; |
| 58 | dais = <&i2s_port2 |
| 59 | &i2s_port3 |
| 60 | &i2s_port4 |
| 61 | &spdif_port0 |
| 62 | &comp_spdif_port0>; |
| 63 | }; |
| 64 | |
| 65 | spdif-out { |
| 66 | compatible = "linux,spdif-dit"; |
| 67 | #sound-dai-cells = <0>; |
| 68 | |
| 69 | port@0 { |
| 70 | spdif_tx: endpoint { |
| 71 | remote-endpoint = <&spdif_hiecout1>; |
| 72 | }; |
| 73 | }; |
| 74 | }; |
| 75 | |
| 76 | comp-spdif-out { |
| 77 | compatible = "linux,spdif-dit"; |
| 78 | #sound-dai-cells = <0>; |
| 79 | |
| 80 | port@0 { |
| 81 | comp_spdif_tx: endpoint { |
| 82 | remote-endpoint = <&comp_spdif_hiecout1>; |
| 83 | }; |
| 84 | }; |
| 85 | }; |
Kunihiko Hayashi | fe09290 | 2017-06-22 18:43:52 +0900 | [diff] [blame] | 86 | }; |
| 87 | |
| 88 | &serial0 { |
| 89 | status = "okay"; |
| 90 | }; |
| 91 | |
| 92 | &serial1 { |
| 93 | status = "okay"; |
| 94 | }; |
| 95 | |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 96 | &i2s_hpcmout1 { |
| 97 | dai-format = "i2s"; |
| 98 | remote-endpoint = <&tas_speaker>; |
| 99 | }; |
| 100 | |
| 101 | &spdif_hiecout1 { |
| 102 | remote-endpoint = <&spdif_tx>; |
| 103 | }; |
| 104 | |
| 105 | &comp_spdif_hiecout1 { |
| 106 | remote-endpoint = <&comp_spdif_tx>; |
| 107 | }; |
| 108 | |
Kunihiko Hayashi | fe09290 | 2017-06-22 18:43:52 +0900 | [diff] [blame] | 109 | &i2c0 { |
| 110 | status = "okay"; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 111 | |
| 112 | tas5707@1b { |
| 113 | compatible = "ti,tas5711"; |
| 114 | reg = <0x1b>; |
| 115 | reset-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 0) GPIO_ACTIVE_LOW>; |
| 116 | pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 1) GPIO_ACTIVE_LOW>; |
| 117 | #sound-dai-cells = <0>; |
| 118 | AVDD-supply = <&dvdd_reg>; |
| 119 | DVDD-supply = <&dvdd_reg>; |
| 120 | PVDD_A-supply = <&_vcc_reg>; |
| 121 | PVDD_B-supply = <&_vcc_reg>; |
| 122 | PVDD_C-supply = <&_vcc_reg>; |
| 123 | PVDD_D-supply = <&_vcc_reg>; |
| 124 | |
| 125 | port@0 { |
| 126 | tas_speaker: endpoint { |
| 127 | dai-format = "i2s"; |
| 128 | remote-endpoint = <&i2s_hpcmout1>; |
| 129 | }; |
| 130 | }; |
| 131 | }; |
| 132 | }; |
| 133 | |
| 134 | ð { |
| 135 | status = "okay"; |
| 136 | phy-mode = "rmii"; |
| 137 | pinctrl-0 = <&pinctrl_ether_rmii>; |
| 138 | phy-handle = <ðphy>; |
| 139 | }; |
| 140 | |
| 141 | &mdio { |
| 142 | ethphy: ethphy@1 { |
| 143 | reg = <1>; |
| 144 | }; |
Kunihiko Hayashi | fe09290 | 2017-06-22 18:43:52 +0900 | [diff] [blame] | 145 | }; |
Masahiro Yamada | 1a420bd | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 146 | |
| 147 | &nand { |
| 148 | status = "okay"; |
| 149 | }; |