From patchwork Mon May 4 15:59: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: 1282778 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=WIr9C/vA; 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49G6yb62RVz9sSd for ; Tue, 5 May 2020 02:00:39 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5DF1B8200A; Mon, 4 May 2020 18:00:31 +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="WIr9C/vA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6178782016; Mon, 4 May 2020 18:00:27 +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-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) (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 D022681FB6 for ; Mon, 4 May 2020 18:00:21 +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-pl1-x641.google.com with SMTP id t16so6917763plo.7 for ; Mon, 04 May 2020 09:00:21 -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=QkOD480wj7lmtAIhDbZr7JdJflsQ9xRB3z8Bvv99Fw0=; b=WIr9C/vAqbNyntqP0SRG7j1dEPMLow4guJcidcK/muVRiG26Bff5HfA4rbdYAY0WTX hxoqoFvmb2RXbt6sNR98AY6MqJPXdtBEXsT9nYwMlFHHnu1kLODeCqpN1cJCwLsxmndV gHM39FpWvwjp1V5gtZX6TTEAZ3/n9NhvUYzCw= 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=QkOD480wj7lmtAIhDbZr7JdJflsQ9xRB3z8Bvv99Fw0=; b=ai1m197PskwfdtnZsfYMOUXEgFVFs4TU63TtVJhqfQ360VVskSroK75gVU2oXoN0Ya hcTCHRV9bsoDlQZHcInTfj5qUs9qT0+Y2/XkUsjPVk7K10hF/sHFBFTMWRXVORQSP7/6 yiAvw4aiAd59AM3PVyRmvbiCzcAfXPYKR+xDbi+GIo71adl4LBEibu2QmsfhZYLlH4y+ /Y47NB8oa7TwP69akMwGqTkGu8foNL89UCJGPeuUIMfwdQDwcxYAfiVqJcswrBmiP9ZJ r6CreHghz3pSxxkjc/eMDmjwcnFHmHTkuLcvO2iCXc7dVIFoEkFB3Ud7ov9ako31IwMJ ODvA== X-Gm-Message-State: AGi0PuacR5p3x9wdr8GlG2h9poxBakzqdDEPkeo1bH4iWf9FDzy3n+vs s2yZAWDkG8VhzYdw1kncSsdvVXdJ8zSBWbg0XAnnC0YMiecHCX7OuVEapnDUBchr2O0AEWZdZ2o mwWSUItcmhf9u+VZBoQ6xZraBEKEm3sr6JAd/DGsanuYy4yzDaUhxDgJxku0TRQaPTXl7+Kx8nP o75M7C1g== X-Google-Smtp-Source: APiQypKtaMXnMF36sn0CET6FnLcRct6Z1zAIv12i6xmgi0MstkQ1dlLMkqtzNUZEFg7bF7I0a5JqtQ== X-Received: by 2002:a17:90a:3767:: with SMTP id u94mr19011902pjb.23.1588608001841; Mon, 04 May 2020 09:00:01 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id i8sm9353274pfq.126.2020.05.04.08.59.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 09:00:00 -0700 (PDT) From: Rayagonda Kokatanur To: u-boot@lists.denx.de, Simon Glass , Heiko Schocher Cc: Sheetal Tigadoli , Rayagonda Kokatanur Subject: [PATCH v5 0/2] add brcm iproc gpio driver Date: Mon, 4 May 2020 21:29:48 +0530 Message-Id: <20200504155950.29065-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 v4: -Address review comments from Simon Glass, Check for function return value. Changes from v3: -Address review comments from Simon Glass, Rearrange header file, Add struct comment taking about members, Use clrsetbits_le32(), Add new line before return etc. Changes from v2: -remove ununsed variable "node" in iproc_get_gpio_pctrl_mapping() func to fix compilation warning. 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 | 11 ++ drivers/gpio/Makefile | 1 + drivers/gpio/iproc_gpio.c | 275 ++++++++++++++++++++++++++++++++++++ 4 files changed, 288 insertions(+), 1 deletion(-) create mode 100644 drivers/gpio/iproc_gpio.c