Skip to contentSkip to conversation

ARM: dts: silk: Add EEPROM and GPIO keys

PATCH Applied Magnus Damm 3 participants 6 messages Feb 19, 2018 – Feb 26, 2018 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover ARM: dts: silk: Add EEPROM and GPIO keys

ARM: dts: silk: Add EEPROM and GPIO keys

[PATCH 01/02] ARM: dts: silk: Add r1ex24002 EEPROM to DT [PATCH 02/02] ARM: dts: silk: Add GPIO keys to DT

This series updates the DTS for the R-Car E2-based Silk board to support an EEPROM connected via I2C and GPIO based tactile switches. Based on the Gose board support and adjusted to fit the board schematics.

---

Developed on top of renesas-devel-20180215-v4.16-rc1

 arch/arm/boot/dts/r8a7794-silk.dts |   61 ++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
#1 lore raw

PATCH 1/2 ARM: dts: silk: Add r1ex24002 EEPROM to DT

From: Magnus Damm <[email protected]>

Extend the Silk board support to include U14 which is an I2C based EEPROM hooked up to the I2C1 bus.

---

 arch/arm/boot/dts/r8a7794-silk.dts |    6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/r8a7794-silk.dts +6 -0
@@ -226,6 +226,12 @@
 				};
 			};
 		};
+
+		eeprom@50 {
+			compatible = "renesas,r1ex24002", "atmel,24c02";
+			reg = <0x50>;
+			pagesize = <16>;
+		};
 	};
 };
 
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 01/02] ARM: dts: silk: Add r1ex24002 EEPROM to DT

Quoted 6 lines · Magnus Damm

From: Magnus Damm <[email protected]>

Extend the Silk board support to include U14 which is an I2C based EEPROM hooked up to the I2C1 bus.

late

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#3 lore raw

PATCH 2/2 ARM: dts: silk: Add GPIO keys to DT

In reply to Magnus Damm

From: Magnus Damm <[email protected]>

Extend the Silk board support to include SW3, SW4, SW6 and SW12. They are all connected via GPIO lines and handled by the gpio-keys driver.

---

 arch/arm/boot/dts/r8a7794-silk.dts |   55 ++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
arch/arm/boot/dts/r8a7794-silk.dts +55 -0
@@ -24,6 +24,7 @@
 /dts-v1/;
 #include "r8a7794.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
 	model = "SILK";
@@ -45,6 +46,60 @@
 		reg = <0 0x40000000 0 0x40000000>;
 	};
 
+	gpio-keys {
+		compatible = "gpio-keys";
+
+		key-3 {
+			gpios = <&gpio5 10 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_3>;
+			label = "SW3";
+			wakeup-source;
+			debounce-interval = <20>;
+		};
+		key-4 {
+			gpios = <&gpio5 11 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_4>;
+			label = "SW4";
+			wakeup-source;
+			debounce-interval = <20>;
+		};
+		key-6 {
+			gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_6>;
+			label = "SW6";
+			wakeup-source;
+			debounce-interval = <20>;
+		};
+		key-a {
+			gpios = <&gpio3 9 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_A>;
+			label = "SW12-1";
+			wakeup-source;
+			debounce-interval = <20>;
+		};
+		key-b {
+			gpios = <&gpio3 10 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_B>;
+			label = "SW12-2";
+			wakeup-source;
+			debounce-interval = <20>;
+		};
+		key-c {
+			gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_C>;
+			label = "SW12-3";
+			wakeup-source;
+			debounce-interval = <20>;
+		};
+		key-d {
+			gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_D>;
+			label = "SW12-4";
+			wakeup-source;
+			debounce-interval = <20>;
+		};
+	};
+
 	d3_3v: regulator-d3-3v {
 		compatible = "regulator-fixed";
 		regulator-name = "D3.3V";
Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 02/02] ARM: dts: silk: Add GPIO keys to DT

Quoted 6 lines · Magnus Damm

From: Magnus Damm <[email protected]>

Extend the Silk board support to include SW3, SW4, SW6 and SW12. They are all connected via GPIO lines and handled by the gpio-keys driver.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

Applied
#5 lore raw
In reply to Magnus Damm
Quoted 10 lines · Magnus Damm

ARM: dts: silk: Add EEPROM and GPIO keys

[PATCH 01/02] ARM: dts: silk: Add r1ex24002 EEPROM to DT [PATCH 02/02] ARM: dts: silk: Add GPIO keys to DT

This series updates the DTS for the R-Car E2-based Silk board to support an EEPROM connected via I2C and GPIO based tactile switches. Based on the Gose board support and adjusted to fit the board schematics.

Thanks, applied.