hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2016 Texas Instruments Incorporated - https://www.ti.com/
 */
#include "dra72-evm-common.dtsi"
#include "dra72x-mmc-iodelay.dtsi"
#include <dt-bindings/net/ti-dp83867.h>
 
/ {
   model = "TI DRA722 Rev C EVM";
 
   memory@0 {
       device_type = "memory";
       reg = <0x0 0x80000000 0x0 0x80000000>; /* 2GB */
   };
 
   reserved-memory {
       #address-cells = <2>;
       #size-cells = <2>;
       ranges;
 
       ipu2_cma_pool: ipu2_cma@95800000 {
           compatible = "shared-dma-pool";
           reg = <0x0 0x95800000 0x0 0x3800000>;
           reusable;
           status = "okay";
       };
 
       dsp1_cma_pool: dsp1_cma@99000000 {
           compatible = "shared-dma-pool";
           reg = <0x0 0x99000000 0x0 0x4000000>;
           reusable;
           status = "okay";
       };
 
       ipu1_cma_pool: ipu1_cma@9d000000 {
           compatible = "shared-dma-pool";
           reg = <0x0 0x9d000000 0x0 0x2000000>;
           reusable;
           status = "okay";
       };
   };
 
   evm_1v8_sw: fixedregulator-evm_1v8 {
       compatible = "regulator-fixed";
       regulator-name = "evm_1v8";
       regulator-min-microvolt = <1800000>;
       regulator-max-microvolt = <1800000>;
       vin-supply = <&smps4_reg>;
       regulator-always-on;
       regulator-boot-on;
   };
};
 
&i2c1 {
   tps65917: tps65917@58 {
       reg = <0x58>;
 
       interrupts = <GIC_SPI 2 IRQ_TYPE_NONE>;  /* IRQ_SYS_1N */
   };
};
 
#include "dra72-evm-tps65917.dtsi"
 
&ldo2_reg {
   /* LDO2_OUT --> VDDA_1V8_PHY2 */
   regulator-always-on;
   regulator-boot-on;
};
 
&hdmi {
   vdda-supply = <&ldo2_reg>;
};
 
&pcf_gpio_21 {
   interrupt-parent = <&gpio3>;
   interrupts = <30 IRQ_TYPE_EDGE_FALLING>;
};
 
&mac_sw {
   mode-gpios = <&pcf_gpio_21 4 GPIO_ACTIVE_LOW>,
            <&pcf_hdmi 9 GPIO_ACTIVE_LOW>,    /* P11 */
            <&pcf_hdmi 10 GPIO_ACTIVE_LOW>;    /* P12 */
   status = "okay";
};
 
&cpsw_port1 {
   phy-handle = <&dp83867_0>;
   phy-mode = "rgmii-id";
   ti,dual-emac-pvid = <1>;
};
 
&cpsw_port2 {
   phy-handle = <&dp83867_1>;
   phy-mode = "rgmii-id";
   ti,dual-emac-pvid = <2>;
};
 
&davinci_mdio_sw {
   dp83867_0: ethernet-phy@2 {
       reg = <2>;
       ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
       ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
       ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
       ti,min-output-impedance;
       interrupt-parent = <&gpio6>;
       interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
       ti,dp83867-rxctrl-strap-quirk;
   };
 
   dp83867_1: ethernet-phy@3 {
       reg = <3>;
       ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
       ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
       ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
       ti,min-output-impedance;
       interrupt-parent = <&gpio6>;
       interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
       ti,dp83867-rxctrl-strap-quirk;
   };
};
 
&mmc1 {
   pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50", "sdr104";
   pinctrl-0 = <&mmc1_pins_default>;
   pinctrl-1 = <&mmc1_pins_hs>;
   pinctrl-2 = <&mmc1_pins_sdr12>;
   pinctrl-3 = <&mmc1_pins_sdr25>;
   pinctrl-4 = <&mmc1_pins_sdr50>;
   pinctrl-5 = <&mmc1_pins_ddr50_rev20 &mmc1_iodelay_ddr50_conf>;
   pinctrl-6 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev20_conf>;
   vqmmc-supply = <&ldo1_reg>;
};
 
&mmc2 {
   pinctrl-names = "default", "hs", "ddr_1_8v", "hs200_1_8v";
   pinctrl-0 = <&mmc2_pins_default>;
   pinctrl-1 = <&mmc2_pins_hs>;
   pinctrl-2 = <&mmc2_pins_ddr_rev20 &mmc2_iodelay_ddr_conf>;
   pinctrl-3 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_rev20_conf>;
   vmmc-supply = <&evm_1v8_sw>;
};
 
&ipu2 {
   status = "okay";
   memory-region = <&ipu2_cma_pool>;
};
 
&ipu1 {
   status = "okay";
   memory-region = <&ipu1_cma_pool>;
};
 
&dsp1 {
   status = "okay";
   memory-region = <&dsp1_cma_pool>;
};