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