1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2020 Yangtao Li <frank@allwinnertech.com> 4 */ 5 6/dts-v1/; 7 8#include "sun50i-a100.dtsi" 9 10#include <dt-bindings/gpio/gpio.h> 11 12/{ 13 model = "Allwinner A100 Perf1"; 14 compatible = "allwinner,a100-perf1", "allwinner,sun50i-a100"; 15 16 aliases { 17 serial0 = &uart0; 18 }; 19 20 chosen { 21 stdout-path = "serial0:115200n8"; 22 }; 23}; 24 25&mmc0 { 26 vmmc-supply = <®_dcdc1>; 27 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ 28 bus-width = <4>; 29 status = "okay"; 30}; 31 32&mmc2 { 33 vmmc-supply = <®_dcdc1>; 34 vqmmc-supply = <®_aldo1>; 35 cap-mmc-hw-reset; 36 non-removable; 37 bus-width = <8>; 38 status = "okay"; 39}; 40 41&pio { 42 vcc-pb-supply = <®_dcdc1>; 43 vcc-pc-supply = <®_eldo1>; 44 vcc-pd-supply = <®_dcdc1>; 45 vcc-pe-supply = <®_dldo2>; 46 vcc-pf-supply = <®_dcdc1>; 47 vcc-pg-supply = <®_dldo1>; 48 vcc-ph-supply = <®_dcdc1>; 49}; 50 51&r_pio { 52 /* 53 * FIXME: We can't add that supply for now since it would 54 * create a circular dependency between pinctrl, the regulator 55 * and the RSB Bus. 56 * 57 * vcc-pl-supply = <®_aldo3>; 58 */ 59}; 60 61&r_i2c0 { 62 status = "okay"; 63 64 axp803: pmic@34 { 65 compatible = "x-powers,axp803"; 66 reg = <0x34>; 67 interrupt-parent = <&r_intc>; 68 interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 69 x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */ 70 }; 71}; 72 73#include "axp803.dtsi" 74 75&ac_power_supply { 76 status = "okay"; 77}; 78 79®_aldo1 { 80 regulator-always-on; 81 regulator-min-microvolt = <1800000>; 82 regulator-max-microvolt = <1800000>; 83 regulator-name = "vcc-pll-avcc"; 84}; 85 86®_aldo2 { 87 regulator-always-on; 88 regulator-min-microvolt = <1800000>; 89 regulator-max-microvolt = <1800000>; 90 regulator-name = "vcc-dram-1"; 91}; 92 93®_aldo3 { 94 regulator-always-on; 95 regulator-min-microvolt = <3300000>; 96 regulator-max-microvolt = <3300000>; 97 regulator-name = "vcc-usb-pl"; 98}; 99 100®_dcdc1 { 101 regulator-always-on; 102 regulator-min-microvolt = <3300000>; 103 regulator-max-microvolt = <3300000>; 104 regulator-name = "vcc-io-usb-pd-emmc-nand-card"; 105}; 106 107®_dcdc2 { 108 regulator-always-on; 109 /* 110 * FIXME: update min and max before support dvfs. 111 */ 112 regulator-min-microvolt = <500000>; 113 regulator-max-microvolt = <1300000>; 114 regulator-name = "vdd-cpux"; 115}; 116 117/* DCDC3 is polyphased with DCDC2 */ 118 119®_dcdc4 { 120 regulator-always-on; 121 regulator-min-microvolt = <950000>; 122 regulator-max-microvolt = <950000>; 123 regulator-name = "vdd-sys-usb-dram"; 124}; 125 126®_dcdc5 { 127 regulator-always-on; 128 regulator-min-microvolt = <1500000>; 129 regulator-max-microvolt = <1500000>; 130 regulator-name = "vcc-dram-2"; 131}; 132 133®_dldo1 { 134 regulator-min-microvolt = <3300000>; 135 regulator-max-microvolt = <3300000>; 136 regulator-name = "vcc-pg-dcxo-wifi"; 137}; 138 139®_dldo2 { 140 regulator-min-microvolt = <1800000>; 141 regulator-max-microvolt = <2800000>; 142 regulator-name = "vcc-pe-csi"; 143}; 144 145®_dldo3 { 146 regulator-min-microvolt = <1800000>; 147 regulator-max-microvolt = <3300000>; 148 regulator-name = "ldo-avdd-csi"; 149}; 150 151®_dldo4 { 152 regulator-min-microvolt = <1800000>; 153 regulator-max-microvolt = <2800000>; 154 regulator-name = "avcc-csi"; 155}; 156 157®_eldo1 { 158 regulator-min-microvolt = <1800000>; 159 regulator-max-microvolt = <1800000>; 160 regulator-name = "vcc-pc-lvds-csi-efuse-emmc-nand"; 161}; 162 163®_eldo2 { 164 regulator-min-microvolt = <1200000>; 165 regulator-max-microvolt = <1800000>; 166 regulator-name = "dvdd-csi"; 167}; 168 169®_eldo3 { 170 regulator-min-microvolt = <1800000>; 171 regulator-max-microvolt = <1800000>; 172 regulator-name = "vcc-mipi-lcd"; 173}; 174 175®_fldo1 { 176 regulator-always-on; 177 regulator-min-microvolt = <900000>; 178 regulator-max-microvolt = <900000>; 179 regulator-name = "vdd-cpus-usb"; 180}; 181 182®_ldo_io0 { 183 regulator-min-microvolt = <3300000>; 184 regulator-max-microvolt = <3300000>; 185 regulator-name = "vcc-ctp"; 186 status = "okay"; 187}; 188 189®_drivevbus { 190 regulator-name = "usb0-vbus"; 191 status = "okay"; 192}; 193 194&uart0 { 195 pinctrl-names = "default"; 196 pinctrl-0 = <&uart0_pb_pins>; 197 status = "okay"; 198}; 199