mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 18:36:42 +07:00
f29cabf240
The snps,reset-gpio bindings are deprecated in favour of the generic "Ethernet PHY reset" bindings. Replace snps,reset-gpio from the ðmac node with reset-gpios in the ethernet-phy node. The old snps,reset-active-low property is now encoded directly as GPIO flag inside the reset-gpios property. snps,reset-delays-us is converted to reset-assert-us and reset-deassert-us. reset-assert-us is the second cell from snps,reset-delays-us while reset-deassert-us was the third cell. Instead of blindly copying the old values (which seems strange since they gave the PHY one second to come out of reset) over this also updates the delays based on the datasheets: - the Realtek RTL8211F PHY needs a 10ms assert delay (the datasheet mentions: "For a complete PHY reset, this pin must be asserted low for at least 10ms") and a 30ms deassert delay (the datasheet mentions: "Wait for a further 30ms (for internal circuits settling time) before accessing the PHY register". This applies to the following boards: GXBB NanoPi K2, GXBB Odroid-C2, GXBB Vega S95 variants, GXBB Wetek variants, GXL P230, GXM Khadas VIM2, GXM Nexbox A1, GXM Q200, GXM RBox Pro boards. - the ICPlus IP101GR PHY needs a 10ms assert delay (the datasheet mentions: "Trst | Reset period | 10ms") and a deassert delay of 10ms as well (the datasheet mentions: "Tclk_MII_rdy | MII/RMII clock output ready after reset released | 10ms"). This applies to the GXBB Nexbox A95X board. - the Micrel KSZ9031 seems to require a 100us delay but use the same (seemingly safe) values from RTL8211F due to lack of a board to verify this. This applies to the GXBB P200 board. The GXBB P201 board is left out from this conversion because it doesn't have a dedicated PHY node (because it's not clear which PHY is used on that board). Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
112 lines
2.1 KiB
Plaintext
112 lines
2.1 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2016 Endless Computers, Inc.
|
|
* Author: Carlo Caione <carlo@endlessm.com>
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
#include "meson-gxl-s905d.dtsi"
|
|
#include "meson-gx-p23x-q20x.dtsi"
|
|
|
|
/ {
|
|
compatible = "amlogic,p230", "amlogic,s905d", "amlogic,meson-gxl";
|
|
model = "Amlogic Meson GXL (S905D) P230 Development Board";
|
|
|
|
adc-keys {
|
|
compatible = "adc-keys";
|
|
io-channels = <&saradc 0>;
|
|
io-channel-names = "buttons";
|
|
keyup-threshold-microvolt = <1710000>;
|
|
|
|
button-function {
|
|
label = "Update";
|
|
linux,code = <KEY_VENDOR>;
|
|
press-threshold-microvolt = <10000>;
|
|
};
|
|
};
|
|
|
|
gpio-keys-polled {
|
|
compatible = "gpio-keys-polled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
poll-interval = <100>;
|
|
|
|
button@0 {
|
|
label = "power";
|
|
linux,code = <KEY_POWER>;
|
|
gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
hdmi-connector {
|
|
compatible = "hdmi-connector";
|
|
type = "a";
|
|
|
|
port {
|
|
hdmi_connector_in: endpoint {
|
|
remote-endpoint = <&hdmi_tx_tmds_out>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&cec_AO {
|
|
status = "okay";
|
|
pinctrl-0 = <&ao_cec_pins>;
|
|
pinctrl-names = "default";
|
|
hdmi-phandle = <&hdmi_tx>;
|
|
};
|
|
|
|
/* P230 has exclusive choice between internal or external PHY */
|
|
ðmac {
|
|
pinctrl-0 = <ð_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
/* Select external PHY by default */
|
|
phy-handle = <&external_phy>;
|
|
|
|
amlogic,tx-delay-ns = <2>;
|
|
|
|
/* External PHY is in RGMII */
|
|
phy-mode = "rgmii";
|
|
};
|
|
|
|
&external_mdio {
|
|
external_phy: ethernet-phy@0 {
|
|
/* Realtek RTL8211F (0x001cc916) */
|
|
reg = <0>;
|
|
max-speed = <1000>;
|
|
|
|
/* External PHY reset is shared with internal PHY Led signal */
|
|
reset-assert-us = <10000>;
|
|
reset-deassert-us = <30000>;
|
|
reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
|
|
|
|
interrupt-parent = <&gpio_intc>;
|
|
interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
|
|
eee-broken-1000t;
|
|
};
|
|
};
|
|
|
|
&hdmi_tx {
|
|
status = "okay";
|
|
pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
&hdmi_tx_tmds_port {
|
|
hdmi_tx_tmds_out: endpoint {
|
|
remote-endpoint = <&hdmi_connector_in>;
|
|
};
|
|
};
|
|
|
|
&sd_emmc_a {
|
|
brcmf: wifi@1 {
|
|
reg = <1>;
|
|
compatible = "brcm,bcm4329-fmac";
|
|
};
|
|
};
|