From patchwork Wed Jan 30 20:31:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 157085 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6381531jaa; Wed, 30 Jan 2019 12:32:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN5z71ME//AYR94nJpv9p0jz6QqEM2oyCfNRXDBVdDs+GmgfmTE9GGRpbSkS3164H45AyMTc X-Received: by 2002:a17:902:4025:: with SMTP id b34mr32269823pld.181.1548880327353; Wed, 30 Jan 2019 12:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548880327; cv=none; d=google.com; s=arc-20160816; b=Ng3tP+KjDKiTWgNM8uvhlAs11oM76rUard1fSaYVJYGyXnq4iX6aAYhWV9LqwrV7+R Gki9ceUCY1exG8PBj+qFRs37GQ1wdkpENzjmbVQcOVWW73pYNCc0BOihkpM8SjxInExl 4lPKoYazi3rYY+xvJeO0ZSpigKNO9A4vYsQ+ZsAK6rbz5b4oyOsSp4IOe3mBrvrD3nf0 sAMlUWrtDHe/Fs2WelU5m8f8zH073Ew0Xc9kYNT4qQJ3HgjamASUFTqjtJ+y3pScC6TN M/wFrU3FSoBC39Lnse5V7WO0EWT2adHcA+M/jzsp9OK0IxvasrUvdkeeyKK8MQjy7z4P o88g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+Gf25SFSbux1t69h43hHc/RxDOSYAu01Hj3bNZhKcV0=; b=mITVk49VpJWU1iGAF6DdXKCQDcQX3lcWtTT5+9TC6K24Hd7oYZNp9M447AbKp+O2K+ 4I4jWleeWOi45FrS+HQl7wkOIIBPYdZSE1yIWFXySqNYFwLCw+zEUlFOKYGHBURHrwUi 5uNMsFMsWC7DdeQzpD4RBtcB4f84nal0ls1lnlMzyO7pjxlhTdhDLmslLBBakxS/PuEY Ex+JR9fO+8pdATkFFDcBxGSr20V2SYg8QR6zD0GC8ViY8mKqCxXuqCXuy15Khm9nH99R Ia0MZlvPelX6f33Viir0e5IeNJnGsFjI5hSQcPyT9j8fQyfaey7WcoLCrxSjw/eG6GU9 8aCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bSOHmWIV; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si2504673pfb.178.2019.01.30.12.32.07; Wed, 30 Jan 2019 12:32:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bSOHmWIV; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387613AbfA3UcG (ORCPT + 7 others); Wed, 30 Jan 2019 15:32:06 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38219 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727269AbfA3UcG (ORCPT ); Wed, 30 Jan 2019 15:32:06 -0500 Received: by mail-lf1-f68.google.com with SMTP id a8so655428lfk.5 for ; Wed, 30 Jan 2019 12:32:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+Gf25SFSbux1t69h43hHc/RxDOSYAu01Hj3bNZhKcV0=; b=bSOHmWIVXg7qLXGInMsEeidGp95MnEMmjA8Zm6ZhQAZjWcByjn9Ir104dunHWqVHjH 9wGwHnp3LwDHSKQR/ErFZ5SNvAtSFaJPIV5gHe1M4h6hOFF+1h5LKboi7jDSlJgtN97p mYlSqoyxth4x/cVbeIbNVLfTTT6E2Cl9kBbis= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+Gf25SFSbux1t69h43hHc/RxDOSYAu01Hj3bNZhKcV0=; b=ukpsVtXpbQWYZBXAlzD69WNcknI7O48o9zSuuWRB5w77LjCrZOd8/pdEsRi/HCYvEA 2NjHKtenZj4qxcVZacGAGjytuMG9O+IHoJE7Bo5MBQnl7qlv1Y2mA28mP7ZWqrA5upqk Wy11KOOg+2oIvoHVwDDp37Otd96Q28S9QB0AT85AHQ/vNb6rhYZrwSzmwoCqv3MVXbQw ++6xkiqLy1pkQ/z9F+4DnbHBtHTq+v8PjzNw50yAx3Qvl9oLb0f5/uszgxxG/fmKf1EV 15PNrIFlHUnnB2HvSgbJY0H0dlCJnrIUpZ3ubRZo8/R9hsY1IuaO68De1M1o7PDPrnk/ st6g== X-Gm-Message-State: AJcUukeryl1yFNPPliDRP05vp15z0OfoPd0QmZFuuKvf4ND8AwUNZq2D 4LgRTlSZEMVJyoW1dYiaZte10w== X-Received: by 2002:a19:a60c:: with SMTP id p12mr25213909lfe.63.1548880324592; Wed, 30 Jan 2019 12:32:04 -0800 (PST) Received: from linux.local (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id t144sm459071lff.53.2019.01.30.12.32.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 12:32:03 -0800 (PST) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Bartosz Golaszewski , Linus Walleij , devicetree@vger.kernel.org, Imre Kaloz , Tim Harvey Subject: [PATCH 1/2] gpio: Add DT bindings for Gateworks PLD GPIO Date: Wed, 30 Jan 2019 21:31:55 +0100 Message-Id: <20190130203156.19774-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds device tree bindings for the Gateworks PLD GPIO chip, a simple I2C GPIO controller. Cc: devicetree@vger.kernel.org Cc: Imre Kaloz Cc: Tim Harvey Signed-off-by: Linus Walleij --- .../bindings/gpio/gateworks,pld-gpio.txt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gateworks,pld-gpio.txt -- 2.20.1 diff --git a/Documentation/devicetree/bindings/gpio/gateworks,pld-gpio.txt b/Documentation/devicetree/bindings/gpio/gateworks,pld-gpio.txt new file mode 100644 index 000000000000..6e81f8b755c5 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gateworks,pld-gpio.txt @@ -0,0 +1,20 @@ +Gateworks PLD GPIO controller bindings + +The GPIO controller should be a child node on an I2C bus, +see: i2c/i2c.txt for details. + +Required properties: +- compatible: Should be "gateworks,pld-gpio" +- reg: I2C slave address +- gpio-controller: Marks the device node as a GPIO controller. +- #gpio-cells: Should be <2>. The first cell is the gpio number and + the second cell is used to specify optional parameters. + +Example: + +pld@56 { + compatible = "gateworks,pld-gpio"; + reg = <0x56>; + gpio-controller; + #gpio-cells = <2>; +};