1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 2 // Copyright (C) 2021 Ivan Uvarov <i.uvarov@cog 2 // Copyright (C) 2021 Ivan Uvarov <i.uvarov@cognitivepilot.com> 3 // Based on the sun8i-r40-bananapi-m2-ultra.dt 3 // Based on the sun8i-r40-bananapi-m2-ultra.dts, which is: 4 // Copyright (C) 2017 Chen-Yu Tsai <wens@csie. 4 // Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org> 5 // Copyright (C) 2017 Icenowy Zheng <icenowy@a 5 // Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io> 6 6 7 #include "sun8i-r40.dtsi" 7 #include "sun8i-r40.dtsi" 8 #include "sun8i-r40-cpu-opp.dtsi" 8 #include "sun8i-r40-cpu-opp.dtsi" 9 9 10 &cpu0 { 10 &cpu0 { 11 cpu-supply = <®_dcdc2>; 11 cpu-supply = <®_dcdc2>; 12 }; 12 }; 13 13 14 &i2c0 { 14 &i2c0 { 15 status = "okay"; 15 status = "okay"; 16 16 17 axp22x: pmic@34 { 17 axp22x: pmic@34 { 18 compatible = "x-powers,axp221" 18 compatible = "x-powers,axp221"; 19 reg = <0x34>; 19 reg = <0x34>; 20 interrupt-parent = <&nmi_intc> 20 interrupt-parent = <&nmi_intc>; 21 interrupts = <0 IRQ_TYPE_LEVEL 21 interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 22 }; 22 }; 23 }; 23 }; 24 24 25 #include "axp22x.dtsi" 25 #include "axp22x.dtsi" 26 26 27 &mmc2 { 27 &mmc2 { 28 vmmc-supply = <®_dcdc1>; 28 vmmc-supply = <®_dcdc1>; 29 vqmmc-supply = <®_aldo2>; 29 vqmmc-supply = <®_aldo2>; 30 bus-width = <8>; 30 bus-width = <8>; 31 non-removable; 31 non-removable; 32 status = "okay"; 32 status = "okay"; 33 }; 33 }; 34 34 35 &pio { 35 &pio { 36 pinctrl-names = "default"; 36 pinctrl-names = "default"; 37 pinctrl-0 = <&clk_out_a_pin>; 37 pinctrl-0 = <&clk_out_a_pin>; 38 vcc-pa-supply = <®_dcdc1>; 38 vcc-pa-supply = <®_dcdc1>; 39 vcc-pc-supply = <®_aldo2>; 39 vcc-pc-supply = <®_aldo2>; 40 vcc-pd-supply = <®_dcdc1>; 40 vcc-pd-supply = <®_dcdc1>; 41 vcc-pf-supply = <®_dldo4>; 41 vcc-pf-supply = <®_dldo4>; 42 vcc-pg-supply = <®_dldo1>; 42 vcc-pg-supply = <®_dldo1>; 43 }; 43 }; 44 44 45 ®_aldo1 { << 46 regulator-always-on; << 47 regulator-min-microvolt = <3300000>; << 48 regulator-max-microvolt = <3300000>; << 49 regulator-name = "vcc-3v3-tv-usb"; << 50 }; << 51 << 52 ®_aldo2 { 45 ®_aldo2 { 53 regulator-always-on; 46 regulator-always-on; 54 regulator-min-microvolt = <1800000>; 47 regulator-min-microvolt = <1800000>; 55 regulator-max-microvolt = <1800000>; 48 regulator-max-microvolt = <1800000>; 56 regulator-name = "vcc-pa"; 49 regulator-name = "vcc-pa"; 57 }; 50 }; 58 51 59 ®_aldo3 { 52 ®_aldo3 { 60 regulator-always-on; 53 regulator-always-on; 61 regulator-min-microvolt = <3000000>; 54 regulator-min-microvolt = <3000000>; 62 regulator-max-microvolt = <3000000>; 55 regulator-max-microvolt = <3000000>; 63 regulator-name = "avcc"; 56 regulator-name = "avcc"; 64 }; 57 }; 65 58 66 ®_dcdc1 { 59 ®_dcdc1 { 67 regulator-always-on; 60 regulator-always-on; 68 regulator-min-microvolt = <3300000>; 61 regulator-min-microvolt = <3300000>; 69 regulator-max-microvolt = <3300000>; 62 regulator-max-microvolt = <3300000>; 70 regulator-name = "vcc-3v3"; 63 regulator-name = "vcc-3v3"; 71 }; 64 }; 72 65 73 ®_dcdc2 { 66 ®_dcdc2 { 74 regulator-always-on; 67 regulator-always-on; 75 regulator-min-microvolt = <1100000>; 68 regulator-min-microvolt = <1100000>; 76 regulator-max-microvolt = <1100000>; 69 regulator-max-microvolt = <1100000>; 77 regulator-name = "vdd-cpu"; 70 regulator-name = "vdd-cpu"; 78 }; 71 }; 79 72 80 ®_dcdc3 { 73 ®_dcdc3 { 81 regulator-always-on; 74 regulator-always-on; 82 regulator-min-microvolt = <1100000>; 75 regulator-min-microvolt = <1100000>; 83 regulator-max-microvolt = <1100000>; 76 regulator-max-microvolt = <1100000>; 84 regulator-name = "vdd-sys"; 77 regulator-name = "vdd-sys"; 85 }; 78 }; 86 79 87 ®_dcdc5 { 80 ®_dcdc5 { 88 regulator-always-on; 81 regulator-always-on; 89 regulator-min-microvolt = <1500000>; 82 regulator-min-microvolt = <1500000>; 90 regulator-max-microvolt = <1500000>; 83 regulator-max-microvolt = <1500000>; 91 regulator-name = "vcc-dram"; 84 regulator-name = "vcc-dram"; 92 }; 85 }; 93 86 94 ®_dldo1 { 87 ®_dldo1 { 95 regulator-always-on; 88 regulator-always-on; 96 regulator-min-microvolt = <3300000>; 89 regulator-min-microvolt = <3300000>; 97 regulator-max-microvolt = <3300000>; 90 regulator-max-microvolt = <3300000>; 98 regulator-name = "vcc-wifi-io"; 91 regulator-name = "vcc-wifi-io"; 99 }; 92 }; 100 93 101 ®_dldo4 { 94 ®_dldo4 { 102 regulator-always-on; 95 regulator-always-on; 103 regulator-min-microvolt = <2500000>; 96 regulator-min-microvolt = <2500000>; 104 regulator-max-microvolt = <2500000>; 97 regulator-max-microvolt = <2500000>; 105 regulator-name = "vdd2v5-sata"; 98 regulator-name = "vdd2v5-sata"; 106 }; 99 }; 107 100 108 ®_eldo2 { 101 ®_eldo2 { 109 regulator-min-microvolt = <1200000>; 102 regulator-min-microvolt = <1200000>; 110 regulator-max-microvolt = <1200000>; 103 regulator-max-microvolt = <1200000>; 111 regulator-name = "vdd1v2-sata"; 104 regulator-name = "vdd1v2-sata"; 112 }; 105 }; 113 106 114 ®_eldo3 { 107 ®_eldo3 { 115 regulator-min-microvolt = <2800000>; 108 regulator-min-microvolt = <2800000>; 116 regulator-max-microvolt = <2800000>; 109 regulator-max-microvolt = <2800000>; 117 regulator-name = "vcc-pe"; 110 regulator-name = "vcc-pe"; 118 }; 111 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.