Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/
0004  */
0005 
0006 #include "dra74-ipu-dsp-common.dtsi"
0007 #include <dt-bindings/gpio/gpio.h>
0008 #include <dt-bindings/clock/ti-dra7-atl.h>
0009 #include <dt-bindings/input/input.h>
0010 
0011 / {
0012         chosen {
0013                 stdout-path = &uart1;
0014         };
0015 
0016         extcon_usb1: extcon_usb1 {
0017                 compatible = "linux,extcon-usb-gpio";
0018                 id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
0019         };
0020 
0021         extcon_usb2: extcon_usb2 {
0022                 compatible = "linux,extcon-usb-gpio";
0023                 id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
0024         };
0025 
0026         sound0: sound0 {
0027                 compatible = "simple-audio-card";
0028                 simple-audio-card,name = "DRA7xx-EVM";
0029                 simple-audio-card,widgets =
0030                         "Headphone", "Headphone Jack",
0031                         "Line", "Line Out",
0032                         "Microphone", "Mic Jack",
0033                         "Line", "Line In";
0034                 simple-audio-card,routing =
0035                         "Headphone Jack",       "HPLOUT",
0036                         "Headphone Jack",       "HPROUT",
0037                         "Line Out",             "LLOUT",
0038                         "Line Out",             "RLOUT",
0039                         "MIC3L",                "Mic Jack",
0040                         "MIC3R",                "Mic Jack",
0041                         "Mic Jack",             "Mic Bias",
0042                         "LINE1L",               "Line In",
0043                         "LINE1R",               "Line In";
0044                 simple-audio-card,format = "dsp_b";
0045                 simple-audio-card,bitclock-master = <&sound0_master>;
0046                 simple-audio-card,frame-master = <&sound0_master>;
0047                 simple-audio-card,bitclock-inversion;
0048 
0049                 sound0_master: simple-audio-card,cpu {
0050                         sound-dai = <&mcasp3>;
0051                         system-clock-frequency = <5644800>;
0052                 };
0053 
0054                 simple-audio-card,codec {
0055                         sound-dai = <&tlv320aic3106>;
0056                         clocks = <&atl_clkin2_ck>;
0057                 };
0058         };
0059 
0060         leds {
0061                 compatible = "gpio-leds";
0062                 led0 {
0063                         label = "dra7:usr1";
0064                         gpios = <&pcf_lcd 4 GPIO_ACTIVE_LOW>;
0065                         default-state = "off";
0066                 };
0067 
0068                 led1 {
0069                         label = "dra7:usr2";
0070                         gpios = <&pcf_lcd 5 GPIO_ACTIVE_LOW>;
0071                         default-state = "off";
0072                 };
0073 
0074                 led2 {
0075                         label = "dra7:usr3";
0076                         gpios = <&pcf_lcd 6 GPIO_ACTIVE_LOW>;
0077                         default-state = "off";
0078                 };
0079 
0080                 led3 {
0081                         label = "dra7:usr4";
0082                         gpios = <&pcf_lcd 7 GPIO_ACTIVE_LOW>;
0083                         default-state = "off";
0084                 };
0085         };
0086 
0087         gpio_keys {
0088                 compatible = "gpio-keys";
0089                 #address-cells = <1>;
0090                 #size-cells = <0>;
0091                 autorepeat;
0092 
0093                 USER1 {
0094                         label = "btnUser1";
0095                         linux,code = <BTN_0>;
0096                         gpios = <&pcf_lcd 2 GPIO_ACTIVE_LOW>;
0097                 };
0098 
0099                 USER2 {
0100                         label = "btnUser2";
0101                         linux,code = <BTN_1>;
0102                         gpios = <&pcf_lcd 3 GPIO_ACTIVE_LOW>;
0103                 };
0104         };
0105 };
0106 
0107 &i2c3 {
0108         status = "okay";
0109         clock-frequency = <400000>;
0110 };
0111 
0112 &mcspi1 {
0113         status = "okay";
0114 };
0115 
0116 &mcspi2 {
0117         status = "okay";
0118 };
0119 
0120 &uart1 {
0121         status = "okay";
0122         interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
0123                               <&dra7_pmx_core 0x3e0>;
0124 };
0125 
0126 &uart2 {
0127         status = "okay";
0128 };
0129 
0130 &uart3 {
0131         status = "okay";
0132 };
0133 
0134 &qspi {
0135         status = "okay";
0136 
0137         spi-max-frequency = <76800000>;
0138         flash@0 {
0139                 compatible = "s25fl256s1";
0140                 spi-max-frequency = <76800000>;
0141                 reg = <0>;
0142                 spi-tx-bus-width = <1>;
0143                 spi-rx-bus-width = <4>;
0144                 #address-cells = <1>;
0145                 #size-cells = <1>;
0146 
0147                 /* MTD partition table.
0148                  * The ROM checks the first four physical blocks
0149                  * for a valid file to boot and the flash here is
0150                  * 64KiB block size.
0151                  */
0152                 partition@0 {
0153                         label = "QSPI.SPL";
0154                         reg = <0x00000000 0x000010000>;
0155                 };
0156                 partition@1 {
0157                         label = "QSPI.SPL.backup1";
0158                         reg = <0x00010000 0x00010000>;
0159                 };
0160                 partition@2 {
0161                         label = "QSPI.SPL.backup2";
0162                         reg = <0x00020000 0x00010000>;
0163                 };
0164                 partition@3 {
0165                         label = "QSPI.SPL.backup3";
0166                         reg = <0x00030000 0x00010000>;
0167                 };
0168                 partition@4 {
0169                         label = "QSPI.u-boot";
0170                         reg = <0x00040000 0x00100000>;
0171                 };
0172                 partition@5 {
0173                         label = "QSPI.u-boot-spl-os";
0174                         reg = <0x00140000 0x00080000>;
0175                 };
0176                 partition@6 {
0177                         label = "QSPI.u-boot-env";
0178                         reg = <0x001c0000 0x00010000>;
0179                 };
0180                 partition@7 {
0181                         label = "QSPI.u-boot-env.backup1";
0182                         reg = <0x001d0000 0x0010000>;
0183                 };
0184                 partition@8 {
0185                         label = "QSPI.kernel";
0186                         reg = <0x001e0000 0x0800000>;
0187                 };
0188                 partition@9 {
0189                         label = "QSPI.file-system";
0190                         reg = <0x009e0000 0x01620000>;
0191                 };
0192         };
0193 };
0194 
0195 &omap_dwc3_1 {
0196         extcon = <&extcon_usb1>;
0197 };
0198 
0199 &usb1 {
0200         dr_mode = "otg";
0201         extcon = <&extcon_usb1>;
0202 };
0203 
0204 &omap_dwc3_2 {
0205         extcon = <&extcon_usb2>;
0206 };
0207 
0208 &usb2 {
0209         dr_mode = "host";
0210         extcon = <&extcon_usb2>;
0211 };
0212 
0213 &atl {
0214         assigned-clocks = <&abe_dpll_sys_clk_mux>,
0215                           <&atl_clkctrl DRA7_ATL_ATL_CLKCTRL 26>,
0216                           <&dpll_abe_ck>,
0217                           <&dpll_abe_m2x2_ck>,
0218                           <&atl_clkin2_ck>;
0219         assigned-clock-parents = <&sys_clkin2>, <&dpll_abe_m2_ck>;
0220         assigned-clock-rates = <0>, <0>, <180633600>, <361267200>, <5644800>;
0221 
0222         status = "okay";
0223 
0224         atl2 {
0225                 bws = <DRA7_ATL_WS_MCASP2_FSX>;
0226                 aws = <DRA7_ATL_WS_MCASP3_FSX>;
0227         };
0228 };
0229 
0230 &mcasp3 {
0231         #sound-dai-cells = <0>;
0232 
0233         assigned-clocks = <&l4per2_clkctrl DRA7_L4PER2_MCASP3_CLKCTRL 24>;
0234         assigned-clock-parents = <&atl_clkin2_ck>;
0235 
0236         status = "okay";
0237 
0238         op-mode = <0>;          /* MCASP_IIS_MODE */
0239         tdm-slots = <2>;
0240         /* 4 serializer */
0241         serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
0242                 1 2 0 0
0243         >;
0244         tx-num-evt = <32>;
0245         rx-num-evt = <32>;
0246 };
0247 
0248 &pcie1_rc {
0249         status = "okay";
0250 };
0251 
0252 &mmc4 {
0253         bus-width = <4>;
0254         cap-power-off-card;
0255         keep-power-in-suspend;
0256         non-removable;
0257         #address-cells = <1>;
0258         #size-cells = <0>;
0259         wifi@2 {
0260                 compatible = "ti,wl1835";
0261                 reg = <2>;
0262                 interrupt-parent = <&gpio5>;
0263                 interrupts = <7 IRQ_TYPE_EDGE_RISING>;
0264         };
0265 };