mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
127 lines
3.1 KiB
Diff
127 lines
3.1 KiB
Diff
|
From 96f0b63db8df533cc619212f41e134cdf112b853 Mon Sep 17 00:00:00 2001
|
||
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
||
|
Date: Wed, 18 Jun 2014 21:55:51 -0600
|
||
|
Subject: [PATCH] imx23 I2C fixes
|
||
|
|
||
|
---
|
||
|
arch/arm/boot/dts/imx23-olinuxino.dts | 35 ++++++++++++++++++++++++++++++
|
||
|
arch/arm/boot/dts/imx23.dtsi | 41 ++++++++++++++++++++++++++++++++++-
|
||
|
2 files changed, 75 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts
|
||
|
index 7e6eef2..5caef60 100644
|
||
|
--- a/arch/arm/boot/dts/imx23-olinuxino.dts
|
||
|
+++ b/arch/arm/boot/dts/imx23-olinuxino.dts
|
||
|
@@ -73,6 +73,25 @@
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
+ i2c0: i2c@80058000 {
|
||
|
+ pinctrl-names = "default";
|
||
|
+ pinctrl-0 = <&i2c1_pins_a>;
|
||
|
+ status = "okay";
|
||
|
+
|
||
|
+ sgtl5000: codec@0a {
|
||
|
+ compatible = "fsl,sgtl5000";
|
||
|
+ reg = <0x0a>;
|
||
|
+ VDDA-supply = <®_3p3v>;
|
||
|
+ VDDIO-supply = <®_3p3v>;
|
||
|
+ };
|
||
|
+
|
||
|
+ at24@51 {
|
||
|
+ compatible = "at24,24c32";
|
||
|
+ pagesize = <32>;
|
||
|
+ reg = <0x51>;
|
||
|
+ };
|
||
|
+ };
|
||
|
+
|
||
|
duart: serial@80070000 {
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&duart_pins_a>;
|
||
|
@@ -113,6 +132,22 @@
|
||
|
startup-delay-us = <300>; /* LAN9215 requires a POR of 200us minimum */
|
||
|
gpio = <&gpio0 17 0>;
|
||
|
};
|
||
|
+
|
||
|
+ reg_3p3v: 3p3v {
|
||
|
+ compatible = "regulator-fixed";
|
||
|
+ regulator-name = "3P3V";
|
||
|
+ regulator-min-microvolt = <3300000>;
|
||
|
+ regulator-max-microvolt = <3300000>;
|
||
|
+ regulator-always-on;
|
||
|
+ };
|
||
|
+ };
|
||
|
+
|
||
|
+ sound {
|
||
|
+ compatible = "fsl,imx28-evk-sgtl5000",
|
||
|
+ "fsl,mxs-audio-sgtl5000";
|
||
|
+ model = "imx28-evk-sgtl5000";
|
||
|
+ saif-controllers = <&saif0 &saif1>;
|
||
|
+ audio-codec = <&sgtl5000>;
|
||
|
};
|
||
|
|
||
|
leds {
|
||
|
diff --git a/arch/arm/boot/dts/imx23.dtsi b/arch/arm/boot/dts/imx23.dtsi
|
||
|
index bbcfb5a..54b6a83 100644
|
||
|
--- a/arch/arm/boot/dts/imx23.dtsi
|
||
|
+++ b/arch/arm/boot/dts/imx23.dtsi
|
||
|
@@ -308,6 +308,39 @@
|
||
|
fsl,voltage = <MXS_VOLTAGE_HIGH>;
|
||
|
fsl,pull-up = <MXS_PULL_ENABLE>;
|
||
|
};
|
||
|
+
|
||
|
+ i2c0_pins_a: i2c0@0 {
|
||
|
+ reg = <0>;
|
||
|
+ fsl,pinmux-ids = <
|
||
|
+ 0x01e0 /* MX23_PAD_I2C_SCL__I2C_SCL */
|
||
|
+ 0x01f0 /* MX23_PAD_I2C_SDA__I2C_SDA */
|
||
|
+ >;
|
||
|
+ fsl,drive-strength = <1>;
|
||
|
+ fsl,voltage = <1>;
|
||
|
+ fsl,pull-up = <1>;
|
||
|
+ };
|
||
|
+
|
||
|
+ i2c1_pins_a: i2c1@0 {
|
||
|
+ reg = <0>;
|
||
|
+ fsl,pinmux-ids = <
|
||
|
+ 0x1171 /* MX23_PAD_LCD_ENABLE__I2C_SCL */
|
||
|
+ 0x1181 /* MX23_PAD_LCD_HSYNC__I2C_SDA */
|
||
|
+ >;
|
||
|
+ fsl,drive-strength = <1>;
|
||
|
+ fsl,voltage = <1>;
|
||
|
+ fsl,pull-up = <1>;
|
||
|
+ };
|
||
|
+
|
||
|
+ i2c2_pins_a: i2c2@0 {
|
||
|
+ reg = <0>;
|
||
|
+ fsl,pinmux-ids = <
|
||
|
+ 0x2031 /* MX23_PAD_SSP1_DATA1__I2C_SCL */
|
||
|
+ 0x2041 /* MX23_PAD_SSP1_DATA2__I2C_SDA */
|
||
|
+ >;
|
||
|
+ fsl,drive-strength = <1>;
|
||
|
+ fsl,voltage = <1>;
|
||
|
+ fsl,pull-up = <1>;
|
||
|
+ };
|
||
|
};
|
||
|
|
||
|
digctl@8001c000 {
|
||
|
@@ -444,8 +477,14 @@
|
||
|
status = "disabled";
|
||
|
};
|
||
|
|
||
|
- i2c@80058000 {
|
||
|
+ i2c0: i2c@80058000 {
|
||
|
+ #address-cells = <1>;
|
||
|
+ #size-cells = <0>;
|
||
|
+ compatible = "fsl,imx23-i2c";
|
||
|
reg = <0x80058000 0x2000>;
|
||
|
+ interrupts = <27 26>;
|
||
|
+ clock-frequency = <100000>;
|
||
|
+ fsl,i2c-dma-channel = <3>;
|
||
|
dmas = <&dma_apbx 3>;
|
||
|
dma-names = "rx-tx";
|
||
|
status = "disabled";
|
||
|
--
|
||
|
1.9.0
|
||
|
|