From patchwork Wed Apr 29 06:20:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 1278990 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=b+UmF0yk; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49BpMQ6KbBz9sP7 for ; Wed, 29 Apr 2020 16:22:10 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B1BBE820AE; Wed, 29 Apr 2020 08:22:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.b="b+UmF0yk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 359BB82076; Wed, 29 Apr 2020 08:21:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4131F82089 for ; Wed, 29 Apr 2020 08:21:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rayagonda.kokatanur@broadcom.com Received: by mail-wm1-x32a.google.com with SMTP id z6so652577wml.2 for ; Tue, 28 Apr 2020 23:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=gpnz9oSFV7hk1n6/Inr069ImFm8/WwmlaYTKG4MkFh4=; b=b+UmF0ykIYiTTQi2lMCYxmUQ53PO5nRWl/ZgFpTdeC7+YlkxRQ2Rl06MXxvoNeXZ25 /yqkP97eVuQqKw2w69bMjhEDOWLFvCMlJ3zOzOCkTiaNDUwgiEqJY5N22yAH+FZpxJwO Mk0e8njZFrzokX+bvZqa5plBno9PKjfT6YmI8= 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=gpnz9oSFV7hk1n6/Inr069ImFm8/WwmlaYTKG4MkFh4=; b=JeGvTEFC7NLKxvKTg0/4lMrC+V6ZattuzUXaW4YpJ9IjTlNsskBisSecS4iU/5p8il FgsYzuxMTKjUX7qKIZ232qqLaYVx6dE9pNtbsxLHFiWikWeup+J9o0YKIc6PmIJHWlc0 LGgs0t9uKa+hdGq+2Uh/OQtCnLMr+Hyr+2N2celh49JCHM1XnCyncuH1+mhVuIdYbcES DDzkcIi8yll0SReDB/V/pbNX2XEVhnJYS23ZNP4qioDIxkCBkDfHrKMgQ89rgmw3snBn h22Cm201lvMgHS+/lOlVus9TktMvUZrCoUN9nqDPn5yI/6jZ82fF6rZmW0j+s1+1v2C9 YpeQ== X-Gm-Message-State: AGi0PuYmPDurpYxUla5UJMbiBxQxcY8YTKDmf9x1D2YLMrXQmac7k8YF zYTE05bHZ/CA6wkpfzv5Xl3pmgLs0ZyyPBiksqtjdiMLfMRJbJfkyfDYpBTaTvVgX6fWFhImA5q 7iq1E2agRu/at9ugppNgITAc5QzyU4bOKCjbKVjEUBKhNvtVgi4TldmYv5R6PLQDkVGfNLmK2nh wCbyPA0Q== X-Google-Smtp-Source: APiQypKpNtBG5Hdq55W5nGzeSFYl0ywaVnP8HAc3Y/9OdkCj1JL0wkZ2G726MMkwEDwGXqYmO+h5tQ== X-Received: by 2002:a1c:4e06:: with SMTP id g6mr1313325wmh.186.1588141311090; Tue, 28 Apr 2020 23:21:51 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id f23sm6031439wml.4.2020.04.28.23.21.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2020 23:21:50 -0700 (PDT) From: Rayagonda Kokatanur To: U-Boot Mailing List , Simon Glass Cc: Sheetal Tigadoli , hs@denx.de, Rayagonda Kokatanur Subject: [PATCH v2 0/2] add brcm iproc gpio driver Date: Wed, 29 Apr 2020 11:50:48 +0530 Message-Id: <20200429062050.24536-1-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Add support for broadcom iproc gpio driver. Changes from v1: -Address review comments from Simon Glass, Use dev_read_...() instead of fdtdec_...(). Rayagonda Kokatanur (2): drivers: gpio: add broadcom iproc gpio driver support gpio: do not include on TARGET_BCMNS3 arch/arm/include/asm/gpio.h | 2 +- drivers/gpio/Kconfig | 10 ++ drivers/gpio/Makefile | 1 + drivers/gpio/iproc_gpio.c | 259 ++++++++++++++++++++++++++++++++++++ 4 files changed, 271 insertions(+), 1 deletion(-) create mode 100644 drivers/gpio/iproc_gpio.c