From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D0B0C4320A for ; Wed, 11 Aug 2021 15:12:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 632A560FA0 for ; Wed, 11 Aug 2021 15:12:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232862AbhHKPM7 (ORCPT ); Wed, 11 Aug 2021 11:12:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232635AbhHKPMx (ORCPT ); Wed, 11 Aug 2021 11:12:53 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6032EC061765 for ; Wed, 11 Aug 2021 08:12:29 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id u13so5170753lje.5 for ; Wed, 11 Aug 2021 08:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xcci7RbOniWr10zlQhNO9X9j0cPC+wiKIP31/PpgIfA=; b=aBg8VdW5FsdEAePlPJH13bN3EGjKQiYuBEI7QK4LybN3HujK+s4J/53haGtC051uKu u/Ft45mxut7bj9HPFYdlsUlulR71M47lG/HWA1wmt41myYVug2e12sGVofWo34pKTQJP zZA8NRctNZCEmiRrefD+3tP9U4TM/EEA257JrQaNC3P9CN9OHWgyjVCaRelX7jjtNyxT VDbAaTld2VVI/d9pIyWwlBt2oLJePJJ/sQAZ/n65IhOxbWPBKsN8CcHzKi4IcTiR5cmy U31xN+pdX8lyKp9sQ9xAoO20nWHVDQLdOn4+VeHb6Tl3J3mQ2KkdWqCdKuNwC7KhzFBB nEpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xcci7RbOniWr10zlQhNO9X9j0cPC+wiKIP31/PpgIfA=; b=XDQf41vkPcArO0/AqhtmSkeMgmKssead7cOamAuSEiquJ7QAOAJag2Lxou/oxEypZJ p3Due7pdu6idrYxHXT6xBBrZaD43NYvOGnclbjgnsTrFfkbws9GfSKbnAttRXOKNAxpS 4SGqYJ4h14fQByYZmd37gy1EV2wBs9llQbKAH/aAswZhg8EdBtptmuEfaVYN/7R6Km4x P2+irPY3hGsxU7u5ArOD6T8p3WceU4xWjUvrL3EZ3WK46jl0/CYp2jCifKS0eS9F1RAx fXxlqZxTS+bJbGA/FIWo8e0Hjaqk9OuVigfhoAphfVior3TUvpYfTHcrgLRRzCMMvjvd +sSA== X-Gm-Message-State: AOAM532TCCP20OVrp6QZvy/6EqLxa9ADdSnELWwNCnVaiRX998kBO0RE rvGJ/38MMAMXzMo6VvAZA91aUkptrjFFRKbCQ6GFLg== X-Google-Smtp-Source: ABdhPJx462fjlywiVaui00FxiTLW/TFgPDucoKoZKMXEMDAoyevvbE5UZsTda0Uw4SRiYpRinJx0h99Kju7l4PisMLI= X-Received: by 2002:a2e:a4ab:: with SMTP id g11mr1187108ljm.273.1628694747373; Wed, 11 Aug 2021 08:12:27 -0700 (PDT) MIME-Version: 1.0 References: <20210805174219.3000667-1-piyush.mehta@xilinx.com> <20210805174219.3000667-4-piyush.mehta@xilinx.com> In-Reply-To: <20210805174219.3000667-4-piyush.mehta@xilinx.com> From: Linus Walleij Date: Wed, 11 Aug 2021 17:12:16 +0200 Message-ID: Subject: Re: [PATCH V2 3/3] gpio: modepin: Add driver support for modepin GPIO controller To: Piyush Mehta Cc: Arnd Bergmann , Zou Wei , Greg KH , Michal Simek , wendy.liang@xilinx.com, Nobuhiro Iwamatsu , Bartosz Golaszewski , Rob Herring , rajan.vaja@xilinx.com, "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , git , Srinivas Goud , Linux ARM , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Thu, Aug 5, 2021 at 7:43 PM Piyush Mehta wrote: > This patch adds driver support for the zynqmp modepin GPIO controller. > GPIO modepin driver set and get the value and status of the PS_MODE pin, > based on device-tree pin configuration. These four mode pins are > configurable as input/output. The mode pin has a control register, which > have lower four-bits [0:3] are configurable as input/output, next four-bits > can be used for reading the data as input[4:7], and next setting the > output pin state output[8:11]. > > Signed-off-by: Piyush Mehta > --- > Changes in v2: After discussion with Michal: Reviewed-by: Linus Walleij Yours, Linus Walleij