Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sean Wang and committed by
Matthias Brugger
c4ff2ade 3725ba3f

+106
+86
arch/arm64/boot/dts/mediatek/mt6380.dtsi
··· 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 + };
+8
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
··· 10 10 #include <dt-bindings/input/input.h> 11 11 12 12 #include "mt7622.dtsi" 13 + #include "mt6380.dtsi" 13 14 14 15 / { 15 16 model = "MediaTek MT7622 RFB1 board"; ··· 221 220 groups = "watchdog"; 222 221 }; 223 222 }; 223 + }; 224 + 225 + &pwrap { 226 + pinctrl-names = "default"; 227 + pinctrl-0 = <&pmic_bus_pins>; 228 + 229 + status = "okay"; 224 230 }; 225 231 226 232 &uart0 {
+12
arch/arm64/boot/dts/mediatek/mt7622.dtsi
··· 102 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 117 pericfg: pericfg@10002000 { 106 118 compatible = "mediatek,mt7622-pericfg", 107 119 "syscon";