diff mbox

[RFC,3/3] dts: beaglebone: Portable connector BB_RELAY_4PORT definition

Message ID 1464986273-12039-4-git-send-email-pantelis.antoniou@konsulko.com
State RFC
Headers show

Commit Message

Pantelis Antoniou June 3, 2016, 8:37 p.m. UTC
Example of a portable connector port for the BB_RELAY_4PORT cape

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
---
 arch/arm/boot/dts/am335x-bone-common.dtsi | 48 +++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Comments

Frank Rowand June 27, 2016, 5:56 p.m. UTC | #1
On 06/03/16 13:37, Pantelis Antoniou wrote:
> Example of a portable connector port for the BB_RELAY_4PORT cape
> 
> Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
> ---
>  arch/arm/boot/dts/am335x-bone-common.dtsi | 48 +++++++++++++++++++++++++++++++
>  1 file changed, 48 insertions(+)

Pantelis,

Can you provide a pointer to information about the cape?

Thanks,

Frank

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Pantelis Antoniou June 27, 2016, 6:52 p.m. UTC | #2
Hi Frank,

> On Jun 27, 2016, at 20:56 , Frank Rowand <frowand.list@gmail.com> wrote:
> 
> On 06/03/16 13:37, Pantelis Antoniou wrote:
>> Example of a portable connector port for the BB_RELAY_4PORT cape
>> 
>> Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
>> ---
>> arch/arm/boot/dts/am335x-bone-common.dtsi | 48 +++++++++++++++++++++++++++++++
>> 1 file changed, 48 insertions(+)
> 
> Pantelis,
> 
> Can you provide a pointer to information about the cape?
> 

This is the cape in question.

http://elinux.org/CircuitCo:Relay_Cape

The standard overlay for it is at:

https://github.com/RobertCNelson/bb.org-overlays/blob/master/src/arm/BB-RELAY-4PORT-00A0.dts

> Thanks,
> 
> Frank
> 

Regards

— Pantelis

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi
index 0e73ab6..06f2191 100644
--- a/arch/arm/boot/dts/am335x-bone-common.dtsi
+++ b/arch/arm/boot/dts/am335x-bone-common.dtsi
@@ -2045,6 +2045,54 @@ 
 			compatible = "simple-bus";
 			#address-cells = <1>;
 			#size-cells = <0>;
+
+			BB_RELAY_4PORT {
+				compatible = "simple-bus";
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				gpio_relay_4port: gpio_relay_4port@0 {
+					compatible = "dtcon-gpio";
+					status = "okay";
+
+					gpio-controller;
+					#gpio-cells = <2>;
+
+					pin-list = <9 15>,	/* #0 P9.15 */
+						   <9 23>,	/* #1 P9.23 */
+						   <9 12>,	/* #2 P9.12 */
+						   <9 27>;	/* #3 P9.27 */
+				};
+
+				leds@0 {
+					compatible = "gpio-leds";
+					status = "okay";
+
+					jp@1 {
+						label = "relay-jp1";
+						gpios = <&gpio_relay_4port 0 GPIO_ACTIVE_HIGH>;
+						default-state = "keep";
+					};
+
+					jp@2 {
+						label = "relay-jp2";
+						gpios = <&gpio_relay_4port 1 GPIO_ACTIVE_HIGH>;
+						default-state = "keep";
+					};
+
+					jp@3 {
+						label = "relay-jp3";
+						gpios = <&gpio_relay_4port 2 GPIO_ACTIVE_HIGH>;
+						default-state = "keep";
+					};
+
+					jp@4 {
+						label = "relay-jp4";
+						gpios = <&gpio_relay_4port 3 GPIO_ACTIVE_HIGH>;
+						default-state = "keep";
+					};
+				};
+			};
 		};
 	};
 };