aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisael Lopez Cruz2014-11-11 12:08:48 -0600
committerMisael Lopez Cruz2015-01-23 14:13:31 -0600
commit344bd4ec67fa0b0e76b933592fcac63691812f30 (patch)
tree99367302b908059776beaeeea0a63c7336e266a1
parent82c05b43e2c49f4f94d0e43ac6f7eb97a05d2a16 (diff)
downloadkernel-audio-344bd4ec67fa0b0e76b933592fcac63691812f30.tar.gz
kernel-audio-344bd4ec67fa0b0e76b933592fcac63691812f30.tar.xz
kernel-audio-344bd4ec67fa0b0e76b933592fcac63691812f30.zip
ARM: DTS: dra72-evm: Add radio entry
Add the DT for the radio which uses a helper driver to get the resources needed by the DSP (mostly McASP2 and GPIO). There are two possibilities for radio rendering: * ARM rendering: Radio audio is sent to the ARM side and rendered through McASP3 * DSP rendering: The DSP side directly renders through McASP6. In this case, the ARM side only takes care of requesting the required PM resources for McASP6 Change-Id: Ie299be76f96d5232568fa8cec855b8a075e36ab1 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
-rw-r--r--arch/arm/boot/dts/dra72-evm.dts79
1 files changed, 79 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/dra72-evm.dts b/arch/arm/boot/dts/dra72-evm.dts
index 1dbfc240e489..1271fd92c822 100644
--- a/arch/arm/boot/dts/dra72-evm.dts
+++ b/arch/arm/boot/dts/dra72-evm.dts
@@ -155,6 +155,14 @@
155 "LINE1L", "Line In", 155 "LINE1L", "Line In",
156 "LINE1R", "Line In"; 156 "LINE1R", "Line In";
157 }; 157 };
158
159 radio {
160 compatible = "ti,dra7xx_radio";
161 gpios = <&gpio6 20 0>;
162
163 pinctrl-names = "default";
164 pinctrl-0 = <&radio_pins>;
165 };
158}; 166};
159 167
160&dra7_pmx_core { 168&dra7_pmx_core {
@@ -311,6 +319,21 @@
311 >; 319 >;
312 }; 320 };
313 321
322 mcasp2_pins: pinmux_mcasp2_pins {
323 pinctrl-single,pins = <
324 0x02F4 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_aclkx */
325 0x02F8 (PIN_INPUT_SLEW | MUX_MODE0) /* mcasp2_afsx */
326 0x0304 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_axr0 */
327 0x0308 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_axr1 */
328 0x030C (PIN_INPUT_SLEW | MUX_MODE0) /* mcasp2_axr2 */
329 0x0310 (PIN_INPUT_SLEW | MUX_MODE0) /* mcasp2_axr3 */
330 0x0314 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_axr4 */
331 0x0318 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_axr5 */
332 0x031c (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_axr6 */
333 0x0320 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_axr7 */
334 >;
335 };
336
314 mcasp3_pins: pinmux_mcasp3_pins { 337 mcasp3_pins: pinmux_mcasp3_pins {
315 pinctrl-single,pins = < 338 pinctrl-single,pins = <
316 0x324 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp3_aclkx */ 339 0x324 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp3_aclkx */
@@ -329,6 +352,15 @@
329 >; 352 >;
330 }; 353 };
331 354
355 mcasp6_pins: pinmux_mcasp6_pins {
356 pinctrl-single,pins = <
357 0x2d4 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mcasp6_axr0 */
358 0x2d8 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcasp6_axr1 */
359 0x2dc (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mcasp6_clkx */
360 0x2e0 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcasp6_fsx */
361 >;
362 };
363
332 usb1_pins: pinmux_usb1_pins { 364 usb1_pins: pinmux_usb1_pins {
333 pinctrl-single,pins = < 365 pinctrl-single,pins = <
334 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */ 366 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
@@ -372,6 +404,14 @@
372 0x418 (MUX_MODE15) /* wakeup0.off */ 404 0x418 (MUX_MODE15) /* wakeup0.off */
373 >; 405 >;
374 }; 406 };
407
408 radio_pins: pinmux_radio_pins {
409 pinctrl-single,pins = <
410 0x0334 (PIN_INPUT | MUX_MODE4) /* i2c4_sda */
411 0x0338 (PIN_INPUT | MUX_MODE4) /* i2c4_scl */
412 0x02A0 (PIN_INPUT | MUX_MODE14) /* gpio6_20 */
413 >;
414 };
375}; 415};
376 416
377&i2c1 { 417&i2c1 {
@@ -817,12 +857,33 @@
817 857
818 status = "okay"; 858 status = "okay";
819 859
860 atl1 {
861 bws = <DRA7_ATL_WS_MCASP2_FSX>;
862 aws = <DRA7_ATL_WS_MCASP6_FSX>;
863 };
864
820 atl2 { 865 atl2 {
821 bws = <DRA7_ATL_WS_MCASP2_FSX>; 866 bws = <DRA7_ATL_WS_MCASP2_FSX>;
822 aws = <DRA7_ATL_WS_MCASP3_FSX>; 867 aws = <DRA7_ATL_WS_MCASP3_FSX>;
823 }; 868 };
824}; 869};
825 870
871&mcasp2 {
872 pinctrl-names = "default";
873 pinctrl-0 = <&mcasp2_pins>;
874
875 fck_parent = "atl_clkin2_ck";
876
877 status = "okay";
878
879 op-mode = <0>; /* MCASP_IIS_MODE */
880 tdm-slots = <2>;
881 /* 8 serializer */
882 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
883 1 1 1 1 1 1 1 1
884 >;
885};
886
826&mcasp3 { 887&mcasp3 {
827 pinctrl-names = "default", "sleep"; 888 pinctrl-names = "default", "sleep";
828 pinctrl-0 = <&mcasp3_pins>; 889 pinctrl-0 = <&mcasp3_pins>;
@@ -840,6 +901,24 @@
840 >; 901 >;
841}; 902};
842 903
904&mcasp6 {
905 pinctrl-names = "default";
906 pinctrl-0 = <&mcasp6_pins>;
907
908 fck_parent = "atl_clkin1_ck";
909
910 status = "okay";
911
912 op-mode = <0>; /* MCASP_IIS_MODE */
913 tdm-slots = <8>;
914 /* 4 serializer */
915 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
916 1 2 0 0
917 >;
918 tx-num-evt = <8>;
919 rx-num-evt = <8>;
920};
921
843&omap_dwc3_1 { 922&omap_dwc3_1 {
844 extcon = <&extcon1>; 923 extcon = <&extcon1>;
845}; 924};