Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0 OR MIT
0002 /*
0003  * Copyright 2015 Endless Mobile, Inc.
0004  * Author: Carlo Caione <carlo@endlessm.com>
0005  */
0006 
0007 /dts-v1/;
0008 
0009 #include <dt-bindings/gpio/gpio.h>
0010 
0011 #include "meson8b.dtsi"
0012 
0013 / {
0014         model = "TRONFY MXQ S805";
0015         compatible = "tronfy,mxq", "amlogic,meson8b";
0016 
0017         aliases {
0018                 serial0 = &uart_AO;
0019         };
0020 
0021         chosen {
0022                 stdout-path = "serial0:115200n8";
0023         };
0024 
0025         memory {
0026                 device_type = "memory";
0027                 reg = <0x40000000 0x40000000>;
0028         };
0029 
0030         vcck: regulator-vcck {
0031                 compatible = "pwm-regulator";
0032 
0033                 regulator-name = "VCCK";
0034                 regulator-min-microvolt = <860000>;
0035                 regulator-max-microvolt = <1140000>;
0036 
0037                 pwm-supply = <&vcc_5v>;
0038 
0039                 pwms = <&pwm_cd 0 1148 0>;
0040                 pwm-dutycycle-range = <100 0>;
0041 
0042                 regulator-boot-on;
0043                 regulator-always-on;
0044         };
0045 
0046         vcc_1v8: regulator-vcc1v8 {
0047                 compatible = "regulator-fixed";
0048 
0049                 regulator-name = "VCC1V8";
0050                 regulator-min-microvolt = <1800000>;
0051                 regulator-max-microvolt = <1800000>;
0052 
0053                 vin-supply = <&vcc_3v3>;
0054         };
0055 
0056         vcc_3v3: regulator-vcc3v3 {
0057                 compatible = "regulator-fixed";
0058 
0059                 regulator-name = "VCC3V3";
0060                 regulator-min-microvolt = <3300000>;
0061                 regulator-max-microvolt = <3300000>;
0062 
0063                 vin-supply = <&vcc_5v>;
0064         };
0065 
0066         vcc_5v: regulator-vcc5v {
0067                 compatible = "regulator-fixed";
0068 
0069                 regulator-name = "VCC5V";
0070                 regulator-min-microvolt = <5000000>;
0071                 regulator-max-microvolt = <5000000>;
0072 
0073                 regulator-boot-on;
0074                 regulator-always-on;
0075         };
0076 
0077         vddee: regulator-vddee {
0078                 compatible = "pwm-regulator";
0079 
0080                 regulator-name = "VDDEE";
0081                 regulator-min-microvolt = <860000>;
0082                 regulator-max-microvolt = <1140000>;
0083 
0084                 pwm-supply = <&vcc_5v>;
0085 
0086                 pwms = <&pwm_cd 1 1148 0>;
0087                 pwm-dutycycle-range = <100 0>;
0088 
0089                 regulator-boot-on;
0090                 regulator-always-on;
0091         };
0092 };
0093 
0094 &cpu0 {
0095         cpu-supply = <&vcck>;
0096 };
0097 
0098 &ethmac {
0099         status = "okay";
0100 
0101         pinctrl-0 = <&eth_rmii_pins>;
0102         pinctrl-names = "default";
0103 
0104         phy-handle = <&eth_phy0>;
0105         phy-mode = "rmii";
0106 
0107         mdio {
0108                 compatible = "snps,dwmac-mdio";
0109                 #address-cells = <1>;
0110                 #size-cells = <0>;
0111 
0112                 eth_phy0: ethernet-phy@0 {
0113                         /* IC Plus IP101A/G (0x02430c54) */
0114                         reg = <0>;
0115 
0116                         reset-assert-us = <10000>;
0117                         reset-deassert-us = <10000>;
0118                         reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
0119 
0120                         icplus,select-interrupt;
0121                         interrupt-parent = <&gpio_intc>;
0122                         /* GPIOH_3 */
0123                         interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
0124                 };
0125         };
0126 };
0127 
0128 &mali {
0129         mali-supply = <&vddee>;
0130 };
0131 
0132 &saradc {
0133         status = "okay";
0134         vref-supply = <&vcc_1v8>;
0135 };
0136 
0137 &sdio {
0138         status = "okay";
0139 
0140         pinctrl-0 = <&sd_b_pins>;
0141         pinctrl-names = "default";
0142 
0143         /* SD card */
0144         sd_card_slot: slot@1 {
0145                 compatible = "mmc-slot";
0146                 reg = <1>;
0147                 status = "okay";
0148 
0149                 bus-width = <4>;
0150                 no-sdio;
0151                 cap-mmc-highspeed;
0152                 cap-sd-highspeed;
0153                 disable-wp;
0154 
0155                 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
0156 
0157                 vmmc-supply = <&vcc_3v3>;
0158         };
0159 };
0160 
0161 &pwm_cd {
0162         status = "okay";
0163         pinctrl-0 = <&pwm_c1_pins>, <&pwm_d_pins>;
0164         pinctrl-names = "default";
0165         clocks = <&xtal>, <&xtal>;
0166         clock-names = "clkin0", "clkin1";
0167 };
0168 
0169 &uart_AO {
0170         status = "okay";
0171         pinctrl-0 = <&uart_ao_a_pins>;
0172         pinctrl-names = "default";
0173 };
0174 
0175 &usb0 {
0176         status = "okay";
0177 };
0178 
0179 &usb0_phy {
0180         status = "okay";
0181 };
0182 
0183 &usb1 {
0184         status = "okay";
0185 };
0186 
0187 &usb1_phy {
0188         status = "okay";
0189 };