mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 09:56:16 +07:00
d94f60e3df
The TRONFY MXQ comes with either 1GB or 2GB RAM. Both variants share (like most boards based on Amlogic reference designs): - 10/100 PHY (IC Plus IP101GR) with GPIOH_4 being the reset line and GPIOH_3 the interrupt line - SD card slot with the card detection GPIO at CARD_6 - VCCK is generated by PWM_C with a period of 1148ns and XTAL as input clock - USB OTG exposed on one of the USB-A connectors - 4-port USB hub with 3 ports exposed to the outside There seem the multiple board revision out there according to various forum posts: - storage: eMMC or NAND flash - wifi: Ampak AP6210 or Realtek 8189 Add support for the following functionality: - SoC temperature (hwmon) - changing the CPU voltage - Ethernet connectivity - SD card - USB Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Tested-by: hexdump <hexdump0815@googlemail.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
212 lines
4.7 KiB
Plaintext
212 lines
4.7 KiB
Plaintext
/*
|
|
* Copyright 2015 Endless Mobile, Inc.
|
|
* Author: Carlo Caione <carlo@endlessm.com>
|
|
*
|
|
* This file is dual-licensed: you can use it either under the terms
|
|
* of the GPL or the X11 license, at your option. Note that this dual
|
|
* licensing only applies to this file, and not this project as a
|
|
* whole.
|
|
*
|
|
* a) This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* Or, alternatively,
|
|
*
|
|
* b) Permission is hereby granted, free of charge, to any person
|
|
* obtaining a copy of this software and associated documentation
|
|
* files (the "Software"), to deal in the Software without
|
|
* restriction, including without limitation the rights to use,
|
|
* copy, modify, merge, publish, distribute, sublicense, and/or
|
|
* sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following
|
|
* conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be
|
|
* included in all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
/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";
|
|
|
|
snps,reset-gpio = <&gpio GPIOH_4 0>;
|
|
snps,reset-delays-us = <0 10000 1000000>;
|
|
snps,reset-active-low;
|
|
|
|
mdio {
|
|
compatible = "snps,dwmac-mdio";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
eth_phy0: ethernet-phy@0 {
|
|
/* IC Plus IP101A/G (0x02430c54) */
|
|
reg = <0>;
|
|
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";
|
|
};
|