Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+ OR MIT
0002 //
0003 // Device Tree Source for UniPhier LD11 Global Board
0004 //
0005 // Copyright (C) 2016-2017 Socionext Inc.
0006 //   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
0007 //           Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
0008 
0009 /dts-v1/;
0010 #include <dt-bindings/gpio/uniphier-gpio.h>
0011 #include "uniphier-ld11.dtsi"
0012 
0013 / {
0014         model = "UniPhier LD11 Global Board (REF_LD11_GP)";
0015         compatible = "socionext,uniphier-ld11-global",
0016                      "socionext,uniphier-ld11";
0017 
0018         chosen {
0019                 stdout-path = "serial0:115200n8";
0020         };
0021 
0022         aliases {
0023                 serial0 = &serial0;
0024                 serial1 = &serial1;
0025                 serial2 = &serial2;
0026                 serial3 = &serial3;
0027                 i2c0 = &i2c0;
0028                 i2c1 = &i2c1;
0029                 i2c2 = &i2c2;
0030                 i2c3 = &i2c3;
0031                 i2c4 = &i2c4;
0032                 i2c5 = &i2c5;
0033                 ethernet0 = &eth;
0034         };
0035 
0036         memory@80000000 {
0037                 device_type = "memory";
0038                 reg = <0 0x80000000 0 0x40000000>;
0039         };
0040 
0041         dvdd_reg: reg-fixed {
0042                 compatible = "regulator-fixed";
0043                 regulator-name = "DVDD";
0044                 regulator-min-microvolt = <3300000>;
0045                 regulator-max-microvolt = <3300000>;
0046         };
0047 
0048         amp_vcc_reg: reg-fixed {
0049                 compatible = "regulator-fixed";
0050                 regulator-name = "AMP_VCC";
0051                 regulator-min-microvolt = <24000000>;
0052                 regulator-max-microvolt = <24000000>;
0053         };
0054 
0055         sound {
0056                 compatible = "audio-graph-card";
0057                 label = "UniPhier LD11";
0058                 widgets = "Headphone", "Headphones";
0059                 dais = <&i2s_port2
0060                         &i2s_port3
0061                         &i2s_port4
0062                         &spdif_port0
0063                         &comp_spdif_port0>;
0064                 hp-det-gpio = <&gpio UNIPHIER_GPIO_IRQ(0) GPIO_ACTIVE_LOW>;
0065         };
0066 
0067         spdif-out {
0068                 compatible = "linux,spdif-dit";
0069                 #sound-dai-cells = <0>;
0070 
0071                 port@0 {
0072                         spdif_tx: endpoint {
0073                                 remote-endpoint = <&spdif_hiecout1>;
0074                         };
0075                 };
0076         };
0077 
0078         comp-spdif-out {
0079                 compatible = "linux,spdif-dit";
0080                 #sound-dai-cells = <0>;
0081 
0082                 port@0 {
0083                         comp_spdif_tx: endpoint {
0084                                 remote-endpoint = <&comp_spdif_hiecout1>;
0085                         };
0086                 };
0087         };
0088 };
0089 
0090 &serial0 {
0091         status = "okay";
0092 };
0093 
0094 &serial1 {
0095         status = "okay";
0096 };
0097 
0098 &i2s_hpcmout1 {
0099         dai-format = "i2s";
0100         remote-endpoint = <&tas_speaker>;
0101 };
0102 
0103 &spdif_hiecout1 {
0104         remote-endpoint = <&spdif_tx>;
0105 };
0106 
0107 &comp_spdif_hiecout1 {
0108         remote-endpoint = <&comp_spdif_tx>;
0109 };
0110 
0111 &i2c0 {
0112         status = "okay";
0113 
0114         tas5707a@1d {
0115                 compatible = "ti,tas5711";
0116                 reg = <0x1d>;
0117                 reset-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 4) GPIO_ACTIVE_LOW>;
0118                 pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 5) GPIO_ACTIVE_LOW>;
0119                 #sound-dai-cells = <0>;
0120                 AVDD-supply = <&dvdd_reg>;
0121                 DVDD-supply = <&dvdd_reg>;
0122                 PVDD_A-supply = <&amp_vcc_reg>;
0123                 PVDD_B-supply = <&amp_vcc_reg>;
0124                 PVDD_C-supply = <&amp_vcc_reg>;
0125                 PVDD_D-supply = <&amp_vcc_reg>;
0126 
0127                 port@0 {
0128                         tas_speaker: endpoint {
0129                                 dai-format = "i2s";
0130                                 remote-endpoint = <&i2s_hpcmout1>;
0131                         };
0132                 };
0133         };
0134 
0135         eeprom@50 {
0136                 compatible = "st,24c64", "atmel,24c64";
0137                 reg = <0x50>;
0138                 pagesize = <32>;
0139         };
0140 };
0141 
0142 &usb0 {
0143         status = "okay";
0144 };
0145 
0146 &usb1 {
0147         status = "okay";
0148 };
0149 
0150 &usb2 {
0151         status = "okay";
0152 };
0153 
0154 &eth {
0155         status = "okay";
0156         phy-handle = <&ethphy>;
0157 };
0158 
0159 &mdio {
0160         ethphy: ethernet-phy@1 {
0161                 reg = <1>;
0162         };
0163 };
0164 
0165 &nand {
0166         status = "okay";
0167 
0168         nand@0 {
0169                 reg = <0>;
0170         };
0171 };