Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003  * Copyright 2022 Toradex
0004  */
0005 
0006 / {
0007         reg_3v3_vmmc: regulator-3v3-vmmc {
0008                 compatible = "regulator-fixed";
0009                 enable-active-high;
0010                 gpio = <&gpio5 16 GPIO_ACTIVE_HIGH>; /* SODIMM 100 */
0011                 regulator-max-microvolt = <3300000>;
0012                 regulator-min-microvolt = <3300000>;
0013                 regulator-name = "3v3_vmmc";
0014                 startup-delay-us = <100>;
0015         };
0016 };
0017 
0018 /* Colibri AD0 to AD3 */
0019 &adc1 {
0020         status = "okay";
0021 };
0022 
0023 /* Colibri SSP */
0024 &ecspi3 {
0025         status = "okay";
0026 };
0027 
0028 /* Colibri Fast Ethernet */
0029 &fec1 {
0030         status = "okay";
0031 };
0032 
0033 &gpio2 {
0034         /*
0035          * uart_b_c_on_x14_enable turns the UART transceiver for UART2 and 5 on. If one wants to
0036          * turn the transceiver off, that property has to be deleted and the gpio handled in
0037          * userspace.
0038          * The same applies to uart_a_on_x13_enable where the UART_A transceiver is turned on.
0039          */
0040         uart-b-c-on-x14-enable-hog {
0041                 gpio-hog;
0042                 gpios = <27 GPIO_ACTIVE_HIGH>; /* SODIMM 104 */
0043                 output-high;
0044         };
0045 };
0046 
0047 &gpio5 {
0048         uart-a-on-x13-enable-hog {
0049                 gpio-hog;
0050                 gpios = <17 GPIO_ACTIVE_HIGH>; /* SODIMM 102 */
0051                 output-high;
0052         };
0053 };
0054 
0055 /* Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 */
0056 &i2c4 {
0057         status = "okay";
0058 };
0059 
0060 /* Colibri PWM<A> */
0061 &pwm1 {
0062         status = "okay";
0063 };
0064 
0065 /* Colibri PWM<B> */
0066 &pwm2 {
0067         status = "okay";
0068 };
0069 
0070 /* Colibri PWM<C> */
0071 &pwm3 {
0072         status = "okay";
0073 };
0074 
0075 /* Colibri PWM<D> */
0076 &pwm4 {
0077         status = "okay";
0078 };
0079 
0080 /* M41T0M6 real time clock */
0081 &rtc {
0082         status = "okay";
0083 };
0084 
0085 /* Colibri UART_A */
0086 &uart1 {
0087         status = "okay";
0088 };
0089 
0090 /* Colibri UART_B */
0091 &uart2 {
0092         status = "okay";
0093 };
0094 
0095 /* Colibri UART_C */
0096 &uart3 {
0097         status = "okay";
0098 };
0099 
0100 /* Colibri USBC */
0101 &usbotg1 {
0102         status = "okay";
0103 };
0104 
0105 /* Colibri MMC/SD, UHS-I capable uSD slot */
0106 &usdhc1 {
0107         cap-power-off-card;
0108         /delete-property/ keep-power-in-suspend;
0109         /delete-property/ no-1-8-v;
0110         vmmc-supply = <&reg_3v3_vmmc>;
0111         status = "okay";
0112 };