From patchwork Tue Oct 15 21:11:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 21059 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6D20A20D84 for ; Tue, 15 Oct 2013 21:11:21 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id n4sf17542112qcx.2 for ; Tue, 15 Oct 2013 14:11:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=kUO2na0FfQxmSjwI3EzG8GvgbX8n86/yztwfl/mA/sk=; b=Lo1NPNQuFB9IY0+1PWVwDBmMJ8TlPOWeroQiOYKK1alWZFLQm1lX5zkWwoh9tXOjue PWvVqbXIKj7o6+85+wm4vcaXwBV65WTi1q6mWSdpjhtZbun9fv+qiAgGCBwAM+eLDWGP quPTAnDlS2ym9AUUbD7hCG8kqHAgb1qy1L002mn2k9kvYEUTVex3c9Hkv4Ui+svS0OBK W/8uHZMQ0xvhBqUr82OVQBSxGF4ac0qB3mHuT0rrwpQ3vEVIS6z4//GxDe9UWJJZHlfZ GVdh7lIoy+c2PDjoKJ+g6WcWJTjYuNeGs6QfG9dslnCkaZNWQlq+T1je8Qj+r0kCZ0Wg 347Q== X-Received: by 10.52.108.166 with SMTP id hl6mr11173097vdb.0.1381871481161; Tue, 15 Oct 2013 14:11:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.83 with SMTP id s19ls302342qeu.7.gmail; Tue, 15 Oct 2013 14:11:21 -0700 (PDT) X-Received: by 10.58.67.9 with SMTP id j9mr13543570vet.3.1381871481062; Tue, 15 Oct 2013 14:11:21 -0700 (PDT) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by mx.google.com with ESMTPS id op3si4010030vec.113.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Oct 2013 14:11:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.53 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.53; Received: by mail-vb0-f53.google.com with SMTP id i3so5324402vbh.26 for ; Tue, 15 Oct 2013 14:11:21 -0700 (PDT) X-Gm-Message-State: ALoCoQmN6ArEPr7u61MISkZWnqou3RdbULm8j5F2joYvVvo448vFxM2M/QHdVZUlQLT0RMb4M7KC X-Received: by 10.58.146.71 with SMTP id ta7mr2619073veb.23.1381871480977; Tue, 15 Oct 2013 14:11:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp328818vcz; Tue, 15 Oct 2013 14:11:20 -0700 (PDT) X-Received: by 10.194.241.228 with SMTP id wl4mr36629418wjc.2.1381871479920; Tue, 15 Oct 2013 14:11:19 -0700 (PDT) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by mx.google.com with ESMTPS id eu20si84298wid.1.2013.10.15.14.11.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Oct 2013 14:11:19 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.42 is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=74.125.82.42; Received: by mail-wg0-f42.google.com with SMTP id n12so3199930wgh.1 for ; Tue, 15 Oct 2013 14:11:19 -0700 (PDT) X-Received: by 10.180.211.171 with SMTP id nd11mr21664151wic.0.1381871479462; Tue, 15 Oct 2013 14:11:19 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id iz19sm299691wic.9.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 15 Oct 2013 14:11:18 -0700 (PDT) From: Linus Walleij To: Samuel Ortiz , Lee Jones , devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Linus Walleij Subject: [PATCH 1/5] mfd: tc3589x: add device tree bindings Date: Tue, 15 Oct 2013 23:11:15 +0200 Message-Id: <1381871475-21543-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.8.3.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.53 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This defines the device tree bindings for the Toshiba TC3589x series of multi-purpose expanders. Only the stuff I can test is defined: GPIO and keypad. Others may implement more subdevices further down the road. Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/mfd/tc3589x.txt | 61 +++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/tc3589x.txt diff --git a/Documentation/devicetree/bindings/mfd/tc3589x.txt b/Documentation/devicetree/bindings/mfd/tc3589x.txt new file mode 100644 index 0000000..121301d --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/tc3589x.txt @@ -0,0 +1,61 @@ +* Toshiba TC3589x multi-purpose expander + +The Toshiba TC3589x series are I2C-based MFD devices which may expose the +following built-in devices: gpio, keypad, rotator (vibrator), PWM (for +e.g. LEDs or vibrators) The included models are: + +- TC35890 +- TC35892 +- TC35893 +- TC35894 +- TC35895 +- TC35896 + +Required properties: + - compatible : must be "toshiba,tc35890", "toshiba,tc35892", "toshiba,tc35893", + "toshiba,tc35894", "toshiba,tc35895" or "toshiba,tc35896" + - reg : I2C address of the device + - interrupt-parent : specifies which IRQ controller we're connected to + - interrupts : the interrupt on the parent the controller is connected to + - interrupt-controller : marks the device node as an interrupt controller + - #interrupt-cells : should be <1>, the first cell is the IRQ offset on this + TC3589x interrupt controller. + +Optional nodes: + +- GPIO + This GPIO module inside the TC3589x has 24 (TC35890, TC35892) or 20 + (other models) GPIO lines. + - compatible : must be "toshiba,tc3589x-gpio" + - interrupts : interrupt on the parent, which must be the tc3589x MFD device + - interrupt-controller : marks the device node as an interrupt controller + - #interrupt-cells : should be <2>, the first cell is the IRQ offset on this + TC3589x GPIO interrupt controller, the second cell is the interrupt flags + in accordance with . The following + flags are valid: + - IRQ_TYPE_LEVEL_LOW + - IRQ_TYPE_LEVEL_HIGH + - IRQ_TYPE_EDGE_RISING + - IRQ_TYPE_EDGE_FALLING + - IRQ_TYPE_EDGE_BOTH + - gpio-controller : marks the device node as a GPIO controller + - #gpio-cells : should be <2>, the first cell is the GPIO offset on this + GPIO controller, the second cell is the flags. + +- Keypad + This keypad is the same on all variants, supporting up to 96 different + keys. The linux-specific properties are modeled on those already existing + in other input drivers. + - compatible : must be "toshiba,tc3589x-keypad" + - debounce-delay-ms : debounce interval in milliseconds + - keypad,num-rows : number of rows in the matrix, see + bindings/input/matrix-keymap.txt + - keypad,num-columns : number of columns in the matrix, see + bindings/input/matrix-keymap.txt + - linux,keymap: the definition can be found in + bindings/input/matrix-keymap.txt + - linux,no-autorepeat: do no enable autorepeat feature. + - linux,wakeup: use any event on keypad as wakeup event. + +Example: +