| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2016 Andreas Färber |
| 4 |
* Copyright (c) 2016 BayLibre, Inc. |
| 5 |
* Author: Kevin Hilman <[email protected]> |
| 6 |
*/ |
| 7 |
|
| 8 |
/dts-v1/; |
| 9 |
|
| 10 |
#include "meson-gxbb-p20x.dtsi" |
| 11 |
#include <dt-bindings/input/input.h> |
| 12 |
#include <dt-bindings/sound/meson-aiu.h> |
| 13 |
|
| 14 |
/ { |
| 15 |
compatible = "amlogic,p200", "amlogic,meson-gxbb"; |
| 16 |
model = "Amlogic Meson GXBB P200 Development Board"; |
| 17 |
|
| 18 |
spdif_dit: audio-codec-0 { |
| 19 |
#sound-dai-cells = <0>; |
| 20 |
compatible = "linux,spdif-dit"; |
| 21 |
sound-name-prefix = "DIT"; |
| 22 |
}; |
| 23 |
|
| 24 |
avdd18_usb_adc: regulator-avdd18-usb-adc { |
| 25 |
compatible = "regulator-fixed"; |
| 26 |
regulator-name = "AVDD18_USB_ADC"; |
| 27 |
regulator-min-microvolt = <1800000>; |
| 28 |
regulator-max-microvolt = <1800000>; |
| 29 |
}; |
| 30 |
|
| 31 |
keys { |
| 32 |
compatible = "adc-keys"; |
| 33 |
io-channels = <&saradc 0>; |
| 34 |
io-channel-names = "buttons"; |
| 35 |
keyup-threshold-microvolt = <1800000>; |
| 36 |
|
| 37 |
button-home { |
| 38 |
label = "Home"; |
| 39 |
linux,code = <KEY_HOME>; |
| 40 |
press-threshold-microvolt = <900000>; /* 50% */ |
| 41 |
}; |
| 42 |
|
| 43 |
button-esc { |
| 44 |
label = "Esc"; |
| 45 |
linux,code = <KEY_ESC>; |
| 46 |
press-threshold-microvolt = <684000>; /* 38% */ |
| 47 |
}; |
| 48 |
|
| 49 |
button-up { |
| 50 |
label = "Volume Up"; |
| 51 |
linux,code = <KEY_VOLUMEUP>; |
| 52 |
press-threshold-microvolt = <468000>; /* 26% */ |
| 53 |
}; |
| 54 |
|
| 55 |
button-down { |
| 56 |
label = "Volume Down"; |
| 57 |
linux,code = <KEY_VOLUMEDOWN>; |
| 58 |
press-threshold-microvolt = <252000>; /* 14% */ |
| 59 |
}; |
| 60 |
|
| 61 |
button-menu { |
| 62 |
label = "Menu"; |
| 63 |
linux,code = <KEY_MENU>; |
| 64 |
press-threshold-microvolt = <0>; /* 0% */ |
| 65 |
}; |
| 66 |
}; |
| 67 |
|
| 68 |
sound { |
| 69 |
compatible = "amlogic,gx-sound-card"; |
| 70 |
model = "P200"; |
| 71 |
clocks = <&clkc CLKID_MPLL0>, |
| 72 |
<&clkc CLKID_MPLL1>, |
| 73 |
<&clkc CLKID_MPLL2>; |
| 74 |
|
| 75 |
assigned-clocks = <&clkc CLKID_MPLL0>, |
| 76 |
<&clkc CLKID_MPLL1>, |
| 77 |
<&clkc CLKID_MPLL2>; |
| 78 |
assigned-clock-rates = <294912000>, |
| 79 |
<270950400>, |
| 80 |
<393216000>; |
| 81 |
|
| 82 |
dai-link-0 { |
| 83 |
sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; |
| 84 |
}; |
| 85 |
|
| 86 |
dai-link-1 { |
| 87 |
sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>; |
| 88 |
}; |
| 89 |
|
| 90 |
dai-link-2 { |
| 91 |
sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; |
| 92 |
dai-format = "i2s"; |
| 93 |
mclk-fs = <256>; |
| 94 |
|
| 95 |
codec-0 { |
| 96 |
sound-dai = <&aiu AIU_HDMI CTRL_I2S>; |
| 97 |
}; |
| 98 |
}; |
| 99 |
|
| 100 |
dai-link-3 { |
| 101 |
sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>; |
| 102 |
|
| 103 |
codec-0 { |
| 104 |
sound-dai = <&spdif_dit>; |
| 105 |
}; |
| 106 |
}; |
| 107 |
|
| 108 |
dai-link-4 { |
| 109 |
sound-dai = <&aiu AIU_HDMI CTRL_OUT>; |
| 110 |
|
| 111 |
codec-0 { |
| 112 |
sound-dai = <&hdmi_tx>; |
| 113 |
}; |
| 114 |
}; |
| 115 |
}; |
| 116 |
}; |
| 117 |
|
| 118 |
&aiu { |
| 119 |
status = "okay"; |
| 120 |
pinctrl-0 = <&spdif_out_y_pins>; |
| 121 |
pinctrl-names = "default"; |
| 122 |
}; |
| 123 |
|
| 124 |
ðmac { |
| 125 |
status = "okay"; |
| 126 |
pinctrl-0 = <ð_rgmii_pins>; |
| 127 |
pinctrl-names = "default"; |
| 128 |
phy-handle = <ð_phy0>; |
| 129 |
phy-mode = "rgmii"; |
| 130 |
|
| 131 |
amlogic,tx-delay-ns = <2>; |
| 132 |
|
| 133 |
mdio { |
| 134 |
compatible = "snps,dwmac-mdio"; |
| 135 |
#address-cells = <1>; |
| 136 |
#size-cells = <0>; |
| 137 |
|
| 138 |
eth_phy0: ethernet-phy@3 { |
| 139 |
/* Micrel KSZ9031 (0x00221620) */ |
| 140 |
reg = <3>; |
| 141 |
|
| 142 |
reset-assert-us = <10000>; |
| 143 |
reset-deassert-us = <30000>; |
| 144 |
reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; |
| 145 |
|
| 146 |
interrupt-parent = <&gpio_intc>; |
| 147 |
/* MAC_INTR on GPIOZ_15 */ |
| 148 |
interrupts = <29 IRQ_TYPE_LEVEL_LOW>; |
| 149 |
}; |
| 150 |
}; |
| 151 |
}; |
| 152 |
|
| 153 |
&i2c_B { |
| 154 |
status = "okay"; |
| 155 |
pinctrl-0 = <&i2c_b_pins>; |
| 156 |
pinctrl-names = "default"; |
| 157 |
}; |
| 158 |
|
| 159 |
&saradc { |
| 160 |
status = "okay"; |
| 161 |
vref-supply = <&avdd18_usb_adc>; |
| 162 |
}; |