Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1413458
| From | Pantelis Antoniou <pantelis.antoniou@konsulko.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC 3/3] dts: beaglebone: Portable connector BB_RELAY_4PORT definition |
| Date | 2016-06-03 22:40 +0200 |
| Message-ID | <rG42S-7WA-21@gated-at.bofh.it> (permalink) |
| References | <rG42R-7WA-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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(+)
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";
+ };
+ };
+ };
};
};
};
--
1.7.12
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC 0/3] Portable Device Tree Connector Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-06-03 22:40 +0200 [RFC 3/3] dts: beaglebone: Portable connector BB_RELAY_4PORT definition Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-06-03 22:40 +0200
csiph-web