xref: /freebsd/sys/contrib/device-tree/Bindings/net/nxp,netc-blk-ctrl.yaml (revision 5f62a964e9f8abc6a05d8338273fadd154f0a206)
1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5f62a964SEmmanuel Vadot%YAML 1.2
3*5f62a964SEmmanuel Vadot---
4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/net/nxp,netc-blk-ctrl.yaml#
5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5f62a964SEmmanuel Vadot
7*5f62a964SEmmanuel Vadottitle: NETC Blocks Control
8*5f62a964SEmmanuel Vadot
9*5f62a964SEmmanuel Vadotdescription:
10*5f62a964SEmmanuel Vadot  Usually, NETC has 2 blocks of 64KB registers, integrated endpoint register
11*5f62a964SEmmanuel Vadot  block (IERB) and privileged register block (PRB). IERB is used for pre-boot
12*5f62a964SEmmanuel Vadot  initialization for all NETC devices, such as ENETC, Timer, EMIDO and so on.
13*5f62a964SEmmanuel Vadot  And PRB controls global reset and global error handling for NETC. Moreover,
14*5f62a964SEmmanuel Vadot  for the i.MX platform, there is also a NETCMIX block for link configuration,
15*5f62a964SEmmanuel Vadot  such as MII protocol, PCS protocol, etc.
16*5f62a964SEmmanuel Vadot
17*5f62a964SEmmanuel Vadotmaintainers:
18*5f62a964SEmmanuel Vadot  - Wei Fang <wei.fang@nxp.com>
19*5f62a964SEmmanuel Vadot  - Clark Wang <xiaoning.wang@nxp.com>
20*5f62a964SEmmanuel Vadot
21*5f62a964SEmmanuel Vadotproperties:
22*5f62a964SEmmanuel Vadot  compatible:
23*5f62a964SEmmanuel Vadot    enum:
24*5f62a964SEmmanuel Vadot      - nxp,imx95-netc-blk-ctrl
25*5f62a964SEmmanuel Vadot
26*5f62a964SEmmanuel Vadot  reg:
27*5f62a964SEmmanuel Vadot    maxItems: 3
28*5f62a964SEmmanuel Vadot
29*5f62a964SEmmanuel Vadot  reg-names:
30*5f62a964SEmmanuel Vadot    items:
31*5f62a964SEmmanuel Vadot      - const: ierb
32*5f62a964SEmmanuel Vadot      - const: prb
33*5f62a964SEmmanuel Vadot      - const: netcmix
34*5f62a964SEmmanuel Vadot
35*5f62a964SEmmanuel Vadot  "#address-cells":
36*5f62a964SEmmanuel Vadot    const: 2
37*5f62a964SEmmanuel Vadot
38*5f62a964SEmmanuel Vadot  "#size-cells":
39*5f62a964SEmmanuel Vadot    const: 2
40*5f62a964SEmmanuel Vadot
41*5f62a964SEmmanuel Vadot  ranges: true
42*5f62a964SEmmanuel Vadot
43*5f62a964SEmmanuel Vadot  clocks:
44*5f62a964SEmmanuel Vadot    maxItems: 1
45*5f62a964SEmmanuel Vadot
46*5f62a964SEmmanuel Vadot  clock-names:
47*5f62a964SEmmanuel Vadot    items:
48*5f62a964SEmmanuel Vadot      - const: ipg
49*5f62a964SEmmanuel Vadot
50*5f62a964SEmmanuel Vadot  power-domains:
51*5f62a964SEmmanuel Vadot    maxItems: 1
52*5f62a964SEmmanuel Vadot
53*5f62a964SEmmanuel VadotpatternProperties:
54*5f62a964SEmmanuel Vadot  "^pcie@[0-9a-f]+$":
55*5f62a964SEmmanuel Vadot    $ref: /schemas/pci/host-generic-pci.yaml#
56*5f62a964SEmmanuel Vadot
57*5f62a964SEmmanuel Vadotrequired:
58*5f62a964SEmmanuel Vadot  - compatible
59*5f62a964SEmmanuel Vadot  - reg
60*5f62a964SEmmanuel Vadot  - reg-names
61*5f62a964SEmmanuel Vadot  - "#address-cells"
62*5f62a964SEmmanuel Vadot  - "#size-cells"
63*5f62a964SEmmanuel Vadot  - ranges
64*5f62a964SEmmanuel Vadot
65*5f62a964SEmmanuel VadotadditionalProperties: false
66*5f62a964SEmmanuel Vadot
67*5f62a964SEmmanuel Vadotexamples:
68*5f62a964SEmmanuel Vadot  - |
69*5f62a964SEmmanuel Vadot    bus {
70*5f62a964SEmmanuel Vadot        #address-cells = <2>;
71*5f62a964SEmmanuel Vadot        #size-cells = <2>;
72*5f62a964SEmmanuel Vadot
73*5f62a964SEmmanuel Vadot        system-controller@4cde0000 {
74*5f62a964SEmmanuel Vadot            compatible = "nxp,imx95-netc-blk-ctrl";
75*5f62a964SEmmanuel Vadot            reg = <0x0 0x4cde0000 0x0 0x10000>,
76*5f62a964SEmmanuel Vadot                  <0x0 0x4cdf0000 0x0 0x10000>,
77*5f62a964SEmmanuel Vadot                  <0x0 0x4c81000c 0x0 0x18>;
78*5f62a964SEmmanuel Vadot            reg-names = "ierb", "prb", "netcmix";
79*5f62a964SEmmanuel Vadot            #address-cells = <2>;
80*5f62a964SEmmanuel Vadot            #size-cells = <2>;
81*5f62a964SEmmanuel Vadot            ranges;
82*5f62a964SEmmanuel Vadot            clocks = <&scmi_clk 98>;
83*5f62a964SEmmanuel Vadot            clock-names = "ipg";
84*5f62a964SEmmanuel Vadot            power-domains = <&scmi_devpd 18>;
85*5f62a964SEmmanuel Vadot
86*5f62a964SEmmanuel Vadot            pcie@4cb00000 {
87*5f62a964SEmmanuel Vadot                compatible = "pci-host-ecam-generic";
88*5f62a964SEmmanuel Vadot                reg = <0x0 0x4cb00000 0x0 0x100000>;
89*5f62a964SEmmanuel Vadot                #address-cells = <3>;
90*5f62a964SEmmanuel Vadot                #size-cells = <2>;
91*5f62a964SEmmanuel Vadot                device_type = "pci";
92*5f62a964SEmmanuel Vadot                bus-range = <0x1 0x1>;
93*5f62a964SEmmanuel Vadot                ranges = <0x82000000 0x0 0x4cce0000  0x0 0x4cce0000  0x0 0x20000
94*5f62a964SEmmanuel Vadot                          0xc2000000 0x0 0x4cd10000  0x0 0x4cd10000  0x0 0x10000>;
95*5f62a964SEmmanuel Vadot
96*5f62a964SEmmanuel Vadot                mdio@0,0 {
97*5f62a964SEmmanuel Vadot                    compatible = "pci1131,ee00";
98*5f62a964SEmmanuel Vadot                    reg = <0x010000 0 0 0 0>;
99*5f62a964SEmmanuel Vadot                    #address-cells = <1>;
100*5f62a964SEmmanuel Vadot                    #size-cells = <0>;
101*5f62a964SEmmanuel Vadot                };
102*5f62a964SEmmanuel Vadot            };
103*5f62a964SEmmanuel Vadot        };
104*5f62a964SEmmanuel Vadot    };
105