Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S972981AbdDXQKZ (ORCPT ); Mon, 24 Apr 2017 12:10:25 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:55006 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S972968AbdDXQJF (ORCPT ); Mon, 24 Apr 2017 12:09:05 -0400 Authentication-Results: ppops.net; spf=none smtp.mailfrom=rf@opensource.wolfsonmicro.com From: Richard Fitzgerald To: , , , , , , CC: , , , , Subject: [PATCH v2 13/18] dt-bindings: gpio: Add bindings for GPIO on Cirrus Logic Madera codecs Date: Mon, 24 Apr 2017 17:08:39 +0100 Message-ID: <1493050124-5970-14-git-send-email-rf@opensource.wolfsonmicro.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1493050124-5970-1-git-send-email-rf@opensource.wolfsonmicro.com> References: <1493050124-5970-1-git-send-email-rf@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1704240276 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1627 Lines: 52 The Cirrus Logic Madera codecs have a range of GPIO pins that can be used as single-bit logic input or output. These are presented as a standard GPIO binding. The second cell in a GPIO binding is currently reserved for future use as chip-specific flags. Signed-off-by: Richard Fitzgerald --- Changes from V1: - moved out of main gpio patch into a separate patch - added gpio-line-names as an optional property .../devicetree/bindings/gpio/gpio-madera.txt | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-madera.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-madera.txt b/Documentation/devicetree/bindings/gpio/gpio-madera.txt new file mode 100644 index 0000000..6254f5b --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-madera.txt @@ -0,0 +1,27 @@ +Cirrus Logic Madera class audio codecs gpio driver + +This is a subnode of the parent mfd node. + +See also the core bindings for the parent MFD driver: +See Documentation/devicetree/bindings/mfd/madera.txt + +Required properties: + - compatible : must be "cirrus,madera-gpio" + - gpio-controller : Indicates this device is a GPIO controller. + - #gpio-cells : Must be 2. The first cell is the pin number. The second cell + is reserved for future use and must be zero + +Optional properties: + - gpio-line-names : as described in bindings/gpio/gpio.txt + +Example: + +cs47l85@0 { + compatible = "cirrus,cs47l85"; + + gpio { + compatible = "cirrus,madera-gpio"; + gpio-controller; + #gpio-cells = <2>; + } +}; -- 1.9.1