aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2020-05-11 05:59:14 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2020-05-11 05:59:14 -0500
commitc0ed0b97d3a0a8466b49279ab8c7782c541ec1be (patch)
tree6cd347cd4b2d7e96a7e35bf2944bd1f820d911df
parent0a0e0462616c8349adbcb9c9cf77fcb5a1db1cde (diff)
parent9256bda34510125b2f81eec7bcdf26522f6a707a (diff)
downloadlinux-dt-c0ed0b97d3a0a8466b49279ab8c7782c541ec1be.tar.gz
Merge pull request #3 in LCPDPUB/ti-upstream-tools from ~A0400824/ti-upstream-tools:peter/wip to master
* commit '9256bda34510125b2f81eec7bcdf26522f6a707a': Makefile: Add test support for am654 GP overlay arm64: dts: ti: Add k3-am654-gp.dtso for audio support
-rw-r--r--Makefile2
-rw-r--r--arch/arm64/boot/dts/ti/k3-am654-gp.dtso133
2 files changed, 134 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 522c794..8bab225 100644
--- a/Makefile
+++ b/Makefile
@@ -103,7 +103,7 @@ dtb-tests-arm += \
am57xx-beagle-x15.dtb,ti/am57xx-evm-common.dtbo,ti/am57xx-evm.dtbo \
am57xx-beagle-x15-revc.dtb,ti/am57xx-evm-common.dtbo,ti/am57xx-evm-reva3.dtbo \
-dtb-tests-arm64 :=
+dtb-tests-arm64 := ti/k3-am654-base-board.dtb,ti/k3-am654-gp.dtbo
comma := ,
diff --git a/arch/arm64/boot/dts/ti/k3-am654-gp.dtso b/arch/arm64/boot/dts/ti/k3-am654-gp.dtso
new file mode 100644
index 0000000..71f5734
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-am654-gp.dtso
@@ -0,0 +1,133 @@
+// SPDX-License-Identifier: GPL-2.0
+/**
+ * DT overlay for GP application board on AM654 EVM
+ *
+ * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
+ */
+
+/dts-v1/;
+/plugin/;
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/k3.h>
+
+/ {
+ fragment@101 {
+ target-path = "/";
+
+ __overlay__ {
+ gp_vcc_5v0: fixedregulator-gp_vcc_5v0 {
+ compatible = "regulator-fixed";
+ regulator-name = "gp_vcc_5v0";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
+ codec_vcc_3v3: fixedregulator-codec_vcc_3v3 {
+ /* LP5912-3.3DRVT */
+ compatible = "regulator-fixed";
+ regulator-name = "codec_vcc_3v3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ vin-supply = <&gp_vcc_5v0>;
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
+ gp_vcc_1v8: fixedregulator-gp_vcc_1v8 {
+ compatible = "regulator-fixed";
+ regulator-name = "gp_vcc_1v8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
+ sound {
+ compatible = "simple-audio-card";
+ simple-audio-card,name = "AM65x-GPEVM";
+ simple-audio-card,widgets =
+ "Headphone", "Headphone Jack",
+ "Line", "Line In";
+ simple-audio-card,routing =
+ "Headphone Jack", "HPLOUT",
+ "Headphone Jack", "HPROUT",
+ "LINE1L", "Line In",
+ "LINE1R", "Line In";
+ simple-audio-card,format = "dsp_b";
+ simple-audio-card,bitclock-master = <&sound_master>;
+ simple-audio-card,frame-master = <&sound_master>;
+ simple-audio-card,bitclock-inversion;
+
+ simple-audio-card,cpu {
+ sound-dai = <&mcasp0>;
+ };
+
+ sound_master: simple-audio-card,codec {
+ sound-dai = <&tlv320aic3106>;
+ system-clock-frequency = <12000000>;
+ };
+ };
+ };
+ };
+};
+
+&main_pmx0 {
+ mcasp0_pins: mcasp0_pins {
+ pinctrl-single,pins = <
+ AM65X_IOPAD(0x01f4, PIN_INPUT, 5) /* (V24) PRG0_PRU0_GPO0.MCASP0_ACLKX */
+ AM65X_IOPAD(0x01f8, PIN_INPUT, 5) /* (W25) PRG0_PRU0_GPO1.MCASP0_AFSX */
+ AM65X_IOPAD(0x0204, PIN_OUTPUT, 5) /* (Y24) PRG0_PRU0_GPO4.MCASP0_AXR0 */
+ AM65X_IOPAD(0x0208, PIN_INPUT, 5) /* (V28) PRG0_PRU0_GPO5.MCASP0_AXR1 */
+ >;
+ };
+
+ aic3106_pins: aic3106_pins {
+ pinctrl-single,pins = <
+ AM65X_IOPAD(0x011c, PIN_OUTPUT, 7) /* (AD19) PRG1_PRU0_GPO15.GPIO0_71 */
+ >;
+ };
+};
+
+&main_i2c0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ tlv320aic3106: tlv320aic3106@1b {
+ #sound-dai-cells = <0>;
+ compatible = "ti,tlv320aic3106";
+ reg = <0x1b>;
+ status = "okay";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&aic3106_pins>;
+
+ gpio-reset = <&main_gpio0 71 GPIO_ACTIVE_LOW>; /* gpio0_71 */
+
+ /* Regulators */
+ AVDD-supply = <&codec_vcc_3v3>;
+ IOVDD-supply = <&gp_vcc_1v8>;
+ DRVDD-supply = <&codec_vcc_3v3>;
+ DVDD-supply = <&gp_vcc_1v8>;
+ };
+};
+
+&mcasp0 {
+ #sound-dai-cells = <0>;
+ status = "okay";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&mcasp0_pins>;
+
+ op-mode = <0>; /* MCASP_IIS_MODE */
+ tdm-slots = <2>;
+ /* 16 serializers */
+ serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
+ 1 2 0 0
+ 0 0 0 0
+ 0 0 0 0
+ 0 0 0 0
+ >;
+ tx-num-evt = <32>;
+ rx-num-evt = <32>;
+};