Jan Kundrát | d0af3ae | 2017-03-31 14:49:09 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | /dts-v1/; |
| 9 | |
| 10 | #include "am33xx.dtsi" |
| 11 | #include "am335x-bone-common.dtsi" |
| 12 | #include <dt-bindings/display/tda998x.h> |
| 13 | |
| 14 | / { |
| 15 | model = "TI AM335x BeagleBone Black (CzechLight)"; |
| 16 | compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx"; |
| 17 | }; |
| 18 | |
| 19 | &ldo3_reg { |
| 20 | regulator-min-microvolt = <1800000>; |
| 21 | regulator-max-microvolt = <1800000>; |
| 22 | regulator-always-on; |
| 23 | }; |
| 24 | |
| 25 | &mmc1 { |
| 26 | vmmc-supply = <&vmmcsd_fixed>; |
| 27 | }; |
| 28 | |
| 29 | &mmc2 { |
| 30 | vmmc-supply = <&vmmcsd_fixed>; |
| 31 | pinctrl-names = "default"; |
| 32 | pinctrl-0 = <&emmc_pins>; |
| 33 | bus-width = <8>; |
| 34 | status = "okay"; |
| 35 | }; |
| 36 | |
| 37 | &am33xx_pinmux { |
| 38 | nxp_hdmi_bonelt_pins: nxp_hdmi_bonelt_pins { |
| 39 | pinctrl-single,pins = < |
| 40 | AM33XX_IOPAD(0x9b0, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr0 */ |
| 41 | AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */ |
| 42 | AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */ |
| 43 | AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */ |
| 44 | AM33XX_IOPAD(0x8ac, PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */ |
| 45 | AM33XX_IOPAD(0x8b0, PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */ |
| 46 | AM33XX_IOPAD(0x8b4, PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */ |
| 47 | AM33XX_IOPAD(0x8b8, PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */ |
| 48 | AM33XX_IOPAD(0x8bc, PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */ |
| 49 | AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */ |
| 50 | AM33XX_IOPAD(0x8c4, PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */ |
| 51 | AM33XX_IOPAD(0x8c8, PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */ |
| 52 | AM33XX_IOPAD(0x8cc, PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */ |
| 53 | AM33XX_IOPAD(0x8d0, PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */ |
| 54 | AM33XX_IOPAD(0x8d4, PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */ |
| 55 | AM33XX_IOPAD(0x8d8, PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */ |
| 56 | AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */ |
| 57 | AM33XX_IOPAD(0x8e0, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* lcd_vsync.lcd_vsync */ |
| 58 | AM33XX_IOPAD(0x8e4, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* lcd_hsync.lcd_hsync */ |
| 59 | AM33XX_IOPAD(0x8e8, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* lcd_pclk.lcd_pclk */ |
| 60 | AM33XX_IOPAD(0x8ec, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */ |
| 61 | >; |
| 62 | }; |
| 63 | nxp_hdmi_bonelt_off_pins: nxp_hdmi_bonelt_off_pins { |
| 64 | pinctrl-single,pins = < |
| 65 | AM33XX_IOPAD(0x9b0, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr0 */ |
| 66 | >; |
| 67 | }; |
| 68 | |
| 69 | mcasp0_pins: mcasp0_pins { |
| 70 | pinctrl-single,pins = < |
| 71 | AM33XX_IOPAD(0x9ac, PIN_INPUT_PULLUP | MUX_MODE0) /* mcasp0_ahcklx.mcasp0_ahclkx */ |
| 72 | AM33XX_IOPAD(0x99c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mcasp0_ahclkr.mcasp0_axr2*/ |
| 73 | AM33XX_IOPAD(0x994, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mcasp0_fsx.mcasp0_fsx */ |
| 74 | AM33XX_IOPAD(0x990, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp0_aclkx.mcasp0_aclkx */ |
| 75 | AM33XX_IOPAD(0x86c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a11.GPIO1_27 */ |
| 76 | >; |
| 77 | }; |
| 78 | }; |
| 79 | |
| 80 | &lcdc { |
| 81 | status = "okay"; |
| 82 | port { |
| 83 | lcdc_0: endpoint@0 { |
| 84 | remote-endpoint = <&hdmi_0>; |
| 85 | }; |
| 86 | }; |
| 87 | }; |
| 88 | |
| 89 | &i2c0 { |
| 90 | tda19988: tda19988 { |
| 91 | compatible = "nxp,tda998x"; |
| 92 | reg = <0x70>; |
| 93 | |
| 94 | pinctrl-names = "default", "off"; |
| 95 | pinctrl-0 = <&nxp_hdmi_bonelt_pins>; |
| 96 | pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>; |
| 97 | |
| 98 | #sound-dai-cells = <0>; |
| 99 | audio-ports = < TDA998x_I2S 0x03>; |
| 100 | |
| 101 | ports { |
| 102 | port@0 { |
| 103 | hdmi_0: endpoint@0 { |
| 104 | remote-endpoint = <&lcdc_0>; |
| 105 | }; |
| 106 | }; |
| 107 | }; |
| 108 | }; |
| 109 | }; |
| 110 | |
| 111 | &rtc { |
| 112 | system-power-controller; |
| 113 | }; |
| 114 | |
| 115 | &mcasp0 { |
| 116 | #sound-dai-cells = <0>; |
| 117 | pinctrl-names = "default"; |
| 118 | pinctrl-0 = <&mcasp0_pins>; |
| 119 | status = "okay"; |
| 120 | op-mode = <0>; /* MCASP_IIS_MODE */ |
| 121 | tdm-slots = <2>; |
| 122 | serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ |
| 123 | 0 0 1 0 |
| 124 | >; |
| 125 | tx-num-evt = <32>; |
| 126 | rx-num-evt = <32>; |
| 127 | }; |
| 128 | |
| 129 | / { |
| 130 | clk_mcasp0_fixed: clk_mcasp0_fixed { |
| 131 | #clock-cells = <0>; |
| 132 | compatible = "fixed-clock"; |
| 133 | clock-frequency = <24576000>; |
| 134 | }; |
| 135 | |
| 136 | clk_mcasp0: clk_mcasp0 { |
| 137 | #clock-cells = <0>; |
| 138 | compatible = "gpio-gate-clock"; |
| 139 | clocks = <&clk_mcasp0_fixed>; |
| 140 | enable-gpios = <&gpio1 27 0>; /* BeagleBone Black Clk enable on GPIO1_27 */ |
| 141 | }; |
| 142 | |
| 143 | sound { |
| 144 | compatible = "simple-audio-card"; |
| 145 | simple-audio-card,name = "TI BeagleBone Black"; |
| 146 | simple-audio-card,format = "i2s"; |
| 147 | simple-audio-card,bitclock-master = <&dailink0_master>; |
| 148 | simple-audio-card,frame-master = <&dailink0_master>; |
| 149 | |
| 150 | dailink0_master: simple-audio-card,cpu { |
| 151 | sound-dai = <&mcasp0>; |
| 152 | clocks = <&clk_mcasp0>; |
| 153 | }; |
| 154 | |
| 155 | simple-audio-card,codec { |
| 156 | sound-dai = <&tda19988>; |
| 157 | }; |
| 158 | }; |
| 159 | }; |
| 160 | |
| 161 | /* These modifications were Written by Jan Kundrát <jan.kundrat@cesnet.cz> for CESNET, a.l.e. */ |
| 162 | |
| 163 | &am33xx_pinmux { |
| 164 | i2c1_pins: pinmux_i2c1_pins { |
| 165 | pinctrl-single,pins = < |
| 166 | AM33XX_IOPAD(0x958, SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE2) /* P9_18, I2C1_SDA */ |
| 167 | AM33XX_IOPAD(0x95c, SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE2) /* P9_17, I2C1_SCL */ |
| 168 | >; |
| 169 | }; |
| 170 | |
| 171 | i2c2_pins: pinmux_i2c2_pins { |
| 172 | pinctrl-single,pins = < |
| 173 | AM33XX_IOPAD(0x978, SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE3) /* P9_20, I2C2_SDA */ |
| 174 | AM33XX_IOPAD(0x97c, SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE3) /* P9_19, I2C2_SCL */ |
| 175 | >; |
| 176 | }; |
| 177 | |
| 178 | uart1_pins: pinmux_uart1_pins { |
| 179 | pinctrl-single,pins = < |
| 180 | AM33XX_IOPAD(0x980, PIN_INPUT | MUX_MODE0) /* P9_26, uart1_rxd */ |
| 181 | AM33XX_IOPAD(0x984, PIN_OUTPUT | MUX_MODE0) /* P9_24, uart1_txd */ |
| 182 | >; |
| 183 | }; |
| 184 | |
| 185 | uart2_pins: pinmux_uart2_pins { |
| 186 | pinctrl-single,pins = < |
| 187 | AM33XX_IOPAD(0x950, PIN_INPUT | MUX_MODE1) /* P9_22, uart2_rxd */ |
| 188 | AM33XX_IOPAD(0x954, PIN_OUTPUT | MUX_MODE1) /* P9_21, uart2_txd */ |
| 189 | >; |
| 190 | }; |
| 191 | |
| 192 | /* UART3: mode 1, rx N/A, tx p9_42 -> not used */ |
| 193 | |
| 194 | uart4_pins: pinmux_uart4_pins { |
| 195 | pinctrl-single,pins = < |
| 196 | AM33XX_IOPAD(0x870, PIN_INPUT | MUX_MODE6) /* P9_11, uart4_rxd */ |
| 197 | AM33XX_IOPAD(0x874, PIN_OUTPUT | MUX_MODE6) /* P9_13, uart4_txd */ |
| 198 | >; |
| 199 | }; |
| 200 | |
| 201 | uart5_pins: pinmux_uart5_pins { |
| 202 | pinctrl-single,pins = < |
| 203 | AM33XX_IOPAD(0x8c4, PIN_INPUT | MUX_MODE4) /* P8_38, uart5_rxd */ |
| 204 | AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE4) /* P8_37, uart5_txd */ |
| 205 | >; |
| 206 | }; |
| 207 | }; |
| 208 | |
| 209 | &i2c1 { |
| 210 | pinctrl-names = "default"; |
| 211 | pinctrl-0 = <&i2c1_pins>; |
| 212 | clock-frequency = <100000>; |
| 213 | status = "okay"; |
| 214 | }; |
| 215 | |
| 216 | &i2c2 { |
| 217 | pinctrl-names = "default"; |
| 218 | pinctrl-0 = <&i2c2_pins>; |
| 219 | clock-frequency = <100000>; |
| 220 | status = "okay"; |
| 221 | }; |
| 222 | |
| 223 | &uart1 { |
| 224 | pinctrl-names = "default"; |
| 225 | pinctrl-0 = <&uart1_pins>; |
| 226 | status = "okay"; |
| 227 | }; |
| 228 | |
| 229 | &uart2 { |
| 230 | pinctrl-names = "default"; |
| 231 | pinctrl-0 = <&uart2_pins>; |
| 232 | status = "okay"; |
| 233 | }; |
| 234 | |
| 235 | &uart4 { |
| 236 | pinctrl-names = "default"; |
| 237 | pinctrl-0 = <&uart4_pins>; |
| 238 | status = "okay"; |
| 239 | }; |
| 240 | |
| 241 | &uart5 { |
| 242 | pinctrl-names = "default"; |
| 243 | pinctrl-0 = <&uart5_pins>; |
| 244 | status = "okay"; |
| 245 | }; |
Jan Kundrát | 5a1f5f7 | 2017-04-20 13:56:59 +0200 | [diff] [blame] | 246 | |
| 247 | /delete-node/ &cape_eeprom0; |
| 248 | /delete-node/ &cape_eeprom1; |
| 249 | /delete-node/ &cape_eeprom2; |
| 250 | /delete-node/ &cape_eeprom3; |