mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 21:42:20 +07:00
a2c6e82e53
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: - RTL8211F PHY on the Odroid-C1 and MXIII-Plus 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"). The old settings used 10ms for assert and 1000ms for deassert. - IP101GR PHY on the EC-100 and MXQ needs a 10ms assert delay (the datasheet mentions: "Trst | Reset period | 10ms") and a 10ms deassert delay as well (the datasheet mentions: "Tclk_MII_rdy | MII/RMII clock output ready after reset released | 10ms")). The old settings used 10ms for assert and 1000ms for deassert. No functional changes intended. Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
173 lines
2.7 KiB
Plaintext
173 lines
2.7 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0 OR MIT
|
|
/*
|
|
* Copyright 2015 Endless Mobile, Inc.
|
|
* Author: Carlo Caione <carlo@endlessm.com>
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include "meson8b.dtsi"
|
|
|
|
/ {
|
|
model = "TRONFY MXQ S805";
|
|
compatible = "tronfy,mxq", "amlogic,meson8b";
|
|
|
|
aliases {
|
|
serial0 = &uart_AO;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x40000000 0x40000000>;
|
|
};
|
|
|
|
iio-hwmon {
|
|
compatible = "iio-hwmon";
|
|
io-channels = <&saradc 8>;
|
|
};
|
|
|
|
vcck: regulator-vcck {
|
|
compatible = "pwm-regulator";
|
|
|
|
regulator-name = "VCCK";
|
|
regulator-min-microvolt = <860000>;
|
|
regulator-max-microvolt = <1140000>;
|
|
|
|
pwms = <&pwm_cd 0 1148 0>;
|
|
pwm-dutycycle-range = <100 0>;
|
|
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vcc_1v8: regulator-vcc1v8 {
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VCC1V8";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
vin-supply = <&vcc_3v3>;
|
|
};
|
|
|
|
vcc_3v3: regulator-vcc3v3 {
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VCC3V3";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
vin-supply = <&vcc_5v>;
|
|
};
|
|
|
|
vcc_5v: regulator-vcc5v {
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VCC5V";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
};
|
|
|
|
&cpu0 {
|
|
cpu-supply = <&vcck>;
|
|
};
|
|
|
|
ðmac {
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <ð_rmii_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
phy-handle = <ð_phy0>;
|
|
phy-mode = "rmii";
|
|
|
|
mdio {
|
|
compatible = "snps,dwmac-mdio";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
eth_phy0: ethernet-phy@0 {
|
|
/* IC Plus IP101A/G (0x02430c54) */
|
|
reg = <0>;
|
|
|
|
reset-assert-us = <10000>;
|
|
reset-deassert-us = <10000>;
|
|
reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
|
|
|
|
icplus,select-interrupt;
|
|
interrupt-parent = <&gpio_intc>;
|
|
/* GPIOH_3 */
|
|
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&saradc {
|
|
status = "okay";
|
|
vref-supply = <&vcc_1v8>;
|
|
};
|
|
|
|
&sdio {
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&sd_b_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
/* SD card */
|
|
sd_card_slot: slot@1 {
|
|
compatible = "mmc-slot";
|
|
reg = <1>;
|
|
status = "okay";
|
|
|
|
bus-width = <4>;
|
|
no-sdio;
|
|
cap-mmc-highspeed;
|
|
cap-sd-highspeed;
|
|
disable-wp;
|
|
|
|
cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
|
|
|
|
vmmc-supply = <&vcc_3v3>;
|
|
};
|
|
};
|
|
|
|
&pwm_cd {
|
|
status = "okay";
|
|
pinctrl-0 = <&pwm_c1_pins>;
|
|
pinctrl-names = "default";
|
|
clocks = <&clkc CLKID_XTAL>;
|
|
clock-names = "clkin0";
|
|
};
|
|
|
|
&uart_AO {
|
|
status = "okay";
|
|
pinctrl-0 = <&uart_ao_a_pins>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
&usb0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb0_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb1_phy {
|
|
status = "okay";
|
|
};
|