1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 OR MIT 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Copyright 2015 Endless Mobile, Inc. 4*724ba675SRob Herring * Author: Carlo Caione <carlo@endlessm.com> 5*724ba675SRob Herring */ 6*724ba675SRob Herring 7*724ba675SRob Herring/dts-v1/; 8*724ba675SRob Herring 9*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 10*724ba675SRob Herring 11*724ba675SRob Herring#include "meson8b.dtsi" 12*724ba675SRob Herring 13*724ba675SRob Herring/ { 14*724ba675SRob Herring model = "TRONFY MXQ S805"; 15*724ba675SRob Herring compatible = "tronfy,mxq", "amlogic,meson8b"; 16*724ba675SRob Herring 17*724ba675SRob Herring aliases { 18*724ba675SRob Herring serial0 = &uart_AO; 19*724ba675SRob Herring }; 20*724ba675SRob Herring 21*724ba675SRob Herring chosen { 22*724ba675SRob Herring stdout-path = "serial0:115200n8"; 23*724ba675SRob Herring }; 24*724ba675SRob Herring 25*724ba675SRob Herring memory { 26*724ba675SRob Herring device_type = "memory"; 27*724ba675SRob Herring reg = <0x40000000 0x40000000>; 28*724ba675SRob Herring }; 29*724ba675SRob Herring 30*724ba675SRob Herring vcck: regulator-vcck { 31*724ba675SRob Herring compatible = "pwm-regulator"; 32*724ba675SRob Herring 33*724ba675SRob Herring regulator-name = "VCCK"; 34*724ba675SRob Herring regulator-min-microvolt = <860000>; 35*724ba675SRob Herring regulator-max-microvolt = <1140000>; 36*724ba675SRob Herring 37*724ba675SRob Herring pwm-supply = <&vcc_5v>; 38*724ba675SRob Herring 39*724ba675SRob Herring pwms = <&pwm_cd 0 1148 0>; 40*724ba675SRob Herring pwm-dutycycle-range = <100 0>; 41*724ba675SRob Herring 42*724ba675SRob Herring regulator-boot-on; 43*724ba675SRob Herring regulator-always-on; 44*724ba675SRob Herring }; 45*724ba675SRob Herring 46*724ba675SRob Herring vcc_1v8: regulator-vcc1v8 { 47*724ba675SRob Herring compatible = "regulator-fixed"; 48*724ba675SRob Herring 49*724ba675SRob Herring regulator-name = "VCC1V8"; 50*724ba675SRob Herring regulator-min-microvolt = <1800000>; 51*724ba675SRob Herring regulator-max-microvolt = <1800000>; 52*724ba675SRob Herring 53*724ba675SRob Herring vin-supply = <&vcc_3v3>; 54*724ba675SRob Herring }; 55*724ba675SRob Herring 56*724ba675SRob Herring vcc_3v3: regulator-vcc3v3 { 57*724ba675SRob Herring compatible = "regulator-fixed"; 58*724ba675SRob Herring 59*724ba675SRob Herring regulator-name = "VCC3V3"; 60*724ba675SRob Herring regulator-min-microvolt = <3300000>; 61*724ba675SRob Herring regulator-max-microvolt = <3300000>; 62*724ba675SRob Herring 63*724ba675SRob Herring vin-supply = <&vcc_5v>; 64*724ba675SRob Herring }; 65*724ba675SRob Herring 66*724ba675SRob Herring vcc_5v: regulator-vcc5v { 67*724ba675SRob Herring compatible = "regulator-fixed"; 68*724ba675SRob Herring 69*724ba675SRob Herring regulator-name = "VCC5V"; 70*724ba675SRob Herring regulator-min-microvolt = <5000000>; 71*724ba675SRob Herring regulator-max-microvolt = <5000000>; 72*724ba675SRob Herring 73*724ba675SRob Herring regulator-boot-on; 74*724ba675SRob Herring regulator-always-on; 75*724ba675SRob Herring }; 76*724ba675SRob Herring 77*724ba675SRob Herring vddee: regulator-vddee { 78*724ba675SRob Herring compatible = "pwm-regulator"; 79*724ba675SRob Herring 80*724ba675SRob Herring regulator-name = "VDDEE"; 81*724ba675SRob Herring regulator-min-microvolt = <860000>; 82*724ba675SRob Herring regulator-max-microvolt = <1140000>; 83*724ba675SRob Herring 84*724ba675SRob Herring pwm-supply = <&vcc_5v>; 85*724ba675SRob Herring 86*724ba675SRob Herring pwms = <&pwm_cd 1 1148 0>; 87*724ba675SRob Herring pwm-dutycycle-range = <100 0>; 88*724ba675SRob Herring 89*724ba675SRob Herring regulator-boot-on; 90*724ba675SRob Herring regulator-always-on; 91*724ba675SRob Herring }; 92*724ba675SRob Herring}; 93*724ba675SRob Herring 94*724ba675SRob Herring&cpu0 { 95*724ba675SRob Herring cpu-supply = <&vcck>; 96*724ba675SRob Herring}; 97*724ba675SRob Herring 98*724ba675SRob Herringðmac { 99*724ba675SRob Herring status = "okay"; 100*724ba675SRob Herring 101*724ba675SRob Herring pinctrl-0 = <ð_rmii_pins>; 102*724ba675SRob Herring pinctrl-names = "default"; 103*724ba675SRob Herring 104*724ba675SRob Herring phy-handle = <ð_phy0>; 105*724ba675SRob Herring phy-mode = "rmii"; 106*724ba675SRob Herring 107*724ba675SRob Herring mdio { 108*724ba675SRob Herring compatible = "snps,dwmac-mdio"; 109*724ba675SRob Herring #address-cells = <1>; 110*724ba675SRob Herring #size-cells = <0>; 111*724ba675SRob Herring 112*724ba675SRob Herring eth_phy0: ethernet-phy@0 { 113*724ba675SRob Herring /* IC Plus IP101A/G (0x02430c54) */ 114*724ba675SRob Herring reg = <0>; 115*724ba675SRob Herring 116*724ba675SRob Herring reset-assert-us = <10000>; 117*724ba675SRob Herring reset-deassert-us = <10000>; 118*724ba675SRob Herring reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; 119*724ba675SRob Herring 120*724ba675SRob Herring icplus,select-interrupt; 121*724ba675SRob Herring interrupt-parent = <&gpio_intc>; 122*724ba675SRob Herring /* GPIOH_3 */ 123*724ba675SRob Herring interrupts = <17 IRQ_TYPE_LEVEL_LOW>; 124*724ba675SRob Herring }; 125*724ba675SRob Herring }; 126*724ba675SRob Herring}; 127*724ba675SRob Herring 128*724ba675SRob Herring&mali { 129*724ba675SRob Herring mali-supply = <&vddee>; 130*724ba675SRob Herring}; 131*724ba675SRob Herring 132*724ba675SRob Herring&saradc { 133*724ba675SRob Herring status = "okay"; 134*724ba675SRob Herring vref-supply = <&vcc_1v8>; 135*724ba675SRob Herring}; 136*724ba675SRob Herring 137*724ba675SRob Herring&sdio { 138*724ba675SRob Herring status = "okay"; 139*724ba675SRob Herring 140*724ba675SRob Herring pinctrl-0 = <&sd_b_pins>; 141*724ba675SRob Herring pinctrl-names = "default"; 142*724ba675SRob Herring 143*724ba675SRob Herring /* SD card */ 144*724ba675SRob Herring sd_card_slot: slot@1 { 145*724ba675SRob Herring compatible = "mmc-slot"; 146*724ba675SRob Herring reg = <1>; 147*724ba675SRob Herring status = "okay"; 148*724ba675SRob Herring 149*724ba675SRob Herring bus-width = <4>; 150*724ba675SRob Herring no-sdio; 151*724ba675SRob Herring cap-mmc-highspeed; 152*724ba675SRob Herring cap-sd-highspeed; 153*724ba675SRob Herring disable-wp; 154*724ba675SRob Herring 155*724ba675SRob Herring cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; 156*724ba675SRob Herring 157*724ba675SRob Herring vmmc-supply = <&vcc_3v3>; 158*724ba675SRob Herring }; 159*724ba675SRob Herring}; 160*724ba675SRob Herring 161*724ba675SRob Herring&pwm_cd { 162*724ba675SRob Herring status = "okay"; 163*724ba675SRob Herring pinctrl-0 = <&pwm_c1_pins>, <&pwm_d_pins>; 164*724ba675SRob Herring pinctrl-names = "default"; 165*724ba675SRob Herring clocks = <&xtal>, <&xtal>; 166*724ba675SRob Herring clock-names = "clkin0", "clkin1"; 167*724ba675SRob Herring}; 168*724ba675SRob Herring 169*724ba675SRob Herring&uart_AO { 170*724ba675SRob Herring status = "okay"; 171*724ba675SRob Herring pinctrl-0 = <&uart_ao_a_pins>; 172*724ba675SRob Herring pinctrl-names = "default"; 173*724ba675SRob Herring}; 174*724ba675SRob Herring 175*724ba675SRob Herring&usb0 { 176*724ba675SRob Herring status = "okay"; 177*724ba675SRob Herring}; 178*724ba675SRob Herring 179*724ba675SRob Herring&usb0_phy { 180*724ba675SRob Herring status = "okay"; 181*724ba675SRob Herring}; 182*724ba675SRob Herring 183*724ba675SRob Herring&usb1 { 184*724ba675SRob Herring status = "okay"; 185*724ba675SRob Herring}; 186*724ba675SRob Herring 187*724ba675SRob Herring&usb1_phy { 188*724ba675SRob Herring status = "okay"; 189*724ba675SRob Herring}; 190