1 // SPDX-License-Identifier: (GPL-2.0-or-later 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 2 /* 2 /* 3 * Copyright 2020-2021 TQ-Systems GmbH 3 * Copyright 2020-2021 TQ-Systems GmbH 4 */ 4 */ 5 5 6 #include <dt-bindings/net/ti-dp83867.h> 6 #include <dt-bindings/net/ti-dp83867.h> 7 7 8 /* TQ-Systems GmbH MBa8Mx baseboard */ 8 /* TQ-Systems GmbH MBa8Mx baseboard */ 9 9 10 / { 10 / { 11 backlight_lvds: backlight { << 12 compatible = "pwm-backlight"; << 13 pwms = <&pwm3 0 5000000 0>; << 14 brightness-levels = <0 4 8 16 << 15 default-brightness-level = <7> << 16 power-supply = <®_12v>; << 17 enable-gpios = <&expander2 2 G << 18 status = "disabled"; << 19 }; << 20 << 21 beeper { 11 beeper { 22 compatible = "pwm-beeper"; 12 compatible = "pwm-beeper"; 23 pwms = <&pwm4 0 250000 0>; 13 pwms = <&pwm4 0 250000 0>; 24 beeper-hz = <4000>; 14 beeper-hz = <4000>; 25 amp-supply = <®_vcc_3v3>; 15 amp-supply = <®_vcc_3v3>; 26 }; 16 }; 27 17 28 chosen { 18 chosen { >> 19 // bootargs = "console=ttymxc2,115200 earlycon=ec_imx6q,0x30880000,115200"; 29 stdout-path = &uart3; 20 stdout-path = &uart3; 30 }; 21 }; 31 22 32 clk_xtal25: clk-xtal25 { << 33 compatible = "fixed-clock"; << 34 #clock-cells = <0>; << 35 clock-frequency = <25000000>; << 36 }; << 37 << 38 gpio-keys { 23 gpio-keys { 39 compatible = "gpio-keys"; 24 compatible = "gpio-keys"; 40 pinctrl-names = "default"; 25 pinctrl-names = "default"; 41 pinctrl-0 = <&pinctrl_gpiobutt 26 pinctrl-0 = <&pinctrl_gpiobutton>; 42 autorepeat; 27 autorepeat; 43 28 44 switch-1 { !! 29 switch1 { 45 label = "switch1"; 30 label = "switch1"; 46 linux,code = <BTN_0>; 31 linux,code = <BTN_0>; 47 gpios = <&gpio1 5 GPIO 32 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; 48 wakeup-source; 33 wakeup-source; 49 }; 34 }; 50 35 51 btn2: switch-2 { !! 36 btn2: switch2 { 52 label = "switch2"; 37 label = "switch2"; 53 linux,code = <BTN_1>; 38 linux,code = <BTN_1>; 54 gpios = <&gpio2 0 GPIO 39 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; 55 wakeup-source; 40 wakeup-source; 56 }; 41 }; 57 42 58 switch-3 { !! 43 switch3 { 59 label = "switch3"; 44 label = "switch3"; 60 linux,code = <BTN_2>; 45 linux,code = <BTN_2>; 61 gpios = <&gpio1 7 GPIO 46 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; 62 wakeup-source; 47 wakeup-source; 63 }; 48 }; 64 }; 49 }; 65 50 66 gpio_leds: gpio-leds { 51 gpio_leds: gpio-leds { 67 compatible = "gpio-leds"; 52 compatible = "gpio-leds"; 68 pinctrl-names = "default"; 53 pinctrl-names = "default"; 69 pinctrl-0 = <&pinctrl_gpioled> 54 pinctrl-0 = <&pinctrl_gpioled>; 70 55 71 led1 { 56 led1 { 72 label = "led1"; 57 label = "led1"; 73 gpios = <&gpio1 0 GPIO 58 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; 74 linux,default-trigger 59 linux,default-trigger = "default-on"; 75 }; 60 }; 76 61 77 led2: led2 { 62 led2: led2 { 78 label = "led2"; 63 label = "led2"; 79 gpios = <&gpio3 14 GPI 64 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>; 80 linux,default-trigger 65 linux,default-trigger = "heartbeat"; 81 }; 66 }; 82 }; 67 }; 83 68 84 gpio_delays: gpio-delays { << 85 compatible = "gpio-delay"; << 86 #gpio-cells = <3>; << 87 gpio-controller; << 88 gpios = <&expander0 6 GPIO_ACT << 89 gpio-line-names = "LVDS_BRIDGE << 90 }; << 91 << 92 panel: panel-lvds { << 93 /* << 94 * Display is not fixed, so co << 95 * DT overlay << 96 */ << 97 backlight = <&backlight_lvds>; << 98 power-supply = <®_vcc_3v3>; << 99 status = "disabled"; << 100 << 101 port { << 102 panel_in_lvds: endpoin << 103 data-lanes = < << 104 remote-endpoin << 105 }; << 106 }; << 107 }; << 108 << 109 reg_12v: regulator-12v { << 110 compatible = "regulator-fixed" << 111 regulator-name = "MBA8MX_12V"; << 112 regulator-min-microvolt = <120 << 113 regulator-max-microvolt = <120 << 114 regulator-always-on; << 115 }; << 116 << 117 reg_hub_vbus: regulator-hub-vbus { 69 reg_hub_vbus: regulator-hub-vbus { 118 compatible = "regulator-fixed" 70 compatible = "regulator-fixed"; 119 regulator-name = "MBA8MX_HUB_V 71 regulator-name = "MBA8MX_HUB_VBUS"; 120 regulator-min-microvolt = <500 72 regulator-min-microvolt = <5000000>; 121 regulator-max-microvolt = <500 73 regulator-max-microvolt = <5000000>; 122 }; 74 }; 123 75 124 reg_sn65dsi83_1v8: regulator-sn65dsi83 76 reg_sn65dsi83_1v8: regulator-sn65dsi83-1v8 { 125 compatible = "regulator-fixed" 77 compatible = "regulator-fixed"; 126 regulator-name = "SN65DSI83_1V 78 regulator-name = "SN65DSI83_1V8"; 127 regulator-min-microvolt = <180 79 regulator-min-microvolt = <1800000>; 128 regulator-max-microvolt = <180 80 regulator-max-microvolt = <1800000>; 129 gpio = <&expander0 5 GPIO_ACTI 81 gpio = <&expander0 5 GPIO_ACTIVE_HIGH>; 130 enable-active-high; 82 enable-active-high; 131 }; 83 }; 132 84 133 reg_vcc_3v3: regulator-3v3 { 85 reg_vcc_3v3: regulator-3v3 { 134 compatible = "regulator-fixed" 86 compatible = "regulator-fixed"; 135 regulator-name = "MBA8MX_3V3"; 87 regulator-name = "MBA8MX_3V3"; 136 regulator-min-microvolt = <330 88 regulator-min-microvolt = <3300000>; 137 regulator-max-microvolt = <330 89 regulator-max-microvolt = <3300000>; 138 }; 90 }; 139 91 140 sound { 92 sound { 141 compatible = "fsl,imx-audio-tl 93 compatible = "fsl,imx-audio-tlv320aic32x4"; 142 model = "imx-audio-tlv320aic32 94 model = "imx-audio-tlv320aic32x4"; 143 ssi-controller = <&sai3>; 95 ssi-controller = <&sai3>; 144 audio-codec = <&tlv320aic3x04> 96 audio-codec = <&tlv320aic3x04>; 145 }; 97 }; 146 }; 98 }; 147 99 148 &ecspi1 { 100 &ecspi1 { 149 pinctrl-names = "default"; 101 pinctrl-names = "default"; 150 pinctrl-0 = <&pinctrl_ecspi1>; 102 pinctrl-0 = <&pinctrl_ecspi1>; 151 cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>; 103 cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>; 152 status = "okay"; 104 status = "okay"; 153 }; 105 }; 154 106 155 &ecspi2 { 107 &ecspi2 { 156 pinctrl-names = "default"; 108 pinctrl-names = "default"; 157 pinctrl-0 = <&pinctrl_ecspi2>; 109 pinctrl-0 = <&pinctrl_ecspi2>; 158 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW> 110 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 159 status = "okay"; 111 status = "okay"; 160 }; 112 }; 161 113 162 &fec1 { 114 &fec1 { 163 pinctrl-names = "default"; 115 pinctrl-names = "default"; 164 pinctrl-0 = <&pinctrl_fec1>; 116 pinctrl-0 = <&pinctrl_fec1>; 165 phy-mode = "rgmii-id"; 117 phy-mode = "rgmii-id"; 166 phy-handle = <ðphy0>; 118 phy-handle = <ðphy0>; 167 phy-supply = <®_vcc_3v3>; 119 phy-supply = <®_vcc_3v3>; 168 fsl,magic-packet; 120 fsl,magic-packet; 169 mac-address = [ 00 00 00 00 00 00 ]; 121 mac-address = [ 00 00 00 00 00 00 ]; 170 status = "okay"; 122 status = "okay"; 171 123 172 mdio { 124 mdio { 173 #address-cells = <1>; 125 #address-cells = <1>; 174 #size-cells = <0>; 126 #size-cells = <0>; 175 127 176 ethphy0: ethernet-phy@e { 128 ethphy0: ethernet-phy@e { 177 compatible = "ethernet 129 compatible = "ethernet-phy-ieee802.3-c22"; 178 reg = <0xe>; 130 reg = <0xe>; 179 ti,rx-internal-delay = 131 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_50_NS>; 180 ti,tx-internal-delay = 132 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_50_NS>; 181 ti,fifo-depth = <DP838 133 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; 182 ti,dp83867-rxctrl-stra 134 ti,dp83867-rxctrl-strap-quirk; 183 ti,clk-output-sel = <D 135 ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>; 184 enet-phy-lane-no-swap; 136 enet-phy-lane-no-swap; 185 reset-gpios = <&expand 137 reset-gpios = <&expander2 7 GPIO_ACTIVE_LOW>; 186 reset-assert-us = <500 138 reset-assert-us = <500000>; 187 reset-deassert-us = <5 139 reset-deassert-us = <500>; 188 interrupt-parent = <&e << 189 interrupts = <6 IRQ_TY << 190 }; 140 }; 191 }; 141 }; 192 }; 142 }; 193 143 194 &i2c1 { 144 &i2c1 { 195 expander0: gpio@23 { 145 expander0: gpio@23 { 196 compatible = "nxp,pca9555"; 146 compatible = "nxp,pca9555"; 197 reg = <0x23>; 147 reg = <0x23>; 198 gpio-controller; 148 gpio-controller; 199 #gpio-cells = <2>; 149 #gpio-cells = <2>; 200 vcc-supply = <®_vcc_3v3>; 150 vcc-supply = <®_vcc_3v3>; 201 interrupt-parent = <&gpio1>; 151 interrupt-parent = <&gpio1>; 202 interrupts = <9 IRQ_TYPE_EDGE_ 152 interrupts = <9 IRQ_TYPE_EDGE_FALLING>; 203 interrupt-controller; 153 interrupt-controller; 204 #interrupt-cells = <2>; 154 #interrupt-cells = <2>; 205 gpio-line-names = "", "", "", << 206 "", "", "LVD << 207 "", "", "", << 208 "", "", "", << 209 155 210 sd-mux-oe-hog { 156 sd-mux-oe-hog { 211 gpio-hog; 157 gpio-hog; 212 gpios = <8 0>; 158 gpios = <8 0>; 213 output-low; 159 output-low; 214 line-name = "SD_MUX_EN 160 line-name = "SD_MUX_EN#"; 215 }; 161 }; 216 162 217 boot-cfg-oe-hog { 163 boot-cfg-oe-hog { 218 gpio-hog; 164 gpio-hog; 219 gpios = <12 0>; 165 gpios = <12 0>; 220 output-high; 166 output-high; 221 line-name = "BOOT_CFG_ 167 line-name = "BOOT_CFG_OE#"; 222 }; 168 }; 223 169 224 rst_usb_hub_hog: rst-usb-hub-h !! 170 rst-usb-hub-hog { 225 gpio-hog; 171 gpio-hog; 226 gpios = <13 0>; 172 gpios = <13 0>; 227 output-high; 173 output-high; 228 line-name = "RST_USB_H 174 line-name = "RST_USB_HUB#"; 229 }; 175 }; 230 }; 176 }; 231 177 232 expander1: gpio@24 { 178 expander1: gpio@24 { 233 compatible = "nxp,pca9555"; 179 compatible = "nxp,pca9555"; 234 reg = <0x24>; 180 reg = <0x24>; 235 gpio-controller; 181 gpio-controller; 236 #gpio-cells = <2>; 182 #gpio-cells = <2>; 237 vcc-supply = <®_vcc_3v3>; 183 vcc-supply = <®_vcc_3v3>; 238 }; 184 }; 239 }; 185 }; 240 186 241 &i2c2 { 187 &i2c2 { >> 188 clock-frequency = <100000>; 242 pinctrl-names = "default", "gpio"; 189 pinctrl-names = "default", "gpio"; 243 pinctrl-0 = <&pinctrl_i2c2>; 190 pinctrl-0 = <&pinctrl_i2c2>; 244 pinctrl-1 = <&pinctrl_i2c2_gpio>; 191 pinctrl-1 = <&pinctrl_i2c2_gpio>; 245 scl-gpios = <&gpio5 16 (GPIO_ACTIVE_HI 192 scl-gpios = <&gpio5 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 246 sda-gpios = <&gpio5 17 (GPIO_ACTIVE_HI 193 sda-gpios = <&gpio5 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 247 status = "okay"; 194 status = "okay"; 248 195 249 tlv320aic3x04: audio-codec@18 { 196 tlv320aic3x04: audio-codec@18 { 250 compatible = "ti,tlv320aic32x4 197 compatible = "ti,tlv320aic32x4"; 251 reg = <0x18>; 198 reg = <0x18>; 252 reset-gpios = <&expander2 0 GP 199 reset-gpios = <&expander2 0 GPIO_ACTIVE_LOW>; 253 iov-supply = <®_vcc_3v3>; 200 iov-supply = <®_vcc_3v3>; 254 ldoin-supply = <®_vcc_3v3>; 201 ldoin-supply = <®_vcc_3v3>; 255 }; 202 }; 256 203 257 sensor1: temperator-sensor@1f { !! 204 sensor1: sensor@1f { 258 compatible = "nxp,se97b", "jed !! 205 compatible = "nxp,se97", "jedec,jc-42.4-temp"; 259 reg = <0x1f>; 206 reg = <0x1f>; 260 }; 207 }; 261 208 262 /* << 263 * TUSB8041 is at 0x41, but not connec << 264 * Note: TUSB8041 only supports 100 kH << 265 */ << 266 << 267 eeprom3: eeprom@57 { 209 eeprom3: eeprom@57 { 268 compatible = "nxp,se97b", "atm 210 compatible = "nxp,se97b", "atmel,24c02"; 269 reg = <0x57>; 211 reg = <0x57>; 270 pagesize = <16>; 212 pagesize = <16>; 271 vcc-supply = <®_vcc_3v3>; << 272 }; << 273 << 274 pcieclk: clk@68 { << 275 compatible = "renesas,9fgv0441 << 276 reg = <0x68>; << 277 clocks = <&clk_xtal25>; << 278 #clock-cells = <1>; << 279 }; 213 }; 280 }; 214 }; 281 215 282 &i2c3 { 216 &i2c3 { >> 217 clock-frequency = <100000>; 283 pinctrl-names = "default", "gpio"; 218 pinctrl-names = "default", "gpio"; 284 pinctrl-0 = <&pinctrl_i2c3>; 219 pinctrl-0 = <&pinctrl_i2c3>; 285 pinctrl-1 = <&pinctrl_i2c3_gpio>; 220 pinctrl-1 = <&pinctrl_i2c3_gpio>; 286 scl-gpios = <&gpio5 18 (GPIO_ACTIVE_HI 221 scl-gpios = <&gpio5 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 287 sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HI 222 sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 288 status = "okay"; 223 status = "okay"; 289 << 290 dsi_lvds_bridge: bridge@2d { << 291 compatible = "ti,sn65dsi84"; << 292 reg = <0x2d>; << 293 enable-gpios = <&gpio_delays 0 << 294 vcc-supply = <®_sn65dsi83_1 << 295 status = "disabled"; << 296 << 297 ports { << 298 #address-cells = <1>; << 299 #size-cells = <0>; << 300 << 301 port@0 { << 302 reg = <0>; << 303 << 304 lvds_bridge_in << 305 data-l << 306 remote << 307 }; << 308 }; << 309 << 310 port@2 { << 311 reg = <2>; << 312 << 313 lvds_bridge_ou << 314 remote << 315 }; << 316 }; << 317 }; << 318 }; << 319 }; << 320 << 321 &mipi_dsi { << 322 samsung,burst-clock-frequency = <89100 << 323 samsung,esc-clock-frequency = <2000000 << 324 }; << 325 << 326 &mipi_dsi_out { << 327 data-lanes = <1 2 3 4>; << 328 remote-endpoint = <&lvds_bridge_in>; << 329 }; 224 }; 330 225 331 &pwm3 { 226 &pwm3 { 332 pinctrl-names = "default"; 227 pinctrl-names = "default"; 333 pinctrl-0 = <&pinctrl_pwm3>; 228 pinctrl-0 = <&pinctrl_pwm3>; 334 status = "okay"; 229 status = "okay"; 335 }; 230 }; 336 231 337 &pwm4 { 232 &pwm4 { 338 pinctrl-names = "default"; 233 pinctrl-names = "default"; 339 pinctrl-0 = <&pinctrl_pwm4>; 234 pinctrl-0 = <&pinctrl_pwm4>; 340 status = "okay"; 235 status = "okay"; 341 }; 236 }; 342 237 343 &sai3 { 238 &sai3 { 344 pinctrl-names = "default"; 239 pinctrl-names = "default"; 345 pinctrl-0 = <&pinctrl_sai3>; 240 pinctrl-0 = <&pinctrl_sai3>; 346 #sound-dai-cells = <0>; 241 #sound-dai-cells = <0>; 347 assigned-clock-rates = <49152000>; 242 assigned-clock-rates = <49152000>; 348 status = "okay"; 243 status = "okay"; 349 }; 244 }; 350 245 351 &snvs_pwrkey { 246 &snvs_pwrkey { 352 status = "okay"; 247 status = "okay"; 353 }; 248 }; 354 249 355 &uart1 { 250 &uart1 { 356 pinctrl-names = "default"; 251 pinctrl-names = "default"; 357 pinctrl-0 = <&pinctrl_uart1>; 252 pinctrl-0 = <&pinctrl_uart1>; 358 status = "okay"; 253 status = "okay"; 359 }; 254 }; 360 255 361 &uart2 { 256 &uart2 { 362 pinctrl-names = "default"; 257 pinctrl-names = "default"; 363 pinctrl-0 = <&pinctrl_uart2>; 258 pinctrl-0 = <&pinctrl_uart2>; 364 status = "okay"; 259 status = "okay"; 365 }; 260 }; 366 261 367 /* console */ 262 /* console */ 368 &uart3 { 263 &uart3 { 369 pinctrl-names = "default"; 264 pinctrl-names = "default"; 370 pinctrl-0 = <&pinctrl_uart3>; 265 pinctrl-0 = <&pinctrl_uart3>; 371 status = "okay"; 266 status = "okay"; 372 }; 267 }; 373 268 >> 269 /* UART4 is assigned to Cortex-M4 */ 374 &usdhc2 { 270 &usdhc2 { 375 pinctrl-names = "default", "state_100m 271 pinctrl-names = "default", "state_100mhz", "state_200mhz"; 376 pinctrl-0 = <&pinctrl_usdhc2>, <&pinct 272 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; 377 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, 273 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; 378 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, 274 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; 379 bus-width = <4>; 275 bus-width = <4>; 380 cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW> 276 cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; 381 disable-wp; 277 disable-wp; 382 no-mmc; 278 no-mmc; 383 no-sdio; 279 no-sdio; 384 vmmc-supply = <®_usdhc2_vmmc>; 280 vmmc-supply = <®_usdhc2_vmmc>; 385 status = "okay"; 281 status = "okay"; 386 }; 282 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.