Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright 2019 NXP |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "imx8mn.dtsi" |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 9 | #include "imx8mn-evk.dtsi" |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | model = "NXP i.MX8MNano DDR4 EVK board"; |
| 13 | compatible = "fsl,imx8mn-ddr4-evk", "fsl,imx8mn"; |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 14 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 15 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 16 | &A53_0 { |
| 17 | cpu-supply = <&buck2_reg>; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 18 | }; |
| 19 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 20 | &A53_1 { |
| 21 | cpu-supply = <&buck2_reg>; |
| 22 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 23 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 24 | &A53_2 { |
| 25 | cpu-supply = <&buck2_reg>; |
| 26 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 27 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 28 | &A53_3 { |
| 29 | cpu-supply = <&buck2_reg>; |
| 30 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 31 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 32 | &ddrc { |
| 33 | operating-points-v2 = <&ddrc_opp_table>; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 34 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 35 | ddrc_opp_table: opp-table { |
| 36 | compatible = "operating-points-v2"; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 37 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 38 | opp-25M { |
| 39 | opp-hz = /bits/ 64 <25000000>; |
| 40 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 41 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 42 | opp-100M { |
| 43 | opp-hz = /bits/ 64 <100000000>; |
| 44 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 45 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 46 | opp-600M { |
| 47 | opp-hz = /bits/ 64 <600000000>; |
| 48 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 49 | }; |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 50 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 51 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 52 | &i2c1 { |
| 53 | pmic@4b { |
| 54 | compatible = "rohm,bd71847"; |
| 55 | reg = <0x4b>; |
| 56 | pinctrl-names = "default"; |
| 57 | pinctrl-0 = <&pinctrl_pmic>; |
| 58 | interrupt-parent = <&gpio1>; |
| 59 | interrupts = <3 IRQ_TYPE_LEVEL_LOW>; |
| 60 | rohm,reset-snvs-powered; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 61 | |
Marcel Ziswiler | a1033b8 | 2022-07-21 15:43:37 +0200 | [diff] [blame] | 62 | #clock-cells = <0>; |
| 63 | clocks = <&osc_32k 0>; |
| 64 | clock-output-names = "clk-32k-out"; |
| 65 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 66 | regulators { |
| 67 | buck1_reg: BUCK1 { |
| 68 | regulator-name = "buck1"; |
| 69 | regulator-min-microvolt = <700000>; |
| 70 | regulator-max-microvolt = <1300000>; |
| 71 | regulator-boot-on; |
| 72 | regulator-always-on; |
| 73 | regulator-ramp-delay = <1250>; |
| 74 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 75 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 76 | buck2_reg: BUCK2 { |
| 77 | regulator-name = "buck2"; |
| 78 | regulator-min-microvolt = <700000>; |
| 79 | regulator-max-microvolt = <1300000>; |
| 80 | regulator-boot-on; |
| 81 | regulator-always-on; |
| 82 | regulator-ramp-delay = <1250>; |
| 83 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 84 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 85 | buck3_reg: BUCK3 { |
| 86 | // BUCK5 in datasheet |
| 87 | regulator-name = "buck3"; |
| 88 | regulator-min-microvolt = <700000>; |
| 89 | regulator-max-microvolt = <1350000>; |
| 90 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 91 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 92 | buck4_reg: BUCK4 { |
| 93 | // BUCK6 in datasheet |
| 94 | regulator-name = "buck4"; |
| 95 | regulator-min-microvolt = <3000000>; |
| 96 | regulator-max-microvolt = <3300000>; |
| 97 | regulator-boot-on; |
| 98 | regulator-always-on; |
| 99 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 100 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 101 | buck5_reg: BUCK5 { |
| 102 | // BUCK7 in datasheet |
| 103 | regulator-name = "buck5"; |
| 104 | regulator-min-microvolt = <1605000>; |
| 105 | regulator-max-microvolt = <1995000>; |
| 106 | regulator-boot-on; |
| 107 | regulator-always-on; |
| 108 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 109 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 110 | buck6_reg: BUCK6 { |
| 111 | // BUCK8 in datasheet |
| 112 | regulator-name = "buck6"; |
| 113 | regulator-min-microvolt = <800000>; |
| 114 | regulator-max-microvolt = <1400000>; |
| 115 | regulator-boot-on; |
| 116 | regulator-always-on; |
| 117 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 118 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 119 | ldo1_reg: LDO1 { |
| 120 | regulator-name = "ldo1"; |
| 121 | regulator-min-microvolt = <1600000>; |
| 122 | regulator-max-microvolt = <3300000>; |
| 123 | regulator-boot-on; |
| 124 | regulator-always-on; |
| 125 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 126 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 127 | ldo2_reg: LDO2 { |
| 128 | regulator-name = "ldo2"; |
| 129 | regulator-min-microvolt = <800000>; |
| 130 | regulator-max-microvolt = <900000>; |
| 131 | regulator-boot-on; |
| 132 | regulator-always-on; |
| 133 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 134 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 135 | ldo3_reg: LDO3 { |
| 136 | regulator-name = "ldo3"; |
| 137 | regulator-min-microvolt = <1800000>; |
| 138 | regulator-max-microvolt = <3300000>; |
| 139 | regulator-boot-on; |
| 140 | regulator-always-on; |
| 141 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 142 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 143 | ldo4_reg: LDO4 { |
| 144 | regulator-name = "ldo4"; |
| 145 | regulator-min-microvolt = <900000>; |
| 146 | regulator-max-microvolt = <1800000>; |
| 147 | regulator-boot-on; |
| 148 | regulator-always-on; |
| 149 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 150 | |
Peng Fan | cdc90f3 | 2020-12-27 09:37:06 +0800 | [diff] [blame] | 151 | ldo6_reg: LDO6 { |
| 152 | regulator-name = "ldo6"; |
| 153 | regulator-min-microvolt = <900000>; |
| 154 | regulator-max-microvolt = <1800000>; |
| 155 | regulator-boot-on; |
| 156 | regulator-always-on; |
| 157 | }; |
| 158 | }; |
| 159 | }; |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 160 | }; |