Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ or MIT)
0002 /*
0003  * Copyright (C) 2021 Arm Ltd.
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include "sun50i-h616.dtsi"
0009 
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/interrupt-controller/arm-gic.h>
0012 
0013 / {
0014         model = "X96 Mate";
0015         compatible = "hechuang,x96-mate", "allwinner,sun50i-h616";
0016 
0017         aliases {
0018                 serial0 = &uart0;
0019         };
0020 
0021         chosen {
0022                 stdout-path = "serial0:115200n8";
0023         };
0024 
0025         reg_vcc5v: vcc5v {
0026                 /* board wide 5V supply directly from the DC input */
0027                 compatible = "regulator-fixed";
0028                 regulator-name = "vcc-5v";
0029                 regulator-min-microvolt = <5000000>;
0030                 regulator-max-microvolt = <5000000>;
0031                 regulator-always-on;
0032         };
0033 };
0034 
0035 &ir {
0036         status = "okay";
0037 };
0038 
0039 &mmc0 {
0040         vmmc-supply = <&reg_dcdce>;
0041         cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;  /* PF6 */
0042         bus-width = <4>;
0043         status = "okay";
0044 };
0045 
0046 &mmc2 {
0047         vmmc-supply = <&reg_dcdce>;
0048         vqmmc-supply = <&reg_bldo1>;
0049         bus-width = <8>;
0050         non-removable;
0051         cap-mmc-hw-reset;
0052         mmc-ddr-1_8v;
0053         mmc-hs200-1_8v;
0054         status = "okay";
0055 };
0056 
0057 &r_rsb {
0058         status = "okay";
0059 
0060         axp305: pmic@745 {
0061                 compatible = "x-powers,axp305", "x-powers,axp805",
0062                              "x-powers,axp806";
0063                 interrupt-controller;
0064                 #interrupt-cells = <1>;
0065                 reg = <0x745>;
0066 
0067                 x-powers,self-working-mode;
0068                 vina-supply = <&reg_vcc5v>;
0069                 vinb-supply = <&reg_vcc5v>;
0070                 vinc-supply = <&reg_vcc5v>;
0071                 vind-supply = <&reg_vcc5v>;
0072                 vine-supply = <&reg_vcc5v>;
0073                 aldoin-supply = <&reg_vcc5v>;
0074                 bldoin-supply = <&reg_vcc5v>;
0075                 cldoin-supply = <&reg_vcc5v>;
0076 
0077                 regulators {
0078                         reg_aldo1: aldo1 {
0079                                 regulator-always-on;
0080                                 regulator-min-microvolt = <3300000>;
0081                                 regulator-max-microvolt = <3300000>;
0082                                 regulator-name = "vcc-sys";
0083                         };
0084 
0085                         /* Enabled by the Android BSP */
0086                         reg_aldo2: aldo2 {
0087                                 regulator-min-microvolt = <3300000>;
0088                                 regulator-max-microvolt = <3300000>;
0089                                 regulator-name = "vcc3v3-ext";
0090                                 status = "disabled";
0091                         };
0092 
0093                         /* Enabled by the Android BSP */
0094                         reg_aldo3: aldo3 {
0095                                 regulator-min-microvolt = <3300000>;
0096                                 regulator-max-microvolt = <3300000>;
0097                                 regulator-name = "vcc3v3-ext2";
0098                                 status = "disabled";
0099                         };
0100 
0101                         reg_bldo1: bldo1 {
0102                                 regulator-always-on;
0103                                 regulator-min-microvolt = <1800000>;
0104                                 regulator-max-microvolt = <1800000>;
0105                                 regulator-name = "vcc1v8";
0106                         };
0107 
0108                         /* Enabled by the Android BSP */
0109                         reg_bldo2: bldo2 {
0110                                 regulator-min-microvolt = <1800000>;
0111                                 regulator-max-microvolt = <1800000>;
0112                                 regulator-name = "vcc1v8-2";
0113                                 status = "disabled";
0114                         };
0115 
0116                         bldo3 {
0117                                 /* unused */
0118                         };
0119 
0120                         bldo4 {
0121                                 /* unused */
0122                         };
0123 
0124                         cldo1 {
0125                                 regulator-min-microvolt = <2500000>;
0126                                 regulator-max-microvolt = <2500000>;
0127                                 regulator-name = "vcc2v5";
0128                         };
0129 
0130                         cldo2 {
0131                                 /* unused */
0132                         };
0133 
0134                         cldo3 {
0135                                 /* unused */
0136                         };
0137 
0138                         reg_dcdca: dcdca {
0139                                 regulator-always-on;
0140                                 regulator-min-microvolt = <810000>;
0141                                 regulator-max-microvolt = <1100000>;
0142                                 regulator-name = "vdd-cpu";
0143                         };
0144 
0145                         reg_dcdcc: dcdcc {
0146                                 regulator-always-on;
0147                                 regulator-min-microvolt = <810000>;
0148                                 regulator-max-microvolt = <990000>;
0149                                 regulator-name = "vdd-gpu-sys";
0150                         };
0151 
0152                         reg_dcdcd: dcdcd {
0153                                 regulator-always-on;
0154                                 regulator-min-microvolt = <1360000>;
0155                                 regulator-max-microvolt = <1360000>;
0156                                 regulator-name = "vdd-dram";
0157                         };
0158 
0159                         reg_dcdce: dcdce {
0160                                 regulator-always-on;
0161                                 regulator-min-microvolt = <3300000>;
0162                                 regulator-max-microvolt = <3300000>;
0163                                 regulator-name = "vcc-eth-mmc";
0164                         };
0165 
0166                         sw {
0167                                 /* unused */
0168                         };
0169                 };
0170         };
0171 };
0172 
0173 &uart0 {
0174         pinctrl-names = "default";
0175         pinctrl-0 = <&uart0_ph_pins>;
0176         status = "okay";
0177 };