Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003  * Copyright 2017-2022 Toradex
0004  */
0005 
0006 / {
0007         chosen {
0008                 stdout-path = "serial0:115200n8";
0009         };
0010 
0011         gpio-keys {
0012                 compatible = "gpio-keys";
0013                 pinctrl-names = "default";
0014                 pinctrl-0 = <&pinctrl_snvs_gpiokeys>;
0015 
0016                 power {
0017                         label = "Wake-Up";
0018                         gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
0019                         linux,code = <KEY_WAKEUP>;
0020                         debounce-interval = <10>;
0021                         wakeup-source;
0022                 };
0023         };
0024 
0025         reg_3v3: regulator-3v3 {
0026                 compatible = "regulator-fixed";
0027                 regulator-name = "3.3V";
0028                 regulator-min-microvolt = <3300000>;
0029                 regulator-max-microvolt = <3300000>;
0030         };
0031 
0032         reg_5v0: regulator-5v0 {
0033                 compatible = "regulator-fixed";
0034                 regulator-name = "5V";
0035                 regulator-min-microvolt = <5000000>;
0036                 regulator-max-microvolt = <5000000>;
0037         };
0038 
0039         reg_usbh_vbus: regulator-usbh-vbus {
0040                 compatible = "regulator-fixed";
0041                 pinctrl-names = "default";
0042                 pinctrl-0 = <&pinctrl_usbh_reg>;
0043                 regulator-name = "VCC_USB[1-4]";
0044                 regulator-min-microvolt = <5000000>;
0045                 regulator-max-microvolt = <5000000>;
0046                 gpio = <&gpio1 2 GPIO_ACTIVE_LOW>;
0047                 vin-supply = <&reg_5v0>;
0048         };
0049 };
0050 
0051 &adc1 {
0052         status = "okay";
0053 };
0054 
0055 &ecspi1 {
0056         status = "okay";
0057 
0058         num-cs = <2>;
0059         cs-gpios = <
0060                 &gpio3 26 GPIO_ACTIVE_HIGH /* SODIMM 86 LCD_DATA21 */
0061                 &gpio4 28 GPIO_ACTIVE_HIGH /* SODIMM 65 CSI_DATA07 */
0062         >;
0063 };
0064 
0065 /*
0066  * Following SODIMM Pins should not be accessed as GPIO on Aster board:
0067  * 134 - AIN5_SCL (no connection)
0068  * 127 - Voltage Level Translator OE# signal (IC11 and IC12)
0069  *
0070  * To configure GPIO to LED5, please disable FEC2 and uncomment the following:
0071  *      &iomuxc {
0072  *              pinctrl-names = "default";
0073  *              pinctrl-0 = <
0074  *                      &pinctrl_gpio1
0075  *                      &pinctrl_gpio2
0076  *                      &pinctrl_gpio3
0077  *                      &pinctrl_gpio4
0078  *                      &pinctrl_gpio6 - for non-WiFi modules only
0079  *                      &pinctrl_gpio7
0080  *                      &pinctrl_gpio_aster
0081  *              >;
0082  *
0083  *              pinctrl_gpio_aster: gpio-aster {
0084  *                      fsl,pins = <
0085  *                              MX6UL_PAD_GPIO1_IO07__GPIO1_IO07    0x1b0b0
0086  *                      >;
0087  *              };
0088  *  };
0089  */
0090 
0091 &i2c1 {
0092         status = "okay";
0093 
0094         m41t0m6: rtc@68 {
0095                 compatible = "st,m41t0";
0096                 reg = <0x68>;
0097         };
0098 };
0099 
0100 /* PWM <A> */
0101 &pwm4 {
0102         status = "okay";
0103 };
0104 
0105 /* PWM <B> */
0106 &pwm5 {
0107         status = "okay";
0108 };
0109 
0110 /* PWM <C> */
0111 &pwm6 {
0112         status = "okay";
0113 };
0114 
0115 /* PWM <D> */
0116 &pwm7 {
0117         status = "okay";
0118 };
0119 
0120 &uart1 {
0121         status = "okay";
0122 };
0123 
0124 &uart2 {
0125         status = "okay";
0126 };
0127 
0128 &uart5 {
0129         status = "okay";
0130 };
0131 
0132 &usbotg1 {
0133         vbus-supply = <&reg_usbh_vbus>;
0134         status = "okay";
0135 };
0136 
0137 &usbotg2 {
0138         vbus-supply = <&reg_usbh_vbus>;
0139         status = "okay";
0140 };
0141 
0142 &usdhc1 {
0143         vmmc-supply = <&reg_3v3>;
0144         status = "okay";
0145 };