Skip to contentSkip to conversation

ARM: at91/dt: sama5d3: move wm8904 codec to i2c1

PATCH New Josh Wu 2 participants 4 messages Dec 9, 2014 – Dec 10, 2014 Device tree bindings

lore
Share & tools
lore

Josh Wu

author
#0 lore raw

PATCH 1/2 ARM: at91/dt: sama5d3: move wm8904 codec to i2c1

Since from rev.D MB, the wm8904 is moved to i2c1.
This patch will adapt to this change.

---
 arch/arm/boot/dts/sama5d3xmb.dtsi | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
arch/arm/boot/dts/sama5d3xmb.dtsi +1 -6
index 49c10d3..74bc633 100644
@@ -38,12 +38,7 @@
 				atmel,clk-from-rk-pin;
 			};
 
-			/*
-			 * i2c0 conflicts with ISI:
-			 * disable it to allow the use of ISI
-			 * can not enable audio when i2c0 disabled
-			 */
-			i2c0: i2c at f0014000 {
+			i2c1: i2c at f0018000 {
 				wm8904: wm8904 at 1a {
 					compatible = "wm8904";
 					reg = <0x1a>;
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 2/2 ARM: at91/dt: sama5d3: enable D2 as the heartbeat LED

This D2 led is aviable for all sama5d3x-ek board. So make it as heartbeat led.

---
 arch/arm/boot/dts/sama5d3xcm.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/sama5d3xcm.dtsi +1 -0
index 962dc28..5a57c45 100644
@@ -122,6 +122,7 @@
 		d2 {
 			label = "d2";
 			gpios = <&pioE 25 GPIO_ACTIVE_LOW>;	/* PE25, conflicts with A25, RXD2 */
+			linux,default-trigger = "heartbeat";
 		};
 	};
 };
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 ARM: at91/dt: sama5d3: enable D2 as the heartbeat LED

Le 09/12/2014 11:54, Josh Wu a ?crit :

Quoted 4 lines

This D2 led is aviable for all sama5d3x-ek board. So make it as heartbeat led.

and queued on at91-3.20-dt. Thanks, bye.

Quoted 17 lines
---
 arch/arm/boot/dts/sama5d3xcm.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/sama5d3xcm.dtsi +1 -0
index 962dc28..5a57c45 100644
@@ -122,6 +122,7 @@
 		d2 {
 			label = "d2";
 			gpios = <&pioE 25 GPIO_ACTIVE_LOW>;	/* PE25, conflicts with A25, RXD2 */
+			linux,default-trigger = "heartbeat";
 		};
 	};
 };
Signature · 1 line
Nicolas Ferre
#3 lore raw

PATCH 1/2 ARM: at91/dt: sama5d3: move wm8904 codec to i2c1

In reply to Josh Wu

Le 09/12/2014 11:54, Josh Wu a ?crit :

Quoted 2 lines

Since from rev.D MB, the wm8904 is moved to i2c1.
This patch will adapt to this change.

I'd like a more generic way of dealing with board revisions. So, let's keep it like it is for now.

Bye,

Quoted 24 lines
---
 arch/arm/boot/dts/sama5d3xmb.dtsi | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
arch/arm/boot/dts/sama5d3xmb.dtsi +1 -6
index 49c10d3..74bc633 100644
@@ -38,12 +38,7 @@
 				atmel,clk-from-rk-pin;
 			};
 
-			/*
-			 * i2c0 conflicts with ISI:
-			 * disable it to allow the use of ISI
-			 * can not enable audio when i2c0 disabled
-			 */
-			i2c0: i2c at f0014000 {
+			i2c1: i2c at f0018000 {
 				wm8904: wm8904 at 1a {
 					compatible = "wm8904";
 					reg = <0x1a>;
Signature · 1 line
Nicolas Ferre