1*b4b8f2c9SClément Péron// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2c3904a26SIcenowy Zheng/* 3c3904a26SIcenowy Zheng * Copyright (c) 2017 Icenowy Zheng <icenowy@aosc.xyz> 4c3904a26SIcenowy Zheng * 5c3904a26SIcenowy Zheng * Based on sun50i-a64-pine64.dts, which is: 6c3904a26SIcenowy Zheng * Copyright (c) 2016 ARM Ltd. 7c3904a26SIcenowy Zheng */ 8c3904a26SIcenowy Zheng 9c3904a26SIcenowy Zheng#include "sun50i-a64.dtsi" 10c3904a26SIcenowy Zheng 11edb24ffeSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 12edb24ffeSEmmanuel Vadot 13498c21f2SVasily Khoruzhick&codec_analog { 1407de9094SChen-Yu Tsai cpvdd-supply = <®_eldo1>; 15498c21f2SVasily Khoruzhick}; 16498c21f2SVasily Khoruzhick 17c3904a26SIcenowy Zheng&mmc0 { 18c3904a26SIcenowy Zheng pinctrl-names = "default"; 19c3904a26SIcenowy Zheng pinctrl-0 = <&mmc0_pins>; 207d556bfcSJagan Teki vmmc-supply = <®_dcdc1>; 21c3904a26SIcenowy Zheng non-removable; 22c3904a26SIcenowy Zheng disable-wp; 23c3904a26SIcenowy Zheng bus-width = <4>; 24edb24ffeSEmmanuel Vadot cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ 25c3904a26SIcenowy Zheng status = "okay"; 26c3904a26SIcenowy Zheng}; 2778c3cbc8SIcenowy Zheng 2878c3cbc8SIcenowy Zheng&r_rsb { 2978c3cbc8SIcenowy Zheng status = "okay"; 3078c3cbc8SIcenowy Zheng 3178c3cbc8SIcenowy Zheng axp803: pmic@3a3 { 3278c3cbc8SIcenowy Zheng compatible = "x-powers,axp803"; 3378c3cbc8SIcenowy Zheng reg = <0x3a3>; 3478c3cbc8SIcenowy Zheng interrupt-parent = <&r_intc>; 3578c3cbc8SIcenowy Zheng interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 3678c3cbc8SIcenowy Zheng }; 3778c3cbc8SIcenowy Zheng}; 3878c3cbc8SIcenowy Zheng 394661c3afSEmmanuel Vadot&spi0 { 404661c3afSEmmanuel Vadot status = "okay"; 414661c3afSEmmanuel Vadot 424661c3afSEmmanuel Vadot flash@0 { 434661c3afSEmmanuel Vadot #address-cells = <1>; 444661c3afSEmmanuel Vadot #size-cells = <1>; 454661c3afSEmmanuel Vadot compatible = "jedec,spi-nor"; 464661c3afSEmmanuel Vadot reg = <0>; 474661c3afSEmmanuel Vadot spi-max-frequency = <40000000>; 484661c3afSEmmanuel Vadot }; 494661c3afSEmmanuel Vadot}; 504661c3afSEmmanuel Vadot 5178c3cbc8SIcenowy Zheng#include "axp803.dtsi" 5278c3cbc8SIcenowy Zheng 5378c3cbc8SIcenowy Zheng®_aldo2 { 5478c3cbc8SIcenowy Zheng regulator-always-on; 5578c3cbc8SIcenowy Zheng regulator-min-microvolt = <1800000>; 5678c3cbc8SIcenowy Zheng regulator-max-microvolt = <3300000>; 5778c3cbc8SIcenowy Zheng regulator-name = "vcc-pl"; 5878c3cbc8SIcenowy Zheng}; 5978c3cbc8SIcenowy Zheng 6078c3cbc8SIcenowy Zheng®_aldo3 { 6178c3cbc8SIcenowy Zheng regulator-always-on; 6278c3cbc8SIcenowy Zheng regulator-min-microvolt = <3000000>; 6378c3cbc8SIcenowy Zheng regulator-max-microvolt = <3000000>; 6478c3cbc8SIcenowy Zheng regulator-name = "vcc-pll-avcc"; 6578c3cbc8SIcenowy Zheng}; 6678c3cbc8SIcenowy Zheng 6778c3cbc8SIcenowy Zheng®_dcdc1 { 6878c3cbc8SIcenowy Zheng regulator-always-on; 6978c3cbc8SIcenowy Zheng regulator-min-microvolt = <3300000>; 7078c3cbc8SIcenowy Zheng regulator-max-microvolt = <3300000>; 7178c3cbc8SIcenowy Zheng regulator-name = "vcc-3v3"; 7278c3cbc8SIcenowy Zheng}; 7378c3cbc8SIcenowy Zheng 7478c3cbc8SIcenowy Zheng®_dcdc2 { 7578c3cbc8SIcenowy Zheng regulator-always-on; 7678c3cbc8SIcenowy Zheng regulator-min-microvolt = <1040000>; 7778c3cbc8SIcenowy Zheng regulator-max-microvolt = <1300000>; 7878c3cbc8SIcenowy Zheng regulator-name = "vdd-cpux"; 7978c3cbc8SIcenowy Zheng}; 8078c3cbc8SIcenowy Zheng 8178c3cbc8SIcenowy Zheng/* DCDC3 is polyphased with DCDC2 */ 8278c3cbc8SIcenowy Zheng 8378c3cbc8SIcenowy Zheng®_dcdc5 { 8478c3cbc8SIcenowy Zheng regulator-always-on; 8578c3cbc8SIcenowy Zheng regulator-min-microvolt = <1200000>; 8678c3cbc8SIcenowy Zheng regulator-max-microvolt = <1200000>; 8778c3cbc8SIcenowy Zheng regulator-name = "vcc-dram"; 8878c3cbc8SIcenowy Zheng}; 8978c3cbc8SIcenowy Zheng 9078c3cbc8SIcenowy Zheng®_dcdc6 { 9178c3cbc8SIcenowy Zheng regulator-always-on; 9278c3cbc8SIcenowy Zheng regulator-min-microvolt = <1100000>; 9378c3cbc8SIcenowy Zheng regulator-max-microvolt = <1100000>; 9478c3cbc8SIcenowy Zheng regulator-name = "vdd-sys"; 9578c3cbc8SIcenowy Zheng}; 9678c3cbc8SIcenowy Zheng 9778c3cbc8SIcenowy Zheng®_eldo1 { 9878c3cbc8SIcenowy Zheng regulator-always-on; 9978c3cbc8SIcenowy Zheng regulator-min-microvolt = <1800000>; 10078c3cbc8SIcenowy Zheng regulator-max-microvolt = <1800000>; 10178c3cbc8SIcenowy Zheng regulator-name = "vdd-1v8-lpddr"; 10278c3cbc8SIcenowy Zheng}; 10378c3cbc8SIcenowy Zheng 10478c3cbc8SIcenowy Zheng®_fldo1 { 10578c3cbc8SIcenowy Zheng regulator-min-microvolt = <1200000>; 10678c3cbc8SIcenowy Zheng regulator-max-microvolt = <1200000>; 10778c3cbc8SIcenowy Zheng regulator-name = "vcc-1v2-hsic"; 10878c3cbc8SIcenowy Zheng}; 10978c3cbc8SIcenowy Zheng 11078c3cbc8SIcenowy Zheng/* 11178c3cbc8SIcenowy Zheng * The A64 chip cannot work without this regulator off, although 11278c3cbc8SIcenowy Zheng * it seems to be only driving the AR100 core. 11378c3cbc8SIcenowy Zheng * Maybe we don't still know well about CPUs domain. 11478c3cbc8SIcenowy Zheng */ 11578c3cbc8SIcenowy Zheng®_fldo2 { 11678c3cbc8SIcenowy Zheng regulator-always-on; 11778c3cbc8SIcenowy Zheng regulator-min-microvolt = <1100000>; 11878c3cbc8SIcenowy Zheng regulator-max-microvolt = <1100000>; 11978c3cbc8SIcenowy Zheng regulator-name = "vdd-cpus"; 12078c3cbc8SIcenowy Zheng}; 12178c3cbc8SIcenowy Zheng 12278c3cbc8SIcenowy Zheng®_rtc_ldo { 12378c3cbc8SIcenowy Zheng regulator-name = "vcc-rtc"; 12478c3cbc8SIcenowy Zheng}; 125