Received: by 10.223.176.5 with SMTP id f5csp2002102wra; Sun, 4 Feb 2018 17:56:24 -0800 (PST) X-Google-Smtp-Source: AH8x225ts7htu4pzPdZYFzNd5GnemwFOqY2gr+ekwpkLDNzB194lPft8NZSBYFtEySgYWbZnBfJ0 X-Received: by 10.98.78.148 with SMTP id c142mr47144507pfb.153.1517795784664; Sun, 04 Feb 2018 17:56:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517795784; cv=none; d=google.com; s=arc-20160816; b=aBAyDuaDXdvGmXAE32p2hWq9YaylFfSFR74iJhEfi7accLnfLol10/3psXYQJpNOtH daZnPQhTEpM58o20UE0D2ijPIaJTSPcc8aCYSzKeUrBHXYYd6MQlm26cB9ZRuhbVxiJW QqIbgQFX54yxY1XGPOuEDNGhzbf9YU2X3cYAJiHMYlKfile87Vp46II4Yr4hnk3AXmr+ atCiIv81Ny4Q4QljTlURG1ysDMwpHEkgJ0Ku+oYgpwO2mvHV3vw0VIaxVzjcEkd81lPz WGlPdCc6MVORjHqfLbD/LydpgXzKx8nyqOmALPU3bxM2bNJFrUogXoIxX4kIL4rCY7UQ cM9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=2oqtYYjQkMeVa0mKCIAOyHHiirr83ipCUPsUzsfHOBA=; b=ntlFfqlFrNnUKDjn32LEGZLF4ZbDt4K8OEbVj9m6yDHisbnwnTKdPG8TaorNhemOHJ uSI1QwRq5O38rPkj7s7bDL48+lJNrJ7WkngT++EisFm/7fDY2VRwJ9m8naXDMYv3QoFE aCFG+yUmEAiVOa4oHFSZI0uQuA6p6TGqGwTVIO8j+5Mo8XYFvB1FxywIrCB/JxLFhoo2 E79N1cnzcdpU1spKLPdYVm0wGcGreyX8Kmv400sWnlXmQ35FGhW/EjBmCvYXph4DRW2Y q17TZaHTksedQHnEDfq3lhq+j2qf4IAFEoMnxUwJCiI8kqLRSDmltlDArskfXWvKHsdD uq6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lyv7r6ez; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 1-v6si2438734plh.549.2018.02.04.17.56.10; Sun, 04 Feb 2018 17:56:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=Lyv7r6ez; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1752468AbeBEBzi (ORCPT + 99 others); Sun, 4 Feb 2018 20:55:38 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:43607 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752042AbeBEBza (ORCPT ); Sun, 4 Feb 2018 20:55:30 -0500 Received: by mail-pl0-f65.google.com with SMTP id f4so10744841plr.10 for ; Sun, 04 Feb 2018 17:55:30 -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; bh=2oqtYYjQkMeVa0mKCIAOyHHiirr83ipCUPsUzsfHOBA=; b=Lyv7r6ezmHXL/aaygqr/LhIwNv51EVNX8YM2umpQ3uY+nt66GiuTDZnUG8Y5MaBH5S /sc7VMw4jw/gGFV9exvcurfiB1OPTVXTxZJv7E7toDMTqmxSuVDVtCJvw0+i8G2gjjkT QJNuyGGGjC1IPiqikx9mbHVym9AbjrTf6jP34= 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; bh=2oqtYYjQkMeVa0mKCIAOyHHiirr83ipCUPsUzsfHOBA=; b=A1ge0pZ4y2ErE4l6XQiFsQmc6TWof3jC8IWn2CGqRtp3sU8re6Dcuq6CLnGdfQPhA+ ZtE/1Woj+EwhYjjtXDqC2R8LQ8SqHNWHdjz4mSVY6Sv8NmUFeslD7IubXLP9hmiw3Ydj g/X6JSou1sNToNdPmHnvjF11WNBulJ/p57dS/+G3fMv5DGX6hlQaTeHn1x2ud2YUFr1b hYQnaiks0jGC818gwhykaKSml5Ncr/p3yv3ukYON8HeD4ebngr6Rpmy/rw3WerRaplhT TcUqjkV9X5A6gN5pC3xSZXipx+4Y1soMLHKDXsv2MVup67sLnsBtWJCt1hfsNqHROTGS 2oYw== X-Gm-Message-State: AKwxytc+bJhy3Ksf5k5oQsrxufiijqH7aARSKrs7q73Hsm5a8ZYYH4fO wfm1O7VMYfMHSdzHFf9ms70QLQ== X-Received: by 2002:a17:902:bc3:: with SMTP id 61-v6mr39720764plr.407.1517795730283; Sun, 04 Feb 2018 17:55:30 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id t69sm15734677pfa.180.2018.02.04.17.55.27 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Feb 2018 17:55:29 -0800 (PST) From: Baolin Wang To: linus.walleij@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org, andy.shevchenko@gmail.com Subject: [PATCH v3 1/2] dt-bindings: gpio: Add Spreadtrum GPIO controller documentation Date: Mon, 5 Feb 2018 09:55:10 +0800 Message-Id: <2834309f69a1ec37b84a33f153a3d0b90336bcc6.1517795460.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the device tree bindings for the Spreadtrum GPIO controller. The gpios will be supported by the GPIO generic library. Signed-off-by: Baolin Wang --- Changes since v1: - No updates. --- .../devicetree/bindings/gpio/gpio-sprd.txt | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-sprd.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-sprd.txt b/Documentation/devicetree/bindings/gpio/gpio-sprd.txt new file mode 100644 index 0000000..eca97d4 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-sprd.txt @@ -0,0 +1,28 @@ +Spreadtrum GPIO controller bindings + +The controller's registers are organized as sets of sixteen 16-bit +registers with each set controlling a bank of up to 16 pins. A single +interrupt is shared for all of the banks handled by the controller. + +Required properties: +- compatible: Should be "sprd,sc9860-gpio". +- reg: Define the base and range of the I/O address space containing +the GPIO controller registers. +- 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. +- interrupt-controller: Marks the device node as an interrupt controller. +- #interrupt-cells: Should be <2>. Specifies the number of cells needed +to encode interrupt source. +- interrupts: Should be the port interrupt shared by all the gpios. + +Example: + ap_gpio: gpio@40280000 { + compatible = "sprd,sc9860-gpio"; + reg = <0 0x40280000 0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + }; -- 1.7.9.5