1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright 2022 DimOnOff 3 * Copyright 2022 DimOnOff 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include <dt-bindings/usb/pd.h> 8 #include <dt-bindings/usb/pd.h> 9 #include "imx8mn-var-som-symphony.dts" 9 #include "imx8mn-var-som-symphony.dts" 10 10 11 / { 11 / { 12 model = "DimOnOff Gateway EVK board"; 12 model = "DimOnOff Gateway EVK board"; 13 compatible = "dimonoff,gateway-evk", " 13 compatible = "dimonoff,gateway-evk", "variscite,var-som-mx8mn", 14 "fsl,imx8mn"; 14 "fsl,imx8mn"; 15 15 16 /* 16 /* 17 * U30 FPF2193 regulator. 17 * U30 FPF2193 regulator. 18 * Source = BASE_PER_3V3 = SOM_3V3 (CO 18 * Source = BASE_PER_3V3 = SOM_3V3 (COM pin 49). 19 */ 19 */ 20 reg_disp_3v3: regulator-disp-3v3 { 20 reg_disp_3v3: regulator-disp-3v3 { 21 compatible = "regulator-fixed" 21 compatible = "regulator-fixed"; 22 regulator-name = "Display 3V3" 22 regulator-name = "Display 3V3"; 23 regulator-min-microvolt = <330 23 regulator-min-microvolt = <3300000>; 24 regulator-max-microvolt = <330 24 regulator-max-microvolt = <3300000>; 25 regulator-always-on; 25 regulator-always-on; 26 regulator-boot-on; 26 regulator-boot-on; 27 }; 27 }; 28 28 29 gpio-keys { 29 gpio-keys { 30 compatible = "gpio-keys"; 30 compatible = "gpio-keys"; 31 pinctrl-names = "default"; 31 pinctrl-names = "default"; 32 pinctrl-0 = <&pinctrl_gpio_key 32 pinctrl-0 = <&pinctrl_gpio_keys>; 33 33 34 key-enter { 34 key-enter { 35 label = "enter"; 35 label = "enter"; 36 gpios = <&gpio1 8 GPIO 36 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; 37 linux,code = <KEY_ENTE 37 linux,code = <KEY_ENTER>; 38 wakeup-source; 38 wakeup-source; 39 }; 39 }; 40 }; 40 }; 41 41 42 /* Bourns PEC12R rotary encoder, 24 st 42 /* Bourns PEC12R rotary encoder, 24 steps. */ 43 rotary: rotary-encoder { 43 rotary: rotary-encoder { 44 compatible = "rotary-encoder"; 44 compatible = "rotary-encoder"; 45 pinctrl-names = "default"; 45 pinctrl-names = "default"; 46 pinctrl-0 = <&pinctrl_rotary>; 46 pinctrl-0 = <&pinctrl_rotary>; 47 gpios = <&gpio5 12 GPIO_ACTIVE 47 gpios = <&gpio5 12 GPIO_ACTIVE_LOW>, /* A */ 48 <&gpio5 13 GPIO_ACTIVE 48 <&gpio5 13 GPIO_ACTIVE_LOW>; /* B */ 49 linux,axis = <0>; /* REL_X */ 49 linux,axis = <0>; /* REL_X */ 50 rotary-encoder,encoding = "gra 50 rotary-encoder,encoding = "gray"; 51 rotary-encoder,relative-axis; 51 rotary-encoder,relative-axis; 52 }; 52 }; 53 }; 53 }; 54 54 55 /* Disable Asynchronous Sample Rate Converter 55 /* Disable Asynchronous Sample Rate Converter (audio) */ 56 &easrc { 56 &easrc { 57 status = "disabled"; 57 status = "disabled"; 58 }; 58 }; 59 59 60 &ecspi1 { 60 &ecspi1 { 61 /* Resistive touch controller */ 61 /* Resistive touch controller */ 62 /delete-node/ touchscreen@0; 62 /delete-node/ touchscreen@0; 63 }; 63 }; 64 64 65 &gpu { 65 &gpu { 66 status = "disabled"; 66 status = "disabled"; 67 }; 67 }; 68 68 69 &i2c2 { 69 &i2c2 { 70 adc@48 { 70 adc@48 { 71 compatible = "ti,ads7924"; 71 compatible = "ti,ads7924"; 72 reg = <0x48>; 72 reg = <0x48>; 73 pinctrl-names = "default"; 73 pinctrl-names = "default"; 74 pinctrl-0 = <&pinctrl_adc>; 74 pinctrl-0 = <&pinctrl_adc>; 75 vref-supply = <®_disp_3v3>; 75 vref-supply = <®_disp_3v3>; 76 reset-gpios = <&gpio5 5 GPIO_A 76 reset-gpios = <&gpio5 5 GPIO_ACTIVE_LOW>; 77 #address-cells = <1>; 77 #address-cells = <1>; 78 #size-cells = <0>; 78 #size-cells = <0>; 79 79 80 channel@0 { 80 channel@0 { 81 reg = <0>; 81 reg = <0>; 82 label = "Pot0"; 82 label = "Pot0"; 83 }; 83 }; 84 channel@1 { 84 channel@1 { 85 reg = <1>; 85 reg = <1>; 86 label = "Pot1"; 86 label = "Pot1"; 87 }; 87 }; 88 channel@2 { 88 channel@2 { 89 reg = <2>; 89 reg = <2>; 90 label = "Pot2"; 90 label = "Pot2"; 91 }; 91 }; 92 channel@3 { 92 channel@3 { 93 reg = <3>; 93 reg = <3>; 94 label = "Pot3"; 94 label = "Pot3"; 95 }; 95 }; 96 }; 96 }; 97 97 98 rtc@51 { 98 rtc@51 { 99 compatible = "nxp,pcf2129"; 99 compatible = "nxp,pcf2129"; 100 reg = <0x51>; 100 reg = <0x51>; 101 reset-source; /* For watchdog. 101 reset-source; /* For watchdog. */ 102 }; 102 }; 103 103 104 rtc@53 { 104 rtc@53 { 105 compatible = "nxp,pcf2131"; 105 compatible = "nxp,pcf2131"; 106 reg = <0x53>; 106 reg = <0x53>; 107 pinctrl-names = "default"; 107 pinctrl-names = "default"; 108 pinctrl-0 = <&pinctrl_rtc>; 108 pinctrl-0 = <&pinctrl_rtc>; 109 reset-source; /* For watchdog. 109 reset-source; /* For watchdog. */ 110 interrupt-parent = <&gpio5>; 110 interrupt-parent = <&gpio5>; 111 interrupts = <10 IRQ_TYPE_EDGE 111 interrupts = <10 IRQ_TYPE_EDGE_FALLING>; /* J17.6 on EVK */ 112 }; 112 }; 113 }; 113 }; 114 114 115 &i2c3 { 115 &i2c3 { 116 touchscreen@38 { 116 touchscreen@38 { 117 status = "disabled"; 117 status = "disabled"; 118 }; 118 }; 119 119 120 codec@1a { 120 codec@1a { 121 status = "disabled"; 121 status = "disabled"; 122 }; 122 }; 123 123 124 /* DS1337 RTC module */ 124 /* DS1337 RTC module */ 125 rtc@68 { 125 rtc@68 { 126 status = "disabled"; 126 status = "disabled"; 127 }; 127 }; 128 }; 128 }; 129 129 130 &sai5 { 130 &sai5 { 131 status = "disabled"; 131 status = "disabled"; 132 }; 132 }; 133 133 134 &iomuxc { 134 &iomuxc { 135 pinctrl_gpio_keys: gpiokeysgrp { 135 pinctrl_gpio_keys: gpiokeysgrp { 136 fsl,pins = < 136 fsl,pins = < 137 MX8MN_IOMUXC_GPIO1_IO0 137 MX8MN_IOMUXC_GPIO1_IO08_GPIO1_IO8 0xc6 138 >; 138 >; 139 }; 139 }; 140 140 141 pinctrl_rotary: rotarygrp { 141 pinctrl_rotary: rotarygrp { 142 fsl,pins = < 142 fsl,pins = < 143 MX8MN_IOMUXC_ECSPI2_MI 143 MX8MN_IOMUXC_ECSPI2_MISO_GPIO5_IO12 0x00000156 144 MX8MN_IOMUXC_ECSPI2_SS 144 MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x00000156 145 >; 145 >; 146 }; 146 }; 147 147 148 pinctrl_adc: adcgrp { 148 pinctrl_adc: adcgrp { 149 fsl,pins = < 149 fsl,pins = < 150 MX8MN_IOMUXC_SPDIF_EXT 150 MX8MN_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0x00000156 151 >; 151 >; 152 }; 152 }; 153 153 154 pinctrl_rtc: rtcgrp { 154 pinctrl_rtc: rtcgrp { 155 fsl,pins = < 155 fsl,pins = < 156 MX8MN_IOMUXC_ECSPI2_SC 156 MX8MN_IOMUXC_ECSPI2_SCLK_GPIO5_IO10 0x00000156 157 MX8MN_IOMUXC_ECSPI2_MO 157 MX8MN_IOMUXC_ECSPI2_MOSI_GPIO5_IO11 0x00000156 158 >; 158 >; 159 }; 159 }; 160 }; 160 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.