Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1659793pxv; Fri, 23 Jul 2021 14:06:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBbH92eo/aKXAbf5Mt/oSL9pteWGWHcmIiTyTUpzADOPShgXJ3bObvn8pIZYGwqzfzRX/O X-Received: by 2002:a05:6602:228d:: with SMTP id d13mr5349069iod.36.1627074364948; Fri, 23 Jul 2021 14:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627074364; cv=none; d=google.com; s=arc-20160816; b=T3IxHuRB3GBsK6Quk1lW9xoTwDAbSi2mwbj6xlDsp5VjDO0uBtudB2I9lI6oPW65jb hs6gsHrPPlEC6ThFeQ4vLAWIHgCN/iufWCyKFaf5pyQm5zoaoQGJzqB7R2jkr1n9WX9+ EBf8IILS4sON1mruTiYnQthJAMoTROa164e4AePAStZ8m8VvtmYe4sP+2+u5hgJ7Swwo LmtsDR+pjfqJlDfNKv8lBYO27ckNLUoCRRNt6G6sc2mm/mFRggDUPw654d4s2F9yTg5+ aJy/CwysGJBE7enFc5kfgTYmAzXxp5c+GOgpJANmTLsRP1zrSxXJ1GngaOctwEJ3k04t cSUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+du+0LHLfACLmN4y/oi02W5K+tfyhYdkNu9bdamCZoA=; b=odh0M4rATQm/MmVffkrVT5KzhCF4EsvgDPCc09UQAK8atsToZU97CZRsZiIsC+io5z TR7akF8sPziTQqSYJtphfg+Pv63aDXhP3iX+Vx76iHMV9FTYEsMsE4fkO1+Mg+toXZTp KaibXWs7tolwBaDRWGS0pKC6R3AROZ7piw2J/M+1rppcosze7Ad/VpiUY4Y+V/zYjUGN mgPrGxdG22RTPz18dj5iH27xZjA4T6nxgOPKDnvgSi8CVxg8JfX1UBrWeTPPDKmPU1Z+ soskVAv60NpgO7pTD+/ZY16u4qvu154D7vHuBkvkmTnRAfZ5qNPhCRcLfq1sUKokDgi5 CqSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PU8ExjLp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id i1si33541152ils.142.2021.07.23.14.05.53; Fri, 23 Jul 2021 14:06:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PU8ExjLp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231350AbhGWUYW (ORCPT + 99 others); Fri, 23 Jul 2021 16:24:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbhGWUYV (ORCPT ); Fri, 23 Jul 2021 16:24:21 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB818C061575 for ; Fri, 23 Jul 2021 14:04:53 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id x7so3212282ljn.10 for ; Fri, 23 Jul 2021 14:04:53 -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=+du+0LHLfACLmN4y/oi02W5K+tfyhYdkNu9bdamCZoA=; b=PU8ExjLpqbQ7v0/Tet2GfCUlvlxrEFfeIpx99CC6Xk5+aELtn+8O2bULpwHlEZGAvn NnHZbXmI78vEHdBxHtZdyoo4dhMLlT2nPyNgRDVcWyxKJotHDsvBsAI/8Q/F8l4YOnBQ AyrT7aqeEglidsG7hJLMiRgyvgQ3JRMk5SYfTEVV7ThBCZJm5KFsOk5f+lvBLw0btP4d 42l2xOo19oJRKfeJBplz2KKkTKwgw9DGVyLxFvfQXjpTCqIQwObnvEaazH8ZHwd4Oykv zukRN0buICPccVlmtRqHaOmhc4TWJsks2Iy/oXmqVOytYVEv4MmzD+t8N/9ISPqhEy9e 2cog== 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=+du+0LHLfACLmN4y/oi02W5K+tfyhYdkNu9bdamCZoA=; b=L/5sQ/HPGGI2fL7EdoJPMaWR9CdCPf1TQdohuUDopAuuEdPg+bizrnNGjIMlgUZPYn dgc/CKe6vyHrFOWwGIB3VE3iRo6FoMQFRQtCJJmv1VP7YTxieh9r9oBQol6DcAVLht/T 3AD4X7oNv4Fiv1FsuEYzJksxaSFIk9QLih3RQnkWMnhqscwQc2gsepcoEDw4XtH2kK9U oOe5vPah7NkqEYtvuRGRL1fZqkPG6F0WC6dPtizp0aOkC4TiaVHYCqmwSdNT7khu1Ook b+2kRXM7wpUN/hE0yVJEKrQLSXEQL0PoFYqfxI+N2KRibgMJXNiT9GpP37BLRYt6q+uV +7GA== X-Gm-Message-State: AOAM532erNlaeF70jW/7ZQGW+1BwsIkD0M3ACVkA/QxABoEpX7x4gpM+ Adh3rPKgmqeeBCiOKBSJ9q1zvpC1DrSFT8poOhyy0KSv+jE= X-Received: by 2002:a2e:9d15:: with SMTP id t21mr4501765lji.200.1627074292231; Fri, 23 Jul 2021 14:04:52 -0700 (PDT) MIME-Version: 1.0 References: <20210701002037.912625-1-drew@beagleboard.org> <20210701002037.912625-3-drew@beagleboard.org> <8c59105d32a9936f8806501ecd20e044@walle.cc> In-Reply-To: <8c59105d32a9936f8806501ecd20e044@walle.cc> From: Linus Walleij Date: Fri, 23 Jul 2021 23:04:41 +0200 Message-ID: Subject: Re: [RFC PATH 2/2] gpio: starfive-jh7100: Add StarFive JH7100 GPIO driver To: Michael Walle Cc: Drew Fustini , Rob Herring , Bartosz Golaszewski , Paul Walmsley , Palmer Dabbelt , Michael Zhu , Geert Uytterhoeven , Fu Wei , linux-kernel , "open list:GPIO SUBSYSTEM" , linux-riscv , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Emil Renner Berthing , Huan Feng Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 1, 2021 at 8:39 AM Michael Walle wrote: > Am 2021-07-01 02:20, schrieb Drew Fustini: > > Add GPIO driver for the StarFive JH7100 SoC [1] used on the > > BeagleV Starlight JH7100 board [2]. > > > > [1] https://github.com/starfive-tech/beaglev_doc/ > > [2] https://github.com/beagleboard/beaglev-starlight > > > > Signed-off-by: Emil Renner Berthing > > Signed-off-by: Huan Feng > > Signed-off-by: Drew Fustini > > Could this driver use GPIO_REGMAP and REGMAP_IRQ? See > drivers/gpio/gpio-sl28cpld.c for an example. To me it looks just memory-mapped? Good old gpio-mmio.c (select GPIO_GENERIC) should suffice I think. Drew please look at drivers/gpio/gpio-ftgpio010.c for an example of GPIO_GENERIC calling bgpio_init() in probe(). Yours, Linus Walleij