2019-05-27 20:38:53 +07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0 OR MIT
|
2015-10-08 03:31:04 +07:00
|
|
|
/*
|
|
|
|
* Copyright 2015 Endless Mobile, Inc.
|
|
|
|
* Author: Carlo Caione <carlo@endlessm.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2019-05-25 01:19:36 +07:00
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
|
2015-10-08 03:31:04 +07:00
|
|
|
#include "meson8b.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "TRONFY MXQ S805";
|
|
|
|
compatible = "tronfy,mxq", "amlogic,meson8b";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &uart_AO;
|
|
|
|
};
|
|
|
|
|
2018-10-28 21:03:43 +07:00
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
|
2015-10-08 03:31:04 +07:00
|
|
|
memory {
|
2019-01-09 23:26:14 +07:00
|
|
|
device_type = "memory";
|
2015-10-08 03:31:04 +07:00
|
|
|
reg = <0x40000000 0x40000000>;
|
|
|
|
};
|
2019-05-25 01:19:36 +07:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
2019-07-27 19:12:57 +07:00
|
|
|
|
|
|
|
vddee: regulator-vddee {
|
|
|
|
compatible = "pwm-regulator";
|
|
|
|
|
|
|
|
regulator-name = "VDDEE";
|
|
|
|
regulator-min-microvolt = <860000>;
|
|
|
|
regulator-max-microvolt = <1140000>;
|
|
|
|
|
|
|
|
vin-supply = <&vcc_5v>;
|
|
|
|
|
|
|
|
pwms = <&pwm_cd 1 1148 0>;
|
|
|
|
pwm-dutycycle-range = <100 0>;
|
|
|
|
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
2019-05-25 01:19:36 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&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>;
|
2019-06-15 17:38:30 +07:00
|
|
|
|
|
|
|
reset-assert-us = <10000>;
|
|
|
|
reset-deassert-us = <10000>;
|
|
|
|
reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
|
|
|
|
|
2019-05-25 01:19:36 +07:00
|
|
|
icplus,select-interrupt;
|
|
|
|
interrupt-parent = <&gpio_intc>;
|
|
|
|
/* GPIOH_3 */
|
|
|
|
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-07-27 19:12:57 +07:00
|
|
|
&mali {
|
|
|
|
mali-supply = <&vddee>;
|
|
|
|
};
|
|
|
|
|
2019-05-25 01:19:36 +07:00
|
|
|
&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";
|
2019-07-27 19:12:57 +07:00
|
|
|
pinctrl-0 = <&pwm_c1_pins>, <&pwm_d_pins>;
|
2019-05-25 01:19:36 +07:00
|
|
|
pinctrl-names = "default";
|
2019-12-09 01:05:23 +07:00
|
|
|
clocks = <&xtal>, <&xtal>;
|
2019-07-27 19:12:57 +07:00
|
|
|
clock-names = "clkin0", "clkin1";
|
2015-10-08 03:31:04 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&uart_AO {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&uart_ao_a_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
2019-05-25 01:19:36 +07:00
|
|
|
|
|
|
|
&usb0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb0_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb1_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|