Back to home page

OSCL-LXR

 
 

    


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