0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Tesla Full Self-Driving SoC device tree source
0004 *
0005 * Copyright (c) 2017-2021 Samsung Electronics Co., Ltd.
0006 * https://www.samsung.com
0007 * Copyright (c) 2017-2021 Tesla, Inc.
0008 * https://www.tesla.com
0009 */
0010
0011 #include "fsd-pinctrl.h"
0012
0013 &pinctrl_fsys0 {
0014 gpf0: gpf0-gpio-bank {
0015 gpio-controller;
0016 #gpio-cells = <2>;
0017
0018 interrupt-controller;
0019 #interrupt-cells = <2>;
0020 };
0021
0022 gpf1: gpf1-gpio-bank {
0023 gpio-controller;
0024 #gpio-cells = <2>;
0025
0026 interrupt-controller;
0027 #interrupt-cells = <2>;
0028 };
0029
0030 gpf6: gpf6-gpio-bank {
0031 gpio-controller;
0032 #gpio-cells = <2>;
0033
0034 interrupt-controller;
0035 #interrupt-cells = <2>;
0036 };
0037
0038 gpf4: gpf4-gpio-bank {
0039 gpio-controller;
0040 #gpio-cells = <2>;
0041
0042 interrupt-controller;
0043 #interrupt-cells = <2>;
0044 };
0045
0046 gpf5: gpf5-gpio-bank {
0047 gpio-controller;
0048 #gpio-cells = <2>;
0049
0050 interrupt-controller;
0051 #interrupt-cells = <2>;
0052 };
0053
0054 ufs_rst_n: ufs-rst-n-pins {
0055 samsung,pins = "gpf5-0";
0056 samsung,pin-function = <FSD_PIN_FUNC_2>;
0057 samsung,pin-pud = <FSD_PIN_PULL_NONE>;
0058 samsung,pin-drv = <FSD_PIN_DRV_LV2>;
0059 };
0060
0061 ufs_refclk_out: ufs-refclk-out-pins {
0062 samsung,pins = "gpf5-1";
0063 samsung,pin-function = <FSD_PIN_FUNC_2>;
0064 samsung,pin-pud = <FSD_PIN_PULL_NONE>;
0065 samsung,pin-drv = <FSD_PIN_DRV_LV2>;
0066 };
0067 };
0068
0069 &pinctrl_peric {
0070 gpc8: gpc8-gpio-bank {
0071 gpio-controller;
0072 #gpio-cells = <2>;
0073
0074 interrupt-controller;
0075 #interrupt-cells = <2>;
0076 };
0077
0078 gpf2: gpf2-gpio-bank {
0079 gpio-controller;
0080 #gpio-cells = <2>;
0081
0082 interrupt-controller;
0083 #interrupt-cells = <2>;
0084 };
0085
0086 gpf3: gpf3-gpio-bank {
0087 gpio-controller;
0088 #gpio-cells = <2>;
0089
0090 interrupt-controller;
0091 #interrupt-cells = <2>;
0092 };
0093
0094 gpd0: gpd0-gpio-bank {
0095 gpio-controller;
0096 #gpio-cells = <2>;
0097
0098 interrupt-controller;
0099 #interrupt-cells = <2>;
0100 };
0101
0102 gpb0: gpb0-gpio-bank {
0103 gpio-controller;
0104 #gpio-cells = <2>;
0105
0106 interrupt-controller;
0107 #interrupt-cells = <2>;
0108 };
0109
0110 gpb1: gpb1-gpio-bank {
0111 gpio-controller;
0112 #gpio-cells = <2>;
0113
0114 interrupt-controller;
0115 #interrupt-cells = <2>;
0116 };
0117
0118 gpb4: gpb4-gpio-bank {
0119 gpio-controller;
0120 #gpio-cells = <2>;
0121
0122 interrupt-controller;
0123 #interrupt-cells = <2>;
0124 };
0125
0126 gpb5: gpb5-gpio-bank {
0127 gpio-controller;
0128 #gpio-cells = <2>;
0129
0130 interrupt-controller;
0131 #interrupt-cells = <2>;
0132 };
0133
0134 gpb6: gpb6-gpio-bank {
0135 gpio-controller;
0136 #gpio-cells = <2>;
0137
0138 interrupt-controller;
0139 #interrupt-cells = <2>;
0140 };
0141
0142 gpb7: gpb7-gpio-bank {
0143 gpio-controller;
0144 #gpio-cells = <2>;
0145
0146 interrupt-controller;
0147 #interrupt-cells = <2>;
0148 };
0149
0150 gpd1: gpd1-gpio-bank {
0151 gpio-controller;
0152 #gpio-cells = <2>;
0153
0154 interrupt-controller;
0155 #interrupt-cells = <2>;
0156 };
0157
0158 gpd2: gpd2-gpio-bank {
0159 gpio-controller;
0160 #gpio-cells = <2>;
0161
0162 interrupt-controller;
0163 #interrupt-cells = <2>;
0164 };
0165
0166 gpd3: gpd3-gpio-bank {
0167 gpio-controller;
0168 #gpio-cells = <2>;
0169
0170 interrupt-controller;
0171 #interrupt-cells = <2>;
0172 };
0173
0174 gpg0: gpg0-gpio-bank {
0175 gpio-controller;
0176 #gpio-cells = <2>;
0177
0178 interrupt-controller;
0179 #interrupt-cells = <2>;
0180 };
0181
0182 gpg1: gpg1-gpio-bank {
0183 gpio-controller;
0184 #gpio-cells = <2>;
0185
0186 interrupt-controller;
0187 #interrupt-cells = <2>;
0188 };
0189
0190 gpg2: gpg2-gpio-bank {
0191 gpio-controller;
0192 #gpio-cells = <2>;
0193
0194 interrupt-controller;
0195 #interrupt-cells = <2>;
0196 };
0197
0198 gpg3: gpg3-gpio-bank {
0199 gpio-controller;
0200 #gpio-cells = <2>;
0201
0202 interrupt-controller;
0203 #interrupt-cells = <2>;
0204 };
0205
0206 gpg4: gpg4-gpio-bank {
0207 gpio-controller;
0208 #gpio-cells = <2>;
0209
0210 interrupt-controller;
0211 #interrupt-cells = <2>;
0212 };
0213
0214 gpg5: gpg5-gpio-bank {
0215 gpio-controller;
0216 #gpio-cells = <2>;
0217
0218 interrupt-controller;
0219 #interrupt-cells = <2>;
0220 };
0221
0222 gpg6: gpg6-gpio-bank {
0223 gpio-controller;
0224 #gpio-cells = <2>;
0225
0226 interrupt-controller;
0227 #interrupt-cells = <2>;
0228 };
0229
0230 gpg7: gpg7-gpio-bank {
0231 gpio-controller;
0232 #gpio-cells = <2>;
0233
0234 interrupt-controller;
0235 #interrupt-cells = <2>;
0236 };
0237
0238 pwm0_out: pwm0-out-pins {
0239 samsung,pins = "gpb6-1";
0240 samsung,pin-function = <FSD_PIN_FUNC_2>;
0241 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0242 samsung,pin-drv = <FSD_PIN_DRV_LV2>;
0243 };
0244
0245 pwm1_out: pwm1-out-pins {
0246 samsung,pins = "gpb6-5";
0247 samsung,pin-function = <FSD_PIN_FUNC_2>;
0248 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0249 samsung,pin-drv = <FSD_PIN_DRV_LV2>;
0250 };
0251
0252 hs_i2c0_bus: hs-i2c0-bus-pins {
0253 samsung,pins = "gpb0-0", "gpb0-1";
0254 samsung,pin-function = <FSD_PIN_FUNC_2>;
0255 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0256 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0257 };
0258
0259 hs_i2c1_bus: hs-i2c1-bus-pins {
0260 samsung,pins = "gpb0-2", "gpb0-3";
0261 samsung,pin-function = <FSD_PIN_FUNC_2>;
0262 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0263 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0264 };
0265
0266 hs_i2c2_bus: hs-i2c2-bus-pins {
0267 samsung,pins = "gpb0-4", "gpb0-5";
0268 samsung,pin-function = <FSD_PIN_FUNC_2>;
0269 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0270 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0271 };
0272
0273 hs_i2c3_bus: hs-i2c3-bus-pins {
0274 samsung,pins = "gpb0-6", "gpb0-7";
0275 samsung,pin-function = <FSD_PIN_FUNC_2>;
0276 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0277 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0278 };
0279
0280 hs_i2c4_bus: hs-i2c4-bus-pins {
0281 samsung,pins = "gpb1-0", "gpb1-1";
0282 samsung,pin-function = <FSD_PIN_FUNC_2>;
0283 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0284 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0285 };
0286
0287 hs_i2c5_bus: hs-i2c5-bus-pins {
0288 samsung,pins = "gpb1-2", "gpb1-3";
0289 samsung,pin-function = <FSD_PIN_FUNC_2>;
0290 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0291 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0292 };
0293
0294 hs_i2c6_bus: hs-i2c6-bus-pins {
0295 samsung,pins = "gpb1-4", "gpb1-5";
0296 samsung,pin-function = <FSD_PIN_FUNC_2>;
0297 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0298 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0299 };
0300
0301 hs_i2c7_bus: hs-i2c7-bus-pins {
0302 samsung,pins = "gpb1-6", "gpb1-7";
0303 samsung,pin-function = <FSD_PIN_FUNC_2>;
0304 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0305 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0306 };
0307
0308 uart0_data: uart0-data-pins {
0309 samsung,pins = "gpb7-0", "gpb7-1";
0310 samsung,pin-function = <FSD_PIN_FUNC_2>;
0311 samsung,pin-pud = <FSD_PIN_PULL_NONE>;
0312 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0313 };
0314
0315 uart1_data: uart1-data-pins {
0316 samsung,pins = "gpb7-4", "gpb7-5";
0317 samsung,pin-function = <FSD_PIN_FUNC_2>;
0318 samsung,pin-pud = <FSD_PIN_PULL_NONE>;
0319 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0320 };
0321
0322 spi0_bus: spi0-bus-pins {
0323 samsung,pins = "gpb4-0", "gpb4-2", "gpb4-3";
0324 samsung,pin-function = <FSD_PIN_FUNC_2>;
0325 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0326 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0327 };
0328
0329 spi1_bus: spi1-bus-pins {
0330 samsung,pins = "gpb4-4", "gpb4-6", "gpb4-7";
0331 samsung,pin-function = <FSD_PIN_FUNC_2>;
0332 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0333 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0334 };
0335
0336 spi2_bus: spi2-bus-pins {
0337 samsung,pins = "gpb5-0", "gpb5-2", "gpb5-3";
0338 samsung,pin-function = <FSD_PIN_FUNC_2>;
0339 samsung,pin-pud = <FSD_PIN_PULL_UP>;
0340 samsung,pin-drv = <FSD_PIN_DRV_LV1>;
0341 };
0342 };
0343
0344 &pinctrl_pmu {
0345 gpq0: gpq0-gpio-bank {
0346 gpio-controller;
0347 #gpio-cells = <2>;
0348 };
0349 };