From patchwork Mon Nov 24 14:01:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alban Bedel X-Patchwork-Id: 413738 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7B0B6140180 for ; Tue, 25 Nov 2014 01:01:59 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753191AbaKXOB5 (ORCPT ); Mon, 24 Nov 2014 09:01:57 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:62814 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbaKXOB4 (ORCPT ); Mon, 24 Nov 2014 09:01:56 -0500 Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mreue002) with ESMTP (Nemesis) id 0LvtPB-1Y0Twq16ez-017k1e; Mon, 24 Nov 2014 15:01:45 +0100 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 921822A282A2; Mon, 24 Nov 2014 15:01:44 +0100 (CET) X-Virus-Scanned: amavisd-new at avionic-design.de Received: from mailbox.adnet.avionic-design.de ([127.0.0.1]) by localhost (mailbox.avionic-design.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L1Z9mTCPwBhu; Mon, 24 Nov 2014 15:01:43 +0100 (CET) Received: from avionic-0020.adnet.avionic-design.de (avionic-0020.adnet.avionic-design.de [172.20.31.243]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id CA41E2A28176; Mon, 24 Nov 2014 15:01:43 +0100 (CET) From: Alban Bedel To: linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alban Bedel , Grant Likely , Alexandre Courbot , Linus Walleij , Kumar Gala , Ian Campbell , Mark Rutland , Pawel Moll , Rob Herring Subject: [PATCH 1/2] devicetree: add a binding for GPIOs going though a level shifter Date: Mon, 24 Nov 2014 15:01:35 +0100 Message-Id: <1416837696-28066-1-git-send-email-alban.bedel@avionic-design.de> X-Mailer: git-send-email 2.1.3 X-Provags-ID: V02:K0:I2NRT3yZgExy3dbJKXAP486Bet0tKvUL8tF/K4CbyGw P5AancSstyfqh2FZz8pf6/jLg4aFifHsPj5Chtpy+9RzyFJgBU Tpi2RqMTMotKmuuAn3qFYvw7gde+erfBj2QuvNYBqj0Nv1ykoW 7wg8opqNvBn9JpDyGdpsbhmH33Jn2eSqx5zWc7ubmYWlWyWqYM ZOLdwIT1eId+hv/Gg7V+Ine8oA9Cf+ltGQqCAgRuhAfX5UHZDS gmfEWD7oTF6jOism8gRAvdwUiaRpLX0EmP0GK7ylOV2NEI1m3l KRIwvkn9uwU0ZTrSY1NJHEibDTzQVejsj2M/GdqWCDXz9xuZ5H 0pu7eAPBbrKDiZIa0UnTYtIjzXeopx+wsICQrKNNVx1qkPbMg6 waETPBPcDGdLecbDa0ZmB9JrnILLeD73sfkzmKDSRU0tdU+iU7 N7/kAV5fCzVkkTaNPHoTtdMC4yg== X-UI-Out-Filterresults: notjunk:1; Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Alban Bedel Acked-by: Rob Herring --- .../devicetree/bindings/gpio/gpio-level-shifter.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-level-shifter.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-level-shifter.txt b/Documentation/devicetree/bindings/gpio/gpio-level-shifter.txt new file mode 100644 index 0000000..e108c43 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-level-shifter.txt @@ -0,0 +1,15 @@ +GPIO level shifter + +This binding allow supporting GPIOs going though a level shifter. + +Required properties: +- compatible : should be "gpio-level-shifter" +- data-gpios : list of the data GPIO phandles +- #gpio-cells : should be 2 +- gpio-controller : marks the device node as a GPIO controller + +Optional properties: +- enable-gpio : phandle of the GPIO that control the level shifter enable pin +- direction-gpio : phandle of the GPIO that control the level shifter direction +- vcca-supply : phandle of the regulator for side A of the level shifter +- vccb-supply : phandle of the regulator for side B of the level shifter