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