Linus Walleij | 3bfdebb | 2013-11-13 10:32:20 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Linaro Ltd. |
| 3 | * |
| 4 | * The code contained herein is licensed under the GNU General Public |
| 5 | * License. You may obtain a copy of the GNU General Public License |
| 6 | * Version 2 or later at the following locations: |
| 7 | * |
| 8 | * http://www.opensource.org/licenses/gpl-license.html |
| 9 | * http://www.gnu.org/copyleft/gpl.html |
| 10 | */ |
| 11 | |
| 12 | #include "ste-nomadik-pinctrl.dtsi" |
| 13 | |
| 14 | / { |
| 15 | soc { |
| 16 | pinctrl { |
| 17 | /* Settings for all UART default and sleep states */ |
| 18 | uart0 { |
| 19 | uart0_default_mode: uart0_default { |
| 20 | default_mux { |
| 21 | ste,function = "u0"; |
| 22 | ste,pins = "u0_a_1"; |
| 23 | }; |
| 24 | default_cfg1 { |
| 25 | ste,pins = "GPIO0_AJ5", "GPIO2_AH4"; /* CTS+RXD */ |
| 26 | ste,config = <&in_pu>; |
| 27 | }; |
| 28 | |
| 29 | default_cfg2 { |
| 30 | ste,pins = "GPIO1_AJ3", "GPIO3_AH3"; /* RTS+TXD */ |
| 31 | ste,config = <&out_hi>; |
| 32 | }; |
| 33 | }; |
| 34 | |
| 35 | uart0_sleep_mode: uart0_sleep { |
| 36 | sleep_cfg1 { |
| 37 | ste,pins = "GPIO0_AJ5", "GPIO2_AH4"; /* CTS+RXD */ |
| 38 | ste,config = <&slpm_in_wkup_pdis>; |
| 39 | }; |
| 40 | |
| 41 | sleep_cfg2 { |
| 42 | ste,pins = "GPIO1_AJ3"; /* RTS */ |
| 43 | ste,config = <&slpm_out_hi_wkup_pdis>; |
| 44 | }; |
| 45 | |
| 46 | sleep_cfg3 { |
| 47 | ste,pins = "GPIO3_AH3"; /* TXD */ |
| 48 | ste,config = <&slpm_out_wkup_pdis>; |
| 49 | }; |
| 50 | }; |
| 51 | }; |
| 52 | |
| 53 | uart1 { |
| 54 | uart1_default_mode: uart1_default { |
| 55 | default_mux { |
| 56 | ste,function = "u1"; |
| 57 | ste,pins = "u1rxtx_a_1"; |
| 58 | }; |
| 59 | default_cfg1 { |
| 60 | ste,pins = "GPIO4_AH6"; /* RXD */ |
| 61 | ste,config = <&in_pu>; |
| 62 | }; |
| 63 | |
| 64 | default_cfg2 { |
| 65 | ste,pins = "GPIO5_AG6"; /* TXD */ |
| 66 | ste,config = <&out_hi>; |
| 67 | }; |
| 68 | }; |
| 69 | |
| 70 | uart1_sleep_mode: uart1_sleep { |
| 71 | sleep_cfg1 { |
| 72 | ste,pins = "GPIO4_AH6"; /* RXD */ |
| 73 | ste,config = <&slpm_in_wkup_pdis>; |
| 74 | }; |
| 75 | |
| 76 | sleep_cfg2 { |
| 77 | ste,pins = "GPIO5_AG6"; /* TXD */ |
| 78 | ste,config = <&slpm_out_wkup_pdis>; |
| 79 | }; |
| 80 | }; |
| 81 | }; |
| 82 | |
| 83 | uart2 { |
| 84 | uart2_default_mode: uart2_default { |
| 85 | default_mux { |
| 86 | ste,function = "u2"; |
| 87 | ste,pins = "u2rxtx_c_1"; |
| 88 | }; |
| 89 | default_cfg1 { |
| 90 | ste,pins = "GPIO29_W2"; /* RXD */ |
| 91 | ste,config = <&in_pu>; |
| 92 | }; |
| 93 | |
| 94 | default_cfg2 { |
| 95 | ste,pins = "GPIO30_W3"; /* TXD */ |
| 96 | ste,config = <&out_hi>; |
| 97 | }; |
| 98 | }; |
| 99 | |
| 100 | uart2_sleep_mode: uart2_sleep { |
| 101 | sleep_cfg1 { |
| 102 | ste,pins = "GPIO29_W2"; /* RXD */ |
| 103 | ste,config = <&in_wkup_pdis>; |
| 104 | }; |
| 105 | |
| 106 | sleep_cfg2 { |
| 107 | ste,pins = "GPIO30_W3"; /* TXD */ |
| 108 | ste,config = <&out_wkup_pdis>; |
| 109 | }; |
| 110 | }; |
| 111 | }; |
Linus Walleij | 96fee13 | 2013-11-13 11:10:07 +0100 | [diff] [blame^] | 112 | |
| 113 | /* Settings for all I2C default and sleep states */ |
| 114 | i2c0 { |
| 115 | i2c0_default_mode: i2c_default { |
| 116 | default_mux { |
| 117 | ste,function = "i2c0"; |
| 118 | ste,pins = "i2c0_a_1"; |
| 119 | }; |
| 120 | default_cfg1 { |
| 121 | ste,pins = "GPIO147_C15", "GPIO148_B16"; /* SDA/SCL */ |
| 122 | ste,config = <&in_pu>; |
| 123 | }; |
| 124 | }; |
| 125 | |
| 126 | i2c0_sleep_mode: i2c_sleep { |
| 127 | sleep_cfg1 { |
| 128 | ste,pins = "GPIO147_C15", "GPIO148_B16"; /* SDA/SCL */ |
| 129 | ste,config = <&slpm_in_wkup_pdis>; |
| 130 | }; |
| 131 | }; |
| 132 | }; |
| 133 | |
| 134 | i2c1 { |
| 135 | i2c1_default_mode: i2c_default { |
| 136 | default_mux { |
| 137 | ste,function = "i2c1"; |
| 138 | ste,pins = "i2c1_b_2"; |
| 139 | }; |
| 140 | default_cfg1 { |
| 141 | ste,pins = "GPIO16_AD3", "GPIO17_AD4"; /* SDA/SCL */ |
| 142 | ste,config = <&in_pu>; |
| 143 | }; |
| 144 | }; |
| 145 | |
| 146 | i2c1_sleep_mode: i2c_sleep { |
| 147 | sleep_cfg1 { |
| 148 | ste,pins = "GPIO16_AD3", "GPIO17_AD4"; /* SDA/SCL */ |
| 149 | ste,config = <&slpm_in_wkup_pdis>; |
| 150 | }; |
| 151 | }; |
| 152 | }; |
| 153 | |
| 154 | i2c2 { |
| 155 | i2c2_default_mode: i2c_default { |
| 156 | default_mux { |
| 157 | ste,function = "i2c2"; |
| 158 | ste,pins = "i2c2_b_2"; |
| 159 | }; |
| 160 | default_cfg1 { |
| 161 | ste,pins = "GPIO10_AF5", "GPIO11_AG4"; /* SDA/SCL */ |
| 162 | ste,config = <&in_pu>; |
| 163 | }; |
| 164 | }; |
| 165 | |
| 166 | i2c2_sleep_mode: i2c_sleep { |
| 167 | sleep_cfg1 { |
| 168 | ste,pins = "GPIO10_AF5", "GPIO11_AG4"; /* SDA/SCL */ |
| 169 | ste,config = <&slpm_in_wkup_pdis>; |
| 170 | }; |
| 171 | }; |
| 172 | }; |
| 173 | |
| 174 | i2c3 { |
| 175 | i2c3_default_mode: i2c_default { |
| 176 | default_mux { |
| 177 | ste,function = "i2c3"; |
| 178 | ste,pins = "i2c3_c_2"; |
| 179 | }; |
| 180 | default_cfg1 { |
| 181 | ste,pins = "GPIO229_AG7", "GPIO230_AF7"; /* SDA/SCL */ |
| 182 | ste,config = <&in_pu>; |
| 183 | }; |
| 184 | }; |
| 185 | |
| 186 | i2c3_sleep_mode: i2c_sleep { |
| 187 | sleep_cfg1 { |
| 188 | ste,pins = "GPIO229_AG7", "GPIO230_AF7"; /* SDA/SCL */ |
| 189 | ste,config = <&slpm_in_wkup_pdis>; |
| 190 | }; |
| 191 | }; |
| 192 | }; |
| 193 | |
| 194 | /* |
| 195 | * Activating I2C4 will conflict with UART1 about the same pins so do not |
| 196 | * enable I2C4 and UART1 at the same time. |
| 197 | */ |
| 198 | i2c4 { |
| 199 | i2c4_default_mode: i2c_default { |
| 200 | default_mux { |
| 201 | ste,function = "i2c4"; |
| 202 | ste,pins = "i2c4_b_1"; |
| 203 | }; |
| 204 | default_cfg1 { |
| 205 | ste,pins = "GPIO4_AH6", "GPIO5_AG6"; /* SDA/SCL */ |
| 206 | ste,config = <&in_pu>; |
| 207 | }; |
| 208 | }; |
| 209 | |
| 210 | i2c4_sleep_mode: i2c_sleep { |
| 211 | sleep_cfg1 { |
| 212 | ste,pins = "GPIO4_AH6", "GPIO5_AG6"; /* SDA/SCL */ |
| 213 | ste,config = <&slpm_in_wkup_pdis>; |
| 214 | }; |
| 215 | }; |
| 216 | }; |
Linus Walleij | 3bfdebb | 2013-11-13 10:32:20 +0100 | [diff] [blame] | 217 | }; |
| 218 | }; |
| 219 | }; |