lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1475853669-22480-3-git-send-email-pantelis.antoniou@konsulko.com>
Date:   Fri,  7 Oct 2016 18:21:01 +0300
From:   Pantelis Antoniou <pantelis.antoniou@...sulko.com>
To:     Lee Jones <lee.jones@...aro.org>
Cc:     Linus Walleij <linus.walleij@...aro.org>,
        Alexandre Courbot <gnurou@...il.com>,
        Rob Herring <robh+dt@...nel.org>,
        Mark Rutland <mark.rutland@....com>,
        Frank Rowand <frowand.list@...il.com>,
        Wolfram Sang <wsa@...-dreams.de>,
        Richard Purdie <rpurdie@...ys.net>,
        Jacek Anaszewski <j.anaszewski@...sung.com>,
        Jean Delvare <jdelvare@...e.com>,
        Peter Rosin <peda@...ntia.se>,
        Avirup Banerjee <abanerjee@...iper.net>,
        Georgi Vlaev <gvlaev@...iper.net>,
        Guenter Roeck <linux@...ck-us.net>,
        JawaharBalaji Thirumalaisamy <jawaharb@...iper.net>,
        Pantelis Antoniou <pantelis.antoniou@...sulko.com>,
        devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-gpio@...r.kernel.org, linux-i2c@...r.kernel.org,
        linux-leds@...r.kernel.org, linux-hwmon@...r.kernel.org
Subject: [PATCH 02/10] mfd: dt-bindings: Add bindings for the Juniper I2CS MFD

From: Georgi Vlaev <gvlaev@...iper.net>

Add device tree bindings for the Juniper I2CS MFD driver.

Signed-off-by: Georgi Vlaev <gvlaev@...iper.net>
[Ported from Juniper kernel]
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@...sulko.com>
---
 Documentation/devicetree/bindings/mfd/jnx-i2cs.txt | 68 ++++++++++++++++++++++
 1 file changed, 68 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/jnx-i2cs.txt

diff --git a/Documentation/devicetree/bindings/mfd/jnx-i2cs.txt b/Documentation/devicetree/bindings/mfd/jnx-i2cs.txt
new file mode 100644
index 0000000..0ec103b
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/jnx-i2cs.txt
@@ -0,0 +1,68 @@
+Device-Tree bindings for Juniper Networks I2CS FPGA MFD
+
+Required properties:
+- compatible - Must be one of:
+	"jnx,i2cs-rcb"	(Routing Engine or Control Board FRUs)
+	"jnx,i2cs-fpc"	(Flexible Port Concentrator FRUs)
+	"jnx,i2cs-sib"	(Switching Interface Board FRUs)
+	"jnx,i2cs-fan"	(Fan Tray FRUs)
+
+Optional properties:
+
+Depending on the FRU, the I2CS MFD has varied group of sub-devices:
+
+Device                   Description
+------                   -----------
+jnx,i2cs-gpio		: Virtual gpio mapping driver
+jnx,i2cs-fan-hwmon	: hwmon driver for fan trays
+jnx,i2c-mux-i2cs	: I2C Mux driver for FPC FRUs
+jnx,leds-i2cs		: Led driver
+
+All these optional nodes are described in their respective binding
+documents.
+
+Example node:
+
+i2cs@54 {
+	compatible = "jnx,i2cs-fpc";
+	reg = <0x54>;
+	#address-cells = <0>;
+	#size-cells = <0>;
+
+	fpc2_mux {
+		compatible = "jnx,i2c-mux-i2cs";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		fpc2i2c0: i2c@0 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0>;
+		};
+	};
+
+	fpc2_gpiomap: gpio-jnx-i2cs {
+		compatible = "jnx,gpio-i2cs";
+		reg = <0x54>;
+		#gpio-cells = <2>;
+		gpio-controller;
+		interrupt-controller;
+
+		/*
+		 * Map bits [0-3] of reg 0x21 as gpio inputs, bits [4-7]
+		 * as gpio outputs
+		 */
+		i2c-gpio-map = <0x21 0x0f>;
+	};
+
+	leds-jnx-i2cs {
+		compatible = "jnx,leds-i2cs";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		sib8-active {
+			reg = <0>;
+			linux,default-trigger = "sib8-active";
+		};
+	};
+};
-- 
1.9.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ