blob: 3cddc68917a08a4f23c3ad16e87c2714bd210971 [file] [log] [blame]
Parthiban Nallathambideee8c22019-11-04 19:50:07 +01001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2016 PHYTEC Messtechnik GmbH
4 * Author: Christian Hemp <c.hemp@phytec.de>
5 */
6
7#include <dt-bindings/gpio/gpio.h>
8#include <dt-bindings/interrupt-controller/irq.h>
9#include <dt-bindings/pwm/pwm.h>
10
11/ {
12 model = "PHYTEC phyCORE-i.MX6 UltraLite";
13 compatible = "phytec,imx6ul-pcl063", "fsl,imx6ul";
14
15 chosen {
16 stdout-path = &uart1;
17 };
18
Marcel Ziswiler64e36c12022-07-21 15:27:30 +020019 /*
20 * Set the minimum memory size here and
21 * let the bootloader set the real size.
22 */
23 memory@80000000 {
Parthiban Nallathambideee8c22019-11-04 19:50:07 +010024 device_type = "memory";
Marcel Ziswiler64e36c12022-07-21 15:27:30 +020025 reg = <0x80000000 0x8000000>;
Parthiban Nallathambideee8c22019-11-04 19:50:07 +010026 };
27
28 gpio_leds_som: leds {
29 pinctrl-names = "default";
30 pinctrl-0 = <&pinctrl_gpioleds_som>;
31 compatible = "gpio-leds";
32
33 phycore-green {
34 gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
35 linux,default-trigger = "heartbeat";
36 };
37 };
38};
39
40&fec1 {
41 pinctrl-names = "default";
42 pinctrl-0 = <&pinctrl_enet1>;
43 phy-mode = "rmii";
44 phy-handle = <&ethphy1>;
45 status = "disabled";
46
47 mdio: mdio {
48 #address-cells = <1>;
49 #size-cells = <0>;
50
51 ethphy1: ethernet-phy@1 {
52 reg = <1>;
53 interrupt-parent = <&gpio1>;
54 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
55 micrel,led-mode = <1>;
56 clocks = <&clks IMX6UL_CLK_ENET_REF>;
57 clock-names = "rmii-ref";
58 status = "disabled";
59 };
60 };
61};
62
63&gpmi {
64 pinctrl-names = "default";
65 pinctrl-0 = <&pinctrl_gpmi_nand>;
66 nand-on-flash-bbt;
67 status = "disabled";
68};
69
70&i2c1 {
Marcel Ziswiler64e36c12022-07-21 15:27:30 +020071 pinctrl-names = "default", "gpio";
Parthiban Nallathambideee8c22019-11-04 19:50:07 +010072 pinctrl-0 = <&pinctrl_i2c1>;
Marcel Ziswiler64e36c12022-07-21 15:27:30 +020073 pinctrl-1 = <&pinctrl_i2c1_gpio>;
74 scl-gpios = <&gpio1 28 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
75 sda-gpios = <&gpio1 29 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Parthiban Nallathambideee8c22019-11-04 19:50:07 +010076 clock-frequency = <100000>;
77 status = "okay";
78
79 eeprom@52 {
80 compatible = "catalyst,24c32", "atmel,24c32";
Marcel Ziswiler64e36c12022-07-21 15:27:30 +020081 pagesize = <32>;
Parthiban Nallathambideee8c22019-11-04 19:50:07 +010082 reg = <0x52>;
83 };
84};
85
86&snvs_poweroff {
87 status = "okay";
88};
89
90&uart1 {
91 pinctrl-names = "default";
92 pinctrl-0 = <&pinctrl_uart1>;
93 status = "okay";
94};
95
96&usdhc2 {
97 pinctrl-names = "default";
98 pinctrl-0 = <&pinctrl_usdhc2>;
99 bus-width = <8>;
100 no-1-8-v;
101 non-removable;
102 status = "disabled";
103};
104
105&iomuxc {
106 pinctrl_enet1: enet1grp {
107 fsl,pins = <
108 MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x10010
109 MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x10010
110 MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0
111 MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0
112 MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
113 MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
114 MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b010
115 MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b010
116 MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b010
117 MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b010
118 MX6UL_PAD_GPIO1_IO02__GPIO1_IO02 0x17059
119 >;
120 };
121
122 pinctrl_gpioleds_som: gpioledssomgrp {
123 fsl,pins = <MX6UL_PAD_SNVS_TAMPER4__GPIO5_IO04 0x0b0b0>;
124 };
125
126 pinctrl_gpmi_nand: gpminandgrp {
127 fsl,pins = <
128 MX6UL_PAD_NAND_CLE__RAWNAND_CLE 0x0b0b1
129 MX6UL_PAD_NAND_ALE__RAWNAND_ALE 0x0b0b1
130 MX6UL_PAD_NAND_WP_B__RAWNAND_WP_B 0x0b0b1
131 MX6UL_PAD_NAND_READY_B__RAWNAND_READY_B 0x0b000
132 MX6UL_PAD_NAND_CE0_B__RAWNAND_CE0_B 0x0b0b1
133 MX6UL_PAD_NAND_RE_B__RAWNAND_RE_B 0x0b0b1
134 MX6UL_PAD_NAND_WE_B__RAWNAND_WE_B 0x0b0b1
135 MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00 0x0b0b1
136 MX6UL_PAD_NAND_DATA01__RAWNAND_DATA01 0x0b0b1
137 MX6UL_PAD_NAND_DATA02__RAWNAND_DATA02 0x0b0b1
138 MX6UL_PAD_NAND_DATA03__RAWNAND_DATA03 0x0b0b1
139 MX6UL_PAD_NAND_DATA04__RAWNAND_DATA04 0x0b0b1
140 MX6UL_PAD_NAND_DATA05__RAWNAND_DATA05 0x0b0b1
141 MX6UL_PAD_NAND_DATA06__RAWNAND_DATA06 0x0b0b1
142 MX6UL_PAD_NAND_DATA07__RAWNAND_DATA07 0x0b0b1
143 >;
144 };
145
146 pinctrl_i2c1: i2cgrp {
147 fsl,pins = <
148 MX6UL_PAD_UART4_TX_DATA__I2C1_SCL 0x4001b8b0
149 MX6UL_PAD_UART4_RX_DATA__I2C1_SDA 0x4001b8b0
150 >;
151 };
152
Marcel Ziswiler64e36c12022-07-21 15:27:30 +0200153 pinctrl_i2c1_gpio: i2cgpiogrp {
154 fsl,pins = <
155 MX6UL_PAD_UART4_TX_DATA__GPIO1_IO28 0x4001b8b0
156 MX6UL_PAD_UART4_RX_DATA__GPIO1_IO29 0x4001b8b0
157 >;
158 };
159
Parthiban Nallathambideee8c22019-11-04 19:50:07 +0100160 pinctrl_uart1: uart1grp {
161 fsl,pins = <
162 MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1
163 MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1
164 >;
165 };
166
167 pinctrl_usdhc2: usdhc2grp {
168 fsl,pins = <
169 MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x170f9
170 MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x100f9
171 MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x170f9
172 MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x170f9
173 MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x170f9
174 MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x170f9
175 MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x170f9
176 MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x170f9
177 MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x170f9
178 MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x170f9
179 >;
180 };
181
182};