diff options
author | Sean Wang <sean.wang@mediatek.com> | 2018-02-17 14:54:40 -0500 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2018-03-11 15:26:27 -0400 |
commit | c4ff2adeb1be343545770df165acb2cc9513ac9a (patch) | |
tree | 1951eaeec636fb68c3990f60006a2d29decca19b | |
parent | 3725ba3f55749987cf6f4294459dc9141255f540 (diff) |
arm64: dts: mt7622: add PMIC MT6380 related nodes
Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380
regulator nodes in an alone file to allow similar boards using MT6380
able to resue the configuration.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Philippe Ombredanne <pombredanne@nexb.com>
Acked-by: Philippe Ombredanne <pombredanne@nexb.com>
[mb: add missing space]
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
-rw-r--r-- | arch/arm64/boot/dts/mediatek/mt6380.dtsi | 86 | ||||
-rw-r--r-- | arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 8 | ||||
-rw-r--r-- | arch/arm64/boot/dts/mediatek/mt7622.dtsi | 12 |
3 files changed, 106 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/mediatek/mt6380.dtsi b/arch/arm64/boot/dts/mediatek/mt6380.dtsi new file mode 100644 index 000000000000..53b335d2de5f --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt6380.dtsi | |||
@@ -0,0 +1,86 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
2 | /* | ||
3 | * dts file for MediaTek MT6380 regulator | ||
4 | * | ||
5 | * Copyright (c) 2018 MediaTek Inc. | ||
6 | * Author: Chenglin Xu <chenglin.xu@mediatek.com> | ||
7 | * Sean Wang <sean.wang@mediatek.com> | ||
8 | */ | ||
9 | |||
10 | &pwrap { | ||
11 | regulators { | ||
12 | compatible = "mediatek,mt6380-regulator"; | ||
13 | |||
14 | mt6380_vcpu_reg: buck-vcore1 { | ||
15 | regulator-name = "vcore1"; | ||
16 | regulator-min-microvolt = < 600000>; | ||
17 | regulator-max-microvolt = <1393750>; | ||
18 | regulator-ramp-delay = <6250>; | ||
19 | regulator-always-on; | ||
20 | regulator-boot-on; | ||
21 | }; | ||
22 | |||
23 | mt6380_vcore_reg: buck-vcore { | ||
24 | regulator-name = "vcore"; | ||
25 | regulator-min-microvolt = <600000>; | ||
26 | regulator-max-microvolt = <1393750>; | ||
27 | regulator-ramp-delay = <6250>; | ||
28 | regulator-always-on; | ||
29 | regulator-boot-on; | ||
30 | }; | ||
31 | |||
32 | mt6380_vrf_reg: buck-vrf { | ||
33 | regulator-name = "vrf"; | ||
34 | regulator-min-microvolt = <1200000>; | ||
35 | regulator-max-microvolt = <1575000>; | ||
36 | regulator-ramp-delay = <0>; | ||
37 | regulator-always-on; | ||
38 | regulator-boot-on; | ||
39 | }; | ||
40 | |||
41 | mt6380_vm_reg: ldo-vm { | ||
42 | regulator-name = "vm"; | ||
43 | regulator-min-microvolt = <1050000>; | ||
44 | regulator-max-microvolt = <1400000>; | ||
45 | regulator-ramp-delay = <0>; | ||
46 | regulator-always-on; | ||
47 | regulator-boot-on; | ||
48 | }; | ||
49 | |||
50 | mt6380_va_reg: ldo-va { | ||
51 | regulator-name = "va"; | ||
52 | regulator-min-microvolt = <2200000>; | ||
53 | regulator-max-microvolt = <3300000>; | ||
54 | regulator-ramp-delay = <0>; | ||
55 | regulator-always-on; | ||
56 | regulator-boot-on; | ||
57 | }; | ||
58 | |||
59 | mt6380_vphy_reg: ldo-vphy { | ||
60 | regulator-name = "vphy"; | ||
61 | regulator-min-microvolt = <1800000>; | ||
62 | regulator-max-microvolt = <1800000>; | ||
63 | regulator-ramp-delay = <0>; | ||
64 | regulator-always-on; | ||
65 | regulator-boot-on; | ||
66 | }; | ||
67 | |||
68 | mt6380_vddr_reg: ldo-vddr { | ||
69 | regulator-name = "vddr"; | ||
70 | regulator-min-microvolt = <1240000>; | ||
71 | regulator-max-microvolt = <1840000>; | ||
72 | regulator-ramp-delay = <0>; | ||
73 | regulator-always-on; | ||
74 | regulator-boot-on; | ||
75 | }; | ||
76 | |||
77 | mt6380_vt_reg: ldo-vt { | ||
78 | regulator-name = "vt"; | ||
79 | regulator-min-microvolt = <2200000>; | ||
80 | regulator-max-microvolt = <3300000>; | ||
81 | regulator-ramp-delay = <0>; | ||
82 | regulator-always-on; | ||
83 | regulator-boot-on; | ||
84 | }; | ||
85 | }; | ||
86 | }; | ||
diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index fc8ef78a0a34..42bd3a4c9a93 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <dt-bindings/input/input.h> | 10 | #include <dt-bindings/input/input.h> |
11 | 11 | ||
12 | #include "mt7622.dtsi" | 12 | #include "mt7622.dtsi" |
13 | #include "mt6380.dtsi" | ||
13 | 14 | ||
14 | / { | 15 | / { |
15 | model = "MediaTek MT7622 RFB1 board"; | 16 | model = "MediaTek MT7622 RFB1 board"; |
@@ -222,6 +223,13 @@ | |||
222 | }; | 223 | }; |
223 | }; | 224 | }; |
224 | 225 | ||
226 | &pwrap { | ||
227 | pinctrl-names = "default"; | ||
228 | pinctrl-0 = <&pmic_bus_pins>; | ||
229 | |||
230 | status = "okay"; | ||
231 | }; | ||
232 | |||
225 | &uart0 { | 233 | &uart0 { |
226 | status = "okay"; | 234 | status = "okay"; |
227 | }; | 235 | }; |
diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 8211bf72ccaa..2f6b88a98f4c 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi | |||
@@ -102,6 +102,18 @@ | |||
102 | #reset-cells = <1>; | 102 | #reset-cells = <1>; |
103 | }; | 103 | }; |
104 | 104 | ||
105 | pwrap: pwrap@10001000 { | ||
106 | compatible = "mediatek,mt7622-pwrap"; | ||
107 | reg = <0 0x10001000 0 0x250>; | ||
108 | reg-names = "pwrap"; | ||
109 | clocks = <&infracfg CLK_INFRA_PMIC_PD>, <&pwrap_clk>; | ||
110 | clock-names = "spi", "wrap"; | ||
111 | resets = <&infracfg MT7622_INFRA_PMIC_WRAP_RST>; | ||
112 | reset-names = "pwrap"; | ||
113 | interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; | ||
114 | status = "disabled"; | ||
115 | }; | ||
116 | |||
105 | pericfg: pericfg@10002000 { | 117 | pericfg: pericfg@10002000 { |
106 | compatible = "mediatek,mt7622-pericfg", | 118 | compatible = "mediatek,mt7622-pericfg", |
107 | "syscon"; | 119 | "syscon"; |