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 LD11 Global Board |
| 4 | // |
| 5 | // Copyright (C) 2016-2017 Socionext Inc. |
| 6 | // Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
| 7 | // Kunihiko Hayashi <hayashi.kunihiko@socionext.com> |
Kunihiko Hayashi | 5915284 | 2017-06-22 18:43:51 +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-ld11.dtsi" |
Kunihiko Hayashi | 5915284 | 2017-06-22 18:43:51 +0900 | [diff] [blame] | 12 | |
| 13 | / { |
| 14 | model = "UniPhier LD11 Global Board (REF_LD11_GP)"; |
| 15 | compatible = "socionext,uniphier-ld11-global", |
| 16 | "socionext,uniphier-ld11"; |
| 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; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame^] | 33 | ethernet0 = ð |
Kunihiko Hayashi | 5915284 | 2017-06-22 18:43:51 +0900 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | memory@80000000 { |
| 37 | device_type = "memory"; |
| 38 | reg = <0 0x80000000 0 0x40000000>; |
| 39 | }; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 40 | |
| 41 | dvdd_reg: reg-fixed { |
| 42 | compatible = "regulator-fixed"; |
| 43 | regulator-name = "DVDD"; |
| 44 | regulator-min-microvolt = <3300000>; |
| 45 | regulator-max-microvolt = <3300000>; |
| 46 | }; |
| 47 | |
| 48 | amp_vcc_reg: reg-fixed { |
| 49 | compatible = "regulator-fixed"; |
| 50 | regulator-name = "AMP_VCC"; |
| 51 | regulator-min-microvolt = <24000000>; |
| 52 | regulator-max-microvolt = <24000000>; |
| 53 | }; |
| 54 | |
| 55 | sound { |
| 56 | compatible = "audio-graph-card"; |
| 57 | label = "UniPhier LD11"; |
Masahiro Yamada | 5ac92d8 | 2018-09-10 12:58:32 +0900 | [diff] [blame] | 58 | widgets = "Headphone", "Headphones"; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 59 | dais = <&i2s_port2 |
| 60 | &i2s_port3 |
| 61 | &i2s_port4 |
| 62 | &spdif_port0 |
| 63 | &comp_spdif_port0>; |
Masahiro Yamada | 5ac92d8 | 2018-09-10 12:58:32 +0900 | [diff] [blame] | 64 | hp-det-gpio = <&gpio UNIPHIER_GPIO_IRQ(0) GPIO_ACTIVE_LOW>; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 65 | }; |
| 66 | |
| 67 | spdif-out { |
| 68 | compatible = "linux,spdif-dit"; |
| 69 | #sound-dai-cells = <0>; |
| 70 | |
| 71 | port@0 { |
| 72 | spdif_tx: endpoint { |
| 73 | remote-endpoint = <&spdif_hiecout1>; |
| 74 | }; |
| 75 | }; |
| 76 | }; |
| 77 | |
| 78 | comp-spdif-out { |
| 79 | compatible = "linux,spdif-dit"; |
| 80 | #sound-dai-cells = <0>; |
| 81 | |
| 82 | port@0 { |
| 83 | comp_spdif_tx: endpoint { |
| 84 | remote-endpoint = <&comp_spdif_hiecout1>; |
| 85 | }; |
| 86 | }; |
| 87 | }; |
Kunihiko Hayashi | 5915284 | 2017-06-22 18:43:51 +0900 | [diff] [blame] | 88 | }; |
| 89 | |
| 90 | &serial0 { |
| 91 | status = "okay"; |
| 92 | }; |
| 93 | |
| 94 | &serial1 { |
| 95 | status = "okay"; |
| 96 | }; |
| 97 | |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 98 | &i2s_hpcmout1 { |
| 99 | dai-format = "i2s"; |
| 100 | remote-endpoint = <&tas_speaker>; |
| 101 | }; |
| 102 | |
| 103 | &spdif_hiecout1 { |
| 104 | remote-endpoint = <&spdif_tx>; |
| 105 | }; |
| 106 | |
| 107 | &comp_spdif_hiecout1 { |
| 108 | remote-endpoint = <&comp_spdif_tx>; |
| 109 | }; |
| 110 | |
Kunihiko Hayashi | 5915284 | 2017-06-22 18:43:51 +0900 | [diff] [blame] | 111 | &i2c0 { |
| 112 | status = "okay"; |
| 113 | |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 114 | tas5707a@1d { |
| 115 | compatible = "ti,tas5711"; |
| 116 | reg = <0x1d>; |
| 117 | reset-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 4) GPIO_ACTIVE_LOW>; |
| 118 | pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 5) GPIO_ACTIVE_LOW>; |
| 119 | #sound-dai-cells = <0>; |
| 120 | AVDD-supply = <&dvdd_reg>; |
| 121 | DVDD-supply = <&dvdd_reg>; |
| 122 | PVDD_A-supply = <&_vcc_reg>; |
| 123 | PVDD_B-supply = <&_vcc_reg>; |
| 124 | PVDD_C-supply = <&_vcc_reg>; |
| 125 | PVDD_D-supply = <&_vcc_reg>; |
| 126 | |
| 127 | port@0 { |
| 128 | tas_speaker: endpoint { |
| 129 | dai-format = "i2s"; |
| 130 | remote-endpoint = <&i2s_hpcmout1>; |
| 131 | }; |
| 132 | }; |
| 133 | }; |
| 134 | |
Kunihiko Hayashi | 5915284 | 2017-06-22 18:43:51 +0900 | [diff] [blame] | 135 | eeprom@50 { |
Masahiro Yamada | 2f220501 | 2020-02-28 21:57:21 +0900 | [diff] [blame] | 136 | compatible = "st,24c64", "atmel,24c64"; |
Kunihiko Hayashi | 5915284 | 2017-06-22 18:43:51 +0900 | [diff] [blame] | 137 | reg = <0x50>; |
| 138 | pagesize = <32>; |
| 139 | }; |
| 140 | }; |
| 141 | |
| 142 | &usb0 { |
| 143 | status = "okay"; |
| 144 | }; |
| 145 | |
| 146 | &usb1 { |
| 147 | status = "okay"; |
| 148 | }; |
| 149 | |
| 150 | &usb2 { |
| 151 | status = "okay"; |
| 152 | }; |
Masahiro Yamada | 1a420bd | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 153 | |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 154 | ð { |
| 155 | status = "okay"; |
| 156 | phy-handle = <ðphy>; |
| 157 | }; |
| 158 | |
| 159 | &mdio { |
| 160 | ethphy: ethphy@1 { |
| 161 | reg = <1>; |
| 162 | }; |
| 163 | }; |
| 164 | |
Masahiro Yamada | 1a420bd | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 165 | &nand { |
| 166 | status = "okay"; |
| 167 | }; |