0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Copyright (c) 2016 Andreas Färber
0004 * Copyright (c) 2016 BayLibre, Inc.
0005 * Author: Kevin Hilman <khilman@kernel.org>
0006 */
0007
0008 /dts-v1/;
0009
0010 #include "meson-gxbb-p20x.dtsi"
0011 #include <dt-bindings/input/input.h>
0012
0013 / {
0014 compatible = "amlogic,p200", "amlogic,meson-gxbb";
0015 model = "Amlogic Meson GXBB P200 Development Board";
0016
0017 avdd18_usb_adc: regulator-avdd18_usb_adc {
0018 compatible = "regulator-fixed";
0019 regulator-name = "AVDD18_USB_ADC";
0020 regulator-min-microvolt = <1800000>;
0021 regulator-max-microvolt = <1800000>;
0022 };
0023
0024 adc_keys {
0025 compatible = "adc-keys";
0026 io-channels = <&saradc 0>;
0027 io-channel-names = "buttons";
0028 keyup-threshold-microvolt = <1800000>;
0029
0030 button-home {
0031 label = "Home";
0032 linux,code = <KEY_HOME>;
0033 press-threshold-microvolt = <900000>; /* 50% */
0034 };
0035
0036 button-esc {
0037 label = "Esc";
0038 linux,code = <KEY_ESC>;
0039 press-threshold-microvolt = <684000>; /* 38% */
0040 };
0041
0042 button-up {
0043 label = "Volume Up";
0044 linux,code = <KEY_VOLUMEUP>;
0045 press-threshold-microvolt = <468000>; /* 26% */
0046 };
0047
0048 button-down {
0049 label = "Volume Down";
0050 linux,code = <KEY_VOLUMEDOWN>;
0051 press-threshold-microvolt = <252000>; /* 14% */
0052 };
0053
0054 button-menu {
0055 label = "Menu";
0056 linux,code = <KEY_MENU>;
0057 press-threshold-microvolt = <0>; /* 0% */
0058 };
0059 };
0060 };
0061
0062 ðmac {
0063 status = "okay";
0064 pinctrl-0 = <ð_rgmii_pins>;
0065 pinctrl-names = "default";
0066 phy-handle = <ð_phy0>;
0067 phy-mode = "rgmii";
0068
0069 amlogic,tx-delay-ns = <2>;
0070
0071 mdio {
0072 compatible = "snps,dwmac-mdio";
0073 #address-cells = <1>;
0074 #size-cells = <0>;
0075
0076 eth_phy0: ethernet-phy@3 {
0077 /* Micrel KSZ9031 (0x00221620) */
0078 reg = <3>;
0079
0080 reset-assert-us = <10000>;
0081 reset-deassert-us = <30000>;
0082 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
0083
0084 interrupt-parent = <&gpio_intc>;
0085 /* MAC_INTR on GPIOZ_15 */
0086 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
0087 };
0088 };
0089 };
0090
0091 &i2c_B {
0092 status = "okay";
0093 pinctrl-0 = <&i2c_b_pins>;
0094 pinctrl-names = "default";
0095 };
0096
0097 &saradc {
0098 status = "okay";
0099 vref-supply = <&avdd18_usb_adc>;
0100 };