1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later 2724ba675SRob Herring/* 3724ba675SRob Herring * Copyright 2013 Armadeus Systems - <support@armadeus.com> 4724ba675SRob Herring */ 5724ba675SRob Herring 6724ba675SRob Herring/* APF27Dev is a docking board for the APF27 SOM */ 7724ba675SRob Herring#include "imx27-apf27.dts" 8724ba675SRob Herring 9724ba675SRob Herring/ { 10724ba675SRob Herring model = "Armadeus Systems APF27Dev docking/development board"; 11724ba675SRob Herring compatible = "armadeus,imx27-apf27dev", "armadeus,imx27-apf27", "fsl,imx27"; 12724ba675SRob Herring 13724ba675SRob Herring display: display { 14724ba675SRob Herring model = "Chimei-LW700AT9003"; 15724ba675SRob Herring bits-per-pixel = <16>; /* non-standard but required */ 16724ba675SRob Herring fsl,pcr = <0xfae80083>; /* non-standard but required */ 17724ba675SRob Herring display-timings { 18724ba675SRob Herring native-mode = <&timing0>; 198b9b3d9dSFabio Estevam timing0: timing0 { 20724ba675SRob Herring clock-frequency = <33000033>; 21724ba675SRob Herring hactive = <800>; 22724ba675SRob Herring vactive = <480>; 23724ba675SRob Herring hback-porch = <96>; 24724ba675SRob Herring hfront-porch = <96>; 25724ba675SRob Herring vback-porch = <20>; 26724ba675SRob Herring vfront-porch = <21>; 27724ba675SRob Herring hsync-len = <64>; 28724ba675SRob Herring vsync-len = <4>; 29724ba675SRob Herring }; 30724ba675SRob Herring }; 31724ba675SRob Herring }; 32724ba675SRob Herring 33724ba675SRob Herring gpio-keys { 34724ba675SRob Herring compatible = "gpio-keys"; 35724ba675SRob Herring pinctrl-names = "default"; 36724ba675SRob Herring pinctrl-0 = <&pinctrl_gpio_keys>; 37724ba675SRob Herring 38724ba675SRob Herring user-key { 39724ba675SRob Herring label = "user"; 40724ba675SRob Herring gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; 41724ba675SRob Herring linux,code = <276>; /* BTN_EXTRA */ 42724ba675SRob Herring }; 43724ba675SRob Herring }; 44724ba675SRob Herring 45724ba675SRob Herring leds { 46724ba675SRob Herring compatible = "gpio-leds"; 47724ba675SRob Herring pinctrl-names = "default"; 48724ba675SRob Herring pinctrl-0 = <&pinctrl_gpio_leds>; 49724ba675SRob Herring 50*20b18818SFabio Estevam led-user { 51724ba675SRob Herring label = "Heartbeat"; 52724ba675SRob Herring gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>; 53724ba675SRob Herring linux,default-trigger = "heartbeat"; 54724ba675SRob Herring }; 55724ba675SRob Herring }; 56724ba675SRob Herring 57dc7b1fb4SKrzysztof Kozlowski reg_max5821: regulator-0 { 58724ba675SRob Herring compatible = "regulator-fixed"; 59724ba675SRob Herring regulator-name = "max5821-reg"; 60724ba675SRob Herring regulator-min-microvolt = <2500000>; 61724ba675SRob Herring regulator-max-microvolt = <2500000>; 62724ba675SRob Herring regulator-always-on; 63724ba675SRob Herring }; 64724ba675SRob Herring}; 65724ba675SRob Herring 66724ba675SRob Herring&cspi1 { 67724ba675SRob Herring cs-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>; 68724ba675SRob Herring pinctrl-names = "default"; 69724ba675SRob Herring pinctrl-0 = <&pinctrl_cspi1 &pinctrl_cspi1_cs>; 70724ba675SRob Herring status = "okay"; 71724ba675SRob Herring 72724ba675SRob Herring adc@0 { 73724ba675SRob Herring compatible = "maxim,max1027"; 74724ba675SRob Herring reg = <0>; 75724ba675SRob Herring interrupt-parent = <&gpio5>; 76724ba675SRob Herring interrupts = <15 IRQ_TYPE_EDGE_FALLING>; 77724ba675SRob Herring pinctrl-names = "default"; 78724ba675SRob Herring pinctrl-0 = <&pinctrl_max1027>; 79724ba675SRob Herring spi-max-frequency = <10000000>; 80724ba675SRob Herring }; 81724ba675SRob Herring}; 82724ba675SRob Herring 83724ba675SRob Herring&cspi2 { 84724ba675SRob Herring cs-gpios = <&gpio4 21 GPIO_ACTIVE_LOW>, 85724ba675SRob Herring <&gpio4 27 GPIO_ACTIVE_LOW>, 86724ba675SRob Herring <&gpio2 17 GPIO_ACTIVE_LOW>; 87724ba675SRob Herring pinctrl-names = "default"; 88724ba675SRob Herring pinctrl-0 = <&pinctrl_cspi2 &pinctrl_cspi2_cs>; 89724ba675SRob Herring status = "okay"; 90724ba675SRob Herring}; 91724ba675SRob Herring 92724ba675SRob Herring&fb { 93724ba675SRob Herring display = <&display>; 94724ba675SRob Herring fsl,dmacr = <0x00020010>; 95724ba675SRob Herring pinctrl-names = "default"; 96724ba675SRob Herring pinctrl-0 = <&pinctrl_imxfb1>; 97724ba675SRob Herring status = "okay"; 98724ba675SRob Herring}; 99724ba675SRob Herring 100724ba675SRob Herring&i2c1 { 101724ba675SRob Herring clock-frequency = <400000>; 102724ba675SRob Herring pinctrl-names = "default"; 103724ba675SRob Herring pinctrl-0 = <&pinctrl_i2c1>; 104724ba675SRob Herring status = "okay"; 105724ba675SRob Herring 106724ba675SRob Herring rtc@68 { 107724ba675SRob Herring compatible = "dallas,ds1374"; 108724ba675SRob Herring reg = <0x68>; 109724ba675SRob Herring }; 110724ba675SRob Herring 111724ba675SRob Herring max5821@38 { 112724ba675SRob Herring compatible = "maxim,max5821"; 113724ba675SRob Herring reg = <0x38>; 114724ba675SRob Herring vref-supply = <®_max5821>; 115724ba675SRob Herring }; 116724ba675SRob Herring}; 117724ba675SRob Herring 118724ba675SRob Herring&i2c2 { 119724ba675SRob Herring pinctrl-names = "default"; 120724ba675SRob Herring pinctrl-0 = <&pinctrl_i2c2>; 121724ba675SRob Herring status = "okay"; 122724ba675SRob Herring}; 123724ba675SRob Herring 124724ba675SRob Herring&iomuxc { 125724ba675SRob Herring imx27-apf27dev { 126724ba675SRob Herring pinctrl_cspi1: cspi1grp { 127724ba675SRob Herring fsl,pins = < 128724ba675SRob Herring MX27_PAD_CSPI1_MISO__CSPI1_MISO 0x0 129724ba675SRob Herring MX27_PAD_CSPI1_MOSI__CSPI1_MOSI 0x0 130724ba675SRob Herring MX27_PAD_CSPI1_SCLK__CSPI1_SCLK 0x0 131724ba675SRob Herring >; 132724ba675SRob Herring }; 133724ba675SRob Herring 134724ba675SRob Herring pinctrl_cspi1_cs: cspi1csgrp { 135724ba675SRob Herring fsl,pins = <MX27_PAD_CSPI1_SS0__GPIO4_28 0x0>; 136724ba675SRob Herring }; 137724ba675SRob Herring 138724ba675SRob Herring pinctrl_cspi2: cspi2grp { 139724ba675SRob Herring fsl,pins = < 140724ba675SRob Herring MX27_PAD_CSPI2_MISO__CSPI2_MISO 0x0 141724ba675SRob Herring MX27_PAD_CSPI2_MOSI__CSPI2_MOSI 0x0 142724ba675SRob Herring MX27_PAD_CSPI2_SCLK__CSPI2_SCLK 0x0 143724ba675SRob Herring >; 144724ba675SRob Herring }; 145724ba675SRob Herring 146724ba675SRob Herring pinctrl_cspi2_cs: cspi2csgrp { 147724ba675SRob Herring fsl,pins = < 148724ba675SRob Herring MX27_PAD_CSI_D5__GPIO2_17 0x0 149724ba675SRob Herring MX27_PAD_CSPI2_SS0__GPIO4_21 0x0 150724ba675SRob Herring MX27_PAD_CSPI1_SS1__GPIO4_27 0x0 151724ba675SRob Herring >; 152724ba675SRob Herring }; 153724ba675SRob Herring 154724ba675SRob Herring pinctrl_gpio_leds: gpioledsgrp { 155724ba675SRob Herring fsl,pins = <MX27_PAD_PC_VS1__GPIO6_14 0x0>; 156724ba675SRob Herring }; 157724ba675SRob Herring 158724ba675SRob Herring pinctrl_gpio_keys: gpiokeysgrp { 159724ba675SRob Herring fsl,pins = <MX27_PAD_PC_VS2__GPIO6_13 0x0>; 160724ba675SRob Herring }; 161724ba675SRob Herring 162724ba675SRob Herring pinctrl_imxfb1: imxfbgrp { 163724ba675SRob Herring fsl,pins = < 164724ba675SRob Herring MX27_PAD_CLS__CLS 0x0 165724ba675SRob Herring MX27_PAD_CONTRAST__CONTRAST 0x0 166724ba675SRob Herring MX27_PAD_LD0__LD0 0x0 167724ba675SRob Herring MX27_PAD_LD1__LD1 0x0 168724ba675SRob Herring MX27_PAD_LD2__LD2 0x0 169724ba675SRob Herring MX27_PAD_LD3__LD3 0x0 170724ba675SRob Herring MX27_PAD_LD4__LD4 0x0 171724ba675SRob Herring MX27_PAD_LD5__LD5 0x0 172724ba675SRob Herring MX27_PAD_LD6__LD6 0x0 173724ba675SRob Herring MX27_PAD_LD7__LD7 0x0 174724ba675SRob Herring MX27_PAD_LD8__LD8 0x0 175724ba675SRob Herring MX27_PAD_LD9__LD9 0x0 176724ba675SRob Herring MX27_PAD_LD10__LD10 0x0 177724ba675SRob Herring MX27_PAD_LD11__LD11 0x0 178724ba675SRob Herring MX27_PAD_LD12__LD12 0x0 179724ba675SRob Herring MX27_PAD_LD13__LD13 0x0 180724ba675SRob Herring MX27_PAD_LD14__LD14 0x0 181724ba675SRob Herring MX27_PAD_LD15__LD15 0x0 182724ba675SRob Herring MX27_PAD_LD16__LD16 0x0 183724ba675SRob Herring MX27_PAD_LD17__LD17 0x0 184724ba675SRob Herring MX27_PAD_LSCLK__LSCLK 0x0 185724ba675SRob Herring MX27_PAD_OE_ACD__OE_ACD 0x0 186724ba675SRob Herring MX27_PAD_PS__PS 0x0 187724ba675SRob Herring MX27_PAD_REV__REV 0x0 188724ba675SRob Herring MX27_PAD_SPL_SPR__SPL_SPR 0x0 189724ba675SRob Herring MX27_PAD_HSYNC__HSYNC 0x0 190724ba675SRob Herring MX27_PAD_VSYNC__VSYNC 0x0 191724ba675SRob Herring >; 192724ba675SRob Herring }; 193724ba675SRob Herring 194724ba675SRob Herring pinctrl_i2c1: i2c1grp { 195724ba675SRob Herring fsl,pins = < 196724ba675SRob Herring MX27_PAD_I2C_DATA__I2C_DATA 0x0 197724ba675SRob Herring MX27_PAD_I2C_CLK__I2C_CLK 0x0 198724ba675SRob Herring >; 199724ba675SRob Herring }; 200724ba675SRob Herring 201724ba675SRob Herring pinctrl_i2c2: i2c2grp { 202724ba675SRob Herring fsl,pins = < 203724ba675SRob Herring MX27_PAD_I2C2_SDA__I2C2_SDA 0x0 204724ba675SRob Herring MX27_PAD_I2C2_SCL__I2C2_SCL 0x0 205724ba675SRob Herring >; 206724ba675SRob Herring }; 207724ba675SRob Herring 208724ba675SRob Herring pinctrl_max1027: max1027 { 209724ba675SRob Herring fsl,pins = < 210724ba675SRob Herring MX27_PAD_UART1_CTS__GPIO5_14 0x0 /* CNVST */ 211724ba675SRob Herring MX27_PAD_UART1_RTS__GPIO5_15 0x0 /* EOC */ 212724ba675SRob Herring >; 213724ba675SRob Herring }; 214724ba675SRob Herring 215724ba675SRob Herring pinctrl_pwm: pwmgrp { 216724ba675SRob Herring fsl,pins = < 217724ba675SRob Herring MX27_PAD_PWMO__PWMO 0x0 218724ba675SRob Herring >; 219724ba675SRob Herring }; 220724ba675SRob Herring 221724ba675SRob Herring pinctrl_sdhc2: sdhc2grp { 222724ba675SRob Herring fsl,pins = < 223724ba675SRob Herring MX27_PAD_SD2_CLK__SD2_CLK 0x0 224724ba675SRob Herring MX27_PAD_SD2_CMD__SD2_CMD 0x0 225724ba675SRob Herring MX27_PAD_SD2_D0__SD2_D0 0x0 226724ba675SRob Herring MX27_PAD_SD2_D1__SD2_D1 0x0 227724ba675SRob Herring MX27_PAD_SD2_D2__SD2_D2 0x0 228724ba675SRob Herring MX27_PAD_SD2_D3__SD2_D3 0x0 229724ba675SRob Herring >; 230724ba675SRob Herring }; 231724ba675SRob Herring 232724ba675SRob Herring pinctrl_sdhc2_cd: sdhc2cdgrp { 233724ba675SRob Herring fsl,pins = <MX27_PAD_TOUT__GPIO3_14 0x0>; 234724ba675SRob Herring }; 235724ba675SRob Herring }; 236724ba675SRob Herring}; 237724ba675SRob Herring 238724ba675SRob Herring&sdhci2 { 239724ba675SRob Herring bus-width = <4>; 240724ba675SRob Herring cd-gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>; 241724ba675SRob Herring pinctrl-names = "default"; 242724ba675SRob Herring pinctrl-0 = <&pinctrl_sdhc2 &pinctrl_sdhc2_cd>; 243724ba675SRob Herring status = "okay"; 244724ba675SRob Herring}; 245724ba675SRob Herring 246724ba675SRob Herring&pwm { 247724ba675SRob Herring pinctrl-names = "default"; 248724ba675SRob Herring pinctrl-0 = <&pinctrl_pwm>; 249724ba675SRob Herring}; 250