Peng Fan | 0d60e43 | 2017-04-13 14:09:50 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 NXP |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
| 9 | #include "imx7d.dtsi" |
| 10 | |
| 11 | / { |
| 12 | model = "Freescale i.MX7 SabreSD Board"; |
| 13 | compatible = "fsl,imx7d-sdb", "fsl,imx7d"; |
| 14 | |
| 15 | memory { |
| 16 | reg = <0x80000000 0x80000000>; |
| 17 | }; |
| 18 | |
Peng Fan | 9fb5dbc | 2017-04-13 14:09:51 +0800 | [diff] [blame] | 19 | spi4 { |
| 20 | compatible = "spi-gpio"; |
| 21 | pinctrl-names = "default"; |
| 22 | pinctrl-0 = <&pinctrl_spi1>; |
| 23 | status = "okay"; |
| 24 | gpio-sck = <&gpio1 13 0>; |
| 25 | gpio-mosi = <&gpio1 9 0>; |
| 26 | cs-gpios = <&gpio1 12 0>; |
| 27 | num-chipselects = <1>; |
| 28 | #address-cells = <1>; |
| 29 | #size-cells = <0>; |
| 30 | |
| 31 | gpio_spi: gpio_spi@0 { |
| 32 | compatible = "fairchild,74hc595"; |
| 33 | gpio-controller; |
| 34 | #gpio-cells = <2>; |
| 35 | reg = <0>; |
| 36 | registers-number = <1>; |
| 37 | registers-default = /bits/ 8 <0x74>; /* Enable PERI_3V3, SENSOR_RST_B and HDMI_RST*/ |
| 38 | spi-max-frequency = <100000>; |
| 39 | }; |
| 40 | }; |
Peng Fan | 89689da | 2017-04-13 14:09:52 +0800 | [diff] [blame] | 41 | |
| 42 | regulators { |
| 43 | compatible = "simple-bus"; |
| 44 | #address-cells = <1>; |
| 45 | #size-cells = <0>; |
| 46 | |
| 47 | reg_usb_otg1_vbus: regulator@0 { |
| 48 | compatible = "regulator-fixed"; |
| 49 | reg = <0>; |
| 50 | regulator-name = "usb_otg1_vbus"; |
| 51 | regulator-min-microvolt = <5000000>; |
| 52 | regulator-max-microvolt = <5000000>; |
| 53 | gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>; |
| 54 | enable-active-high; |
| 55 | }; |
| 56 | |
| 57 | reg_usb_otg2_vbus: regulator@1 { |
| 58 | compatible = "regulator-fixed"; |
| 59 | reg = <1>; |
| 60 | regulator-name = "usb_otg2_vbus"; |
| 61 | regulator-min-microvolt = <5000000>; |
| 62 | regulator-max-microvolt = <5000000>; |
| 63 | gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>; |
| 64 | enable-active-high; |
| 65 | }; |
| 66 | |
| 67 | reg_sd1_vmmc: regulator@3 { |
| 68 | compatible = "regulator-fixed"; |
| 69 | regulator-name = "VDD_SD1"; |
| 70 | regulator-min-microvolt = <3300000>; |
| 71 | regulator-max-microvolt = <3300000>; |
| 72 | gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>; |
| 73 | startup-delay-us = <200000>; |
| 74 | enable-active-high; |
| 75 | }; |
| 76 | }; |
Peng Fan | 9fb5dbc | 2017-04-13 14:09:51 +0800 | [diff] [blame] | 77 | }; |
| 78 | |
| 79 | &iomuxc { |
| 80 | imx7d-sdb { |
| 81 | pinctrl_spi1: spi1grp { |
| 82 | fsl,pins = < |
| 83 | MX7D_PAD_GPIO1_IO09__GPIO1_IO9 0x59 |
| 84 | MX7D_PAD_GPIO1_IO12__GPIO1_IO12 0x59 |
| 85 | MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x59 |
| 86 | >; |
| 87 | }; |
Peng Fan | db38d03 | 2017-04-13 14:09:53 +0800 | [diff] [blame^] | 88 | |
| 89 | pinctrl_i2c1: i2c1grp { |
| 90 | fsl,pins = < |
| 91 | MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007f |
| 92 | MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f |
| 93 | >; |
| 94 | }; |
| 95 | |
| 96 | pinctrl_i2c2: i2c2grp { |
| 97 | fsl,pins = < |
| 98 | MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f |
| 99 | MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f |
| 100 | >; |
| 101 | }; |
| 102 | |
| 103 | pinctrl_i2c3: i2c3grp { |
| 104 | fsl,pins = < |
| 105 | MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f |
| 106 | MX7D_PAD_I2C3_SCL__I2C3_SCL 0x4000007f |
| 107 | >; |
| 108 | }; |
| 109 | |
| 110 | pinctrl_i2c4: i2c4grp { |
| 111 | fsl,pins = < |
| 112 | MX7D_PAD_SAI1_RX_BCLK__I2C4_SDA 0x4000007f |
| 113 | MX7D_PAD_SAI1_RX_SYNC__I2C4_SCL 0x4000007f |
| 114 | >; |
| 115 | }; |
| 116 | }; |
| 117 | }; |
| 118 | |
| 119 | &i2c1 { |
| 120 | clock-frequency = <100000>; |
| 121 | pinctrl-names = "default"; |
| 122 | pinctrl-0 = <&pinctrl_i2c1>; |
| 123 | status = "okay"; |
| 124 | |
| 125 | pmic: pfuze3000@08 { |
| 126 | compatible = "fsl,pfuze3000"; |
| 127 | reg = <0x08>; |
| 128 | |
| 129 | regulators { |
| 130 | sw1a_reg: sw1a { |
| 131 | regulator-min-microvolt = <700000>; |
| 132 | regulator-max-microvolt = <3300000>; |
| 133 | regulator-boot-on; |
| 134 | regulator-always-on; |
| 135 | regulator-ramp-delay = <6250>; |
| 136 | }; |
| 137 | |
| 138 | /* use sw1c_reg to align with pfuze100/pfuze200 */ |
| 139 | sw1c_reg: sw1b { |
| 140 | regulator-min-microvolt = <700000>; |
| 141 | regulator-max-microvolt = <1475000>; |
| 142 | regulator-boot-on; |
| 143 | regulator-always-on; |
| 144 | regulator-ramp-delay = <6250>; |
| 145 | }; |
| 146 | |
| 147 | sw2_reg: sw2 { |
| 148 | regulator-min-microvolt = <1500000>; |
| 149 | regulator-max-microvolt = <1850000>; |
| 150 | regulator-boot-on; |
| 151 | regulator-always-on; |
| 152 | }; |
| 153 | |
| 154 | sw3a_reg: sw3 { |
| 155 | regulator-min-microvolt = <900000>; |
| 156 | regulator-max-microvolt = <1650000>; |
| 157 | regulator-boot-on; |
| 158 | regulator-always-on; |
| 159 | }; |
| 160 | |
| 161 | swbst_reg: swbst { |
| 162 | regulator-min-microvolt = <5000000>; |
| 163 | regulator-max-microvolt = <5150000>; |
| 164 | }; |
| 165 | |
| 166 | snvs_reg: vsnvs { |
| 167 | regulator-min-microvolt = <1000000>; |
| 168 | regulator-max-microvolt = <3000000>; |
| 169 | regulator-boot-on; |
| 170 | regulator-always-on; |
| 171 | }; |
| 172 | |
| 173 | vref_reg: vrefddr { |
| 174 | regulator-boot-on; |
| 175 | regulator-always-on; |
| 176 | }; |
| 177 | |
| 178 | vgen1_reg: vldo1 { |
| 179 | regulator-min-microvolt = <1800000>; |
| 180 | regulator-max-microvolt = <3300000>; |
| 181 | regulator-always-on; |
| 182 | }; |
| 183 | |
| 184 | vgen2_reg: vldo2 { |
| 185 | regulator-min-microvolt = <800000>; |
| 186 | regulator-max-microvolt = <1550000>; |
| 187 | regulator-always-on; |
| 188 | }; |
| 189 | |
| 190 | vgen3_reg: vccsd { |
| 191 | regulator-min-microvolt = <2850000>; |
| 192 | regulator-max-microvolt = <3300000>; |
| 193 | regulator-always-on; |
| 194 | }; |
| 195 | |
| 196 | vgen4_reg: v33 { |
| 197 | regulator-min-microvolt = <2850000>; |
| 198 | regulator-max-microvolt = <3300000>; |
| 199 | regulator-always-on; |
| 200 | }; |
| 201 | |
| 202 | vgen5_reg: vldo3 { |
| 203 | regulator-min-microvolt = <1800000>; |
| 204 | regulator-max-microvolt = <3300000>; |
| 205 | regulator-always-on; |
| 206 | }; |
| 207 | |
| 208 | vgen6_reg: vldo4 { |
| 209 | regulator-min-microvolt = <1800000>; |
| 210 | regulator-max-microvolt = <3300000>; |
| 211 | regulator-always-on; |
| 212 | }; |
| 213 | }; |
Peng Fan | 9fb5dbc | 2017-04-13 14:09:51 +0800 | [diff] [blame] | 214 | }; |
Peng Fan | db38d03 | 2017-04-13 14:09:53 +0800 | [diff] [blame^] | 215 | }; |
| 216 | |
| 217 | &i2c2 { |
| 218 | clock-frequency = <100000>; |
| 219 | pinctrl-names = "default"; |
| 220 | pinctrl-0 = <&pinctrl_i2c2>; |
| 221 | status = "okay"; |
| 222 | }; |
| 223 | |
| 224 | &i2c3 { |
| 225 | clock-frequency = <100000>; |
| 226 | pinctrl-names = "default"; |
| 227 | pinctrl-0 = <&pinctrl_i2c3>; |
| 228 | status = "okay"; |
| 229 | }; |
Peng Fan | 9fb5dbc | 2017-04-13 14:09:51 +0800 | [diff] [blame] | 230 | |
Peng Fan | db38d03 | 2017-04-13 14:09:53 +0800 | [diff] [blame^] | 231 | &i2c4 { |
| 232 | clock-frequency = <100000>; |
| 233 | pinctrl-names = "default"; |
| 234 | pinctrl-0 = <&pinctrl_i2c4>; |
| 235 | status = "okay"; |
Peng Fan | 0d60e43 | 2017-04-13 14:09:50 +0800 | [diff] [blame] | 236 | }; |