1 // SPDX-License-Identifier: GPL-2.0-or-later 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 2 /* 3 * Copyright 2013 Sascha Hauer, Pengutronix 3 * Copyright 2013 Sascha Hauer, Pengutronix 4 * Copyright 2013-2017 Markus Niebel <Markus.Ni 4 * Copyright 2013-2017 Markus Niebel <Markus.Niebel@tq-group.com> 5 */ 5 */ 6 6 7 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/irq 8 #include <dt-bindings/interrupt-controller/irq.h> 9 9 10 / { 10 / { 11 reg_3p3v: regulator-3p3v { 11 reg_3p3v: regulator-3p3v { 12 compatible = "regulator-fixed" 12 compatible = "regulator-fixed"; 13 regulator-name = "supply-3p3v" 13 regulator-name = "supply-3p3v"; 14 regulator-min-microvolt = <330 14 regulator-min-microvolt = <3300000>; 15 regulator-max-microvolt = <330 15 regulator-max-microvolt = <3300000>; 16 regulator-always-on; 16 regulator-always-on; 17 }; 17 }; 18 }; 18 }; 19 19 20 &ecspi1 { 20 &ecspi1 { 21 pinctrl-names = "default"; 21 pinctrl-names = "default"; 22 pinctrl-0 = <&pinctrl_ecspi1>; 22 pinctrl-0 = <&pinctrl_ecspi1>; 23 cs-gpios = <&gpio3 19 GPIO_ACTIVE_LOW> 23 cs-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>; 24 status = "okay"; 24 status = "okay"; 25 25 26 m25p80: flash@0 { 26 m25p80: flash@0 { 27 compatible = "jedec,spi-nor"; 27 compatible = "jedec,spi-nor"; 28 spi-max-frequency = <50000000> 28 spi-max-frequency = <50000000>; 29 reg = <0>; 29 reg = <0>; 30 #address-cells = <1>; 30 #address-cells = <1>; 31 #size-cells = <1>; 31 #size-cells = <1>; 32 m25p,fast-read; 32 m25p,fast-read; 33 }; 33 }; 34 }; 34 }; 35 35 36 &iomuxc { 36 &iomuxc { 37 pinctrl_ecspi1: ecspi1grp { 37 pinctrl_ecspi1: ecspi1grp { 38 fsl,pins = < 38 fsl,pins = < 39 /* HYS, SPEED = MED, 1 39 /* HYS, SPEED = MED, 100k up, DSE = 011, SRE_FAST */ 40 MX6QDL_PAD_EIM_D17__EC 40 MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x1b099 41 MX6QDL_PAD_EIM_D18__EC 41 MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0xb099 42 MX6QDL_PAD_EIM_D16__EC 42 MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0xb099 43 /* eCSPI1 SS1 */ 43 /* eCSPI1 SS1 */ 44 MX6QDL_PAD_EIM_D19__GP 44 MX6QDL_PAD_EIM_D19__GPIO3_IO19 0xb099 45 >; 45 >; 46 }; 46 }; 47 47 48 pinctrl_i2c1: i2c1grp { 48 pinctrl_i2c1: i2c1grp { 49 fsl,pins = < 49 fsl,pins = < 50 MX6QDL_PAD_CSI0_DAT8__ 50 MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b899 51 MX6QDL_PAD_CSI0_DAT9__ 51 MX6QDL_PAD_CSI0_DAT9__I2C1_SCL 0x4001b899 52 >; 52 >; 53 }; 53 }; 54 54 55 pinctrl_i2c1_recovery: i2c1recoverygrp 55 pinctrl_i2c1_recovery: i2c1recoverygrp { 56 fsl,pins = < 56 fsl,pins = < 57 MX6QDL_PAD_CSI0_DAT8__ 57 MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26 0x4001b899 58 MX6QDL_PAD_CSI0_DAT9__ 58 MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27 0x4001b899 59 >; 59 >; 60 }; 60 }; 61 61 62 pinctrl_pmic: pmicgrp { 62 pinctrl_pmic: pmicgrp { 63 fsl,pins = < 63 fsl,pins = < 64 MX6QDL_PAD_NANDF_RB0__ 64 MX6QDL_PAD_NANDF_RB0__GPIO6_IO10 0x1b099 /* PMIC irq */ 65 >; 65 >; 66 }; 66 }; 67 67 68 pinctrl_usdhc3: usdhc3grp { 68 pinctrl_usdhc3: usdhc3grp { 69 fsl,pins = < 69 fsl,pins = < 70 MX6QDL_PAD_SD3_CMD__SD 70 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059 71 MX6QDL_PAD_SD3_CLK__SD 71 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059 72 MX6QDL_PAD_SD3_DAT0__S 72 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059 73 MX6QDL_PAD_SD3_DAT1__S 73 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059 74 MX6QDL_PAD_SD3_DAT2__S 74 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059 75 MX6QDL_PAD_SD3_DAT3__S 75 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059 76 MX6QDL_PAD_SD3_DAT4__S 76 MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17059 77 MX6QDL_PAD_SD3_DAT5__S 77 MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17059 78 MX6QDL_PAD_SD3_DAT6__S 78 MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17059 79 MX6QDL_PAD_SD3_DAT7__S 79 MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059 80 >; 80 >; 81 }; 81 }; 82 }; 82 }; 83 83 84 &pmic { 84 &pmic { 85 pinctrl-names = "default"; 85 pinctrl-names = "default"; 86 pinctrl-0 = <&pinctrl_pmic>; 86 pinctrl-0 = <&pinctrl_pmic>; 87 interrupt-parent = <&gpio6>; 87 interrupt-parent = <&gpio6>; 88 interrupts = <10 IRQ_TYPE_LEVEL_LOW>; 88 interrupts = <10 IRQ_TYPE_LEVEL_LOW>; 89 89 90 regulators { 90 regulators { 91 reg_vddcore: sw1ab { 91 reg_vddcore: sw1ab { 92 regulator-min-microvol 92 regulator-min-microvolt = <300000>; 93 regulator-max-microvol 93 regulator-max-microvolt = <1875000>; 94 regulator-always-on; 94 regulator-always-on; 95 }; 95 }; 96 96 97 reg_vddsoc: sw1c { 97 reg_vddsoc: sw1c { 98 regulator-min-microvol 98 regulator-min-microvolt = <300000>; 99 regulator-max-microvol 99 regulator-max-microvolt = <1875000>; 100 regulator-always-on; 100 regulator-always-on; 101 }; 101 }; 102 102 103 reg_gen_3v3: sw2 { 103 reg_gen_3v3: sw2 { 104 regulator-min-microvol 104 regulator-min-microvolt = <800000>; 105 regulator-max-microvol 105 regulator-max-microvolt = <3300000>; 106 regulator-always-on; 106 regulator-always-on; 107 }; 107 }; 108 108 109 reg_ddr_1v5a: sw3a { 109 reg_ddr_1v5a: sw3a { 110 regulator-min-microvol 110 regulator-min-microvolt = <400000>; 111 regulator-max-microvol 111 regulator-max-microvolt = <1975000>; 112 regulator-always-on; 112 regulator-always-on; 113 }; 113 }; 114 114 115 reg_ddr_1v5b: sw3b { 115 reg_ddr_1v5b: sw3b { 116 regulator-min-microvol 116 regulator-min-microvolt = <400000>; 117 regulator-max-microvol 117 regulator-max-microvolt = <1975000>; 118 regulator-always-on; 118 regulator-always-on; 119 }; 119 }; 120 120 121 sw4_reg: sw4 { 121 sw4_reg: sw4 { 122 regulator-min-microvol 122 regulator-min-microvolt = <800000>; 123 regulator-max-microvol 123 regulator-max-microvolt = <3300000>; 124 regulator-always-on; 124 regulator-always-on; 125 }; 125 }; 126 126 127 reg_5v_600mA: swbst { 127 reg_5v_600mA: swbst { 128 regulator-min-microvol 128 regulator-min-microvolt = <5000000>; 129 regulator-max-microvol 129 regulator-max-microvolt = <5150000>; 130 regulator-always-on; 130 regulator-always-on; 131 }; 131 }; 132 132 133 reg_snvs_3v: vsnvs { 133 reg_snvs_3v: vsnvs { 134 regulator-min-microvol 134 regulator-min-microvolt = <1500000>; 135 regulator-max-microvol 135 regulator-max-microvolt = <3000000>; 136 regulator-always-on; 136 regulator-always-on; 137 }; 137 }; 138 138 139 reg_vrefddr: vrefddr { 139 reg_vrefddr: vrefddr { 140 regulator-boot-on; 140 regulator-boot-on; 141 regulator-always-on; 141 regulator-always-on; 142 }; 142 }; 143 143 144 reg_vgen1_1v5: vgen1 { 144 reg_vgen1_1v5: vgen1 { 145 regulator-min-microvol 145 regulator-min-microvolt = <800000>; 146 regulator-max-microvol 146 regulator-max-microvolt = <1550000>; 147 /* not used */ 147 /* not used */ 148 }; 148 }; 149 149 150 reg_vgen2_1v2_eth: vgen2 { 150 reg_vgen2_1v2_eth: vgen2 { 151 regulator-min-microvol 151 regulator-min-microvolt = <800000>; 152 regulator-max-microvol 152 regulator-max-microvolt = <1550000>; 153 regulator-always-on; 153 regulator-always-on; 154 }; 154 }; 155 155 156 reg_vgen3_2v8: vgen3 { 156 reg_vgen3_2v8: vgen3 { 157 regulator-min-microvol 157 regulator-min-microvolt = <1800000>; 158 regulator-max-microvol 158 regulator-max-microvolt = <3300000>; 159 regulator-always-on; 159 regulator-always-on; 160 }; 160 }; 161 161 162 reg_vgen4_1v8: vgen4 { 162 reg_vgen4_1v8: vgen4 { 163 regulator-min-microvol 163 regulator-min-microvolt = <1800000>; 164 regulator-max-microvol 164 regulator-max-microvolt = <3300000>; 165 regulator-always-on; 165 regulator-always-on; 166 }; 166 }; 167 167 168 reg_vgen5_1v8_eth: vgen5 { 168 reg_vgen5_1v8_eth: vgen5 { 169 regulator-min-microvol 169 regulator-min-microvolt = <1800000>; 170 regulator-max-microvol 170 regulator-max-microvolt = <3300000>; 171 regulator-always-on; 171 regulator-always-on; 172 }; 172 }; 173 173 174 reg_vgen6_3v3: vgen6 { 174 reg_vgen6_3v3: vgen6 { 175 regulator-min-microvol 175 regulator-min-microvolt = <1800000>; 176 regulator-max-microvol 176 regulator-max-microvolt = <3300000>; 177 regulator-always-on; 177 regulator-always-on; 178 }; 178 }; 179 }; 179 }; 180 }; 180 }; 181 181 182 /* eMMC */ 182 /* eMMC */ 183 &usdhc3 { 183 &usdhc3 { 184 pinctrl-names = "default"; 184 pinctrl-names = "default"; 185 pinctrl-0 = <&pinctrl_usdhc3>; 185 pinctrl-0 = <&pinctrl_usdhc3>; 186 vmmc-supply = <®_3p3v>; 186 vmmc-supply = <®_3p3v>; 187 non-removable; 187 non-removable; 188 disable-wp; 188 disable-wp; 189 no-sd; 189 no-sd; 190 no-sdio; 190 no-sdio; 191 bus-width = <8>; 191 bus-width = <8>; 192 #address-cells = <1>; 192 #address-cells = <1>; 193 #size-cells = <0>; 193 #size-cells = <0>; 194 status = "okay"; 194 status = "okay"; 195 195 196 mmccard: mmccard@0 { 196 mmccard: mmccard@0 { 197 reg = <0>; 197 reg = <0>; 198 compatible = "mmc-card"; 198 compatible = "mmc-card"; 199 broken-hpi; 199 broken-hpi; 200 }; 200 }; 201 }; 201 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.