Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0 OR X11
0002 /*
0003  * Copyright 2016-2019 Toradex AG
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include <dt-bindings/input/input.h>
0009 #include "tegra124-apalis.dtsi"
0010 
0011 / {
0012         model = "Toradex Apalis TK1 on Apalis Evaluation Board";
0013         compatible = "toradex,apalis-tk1-eval", "toradex,apalis-tk1",
0014                      "nvidia,tegra124";
0015 
0016         aliases {
0017                 rtc0 = "/i2c@7000c000/rtc@68";
0018                 rtc1 = "/i2c@7000d000/pmic@40";
0019                 rtc2 = "/rtc@7000e000";
0020                 serial0 = &uarta;
0021                 serial1 = &uartb;
0022                 serial2 = &uartc;
0023                 serial3 = &uartd;
0024         };
0025 
0026         chosen {
0027                 stdout-path = "serial0:115200n8";
0028         };
0029 
0030         pcie@1003000 {
0031                 pci@1,0 {
0032                         status = "okay";
0033                 };
0034         };
0035 
0036         host1x@50000000 {
0037                 hdmi@54280000 {
0038                         status = "okay";
0039                         hdmi-supply = <&reg_5v0>;
0040                 };
0041         };
0042 
0043         /* Apalis UART1 */
0044         serial@70006000 {
0045                 status = "okay";
0046         };
0047 
0048         /* Apalis UART2 */
0049         serial@70006040 {
0050                 status = "okay";
0051         };
0052 
0053         /* Apalis UART3 */
0054         serial@70006200 {
0055                 status = "okay";
0056         };
0057 
0058         /* Apalis UART4 */
0059         serial@70006300 {
0060                 status = "okay";
0061         };
0062 
0063         pwm@7000a000 {
0064                 status = "okay";
0065         };
0066 
0067         /*
0068          * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier
0069          * board)
0070          */
0071         i2c@7000c000 {
0072                 status = "okay";
0073                 clock-frequency = <400000>;
0074 
0075                 pcie-switch@58 {
0076                         compatible = "plx,pex8605";
0077                         reg = <0x58>;
0078                 };
0079 
0080                 /* M41T0M6 real time clock on carrier board */
0081                 rtc@68 {
0082                         compatible = "st,m41t0";
0083                         reg = <0x68>;
0084                 };
0085         };
0086 
0087         /*
0088          * GEN2_I2C: I2C2_SDA/SCL (DDC) on MXM3 pin 205/207 (e.g. display EDID)
0089          */
0090         i2c@7000c400 {
0091                 status = "okay";
0092         };
0093 
0094         /*
0095          * CAM_I2C: I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor
0096          * on carrier board)
0097          */
0098         i2c@7000c500 {
0099                 status = "okay";
0100                 clock-frequency = <400000>;
0101         };
0102 
0103         /* I2C4 (DDC): unused */
0104 
0105         /* SPI1: Apalis SPI1 */
0106         spi@7000d400 {
0107                 status = "okay";
0108                 spi-max-frequency = <50000000>;
0109         };
0110 
0111         /* SPI4: Apalis SPI2 */
0112         spi@7000da00 {
0113                 status = "okay";
0114                 spi-max-frequency = <50000000>;
0115         };
0116 
0117         /* Apalis Serial ATA */
0118         sata@70020000 {
0119                 status = "okay";
0120                 target-5v-supply = <&reg_5v0>;
0121                 target-12v-supply = <&reg_12v0>;
0122         };
0123 
0124         hda@70030000 {
0125                 status = "okay";
0126         };
0127 
0128         usb@70090000 {
0129                 status = "okay";
0130         };
0131 
0132         /* Apalis MMC1 */
0133         mmc@700b0000 {
0134                 status = "okay";
0135                 bus-width = <4>;
0136                 /* MMC1_CD# */
0137                 cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>;
0138                 vqmmc-supply = <&vddio_sdmmc1>;
0139         };
0140 
0141         /* Apalis SD1 */
0142         mmc@700b0400 {
0143                 status = "okay";
0144                 bus-width = <4>;
0145                 /* SD1_CD# */
0146                 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
0147                 vqmmc-supply = <&vddio_sdmmc3>;
0148         };
0149 
0150         /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */
0151         usb@7d000000 {
0152                 status = "okay";
0153                 dr_mode = "otg";
0154         };
0155 
0156         usb-phy@7d000000 {
0157                 status = "okay";
0158                 vbus-supply = <&reg_usbo1_vbus>;
0159         };
0160 
0161         /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */
0162         usb@7d004000 {
0163                 status = "okay";
0164         };
0165 
0166         usb-phy@7d004000 {
0167                 status = "okay";
0168                 vbus-supply = <&reg_usbh_vbus>;
0169         };
0170 
0171         /* EHCI instance 2: USB3_DP/N -> USBH4_DP/N */
0172         usb@7d008000 {
0173                 status = "okay";
0174         };
0175 
0176         usb-phy@7d008000 {
0177                 status = "okay";
0178                 vbus-supply = <&reg_usbh_vbus>;
0179         };
0180 
0181         backlight: backlight {
0182                 compatible = "pwm-backlight";
0183                 brightness-levels = <255 231 223 207 191 159 127 0>;
0184                 default-brightness-level = <6>;
0185                 /* BKL1_ON */
0186                 enable-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_HIGH>;
0187                 power-supply = <&reg_3v3>;
0188                 pwms = <&pwm 3 5000000>; /* BKL1_PWM */
0189         };
0190 
0191         gpio-keys {
0192                 compatible = "gpio-keys";
0193 
0194                 key-wakeup {
0195                         label = "WAKE1_MICO";
0196                         gpios = <&gpio TEGRA_GPIO(DD, 3) GPIO_ACTIVE_LOW>;
0197                         linux,code = <KEY_WAKEUP>;
0198                         debounce-interval = <10>;
0199                         wakeup-source;
0200                 };
0201         };
0202 
0203         reg_3v3: regulator-3v3 {
0204                 compatible = "regulator-fixed";
0205                 regulator-name = "3.3V_SW";
0206                 regulator-min-microvolt = <3300000>;
0207                 regulator-max-microvolt = <3300000>;
0208         };
0209 
0210         reg_5v0: regulator-5v0 {
0211                 compatible = "regulator-fixed";
0212                 regulator-name = "5V_SW";
0213                 regulator-min-microvolt = <5000000>;
0214                 regulator-max-microvolt = <5000000>;
0215         };
0216 
0217         reg_12v0: regulator-12v0 {
0218                 compatible = "regulator-fixed";
0219                 regulator-name = "12V_SW";
0220                 regulator-min-microvolt = <12000000>;
0221                 regulator-max-microvolt = <12000000>;
0222         };
0223 
0224         /* USBO1_EN */
0225         reg_usbo1_vbus: regulator-usbo1-vbus {
0226                 compatible = "regulator-fixed";
0227                 regulator-name = "VCC_USBO1";
0228                 regulator-min-microvolt = <5000000>;
0229                 regulator-max-microvolt = <5000000>;
0230                 gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
0231                 enable-active-high;
0232                 vin-supply = <&reg_5v0>;
0233         };
0234 
0235         /* USBH_EN */
0236         reg_usbh_vbus: regulator-usbh-vbus {
0237                 compatible = "regulator-fixed";
0238                 regulator-name = "VCC_USBH(2A|2C|2D|3|4)";
0239                 regulator-min-microvolt = <5000000>;
0240                 regulator-max-microvolt = <5000000>;
0241                 gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>;
0242                 enable-active-high;
0243                 vin-supply = <&reg_5v0>;
0244         };
0245 };
0246 
0247 &gpio {
0248         /* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */
0249         pex-perst-n-hog {
0250                 gpio-hog;
0251                 gpios = <TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>;
0252                 output-high;
0253                 line-name = "PEX_PERST_N";
0254         };
0255 };