Lukasz Majewski | ee94365 | 2018-04-26 15:07:18 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 |
| 3 | * Lukasz Majewski, DENX Software Engineering, lukma@denx.de |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0+ or X11 |
| 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | #include <dt-bindings/gpio/gpio.h> |
| 10 | #include "imx53.dtsi" |
| 11 | #include "imx53-pinfunc.h" |
| 12 | |
| 13 | / { |
| 14 | model = "K+P iMX53"; |
| 15 | compatible = "kp,imx53-kp", "fsl,imx53"; |
| 16 | |
| 17 | chosen { |
| 18 | stdout-path = &uart2; |
| 19 | }; |
Lukasz Majewski | fc77d4d | 2019-04-04 12:26:44 +0200 | [diff] [blame^] | 20 | |
| 21 | aliases { |
| 22 | mmc0 = &esdhc3; |
| 23 | }; |
| 24 | }; |
| 25 | |
| 26 | &esdhc3 { |
| 27 | pinctrl-names = "default"; |
| 28 | pinctrl-0 = <&pinctrl_esdhc3>; |
| 29 | bus-width = <8>; |
| 30 | non-removable; |
| 31 | status = "okay"; |
Lukasz Majewski | ee94365 | 2018-04-26 15:07:18 +0200 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | &fec { |
| 35 | pinctrl-names = "default"; |
| 36 | pinctrl-0 = <&pinctrl_eth>; |
| 37 | phy-mode = "rmii"; |
Lukasz Majewski | da60b43 | 2019-04-01 16:00:05 +0200 | [diff] [blame] | 38 | phy-reset-gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; |
Lukasz Majewski | ee94365 | 2018-04-26 15:07:18 +0200 | [diff] [blame] | 39 | status = "okay"; |
| 40 | }; |
| 41 | |
| 42 | &i2c2 { |
| 43 | pinctrl-names = "default", "gpio"; |
| 44 | pinctrl-0 = <&pinctrl_i2c2>; |
| 45 | pinctrl-1 = <&pinctrl_i2c2_gpio>; |
| 46 | clock_frequency = <100000>; |
| 47 | |
| 48 | scl-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; |
| 49 | sda-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>; |
| 50 | |
| 51 | status = "okay"; |
| 52 | |
| 53 | pmic: mc34708@8 { |
| 54 | compatible = "fsl,mc34708"; |
| 55 | reg = <0x8>; |
| 56 | }; |
| 57 | }; |
| 58 | |
| 59 | &i2c3 { |
| 60 | pinctrl-names = "default", "gpio"; |
| 61 | pinctrl-0 = <&pinctrl_i2c3>; |
| 62 | pinctrl-1 = <&pinctrl_i2c3_gpio>; |
| 63 | clock_frequency = <100000>; |
| 64 | |
| 65 | scl-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; |
| 66 | sda-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; |
| 67 | |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
| 71 | &iomuxc { |
| 72 | pinctrl-names = "default"; |
| 73 | pinctrl-0 = <&pinctrl_hog>; |
| 74 | |
| 75 | imx53-kp { |
Lukasz Majewski | fc77d4d | 2019-04-04 12:26:44 +0200 | [diff] [blame^] | 76 | pinctrl_esdhc3: esdhc3grp { |
| 77 | fsl,pins = < |
| 78 | MX53_PAD_PATA_DATA8__ESDHC3_DAT0 0x1d4 |
| 79 | MX53_PAD_PATA_DATA9__ESDHC3_DAT1 0x1d4 |
| 80 | MX53_PAD_PATA_DATA10__ESDHC3_DAT2 0x1d4 |
| 81 | MX53_PAD_PATA_DATA11__ESDHC3_DAT3 0x1d4 |
| 82 | MX53_PAD_PATA_DATA0__ESDHC3_DAT4 0x1d4 |
| 83 | MX53_PAD_PATA_DATA1__ESDHC3_DAT5 0x1d4 |
| 84 | MX53_PAD_PATA_DATA2__ESDHC3_DAT6 0x1d4 |
| 85 | MX53_PAD_PATA_DATA3__ESDHC3_DAT7 0x1d4 |
| 86 | MX53_PAD_PATA_RESET_B__ESDHC3_CMD 0x1e4 |
| 87 | MX53_PAD_PATA_IORDY__ESDHC3_CLK 0x1d4 |
| 88 | >; |
| 89 | }; |
| 90 | |
Lukasz Majewski | ee94365 | 2018-04-26 15:07:18 +0200 | [diff] [blame] | 91 | pinctrl_eth: ethgrp { |
| 92 | fsl,pins = < |
| 93 | MX53_PAD_FEC_MDIO__FEC_MDIO 0x1fc |
| 94 | MX53_PAD_FEC_MDC__FEC_MDC 0x4 |
| 95 | MX53_PAD_FEC_RXD1__FEC_RDATA_1 0x180 |
| 96 | MX53_PAD_FEC_RXD0__FEC_RDATA_0 0x180 |
| 97 | MX53_PAD_FEC_TXD1__FEC_TDATA_1 0x4 |
| 98 | MX53_PAD_FEC_TXD0__FEC_TDATA_0 0x4 |
| 99 | MX53_PAD_FEC_TX_EN__FEC_TX_EN 0x4 |
| 100 | MX53_PAD_FEC_REF_CLK__FEC_TX_CLK 0x180 |
| 101 | /* The RX_ER pin needs to be pull down */ |
| 102 | /* for this device */ |
| 103 | MX53_PAD_FEC_RX_ER__FEC_RX_ER 0x1c0 |
| 104 | MX53_PAD_FEC_CRS_DV__FEC_RX_DV 0x180 |
| 105 | >; |
| 106 | }; |
| 107 | |
| 108 | pinctrl_hog: hoggrp { |
| 109 | fsl,pins = < |
| 110 | /* PHY RESET */ |
| 111 | MX53_PAD_PATA_DA_0__GPIO7_6 0x182 |
| 112 | /* VBUS_PWR_EN */ |
| 113 | MX53_PAD_PATA_DA_2__GPIO7_8 0x1e4 |
| 114 | /* BOOSTER_OFF */ |
| 115 | MX53_PAD_EIM_CS0__GPIO2_23 0x1e4 |
Lukasz Majewski | 642c1f5 | 2018-05-20 08:33:14 +0200 | [diff] [blame] | 116 | /* LCD BACKLIGHT */ |
| 117 | MX53_PAD_GPIO_1__GPIO1_1 0x1e4 |
Lukasz Majewski | 0b35b2d | 2018-05-20 08:33:16 +0200 | [diff] [blame] | 118 | /* KEY1 GPIO */ |
| 119 | MX53_PAD_EIM_RW__GPIO2_26 0x1e4 |
Lukasz Majewski | ee94365 | 2018-04-26 15:07:18 +0200 | [diff] [blame] | 120 | >; |
| 121 | }; |
| 122 | |
| 123 | pinctrl_i2c2: i2c2grp { |
| 124 | fsl,pins = < |
| 125 | MX53_PAD_KEY_ROW3__I2C2_SDA |
| 126 | (0x1ee | IMX_PAD_SION) |
| 127 | MX53_PAD_KEY_COL3__I2C2_SCL |
| 128 | (0x1ee | IMX_PAD_SION) |
| 129 | >; |
| 130 | }; |
| 131 | |
| 132 | pinctrl_i2c2_gpio: i2c2grpgpio { |
| 133 | fsl,pins = < |
| 134 | MX53_PAD_KEY_ROW3__GPIO4_13 0x1e4 |
| 135 | MX53_PAD_KEY_COL3__GPIO4_12 0x1e4 |
| 136 | >; |
| 137 | }; |
| 138 | |
| 139 | pinctrl_i2c3: i2c3grp { |
| 140 | fsl,pins = < |
| 141 | MX53_PAD_GPIO_6__I2C3_SDA (0x1ee | IMX_PAD_SION) |
| 142 | MX53_PAD_GPIO_5__I2C3_SCL (0x1ee | IMX_PAD_SION) |
| 143 | >; |
| 144 | }; |
| 145 | |
| 146 | pinctrl_i2c3_gpio: i2c3grpgpio { |
| 147 | fsl,pins = < |
| 148 | MX53_PAD_GPIO_6__GPIO1_6 0x1e4 |
| 149 | MX53_PAD_GPIO_5__GPIO1_5 0x1e4 |
| 150 | >; |
| 151 | }; |
| 152 | |
| 153 | pinctrl_uart2: uart2grp { |
| 154 | fsl,pins = < |
| 155 | MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX 0x1e4 |
| 156 | MX53_PAD_PATA_DMARQ__UART2_TXD_MUX 0x1e4 |
| 157 | >; |
| 158 | }; |
| 159 | }; |
| 160 | }; |
| 161 | |
| 162 | &uart2 { |
| 163 | pinctrl-names = "default"; |
| 164 | pinctrl-0 = <&pinctrl_uart2>; |
| 165 | status = "okay"; |
| 166 | }; |