xref: /openbmc/linux/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi (revision 4661c3afefe900ff7b5004aca0a2c927cfa37f3b)
1c3904a26SIcenowy Zheng/*
2c3904a26SIcenowy Zheng * Copyright (c) 2017 Icenowy Zheng <icenowy@aosc.xyz>
3c3904a26SIcenowy Zheng *
4c3904a26SIcenowy Zheng * Based on sun50i-a64-pine64.dts, which is:
5c3904a26SIcenowy Zheng *   Copyright (c) 2016 ARM Ltd.
6c3904a26SIcenowy Zheng *
7c3904a26SIcenowy Zheng * This file is dual-licensed: you can use it either under the terms
8c3904a26SIcenowy Zheng * of the GPL or the X11 license, at your option. Note that this dual
9c3904a26SIcenowy Zheng * licensing only applies to this file, and not this project as a
10c3904a26SIcenowy Zheng * whole.
11c3904a26SIcenowy Zheng *
12c3904a26SIcenowy Zheng *  a) This library is free software; you can redistribute it and/or
13c3904a26SIcenowy Zheng *     modify it under the terms of the GNU General Public License as
14c3904a26SIcenowy Zheng *     published by the Free Software Foundation; either version 2 of the
15c3904a26SIcenowy Zheng *     License, or (at your option) any later version.
16c3904a26SIcenowy Zheng *
17c3904a26SIcenowy Zheng *     This library is distributed in the hope that it will be useful,
18c3904a26SIcenowy Zheng *     but WITHOUT ANY WARRANTY; without even the implied warranty of
19c3904a26SIcenowy Zheng *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20c3904a26SIcenowy Zheng *     GNU General Public License for more details.
21c3904a26SIcenowy Zheng *
22c3904a26SIcenowy Zheng * Or, alternatively,
23c3904a26SIcenowy Zheng *
24c3904a26SIcenowy Zheng *  b) Permission is hereby granted, free of charge, to any person
25c3904a26SIcenowy Zheng *     obtaining a copy of this software and associated documentation
26c3904a26SIcenowy Zheng *     files (the "Software"), to deal in the Software without
27c3904a26SIcenowy Zheng *     restriction, including without limitation the rights to use,
28c3904a26SIcenowy Zheng *     copy, modify, merge, publish, distribute, sublicense, and/or
29c3904a26SIcenowy Zheng *     sell copies of the Software, and to permit persons to whom the
30c3904a26SIcenowy Zheng *     Software is furnished to do so, subject to the following
31c3904a26SIcenowy Zheng *     conditions:
32c3904a26SIcenowy Zheng *
33c3904a26SIcenowy Zheng *     The above copyright notice and this permission notice shall be
34c3904a26SIcenowy Zheng *     included in all copies or substantial portions of the Software.
35c3904a26SIcenowy Zheng *
36c3904a26SIcenowy Zheng *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37c3904a26SIcenowy Zheng *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38c3904a26SIcenowy Zheng *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39c3904a26SIcenowy Zheng *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40c3904a26SIcenowy Zheng *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41c3904a26SIcenowy Zheng *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42c3904a26SIcenowy Zheng *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43c3904a26SIcenowy Zheng *     OTHER DEALINGS IN THE SOFTWARE.
44c3904a26SIcenowy Zheng */
45c3904a26SIcenowy Zheng
46c3904a26SIcenowy Zheng#include "sun50i-a64.dtsi"
47c3904a26SIcenowy Zheng
48c3904a26SIcenowy Zheng&mmc0 {
49c3904a26SIcenowy Zheng	pinctrl-names = "default";
50c3904a26SIcenowy Zheng	pinctrl-0 = <&mmc0_pins>;
517d556bfcSJagan Teki	vmmc-supply = <&reg_dcdc1>;
52c3904a26SIcenowy Zheng	non-removable;
53c3904a26SIcenowy Zheng	disable-wp;
54c3904a26SIcenowy Zheng	bus-width = <4>;
55c3904a26SIcenowy Zheng	status = "okay";
56c3904a26SIcenowy Zheng};
5778c3cbc8SIcenowy Zheng
5878c3cbc8SIcenowy Zheng&r_rsb {
5978c3cbc8SIcenowy Zheng	status = "okay";
6078c3cbc8SIcenowy Zheng
6178c3cbc8SIcenowy Zheng	axp803: pmic@3a3 {
6278c3cbc8SIcenowy Zheng		compatible = "x-powers,axp803";
6378c3cbc8SIcenowy Zheng		reg = <0x3a3>;
6478c3cbc8SIcenowy Zheng		interrupt-parent = <&r_intc>;
6578c3cbc8SIcenowy Zheng		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
6678c3cbc8SIcenowy Zheng	};
6778c3cbc8SIcenowy Zheng};
6878c3cbc8SIcenowy Zheng
69*4661c3afSEmmanuel Vadot&spi0  {
70*4661c3afSEmmanuel Vadot	status = "okay";
71*4661c3afSEmmanuel Vadot
72*4661c3afSEmmanuel Vadot	flash@0 {
73*4661c3afSEmmanuel Vadot		#address-cells = <1>;
74*4661c3afSEmmanuel Vadot		#size-cells = <1>;
75*4661c3afSEmmanuel Vadot		compatible = "jedec,spi-nor";
76*4661c3afSEmmanuel Vadot		reg = <0>;
77*4661c3afSEmmanuel Vadot		spi-max-frequency = <40000000>;
78*4661c3afSEmmanuel Vadot	};
79*4661c3afSEmmanuel Vadot};
80*4661c3afSEmmanuel Vadot
8178c3cbc8SIcenowy Zheng#include "axp803.dtsi"
8278c3cbc8SIcenowy Zheng
8378c3cbc8SIcenowy Zheng&reg_aldo2 {
8478c3cbc8SIcenowy Zheng	regulator-always-on;
8578c3cbc8SIcenowy Zheng	regulator-min-microvolt = <1800000>;
8678c3cbc8SIcenowy Zheng	regulator-max-microvolt = <3300000>;
8778c3cbc8SIcenowy Zheng	regulator-name = "vcc-pl";
8878c3cbc8SIcenowy Zheng};
8978c3cbc8SIcenowy Zheng
9078c3cbc8SIcenowy Zheng&reg_aldo3 {
9178c3cbc8SIcenowy Zheng	regulator-always-on;
9278c3cbc8SIcenowy Zheng	regulator-min-microvolt = <3000000>;
9378c3cbc8SIcenowy Zheng	regulator-max-microvolt = <3000000>;
9478c3cbc8SIcenowy Zheng	regulator-name = "vcc-pll-avcc";
9578c3cbc8SIcenowy Zheng};
9678c3cbc8SIcenowy Zheng
9778c3cbc8SIcenowy Zheng&reg_dcdc1 {
9878c3cbc8SIcenowy Zheng	regulator-always-on;
9978c3cbc8SIcenowy Zheng	regulator-min-microvolt = <3300000>;
10078c3cbc8SIcenowy Zheng	regulator-max-microvolt = <3300000>;
10178c3cbc8SIcenowy Zheng	regulator-name = "vcc-3v3";
10278c3cbc8SIcenowy Zheng};
10378c3cbc8SIcenowy Zheng
10478c3cbc8SIcenowy Zheng&reg_dcdc2 {
10578c3cbc8SIcenowy Zheng	regulator-always-on;
10678c3cbc8SIcenowy Zheng	regulator-min-microvolt = <1040000>;
10778c3cbc8SIcenowy Zheng	regulator-max-microvolt = <1300000>;
10878c3cbc8SIcenowy Zheng	regulator-name = "vdd-cpux";
10978c3cbc8SIcenowy Zheng};
11078c3cbc8SIcenowy Zheng
11178c3cbc8SIcenowy Zheng/* DCDC3 is polyphased with DCDC2 */
11278c3cbc8SIcenowy Zheng
11378c3cbc8SIcenowy Zheng&reg_dcdc5 {
11478c3cbc8SIcenowy Zheng	regulator-always-on;
11578c3cbc8SIcenowy Zheng	regulator-min-microvolt = <1200000>;
11678c3cbc8SIcenowy Zheng	regulator-max-microvolt = <1200000>;
11778c3cbc8SIcenowy Zheng	regulator-name = "vcc-dram";
11878c3cbc8SIcenowy Zheng};
11978c3cbc8SIcenowy Zheng
12078c3cbc8SIcenowy Zheng&reg_dcdc6 {
12178c3cbc8SIcenowy Zheng	regulator-always-on;
12278c3cbc8SIcenowy Zheng	regulator-min-microvolt = <1100000>;
12378c3cbc8SIcenowy Zheng	regulator-max-microvolt = <1100000>;
12478c3cbc8SIcenowy Zheng	regulator-name = "vdd-sys";
12578c3cbc8SIcenowy Zheng};
12678c3cbc8SIcenowy Zheng
12778c3cbc8SIcenowy Zheng&reg_eldo1 {
12878c3cbc8SIcenowy Zheng	regulator-always-on;
12978c3cbc8SIcenowy Zheng	regulator-min-microvolt = <1800000>;
13078c3cbc8SIcenowy Zheng	regulator-max-microvolt = <1800000>;
13178c3cbc8SIcenowy Zheng	regulator-name = "vdd-1v8-lpddr";
13278c3cbc8SIcenowy Zheng};
13378c3cbc8SIcenowy Zheng
13478c3cbc8SIcenowy Zheng&reg_fldo1 {
13578c3cbc8SIcenowy Zheng	regulator-min-microvolt = <1200000>;
13678c3cbc8SIcenowy Zheng	regulator-max-microvolt = <1200000>;
13778c3cbc8SIcenowy Zheng	regulator-name = "vcc-1v2-hsic";
13878c3cbc8SIcenowy Zheng};
13978c3cbc8SIcenowy Zheng
14078c3cbc8SIcenowy Zheng/*
14178c3cbc8SIcenowy Zheng * The A64 chip cannot work without this regulator off, although
14278c3cbc8SIcenowy Zheng * it seems to be only driving the AR100 core.
14378c3cbc8SIcenowy Zheng * Maybe we don't still know well about CPUs domain.
14478c3cbc8SIcenowy Zheng */
14578c3cbc8SIcenowy Zheng&reg_fldo2 {
14678c3cbc8SIcenowy Zheng	regulator-always-on;
14778c3cbc8SIcenowy Zheng	regulator-min-microvolt = <1100000>;
14878c3cbc8SIcenowy Zheng	regulator-max-microvolt = <1100000>;
14978c3cbc8SIcenowy Zheng	regulator-name = "vdd-cpus";
15078c3cbc8SIcenowy Zheng};
15178c3cbc8SIcenowy Zheng
15278c3cbc8SIcenowy Zheng&reg_rtc_ldo {
15378c3cbc8SIcenowy Zheng	regulator-name = "vcc-rtc";
15478c3cbc8SIcenowy Zheng};
155