1/** @file
2 * Copyright (c) 2017, Linaro Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-2-Clause-Patent
5 */
6
7/dts-v1/;
8
9#include "synquacer-sc2a11.dtsi"
10
11#define KEY_POWER     116
12
13/ {
14    model = "Socionext Developer Box";
15    compatible = "socionext,developer-box", "socionext,synquacer";
16
17    gpio-keys {
18        compatible = "gpio-keys";
19        interrupt-parent = <&exiu>;
20
21        power {
22            label = "Power Button";
23            linux,code = <KEY_POWER>;
24            interrupts = <GIC_SPI 120 IRQ_TYPE_EDGE_FALLING>;
25            wakeup-source;
26        };
27    };
28};
29
30#ifdef TPM2_ENABLE
31&tpm {
32    status = "okay";
33};
34#endif
35
36&gpio {
37    gpio-line-names = "DSW3-PIN1",  "DSW3-PIN2",  "DSW3-PIN3",    "DSW3-PIN4",
38                      "DSW3-PIN5",  "DSW3-PIN6",  "DSW3-PIN7",    "DSW3-PIN8",
39                      "PSIN#",      "PWROFF#",    "GPIO-A",       "GPIO-B",
40                      "GPIO-C",     "GPIO-D",     "PCIE1EXTINT",  "PCIE0EXTINT",
41                      "PHY2-INT#",  "PHY1-INT#",  "GPIO-E",       "GPIO-F",
42                      "GPIO-G",     "GPIO-H",     "GPIO-I",       "GPIO-J",
43                      "GPIO-K",     "GPIO-L",     "PEC-PD26",     "PEC-PD27",
44                      "PEC-PD28",   "PEC-PD29",   "PEC-PD30",     "PEC-PD31";
45};
46
47&netsec {
48    phy-mode = "rgmii-id";
49};
50
51&mdio_netsec {
52    phy_netsec: ethernet-phy@7 {
53        compatible = "ethernet-phy-ieee802.3-c22";
54        reg = <7>;
55    };
56};
57