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