From patchwork Mon Jul 30 09:30:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Prince X-Patchwork-Id: 950788 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OOkP+c6p"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41fDpP11fWz9ryl for ; Mon, 30 Jul 2018 19:31:09 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726703AbeG3LFO (ORCPT ); Mon, 30 Jul 2018 07:05:14 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35795 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726604AbeG3LFO (ORCPT ); Mon, 30 Jul 2018 07:05:14 -0400 Received: by mail-wr1-f67.google.com with SMTP id a3-v6so12063239wrt.2 for ; Mon, 30 Jul 2018 02:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=+dzGyfAyq2n86LWt62cKLVJVLOlpmJjZN6eipF0dx30=; b=OOkP+c6pt3wS5RYAJ0CSljTog4qKnTJxtWV8e6f0b2u7B0ZzSEVozyyFU8rbjhotX7 jXdrZDhbrJfjjYOOykn9e8T3NvT+HPYW9QQWFdeVf7B8rDXWzY1f4TmgOBt5CoV/jGBq xg91BI4CUkzas5WfwxYzSyxMDi8oMI4GMrX/t6230BEC9E+oRARLXGogRfrq5ukqiFkh RQa2dLvmXQaTbfj0kHXtsVu1/hxnQvCPrT99d/nc2ror3c1qvLc4C3uY+dAP2vy7lY9b UkSRkgY6vzcrOy+d55U0z2UVe4yfV/CYa7rKrEk9ZtNJQhauBTf6LdBjXOhLa2DuiaHb Iu3Q== 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=+dzGyfAyq2n86LWt62cKLVJVLOlpmJjZN6eipF0dx30=; b=kY7//SHsSBRXDY92FQPds4uMIFNfLQhpHQH8RGfjV1iMqghmUx4GDaW/jzj7beXo4l TB3+Gf0lgb1j3nosxypOGncU8QbYw/I/FOBBJgRJY9AASGSE8JgvWr9E3aJ/lzxtQ6Hr zE0qBn7U8OlhWlIpwh8qwxqG2r93xDRKstkiNNu6YyfaCHVmwpJ5fnIYoKVgTn4/M4gA OY4UVL3yFUGnDAWGGoS6aAhHVRnR562xvPD5ScI75KhcH4ql6kKZ1rEO5eBxYpm/C4dw ZVvinIZXp4Xpm08ddaCXtQDMLHwK7uXQz4cqJIQTG6I2Ws+kpA0UP7DdWQXGg9LHxo3f 7ZhQ== X-Gm-Message-State: AOUpUlEDo6wCFZK6gHiXDaUY+5SH1YePekJBQYBNFaXT+EkfXYk51Wpm yJG+dZFXUfLZru8Y2NjSUmBoTmtQ X-Google-Smtp-Source: AAOMgpcHAtTgdfwgJFX9riAEjFrUthbz7rmd920QDThaIOWngdOn5gkkjci7Vhj4rm2Dnp4yexYVQA== X-Received: by 2002:adf:82f0:: with SMTP id 103-v6mr16590568wrc.131.1532943065916; Mon, 30 Jul 2018 02:31:05 -0700 (PDT) Received: from localhost.localdomain ([80.215.13.75]) by smtp.gmail.com with ESMTPSA id a11-v6sm12551593wrr.81.2018.07.30.02.31.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Jul 2018 02:31:05 -0700 (PDT) From: Vincent Prince To: linux-gpio@vger.kernel.org Cc: linus.walleij@linaro.org, Vincent Prince Subject: [PATCH] gpio-it87: add support for IT8786E Super I/O Date: Mon, 30 Jul 2018 11:30:25 +0200 Message-Id: <1532943025-28805-1-git-send-email-vincent.prince.fr@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From the datasheet, the GPIO interface is identical to IT8728 (same description), so just add it to the same case as the other chip. Signed-off-by: Vincent Prince --- drivers/gpio/gpio-it87.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio-it87.c b/drivers/gpio/gpio-it87.c index 7cad14d..7b017f4 100644 --- a/drivers/gpio/gpio-it87.c +++ b/drivers/gpio/gpio-it87.c @@ -41,6 +41,7 @@ #define IT8732_ID 0x8732 #define IT8761_ID 0x8761 #define IT8772_ID 0x8772 +#define IT8786_ID 0x8786 /* IO Ports */ #define REG 0x2e @@ -317,6 +318,7 @@ static int __init it87_gpio_init(void) case IT8728_ID: case IT8732_ID: case IT8772_ID: + case IT8786_ID: gpio_ba_reg = 0x62; it87_gpio->io_size = 8; it87_gpio->output_base = 0xc8;