aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gencfg/schema/boards/abstract_board.xsd
blob: b3a854307671325a06931235cffa4435b19b6148 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified"
  xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:include schemaLocation="../common/doc.xsd" />

  <xs:complexType name="AbstractBoardType" abstract="true">
    <xs:complexContent>
      <xs:extension base="DocumentedItem">
        <xs:attribute name="BoardID" use="required">
          <xs:annotation>
            <xs:documentation>Board identifier string, it is used to
              create the board files folder name and the board
              identifier macro in board.h.</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:whiteSpace value="collapse"></xs:whiteSpace>
              <xs:pattern value="\w[\w\d_]*"></xs:pattern>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="BoardPHYID" use="optional">
          <xs:annotation>
            <xs:documentation>PHY identifier as defined in mii.h or empty if a PHY is not present.</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:whiteSpace value="collapse"></xs:whiteSpace>
              <xs:pattern value="MII_[\w\d_]+"></xs:pattern>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="BoardPHYType" use="optional">
          <xs:annotation>
            <xs:documentation>Type of the PHY device: RMII or MII, this attribute is defaulted to MII if not present.</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="RMII"></xs:enumeration>
              <xs:enumeration value="MII"></xs:enumeration>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

</xs:schema>