0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Copyright (c) 2018 Oleg Ivanov <balbes-150@yandex.ru>
0004 * Copyright (c) 2018 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
0005 */
0006
0007 /dts-v1/;
0008
0009 #include "meson8m2.dtsi"
0010
0011 #include <dt-bindings/gpio/gpio.h>
0012 #include <dt-bindings/input/input.h>
0013
0014 / {
0015 model = "Tronsmart MXIII Plus";
0016 compatible = "tronsmart,mxiii-plus", "amlogic,meson8m2";
0017
0018 aliases {
0019 ethernet0 = ðmac;
0020 i2c0 = &i2c_AO;
0021 serial0 = &uart_AO;
0022 serial1 = &uart_A;
0023 mmc0 = &sd_card_slot;
0024 };
0025
0026 chosen {
0027 stdout-path = "serial0:115200n8";
0028 };
0029
0030 memory {
0031 device_type = "memory";
0032 reg = <0x40000000 0x80000000>;
0033 };
0034
0035 adc-keys {
0036 compatible = "adc-keys";
0037 io-channels = <&saradc 0>;
0038 io-channel-names = "buttons";
0039 keyup-threshold-microvolt = <1710000>;
0040
0041 button-function {
0042 label = "Function";
0043 linux,code = <KEY_FN>;
0044 press-threshold-microvolt = <10000>;
0045 };
0046 };
0047
0048 vcc_3v3: regulator-vcc3v3 {
0049 compatible = "regulator-fixed";
0050 regulator-name = "VCC3V3";
0051 regulator-min-microvolt = <3300000>;
0052 regulator-max-microvolt = <3300000>;
0053 };
0054 };
0055
0056 &cpu0 {
0057 cpu-supply = <&vcck>;
0058 };
0059
0060 ðmac {
0061 status = "okay";
0062
0063 pinctrl-0 = <ð_rgmii_pins>;
0064 pinctrl-names = "default";
0065
0066 phy-handle = <ð_phy0>;
0067 phy-mode = "rgmii-id";
0068
0069 mdio {
0070 compatible = "snps,dwmac-mdio";
0071 #address-cells = <1>;
0072 #size-cells = <0>;
0073
0074 eth_phy0: ethernet-phy@0 {
0075 /* Realtek RTL8211F (0x001cc916) */
0076 reg = <0>;
0077
0078 reset-assert-us = <10000>;
0079 reset-deassert-us = <80000>;
0080 reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
0081 };
0082 };
0083 };
0084
0085 &ir_receiver {
0086 status = "okay";
0087 pinctrl-0 = <&ir_recv_pins>;
0088 pinctrl-names = "default";
0089 };
0090
0091 &i2c_AO {
0092 status = "okay";
0093 pinctrl-0 = <&i2c_ao_pins>;
0094 pinctrl-names = "default";
0095
0096 pmic@32 {
0097 compatible = "ricoh,rn5t618";
0098 reg = <0x32>;
0099 system-power-controller;
0100
0101 regulators {
0102 vcck: DCDC1 {
0103 regulator-name = "VCCK";
0104 regulator-min-microvolt = <825000>;
0105 regulator-max-microvolt = <1150000>;
0106 regulator-boot-on;
0107 regulator-always-on;
0108 };
0109
0110 vddee: DCDC2 {
0111 /* the output is also used as VDDAO */
0112 regulator-name = "VDD_EE";
0113 regulator-min-microvolt = <950000>;
0114 regulator-max-microvolt = <1150000>;
0115 regulator-boot-on;
0116 regulator-always-on;
0117 };
0118
0119 DCDC3 {
0120 regulator-name = "VDD_DDR";
0121 regulator-min-microvolt = <1500000>;
0122 regulator-max-microvolt = <1500000>;
0123 regulator-boot-on;
0124 regulator-always-on;
0125 };
0126
0127 LDO1 {
0128 regulator-name = "VDDIO_AO28";
0129 regulator-min-microvolt = <2900000>;
0130 regulator-max-microvolt = <2900000>;
0131 regulator-boot-on;
0132 regulator-always-on;
0133 };
0134
0135 vddio_ao1v8: LDO2 {
0136 regulator-name = "VDDIO_AO18";
0137 regulator-min-microvolt = <1800000>;
0138 regulator-max-microvolt = <1800000>;
0139 regulator-boot-on;
0140 regulator-always-on;
0141 };
0142
0143 LDO3 {
0144 regulator-name = "VCC1V8";
0145 regulator-min-microvolt = <1800000>;
0146 regulator-max-microvolt = <1800000>;
0147 regulator-boot-on;
0148 regulator-always-on;
0149 };
0150
0151 LDO4 {
0152 regulator-name = "VCC2V8";
0153 regulator-min-microvolt = <2850000>;
0154 regulator-max-microvolt = <2850000>;
0155 regulator-boot-on;
0156 regulator-always-on;
0157 };
0158
0159 LDO5 {
0160 regulator-name = "AVDD1V8";
0161 regulator-min-microvolt = <1800000>;
0162 regulator-max-microvolt = <1800000>;
0163 regulator-boot-on;
0164 regulator-always-on;
0165 };
0166
0167 LDORTC1 {
0168 regulator-name = "VDD_LDO";
0169 regulator-min-microvolt = <2700000>;
0170 regulator-max-microvolt = <2700000>;
0171 regulator-boot-on;
0172 regulator-always-on;
0173 };
0174
0175 LDORTC2 {
0176 regulator-name = "RTC_0V9";
0177 regulator-min-microvolt = <900000>;
0178 regulator-max-microvolt = <900000>;
0179 regulator-boot-on;
0180 regulator-always-on;
0181 };
0182 };
0183 };
0184 };
0185
0186 &mali {
0187 mali-supply = <&vddee>;
0188 };
0189
0190 &saradc {
0191 status = "okay";
0192 vref-supply = <&vddio_ao1v8>;
0193 };
0194
0195 &sdio {
0196 status = "okay";
0197
0198 pinctrl-0 = <&sd_b_pins>;
0199 pinctrl-names = "default";
0200
0201 /* SD card */
0202 sd_card_slot: slot@1 {
0203 compatible = "mmc-slot";
0204 reg = <1>;
0205 status = "okay";
0206
0207 bus-width = <4>;
0208 no-sdio;
0209 cap-mmc-highspeed;
0210 cap-sd-highspeed;
0211 disable-wp;
0212
0213 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
0214
0215 vmmc-supply = <&vcc_3v3>;
0216 };
0217 };
0218
0219 /* connected to the Bluetooth module */
0220 &uart_A {
0221 status = "okay";
0222 pinctrl-0 = <&uart_a1_pins>, <&uart_a1_cts_rts_pins>;
0223 pinctrl-names = "default";
0224 uart-has-rtscts;
0225 };
0226
0227 &uart_AO {
0228 status = "okay";
0229 pinctrl-0 = <&uart_ao_a_pins>;
0230 pinctrl-names = "default";
0231 };
0232
0233 &usb0 {
0234 status = "okay";
0235 };
0236
0237 &usb1 {
0238 status = "okay";
0239 };
0240
0241 &usb0_phy {
0242 status = "okay";
0243 };
0244
0245 &usb1_phy {
0246 status = "okay";
0247 };