1 From 78e92290c8c9511d0d540dfd0450e64169f08c20 Mon Sep 17 00:00:00 2001
2 From: Sean Wang <sean.wang@mediatek.com>
3 Date: Mon, 5 Feb 2018 22:44:44 +0800
4 Subject: [PATCH 213/224] arm64: dts: mt7622: add PMIC MT6380 related nodes
6 Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380
7 regulator nodes in an alone file to allow similar boards using MT6380
8 able to resue the configuration.
10 Signed-off-by: Sean Wang <sean.wang@mediatek.com>
11 Cc: Mark Brown <broonie@kernel.org>
12 Cc: Matthias Brugger <matthias.bgg@gmail.com>
13 Cc: Philippe Ombredanne <pombredanne@nexb.com>
14 Acked-by: Philippe Ombredanne <pombredanne@nexb.com>
16 arch/arm64/boot/dts/mediatek/mt6380.dtsi | 86 ++++++++++++++++++++++++++++
17 arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 8 +++
18 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 12 ++++
19 3 files changed, 106 insertions(+)
20 create mode 100644 arch/arm64/boot/dts/mediatek/mt6380.dtsi
23 +++ b/arch/arm64/boot/dts/mediatek/mt6380.dtsi
25 +// SPDX-License-Identifier: GPL-2.0
27 + * dts file for MediaTek MT6380 regulator
29 + * Copyright (c) 2018 MediaTek Inc.
30 + * Author: Chenglin Xu <chenglin.xu@mediatek.com>
31 + * Sean Wang <sean.wang@mediatek.com>
36 + compatible = "mediatek,mt6380-regulator";
38 + mt6380_vcpu_reg: buck-vcore1 {
39 + regulator-name = "vcore1";
40 + regulator-min-microvolt = < 600000>;
41 + regulator-max-microvolt = <1393750>;
42 + regulator-ramp-delay = <6250>;
43 + regulator-always-on;
47 + mt6380_vcore_reg: buck-vcore {
48 + regulator-name = "vcore";
49 + regulator-min-microvolt = <600000>;
50 + regulator-max-microvolt = <1393750>;
51 + regulator-ramp-delay = <6250>;
52 + regulator-always-on;
56 + mt6380_vrf_reg: buck-vrf {
57 + regulator-name = "vrf";
58 + regulator-min-microvolt = <1200000>;
59 + regulator-max-microvolt = <1575000>;
60 + regulator-ramp-delay = <0>;
61 + regulator-always-on;
65 + mt6380_vm_reg: ldo-vm {
66 + regulator-name = "vm";
67 + regulator-min-microvolt = <1050000>;
68 + regulator-max-microvolt = <1400000>;
69 + regulator-ramp-delay = <0>;
70 + regulator-always-on;
74 + mt6380_va_reg: ldo-va {
75 + regulator-name = "va";
76 + regulator-min-microvolt = <2200000>;
77 + regulator-max-microvolt = <3300000>;
78 + regulator-ramp-delay = <0>;
79 + regulator-always-on;
83 + mt6380_vphy_reg: ldo-vphy {
84 + regulator-name = "vphy";
85 + regulator-min-microvolt = <1800000>;
86 + regulator-max-microvolt = <1800000>;
87 + regulator-ramp-delay = <0>;
88 + regulator-always-on;
92 + mt6380_vddr_reg: ldo-vddr {
93 + regulator-name = "vddr";
94 + regulator-min-microvolt = <1240000>;
95 + regulator-max-microvolt = <1840000>;
96 + regulator-ramp-delay = <0>;
97 + regulator-always-on;
101 + mt6380_vt_reg: ldo-vt {
102 + regulator-name = "vt";
103 + regulator-min-microvolt = <2200000>;
104 + regulator-max-microvolt = <3300000>;
105 + regulator-ramp-delay = <0>;
106 + regulator-always-on;
111 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
112 +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
114 #include <dt-bindings/input/input.h>
116 #include "mt7622.dtsi"
117 +#include "mt6380.dtsi"
120 model = "MediaTek MT7622 RFB1 board";
126 + pinctrl-names = "default";
127 + pinctrl-0 = <&pmic_bus_pins>;
135 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
136 +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
141 + pwrap: pwrap@10001000 {
142 + compatible = "mediatek,mt7622-pwrap";
143 + reg = <0 0x10001000 0 0x250>;
144 + reg-names = "pwrap";
145 + clocks = <&infracfg CLK_INFRA_PMIC_PD>,<&pwrap_clk>;
146 + clock-names = "spi","wrap";
147 + resets = <&infracfg MT7622_INFRA_PMIC_WRAP_RST>;
148 + reset-names = "pwrap";
149 + interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
150 + status = "disabled";
153 pericfg: pericfg@10002000 {
154 compatible = "mediatek,mt7622-pericfg",