blob: 9d2406a7c4fadc21cd438cb75a5c3f30db224a8e [file] [log] [blame]
Neil Armstrong114abfe2018-02-27 12:30:33 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Kevin Hilmanac400042016-03-24 11:05:15 -07002/*
3 * Copyright (c) 2016 Andreas Färber
4 * Copyright (c) 2016 BayLibre, Inc.
5 * Author: Kevin Hilman <khilman@kernel.org>
Kevin Hilmanac400042016-03-24 11:05:15 -07006 */
7
8/dts-v1/;
9
10#include "meson-gxbb-p20x.dtsi"
Neil Armstrong6b6a1862017-01-16 11:22:45 +010011#include <dt-bindings/input/input.h>
Kevin Hilmanac400042016-03-24 11:05:15 -070012
13/ {
14 compatible = "amlogic,p200", "amlogic,meson-gxbb";
15 model = "Amlogic Meson GXBB P200 Development Board";
Neil Armstrong6b6a1862017-01-16 11:22:45 +010016
17 avdd18_usb_adc: regulator-avdd18_usb_adc {
18 compatible = "regulator-fixed";
19 regulator-name = "AVDD18_USB_ADC";
20 regulator-min-microvolt = <1800000>;
21 regulator-max-microvolt = <1800000>;
22 };
23
24 adc_keys {
25 compatible = "adc-keys";
26 io-channels = <&saradc 0>;
27 io-channel-names = "buttons";
28 keyup-threshold-microvolt = <1800000>;
29
30 button-home {
31 label = "Home";
32 linux,code = <KEY_HOME>;
33 press-threshold-microvolt = <900000>; /* 50% */
34 };
35
36 button-esc {
37 label = "Esc";
38 linux,code = <KEY_ESC>;
39 press-threshold-microvolt = <684000>; /* 38% */
40 };
41
42 button-up {
43 label = "Volume Up";
44 linux,code = <KEY_VOLUMEUP>;
45 press-threshold-microvolt = <468000>; /* 26% */
46 };
47
48 button-down {
49 label = "Volume Down";
50 linux,code = <KEY_VOLUMEDOWN>;
51 press-threshold-microvolt = <252000>; /* 14% */
52 };
53
54 button-menu {
55 label = "Menu";
56 linux,code = <KEY_MENU>;
57 press-threshold-microvolt = <0>; /* 0% */
58 };
59 };
Kevin Hilmanac400042016-03-24 11:05:15 -070060};
Jerome Brunetcb700f42016-09-14 12:06:08 +020061
Martin Blumenstingl2f739c12017-02-19 22:41:42 +010062&ethmac {
63 status = "okay";
64 pinctrl-0 = <&eth_rgmii_pins>;
65 pinctrl-names = "default";
66 phy-handle = <&eth_phy0>;
67 phy-mode = "rgmii";
68
Martin Blumenstingl093d23d2017-02-19 22:41:48 +010069 amlogic,tx-delay-ns = <2>;
70
Martin Blumenstingl2f739c12017-02-19 22:41:42 +010071 snps,reset-gpio = <&gpio GPIOZ_14 0>;
72 snps,reset-delays-us = <0 10000 1000000>;
73 snps,reset-active-low;
74
75 mdio {
76 compatible = "snps,dwmac-mdio";
77 #address-cells = <1>;
78 #size-cells = <0>;
79
80 eth_phy0: ethernet-phy@3 {
81 /* Micrel KSZ9031 (0x00221620) */
82 reg = <3>;
Jerome Brunetb94d22d2017-10-19 14:01:43 +020083 interrupt-parent = <&gpio_intc>;
Martin Blumenstingl50290cf2017-12-02 22:40:36 +010084 /* MAC_INTR on GPIOZ_15 */
Jerome Brunetb94d22d2017-10-19 14:01:43 +020085 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
Martin Blumenstingl2f739c12017-02-19 22:41:42 +010086 };
87 };
88};
89
Jerome Brunetcb700f42016-09-14 12:06:08 +020090&i2c_B {
91 status = "okay";
92 pinctrl-0 = <&i2c_b_pins>;
93 pinctrl-names = "default";
94};
Neil Armstrong6b6a1862017-01-16 11:22:45 +010095
96&saradc {
97 status = "okay";
98 vref-supply = <&avdd18_usb_adc>;
99};