1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 OR MIT 2724ba675SRob Herring/* 3724ba675SRob Herring * Copyright 2015 Endless Mobile, Inc. 4724ba675SRob Herring * Author: Carlo Caione <carlo@endlessm.com> 5724ba675SRob Herring */ 6724ba675SRob Herring 7724ba675SRob Herring/dts-v1/; 8724ba675SRob Herring 9724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 10724ba675SRob Herring 11724ba675SRob Herring#include "meson8b.dtsi" 12724ba675SRob Herring 13724ba675SRob Herring/ { 14724ba675SRob Herring model = "TRONFY MXQ S805"; 15724ba675SRob Herring compatible = "tronfy,mxq", "amlogic,meson8b"; 16724ba675SRob Herring 17724ba675SRob Herring aliases { 18724ba675SRob Herring serial0 = &uart_AO; 19724ba675SRob Herring }; 20724ba675SRob Herring 21724ba675SRob Herring chosen { 22724ba675SRob Herring stdout-path = "serial0:115200n8"; 23724ba675SRob Herring }; 24724ba675SRob Herring 25*7947fd2dSNeil Armstrong memory@40000000 { 26724ba675SRob Herring device_type = "memory"; 27724ba675SRob Herring reg = <0x40000000 0x40000000>; 28724ba675SRob Herring }; 29724ba675SRob Herring 30724ba675SRob Herring vcck: regulator-vcck { 31724ba675SRob Herring compatible = "pwm-regulator"; 32724ba675SRob Herring 33724ba675SRob Herring regulator-name = "VCCK"; 34724ba675SRob Herring regulator-min-microvolt = <860000>; 35724ba675SRob Herring regulator-max-microvolt = <1140000>; 36724ba675SRob Herring 37724ba675SRob Herring pwm-supply = <&vcc_5v>; 38724ba675SRob Herring 39724ba675SRob Herring pwms = <&pwm_cd 0 1148 0>; 40724ba675SRob Herring pwm-dutycycle-range = <100 0>; 41724ba675SRob Herring 42724ba675SRob Herring regulator-boot-on; 43724ba675SRob Herring regulator-always-on; 44724ba675SRob Herring }; 45724ba675SRob Herring 46724ba675SRob Herring vcc_1v8: regulator-vcc1v8 { 47724ba675SRob Herring compatible = "regulator-fixed"; 48724ba675SRob Herring 49724ba675SRob Herring regulator-name = "VCC1V8"; 50724ba675SRob Herring regulator-min-microvolt = <1800000>; 51724ba675SRob Herring regulator-max-microvolt = <1800000>; 52724ba675SRob Herring 53724ba675SRob Herring vin-supply = <&vcc_3v3>; 54724ba675SRob Herring }; 55724ba675SRob Herring 56724ba675SRob Herring vcc_3v3: regulator-vcc3v3 { 57724ba675SRob Herring compatible = "regulator-fixed"; 58724ba675SRob Herring 59724ba675SRob Herring regulator-name = "VCC3V3"; 60724ba675SRob Herring regulator-min-microvolt = <3300000>; 61724ba675SRob Herring regulator-max-microvolt = <3300000>; 62724ba675SRob Herring 63724ba675SRob Herring vin-supply = <&vcc_5v>; 64724ba675SRob Herring }; 65724ba675SRob Herring 66724ba675SRob Herring vcc_5v: regulator-vcc5v { 67724ba675SRob Herring compatible = "regulator-fixed"; 68724ba675SRob Herring 69724ba675SRob Herring regulator-name = "VCC5V"; 70724ba675SRob Herring regulator-min-microvolt = <5000000>; 71724ba675SRob Herring regulator-max-microvolt = <5000000>; 72724ba675SRob Herring 73724ba675SRob Herring regulator-boot-on; 74724ba675SRob Herring regulator-always-on; 75724ba675SRob Herring }; 76724ba675SRob Herring 77724ba675SRob Herring vddee: regulator-vddee { 78724ba675SRob Herring compatible = "pwm-regulator"; 79724ba675SRob Herring 80724ba675SRob Herring regulator-name = "VDDEE"; 81724ba675SRob Herring regulator-min-microvolt = <860000>; 82724ba675SRob Herring regulator-max-microvolt = <1140000>; 83724ba675SRob Herring 84724ba675SRob Herring pwm-supply = <&vcc_5v>; 85724ba675SRob Herring 86724ba675SRob Herring pwms = <&pwm_cd 1 1148 0>; 87724ba675SRob Herring pwm-dutycycle-range = <100 0>; 88724ba675SRob Herring 89724ba675SRob Herring regulator-boot-on; 90724ba675SRob Herring regulator-always-on; 91724ba675SRob Herring }; 92724ba675SRob Herring}; 93724ba675SRob Herring 94724ba675SRob Herring&cpu0 { 95724ba675SRob Herring cpu-supply = <&vcck>; 96724ba675SRob Herring}; 97724ba675SRob Herring 98724ba675SRob Herringðmac { 99724ba675SRob Herring status = "okay"; 100724ba675SRob Herring 101724ba675SRob Herring pinctrl-0 = <ð_rmii_pins>; 102724ba675SRob Herring pinctrl-names = "default"; 103724ba675SRob Herring 104724ba675SRob Herring phy-handle = <ð_phy0>; 105724ba675SRob Herring phy-mode = "rmii"; 106724ba675SRob Herring 107724ba675SRob Herring mdio { 108724ba675SRob Herring compatible = "snps,dwmac-mdio"; 109724ba675SRob Herring #address-cells = <1>; 110724ba675SRob Herring #size-cells = <0>; 111724ba675SRob Herring 112724ba675SRob Herring eth_phy0: ethernet-phy@0 { 113724ba675SRob Herring /* IC Plus IP101A/G (0x02430c54) */ 114724ba675SRob Herring reg = <0>; 115724ba675SRob Herring 116724ba675SRob Herring reset-assert-us = <10000>; 117724ba675SRob Herring reset-deassert-us = <10000>; 118724ba675SRob Herring reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; 119724ba675SRob Herring 120724ba675SRob Herring icplus,select-interrupt; 121724ba675SRob Herring interrupt-parent = <&gpio_intc>; 122724ba675SRob Herring /* GPIOH_3 */ 123724ba675SRob Herring interrupts = <17 IRQ_TYPE_LEVEL_LOW>; 124724ba675SRob Herring }; 125724ba675SRob Herring }; 126724ba675SRob Herring}; 127724ba675SRob Herring 128724ba675SRob Herring&mali { 129724ba675SRob Herring mali-supply = <&vddee>; 130724ba675SRob Herring}; 131724ba675SRob Herring 132724ba675SRob Herring&saradc { 133724ba675SRob Herring status = "okay"; 134724ba675SRob Herring vref-supply = <&vcc_1v8>; 135724ba675SRob Herring}; 136724ba675SRob Herring 137724ba675SRob Herring&sdio { 138724ba675SRob Herring status = "okay"; 139724ba675SRob Herring 140724ba675SRob Herring pinctrl-0 = <&sd_b_pins>; 141724ba675SRob Herring pinctrl-names = "default"; 142724ba675SRob Herring 143724ba675SRob Herring /* SD card */ 144724ba675SRob Herring sd_card_slot: slot@1 { 145724ba675SRob Herring compatible = "mmc-slot"; 146724ba675SRob Herring reg = <1>; 147724ba675SRob Herring status = "okay"; 148724ba675SRob Herring 149724ba675SRob Herring bus-width = <4>; 150724ba675SRob Herring no-sdio; 151724ba675SRob Herring cap-mmc-highspeed; 152724ba675SRob Herring cap-sd-highspeed; 153724ba675SRob Herring disable-wp; 154724ba675SRob Herring 155724ba675SRob Herring cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; 156724ba675SRob Herring 157724ba675SRob Herring vmmc-supply = <&vcc_3v3>; 158724ba675SRob Herring }; 159724ba675SRob Herring}; 160724ba675SRob Herring 161724ba675SRob Herring&pwm_cd { 162724ba675SRob Herring status = "okay"; 163724ba675SRob Herring pinctrl-0 = <&pwm_c1_pins>, <&pwm_d_pins>; 164724ba675SRob Herring pinctrl-names = "default"; 165724ba675SRob Herring clocks = <&xtal>, <&xtal>; 166724ba675SRob Herring clock-names = "clkin0", "clkin1"; 167724ba675SRob Herring}; 168724ba675SRob Herring 169724ba675SRob Herring&uart_AO { 170724ba675SRob Herring status = "okay"; 171724ba675SRob Herring pinctrl-0 = <&uart_ao_a_pins>; 172724ba675SRob Herring pinctrl-names = "default"; 173724ba675SRob Herring}; 174724ba675SRob Herring 175724ba675SRob Herring&usb0 { 176724ba675SRob Herring status = "okay"; 177724ba675SRob Herring}; 178724ba675SRob Herring 179724ba675SRob Herring&usb0_phy { 180724ba675SRob Herring status = "okay"; 181724ba675SRob Herring}; 182724ba675SRob Herring 183724ba675SRob Herring&usb1 { 184724ba675SRob Herring status = "okay"; 185724ba675SRob Herring}; 186724ba675SRob Herring 187724ba675SRob Herring&usb1_phy { 188724ba675SRob Herring status = "okay"; 189724ba675SRob Herring}; 190