hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
// SPDX-License-Identifier: GPL-2.0
/*
 * DTS file for AMD Seattle XGBE (RevB)
 *
 * Copyright (C) 2015 Advanced Micro Devices, Inc.
 */
 
   xgmacclk0_dma_250mhz: clk250mhz_0 {
       compatible = "fixed-clock";
       #clock-cells = <0>;
       clock-frequency = <250000000>;
       clock-output-names = "xgmacclk0_dma_250mhz";
   };
 
   xgmacclk0_ptp_250mhz: clk250mhz_1 {
       compatible = "fixed-clock";
       #clock-cells = <0>;
       clock-frequency = <250000000>;
       clock-output-names = "xgmacclk0_ptp_250mhz";
   };
 
   xgmacclk1_dma_250mhz: clk250mhz_2 {
       compatible = "fixed-clock";
       #clock-cells = <0>;
       clock-frequency = <250000000>;
       clock-output-names = "xgmacclk1_dma_250mhz";
   };
 
   xgmacclk1_ptp_250mhz: clk250mhz_3 {
       compatible = "fixed-clock";
       #clock-cells = <0>;
       clock-frequency = <250000000>;
       clock-output-names = "xgmacclk1_ptp_250mhz";
   };
 
   xgmac0: xgmac@e0700000 {
       compatible = "amd,xgbe-seattle-v1a";
       reg = <0 0xe0700000 0 0x80000>,
             <0 0xe0780000 0 0x80000>,
             <0 0xe1240800 0 0x00400>, /* SERDES RX/TX0 */
             <0 0xe1250000 0 0x00060>, /* SERDES IR 1/2 */
             <0 0xe12500f8 0 0x00004>; /* SERDES IR 2/2 */
       interrupts = <0 325 4>,
                <0 346 1>, <0 347 1>, <0 348 1>, <0 349 1>,
                <0 323 4>;
       amd,per-channel-interrupt;
       amd,speed-set = <0>;
       amd,serdes-blwc = <1>, <1>, <0>;
       amd,serdes-cdr-rate = <2>, <2>, <7>;
       amd,serdes-pq-skew = <10>, <10>, <18>;
       amd,serdes-tx-amp = <0>, <0>, <0>;
       amd,serdes-dfe-tap-config = <3>, <3>, <3>;
       amd,serdes-dfe-tap-enable = <0>, <0>, <7>;
       mac-address = [ 02 A1 A2 A3 A4 A5 ];
       clocks = <&xgmacclk0_dma_250mhz>, <&xgmacclk0_ptp_250mhz>;
       clock-names = "dma_clk", "ptp_clk";
       phy-mode = "xgmii";
       #stream-id-cells = <16>;
       dma-coherent;
   };
 
   xgmac1: xgmac@e0900000 {
       compatible = "amd,xgbe-seattle-v1a";
       reg = <0 0xe0900000 0 0x80000>,
             <0 0xe0980000 0 0x80000>,
             <0 0xe1240c00 0 0x00400>, /* SERDES RX/TX1 */
             <0 0xe1250080 0 0x00060>, /* SERDES IR 1/2 */
             <0 0xe12500fc 0 0x00004>; /* SERDES IR 2/2 */
       interrupts = <0 324 4>,
                <0 341 1>, <0 342 1>, <0 343 1>, <0 344 1>,
                <0 322 4>;
       amd,per-channel-interrupt;
       amd,speed-set = <0>;
       amd,serdes-blwc = <1>, <1>, <0>;
       amd,serdes-cdr-rate = <2>, <2>, <7>;
       amd,serdes-pq-skew = <10>, <10>, <18>;
       amd,serdes-tx-amp = <0>, <0>, <0>;
       amd,serdes-dfe-tap-config = <3>, <3>, <3>;
       amd,serdes-dfe-tap-enable = <0>, <0>, <7>;
       mac-address = [ 02 B1 B2 B3 B4 B5 ];
       clocks = <&xgmacclk1_dma_250mhz>, <&xgmacclk1_ptp_250mhz>;
       clock-names = "dma_clk", "ptp_clk";
       phy-mode = "xgmii";
       #stream-id-cells = <16>;
       dma-coherent;
   };
 
   xgmac0_smmu: smmu@e0600000 {
        compatible = "arm,mmu-401";
        reg = <0 0xe0600000 0 0x10000>;
        #global-interrupts = <1>;
        interrupts = /* Uses combined intr for both
                  * global and context
                  */
                 <0 336 4>,
                 <0 336 4>;
 
        mmu-masters = <&xgmac0
             0  1  2  3  4  5  6  7
            16 17 18 19 20 21 22 23
        >;
    };
 
    xgmac1_smmu: smmu@e0800000 {
        compatible = "arm,mmu-401";
        reg = <0 0xe0800000 0 0x10000>;
        #global-interrupts = <1>;
        interrupts = /* Uses combined intr for both
                  * global and context
                  */
                 <0 335 4>,
                 <0 335 4>;
 
        mmu-masters = <&xgmac1
             0  1  2  3  4  5  6  7
            16 17 18 19 20 21 22 23
        >;
    };