1 // SPDX-License-Identifier: GPL-2.0-or-later O 2 /* 3 * Copyright 2024 Toradex 4 */ 5 6 #include "imx8-apalis-eval.dtsi" 7 8 / { 9 reg_3v3_mmc: regulator-3v3-mmc { 10 compatible = "regulator-fixed" 11 pinctrl-names = "default"; 12 pinctrl-0 = <&pinctrl_enable_3 13 enable-active-high; 14 gpio = <&lsio_gpio5 19 GPIO_AC 15 off-on-delay-us = <100000>; 16 regulator-max-microvolt = <330 17 regulator-min-microvolt = <330 18 regulator-name = "3.3V_MMC"; 19 startup-delay-us = <10000>; 20 }; 21 22 reg_3v3_sd: regulator-3v3-sd { 23 compatible = "regulator-fixed" 24 pinctrl-names = "default"; 25 pinctrl-0 = <&pinctrl_enable_3 26 enable-active-high; 27 gpio = <&lsio_gpio5 20 GPIO_AC 28 off-on-delay-us = <100000>; 29 regulator-max-microvolt = <330 30 regulator-min-microvolt = <330 31 regulator-name = "3.3V_SD"; 32 startup-delay-us = <10000>; 33 }; 34 35 reg_can1: regulator-can1 { 36 compatible = "regulator-fixed" 37 pinctrl-names = "default"; 38 pinctrl-0 = <&pinctrl_enable_c 39 enable-active-high; 40 gpio = <&lsio_gpio5 22 GPIO_AC 41 regulator-name = "5V_SW_CAN1"; 42 startup-delay-us = <10000>; 43 }; 44 45 reg_can2: regulator-can2 { 46 compatible = "regulator-fixed" 47 pinctrl-names = "default"; 48 pinctrl-0 = <&pinctrl_enable_c 49 enable-active-high; 50 gpio = <&lsio_gpio5 21 GPIO_AC 51 regulator-name = "5V_SW_CAN2"; 52 startup-delay-us = <10000>; 53 }; 54 }; 55 56 /* Apalis CAN1 */ 57 &flexcan1 { 58 xceiver-supply = <®_can1>; 59 status = "okay"; 60 }; 61 62 /* Apalis CAN2 */ 63 &flexcan2 { 64 xceiver-supply = <®_can2>; 65 status = "okay"; 66 }; 67 68 /* Apalis I2C1 */ 69 &i2c2 { 70 status = "okay"; 71 72 /* Power/Current Measurement Sensor */ 73 hwmon@40 { 74 compatible = "ti,ina219"; 75 reg = <0x40>; 76 shunt-resistor = <5000>; 77 }; 78 79 temperature-sensor@4f { 80 compatible = "ti,tmp75c"; 81 reg = <0x4f>; 82 }; 83 84 eeprom@57 { 85 compatible = "st,24c02", "atme 86 reg = <0x57>; 87 }; 88 }; 89 90 /* Apalis MMC1 */ 91 &usdhc2 { 92 pinctrl-0 = <&pinctrl_usdhc2_4bit>, <& 93 pinctrl-1 = <&pinctrl_usdhc2_4bit_100m 94 pinctrl-2 = <&pinctrl_usdhc2_4bit_200m 95 pinctrl-3 = <&pinctrl_usdhc2_4bit_slee 96 bus-width = <4>; 97 vmmc-supply = <®_3v3_mmc>; 98 status = "okay"; 99 }; 100 101 /* Apalis SD1 */ 102 &usdhc3 { 103 vmmc-supply = <®_3v3_sd>; 104 status = "okay"; 105 }; 106 107 &iomuxc { 108 109 pinctrl_enable_3v3_mmc: enable3v3mmcgr 110 fsl,pins = <IMX8QM_USDHC1_DATA 111 }; 112 113 pinctrl_enable_3v3_sd: enable3v3sdgrp 114 fsl,pins = <IMX8QM_USDHC1_DATA 115 }; 116 117 pinctrl_enable_can1_power: enablecan1p 118 fsl,pins = <IMX8QM_USDHC1_DATA 119 }; 120 121 pinctrl_enable_can2_power: enablecan2p 122 fsl,pins = <IMX8QM_USDHC1_DATA 123 }; 124 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.