xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/mxs/imx28-duckbill-2-spi.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2015-2017 I2SE GmbH <info@i2se.com>
4*f126890aSEmmanuel Vadot * Copyright (C) 2016 Michael Heimpold <mhei@heimpold.de>
5*f126890aSEmmanuel Vadot */
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot/dts-v1/;
8*f126890aSEmmanuel Vadot#include "imx28-duckbill-2.dts"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "I2SE Duckbill 2 SPI";
12*f126890aSEmmanuel Vadot	compatible = "i2se,duckbill-2-spi", "i2se,duckbill-2", "fsl,imx28";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	aliases {
15*f126890aSEmmanuel Vadot		ethernet1 = &qca7000;
16*f126890aSEmmanuel Vadot	};
17*f126890aSEmmanuel Vadot};
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot&auart0 {
20*f126890aSEmmanuel Vadot	status = "disabled";
21*f126890aSEmmanuel Vadot};
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot&i2c0 {
24*f126890aSEmmanuel Vadot	status = "disabled";
25*f126890aSEmmanuel Vadot};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot&pinctrl {
28*f126890aSEmmanuel Vadot	qca7000_pins: qca7000@0 {
29*f126890aSEmmanuel Vadot		reg = <0>;
30*f126890aSEmmanuel Vadot		fsl,pinmux-ids = <
31*f126890aSEmmanuel Vadot			MX28_PAD_AUART0_RTS__GPIO_3_3    /* Interrupt */
32*f126890aSEmmanuel Vadot			MX28_PAD_LCD_D13__GPIO_1_13      /* QCA7K reset */
33*f126890aSEmmanuel Vadot			MX28_PAD_LCD_D14__GPIO_1_14      /* GPIO 0 */
34*f126890aSEmmanuel Vadot			MX28_PAD_LCD_D15__GPIO_1_15      /* GPIO 1 */
35*f126890aSEmmanuel Vadot			MX28_PAD_LCD_D18__GPIO_1_18      /* GPIO 2 */
36*f126890aSEmmanuel Vadot			MX28_PAD_LCD_D21__GPIO_1_21      /* GPIO 3 */
37*f126890aSEmmanuel Vadot		>;
38*f126890aSEmmanuel Vadot		fsl,drive-strength = <MXS_DRIVE_4mA>;
39*f126890aSEmmanuel Vadot		fsl,voltage = <MXS_VOLTAGE_HIGH>;
40*f126890aSEmmanuel Vadot		fsl,pull-up = <MXS_PULL_DISABLE>;
41*f126890aSEmmanuel Vadot	};
42*f126890aSEmmanuel Vadot};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot&ssp2 {
45*f126890aSEmmanuel Vadot	compatible = "fsl,imx28-spi";
46*f126890aSEmmanuel Vadot	pinctrl-names = "default";
47*f126890aSEmmanuel Vadot	pinctrl-0 = <&spi2_pins_a>;
48*f126890aSEmmanuel Vadot	/delete-property/ bus-width;
49*f126890aSEmmanuel Vadot	/delete-property/ vmmc-supply;
50*f126890aSEmmanuel Vadot	status = "okay";
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot	qca7000: ethernet@0 {
53*f126890aSEmmanuel Vadot		reg = <0>;
54*f126890aSEmmanuel Vadot		compatible = "qca,qca7000";
55*f126890aSEmmanuel Vadot		pinctrl-names = "default";
56*f126890aSEmmanuel Vadot		pinctrl-0 = <&qca7000_pins>;
57*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio3>;
58*f126890aSEmmanuel Vadot		interrupts = <3 IRQ_TYPE_EDGE_RISING>;
59*f126890aSEmmanuel Vadot		spi-cpha;
60*f126890aSEmmanuel Vadot		spi-cpol;
61*f126890aSEmmanuel Vadot		spi-max-frequency = <8000000>;
62*f126890aSEmmanuel Vadot	};
63*f126890aSEmmanuel Vadot};
64