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