[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1359445755-1677-1-git-send-email-b13634@freescale.com>
Date: Tue, 29 Jan 2013 15:49:15 +0800
From: Gary Zhang <b13634@...escale.com>
To: <linux@....linux.org.uk>, <shawn.guo@...aro.org>
CC: <linux-kernel@...r.kernel.org>
Subject: [PATCH 1/4] ARM: dts: add support for wm8962 in imx6q sabresd
to support for wm8962, add I2C/I2S/clk/fixed regulator and
other related supports
Signed-off-by: Gary Zhang <b13634@...escale.com>
---
arch/arm/boot/dts/imx6q-sabresd.dts | 76 +++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/imx6q.dtsi | 23 ++++++++++
2 files changed, 99 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/imx6q-sabresd.dts b/arch/arm/boot/dts/imx6q-sabresd.dts
index a424025..383fcf0 100644
--- a/arch/arm/boot/dts/imx6q-sabresd.dts
+++ b/arch/arm/boot/dts/imx6q-sabresd.dts
@@ -29,6 +29,10 @@
pinctrl-0 = <&pinctrl_uart1_1>;
status = "okay";
};
+ ssi2: ssi@...2c000 {
+ fsl,mode = "i2s-slave";
+ status = "okay";
+ };
};
iomuxc@...e0000 {
@@ -73,6 +77,33 @@
wp-gpios = <&gpio2 1 0>;
status = "okay";
};
+
+ audmux@...d8000 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_audmux_2>;
+ };
+
+ i2c@...a0000 { /* I2C1 */
+ status = "okay";
+ clock-frequency = <100000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_i2c1_2>;
+
+ codec: wm8962@1a {
+ compatible = "fsl,wm8962";
+ reg = <0x1a>;
+ clocks = <&clks 169>;
+ DCVDD-supply = <®_1p8v>;
+ DBVDD-supply = <®_1p8v>;
+ AVDD-supply = <®_1p8v>;
+ CPVDD-supply = <®_1p8v>;
+ MICVDD-supply = <®_3p3v>;
+ PLLVDD-supply = <®_1p8v>;
+ SPKVDD1-supply = <®_4p2v>;
+ SPKVDD2-supply = <®_4p2v>;
+ };
+ };
};
};
@@ -91,4 +122,49 @@
linux,code = <114>; /* KEY_VOLUMEDOWN */
};
};
+ regulators {
+ compatible = "simple-bus";
+
+ reg_1p8v: 1p8v {
+ compatible = "regulator-fixed";
+ regulator-name = "1P8V";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ enable-active-high;
+ };
+ reg_3p3v: 3p3v {
+ compatible = "regulator-fixed";
+ regulator-name = "3P3V";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ enable-active-high;
+ };
+ reg_4p2v: 4p2v {
+ compatible = "regulator-fixed";
+ regulator-name = "4P2V";
+ regulator-min-microvolt = <4200000>;
+ regulator-max-microvolt = <4200000>;
+ gpio = <&gpio4 10 0>;
+ regulator-always-on;
+ regulator-boot-on;
+ enable-active-high;
+ };
+ };
+
+ sound {
+ compatible = "fsl,imx6q-sabresd-wm8962",
+ "fsl,imx-audio-wm8962";
+ model = "imx6q-sabresd-wm8962";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_clko_1>;
+ ssi-controller = <&ssi2>;
+ audio-codec = <&codec>;
+ audio-routing =
+ "Headphone Jack", "HPOUTL",
+ "Headphone Jack", "HPOUTR";
+ mux-int-port = <2>;
+ mux-ext-port = <3>;
+ };
};
diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi
index d6265ca..b612269 100644
--- a/arch/arm/boot/dts/imx6q.dtsi
+++ b/arch/arm/boot/dts/imx6q.dtsi
@@ -582,6 +582,23 @@
3 0x80000000 /* MX6Q_PAD_SD2_DAT1__AUDMUX_AUD4_TXFS */
>;
};
+
+ pinctrl_audmux_2: audmux-2 {
+ fsl,pins = <
+ 1117 0x80000000 /* MX6Q_PAD_CSI0_DAT7__AUDMUX_AUD3_RXD */
+ 1093 0x80000000 /* MX6Q_PAD_CSI0_DAT4__AUDMUX_AUD3_TXC */
+ 1101 0x80000000 /* MX6Q_PAD_CSI0_DAT5__AUDMUX_AUD3_TXD */
+ 1109 0x80000000 /* MX6Q_PAD_CSI0_DAT6__AUDMUX_AUD3_TXFS */
+ >;
+ };
+ };
+
+ clko {
+ pinctrl_clko_1: clkogrp-1 {
+ fsl,pins = <
+ 953 0x130b0 /* MX6Q_PAD_GPIO_0__CCM_CLKO */
+ >;
+ };
};
ecspi1 {
@@ -670,6 +687,12 @@
196 0x4001b8b1 /* MX6Q_PAD_EIM_D28__I2C1_SDA */
>;
};
+ pinctrl_i2c1_2: i2c1grp-2 {
+ fsl,pins = <
+ 1125 0x4001b8b1 /* MX6Q_PAD_CSI0_DAT8__I2C1_SDA */
+ 1133 0x4001b8b1 /* MX6Q_PAD_CSI0_DAT9__I2C1_SCL */
+ >;
+ };
};
uart1 {
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists