1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Copyright 2013 Crystalfontz America, Inc. 4f126890aSEmmanuel Vadot * Copyright 2013 Free Electrons 5f126890aSEmmanuel Vadot */ 6f126890aSEmmanuel Vadot 7f126890aSEmmanuel Vadot/* 8f126890aSEmmanuel Vadot * The CFA-10058 is an expansion board for the CFA-10036 module, thus we 9f126890aSEmmanuel Vadot * need to include the CFA-10036 DTS. 10f126890aSEmmanuel Vadot */ 11f126890aSEmmanuel Vadot#include "imx28-cfa10036.dts" 12f126890aSEmmanuel Vadot 13f126890aSEmmanuel Vadot/ { 14f126890aSEmmanuel Vadot model = "Crystalfontz CFA-10058 Board"; 15f126890aSEmmanuel Vadot compatible = "crystalfontz,cfa10058", "crystalfontz,cfa10036", "fsl,imx28"; 16f126890aSEmmanuel Vadot 17aa1a8ff2SEmmanuel Vadot reg_usb1_vbus: regulator-0 { 18aa1a8ff2SEmmanuel Vadot compatible = "regulator-fixed"; 19f126890aSEmmanuel Vadot pinctrl-names = "default"; 20f126890aSEmmanuel Vadot pinctrl-0 = <&usb_pins_cfa10058>; 21f126890aSEmmanuel Vadot regulator-name = "usb1_vbus"; 22f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 23f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 24f126890aSEmmanuel Vadot gpio = <&gpio0 7 1>; 25f126890aSEmmanuel Vadot }; 26f126890aSEmmanuel Vadot 27f126890aSEmmanuel Vadot backlight { 28f126890aSEmmanuel Vadot compatible = "pwm-backlight"; 29*84943d6fSEmmanuel Vadot pwms = <&pwm 3 5000000 0>; 30f126890aSEmmanuel Vadot brightness-levels = <0 4 8 16 32 64 128 255>; 31f126890aSEmmanuel Vadot default-brightness-level = <6>; 32f126890aSEmmanuel Vadot }; 33f126890aSEmmanuel Vadot}; 34f126890aSEmmanuel Vadot 35f126890aSEmmanuel Vadot&lcdif { 36f126890aSEmmanuel Vadot pinctrl-names = "default"; 37f126890aSEmmanuel Vadot pinctrl-0 = <&lcdif_24bit_pins_a 38f126890aSEmmanuel Vadot &lcdif_pins_cfa10058>; 39f126890aSEmmanuel Vadot display = <&display0>; 40f126890aSEmmanuel Vadot status = "okay"; 41f126890aSEmmanuel Vadot 42f126890aSEmmanuel Vadot display0: display0 { 43f126890aSEmmanuel Vadot bits-per-pixel = <32>; 44f126890aSEmmanuel Vadot bus-width = <24>; 45f126890aSEmmanuel Vadot 46f126890aSEmmanuel Vadot display-timings { 47f126890aSEmmanuel Vadot native-mode = <&timing0>; 48f126890aSEmmanuel Vadot timing0: timing0 { 49f126890aSEmmanuel Vadot clock-frequency = <30000000>; 50f126890aSEmmanuel Vadot hactive = <800>; 51f126890aSEmmanuel Vadot vactive = <480>; 52f126890aSEmmanuel Vadot hback-porch = <40>; 53f126890aSEmmanuel Vadot hfront-porch = <40>; 54f126890aSEmmanuel Vadot vback-porch = <13>; 55f126890aSEmmanuel Vadot vfront-porch = <29>; 56f126890aSEmmanuel Vadot hsync-len = <8>; 57f126890aSEmmanuel Vadot vsync-len = <8>; 58f126890aSEmmanuel Vadot hsync-active = <0>; 59f126890aSEmmanuel Vadot vsync-active = <0>; 60f126890aSEmmanuel Vadot de-active = <1>; 61f126890aSEmmanuel Vadot pixelclk-active = <1>; 62f126890aSEmmanuel Vadot }; 63f126890aSEmmanuel Vadot }; 64f126890aSEmmanuel Vadot }; 65f126890aSEmmanuel Vadot}; 66f126890aSEmmanuel Vadot 67f126890aSEmmanuel Vadot&lradc { 68f126890aSEmmanuel Vadot fsl,lradc-touchscreen-wires = <4>; 69f126890aSEmmanuel Vadot status = "okay"; 70f126890aSEmmanuel Vadot}; 71f126890aSEmmanuel Vadot 72f126890aSEmmanuel Vadot&mac0 { 73f126890aSEmmanuel Vadot phy-mode = "rmii"; 74f126890aSEmmanuel Vadot pinctrl-names = "default"; 75f126890aSEmmanuel Vadot pinctrl-0 = <&mac0_pins_a>; 76f126890aSEmmanuel Vadot phy-reset-gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; 77f126890aSEmmanuel Vadot phy-reset-duration = <100>; 78f126890aSEmmanuel Vadot status = "okay"; 79f126890aSEmmanuel Vadot}; 80f126890aSEmmanuel Vadot 81f126890aSEmmanuel Vadot&pinctrl { 82f126890aSEmmanuel Vadot usb_pins_cfa10058: usb-10058@0 { 83f126890aSEmmanuel Vadot reg = <0>; 84f126890aSEmmanuel Vadot fsl,pinmux-ids = < 85f126890aSEmmanuel Vadot MX28_PAD_GPMI_D07__GPIO_0_7 86f126890aSEmmanuel Vadot >; 87f126890aSEmmanuel Vadot fsl,drive-strength = <MXS_DRIVE_4mA>; 88f126890aSEmmanuel Vadot fsl,voltage = <MXS_VOLTAGE_HIGH>; 89f126890aSEmmanuel Vadot fsl,pull-up = <MXS_PULL_DISABLE>; 90f126890aSEmmanuel Vadot }; 91f126890aSEmmanuel Vadot 92f126890aSEmmanuel Vadot lcdif_pins_cfa10058: lcdif-10058@0 { 93f126890aSEmmanuel Vadot reg = <0>; 94f126890aSEmmanuel Vadot fsl,pinmux-ids = < 95f126890aSEmmanuel Vadot MX28_PAD_LCD_RD_E__LCD_VSYNC 96f126890aSEmmanuel Vadot MX28_PAD_LCD_WR_RWN__LCD_HSYNC 97f126890aSEmmanuel Vadot MX28_PAD_LCD_RS__LCD_DOTCLK 98f126890aSEmmanuel Vadot MX28_PAD_LCD_CS__LCD_ENABLE 99f126890aSEmmanuel Vadot >; 100f126890aSEmmanuel Vadot fsl,drive-strength = <MXS_DRIVE_4mA>; 101f126890aSEmmanuel Vadot fsl,voltage = <MXS_VOLTAGE_HIGH>; 102f126890aSEmmanuel Vadot fsl,pull-up = <MXS_PULL_DISABLE>; 103f126890aSEmmanuel Vadot }; 104f126890aSEmmanuel Vadot}; 105f126890aSEmmanuel Vadot 106f126890aSEmmanuel Vadot&pwm { 107f126890aSEmmanuel Vadot pinctrl-names = "default"; 108f126890aSEmmanuel Vadot pinctrl-0 = <&pwm3_pins_b>; 109f126890aSEmmanuel Vadot status = "okay"; 110f126890aSEmmanuel Vadot}; 111f126890aSEmmanuel Vadot 112f126890aSEmmanuel Vadot&usb1 { 113f126890aSEmmanuel Vadot vbus-supply = <®_usb1_vbus>; 114f126890aSEmmanuel Vadot pinctrl-0 = <&usb1_pins_a>; 115f126890aSEmmanuel Vadot pinctrl-names = "default"; 116f126890aSEmmanuel Vadot status = "okay"; 117f126890aSEmmanuel Vadot}; 118f126890aSEmmanuel Vadot 119f126890aSEmmanuel Vadot&usbphy1 { 120f126890aSEmmanuel Vadot status = "okay"; 121f126890aSEmmanuel Vadot}; 122