Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5152474pxj; Wed, 9 Jun 2021 10:17:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2pDLIIW/pimBpFeSRkbVVIU2irEaB0/zYR1CJps5irouMTXYynNDIG5gowzsWmgZSY/+g X-Received: by 2002:a17:906:6c88:: with SMTP id s8mr878265ejr.129.1623259070920; Wed, 09 Jun 2021 10:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623259070; cv=none; d=google.com; s=arc-20160816; b=fAjkkVbkXanL59y+rBurL8v1VwDO+pRIDQzq8cwMvDVV+o/N17vuPcuyXZTszyOhEG 80WaQAQPjgnKspFyHCWCPRd1uUvnne201obNZ+bQP70BsKz+PDJEDODLjCJIJ0VJEt3T quFFtF7YKYh4SNRMvOq3Qnc+cGrGn9WC0C+SHO2ItyOhc3pg6lqfOjqxGYf0P1s3E8tE wysWd9g0KqflhGt4AWbocp0rnGdUrjbM5DYvNhrY24GiP4qsK2xxqqQMdl0ftvMPfbKc Bt+ymkvntQKtHNnt1iii1V0zHm3T9d2qpPjqyric88hZuOYtOQGWWdCoyo9LWQTi3oBh 7U1A== 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=cvIuq7yCBZI9oh+HolFFkb/f7sv15WjrCKTD1PWydYE=; b=V1ZgMz2+nj//WajWg9XLPnzgfcYH8Wuq/ml8m7WYRRksUMHz5NjQfK5yXpnRMifWwd o8cVA9YBBGrh0QbYeFT5Ix4/uYQquGCVhRvVRitbtlam004cy++xlU8BsStnMcQn9ZWK klA+Og47eUv6upKT52zNryzz/lT9IamedhnP41GtwO4YBwy1HVy9uC7P4/yUOix4FCTm sFPtDQx9vVwT3Ap+tOuWs6nem+6lCtlt8RAUjB/sGaV3clGaZSQGF8H6+7EK18eyiY6B GPl7cLfoj19S+Kt5OlD5cV6IPfX7YuTGlJwsS2vqBAaOfi0oJT09hqQUwSPUxqEDi0/n Fi6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aqmTQ4Tq; 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 k16si171453edo.475.2021.06.09.10.17.25; Wed, 09 Jun 2021 10:17:50 -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=aqmTQ4Tq; 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 S238531AbhFIK5q (ORCPT + 99 others); Wed, 9 Jun 2021 06:57:46 -0400 Received: from mail-lj1-f174.google.com ([209.85.208.174]:42958 "EHLO mail-lj1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238516AbhFIK5n (ORCPT ); Wed, 9 Jun 2021 06:57:43 -0400 Received: by mail-lj1-f174.google.com with SMTP id r16so11898686ljk.9 for ; Wed, 09 Jun 2021 03:55:49 -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=cvIuq7yCBZI9oh+HolFFkb/f7sv15WjrCKTD1PWydYE=; b=aqmTQ4Tq7tp3JhjxH4GQ9HXZVvX8RRZOYwnTZqi9FwM6DNLCDlVKbHyie15+145qBI o6An9yE8okaeikBuxFIdZs9p4u/S/tbNX2MTXDdDPcCd7ychrX5KlcQmqoBHvyS/8y1h aZa2dxXYrL9EbKPIUC/kIdVAGRkxfR4+kmzpfVgiI7rkvePdrajM08ARcHhUO88/QK2O hdXXraH/qgd3SkAAiB+DPV3k4t8u8A70JSZe7qkIfHciR8T1SK8BsKtLhEhUMBqVjAGZ G60hZjGepVKScMs3xNKpAJ8FlPOv6u3jYG45jLhhpQbOIHjrSkCsCl+mSQnRSl74lJpK t3pw== 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=cvIuq7yCBZI9oh+HolFFkb/f7sv15WjrCKTD1PWydYE=; b=jAuy0GVNxYipF1lRhX1Bp21yBFGCZ+0tIPU3c855bMV1mQOteKKU+Yix0/2LvRI/x/ tBHW6zUDH4BjzIBEs2dZIEltTFNOn9EdoeulxaGQGXe3c926s/a6A7uB1sziX4dnAQQF YzPjb2VETUKwRuD/JpgeYO3sNZSH/XaF70IO8EzYqed2TSjFkkwpFf1VUntYIeJloziH u3Pw3b/tAmMwpo8x06R1ng3/Vti8Rch6rgzKG7v4Hx+5LvFJhOJxqe0E8GkfKG+ignS5 w4rPkR3T3GNAxIlowBdcsVnSa4IuiiDcVS2DplTv36Fr6Jk+Ru86PCicEA3vS86DVtUp wVjw== X-Gm-Message-State: AOAM531at8R9ScqAD/qB9nLY41+GE0DUBJDaq+c9nuKJJfH2hfFvrqaC W9slEOoTqtO/tkGDNspzIUUUnD3Li9HrCTT1xXSntFTYYlk= X-Received: by 2002:a05:651c:1411:: with SMTP id u17mr11232132lje.438.1623236088374; Wed, 09 Jun 2021 03:54:48 -0700 (PDT) MIME-Version: 1.0 References: <20210608102547.4880-1-steven_lee@aspeedtech.com> In-Reply-To: <20210608102547.4880-1-steven_lee@aspeedtech.com> From: Linus Walleij Date: Wed, 9 Jun 2021 12:54:37 +0200 Message-ID: Subject: Re: [PATCH v5 00/10] ASPEED sgpio driver enhancement. To: Steven Lee Cc: Bartosz Golaszewski , Rob Herring , Joel Stanley , Andrew Jeffery , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list , Hongwei Zhang , Ryan Chen , Billy Tsai Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 8, 2021 at 12:26 PM Steven Lee wrote: > AST2600 SoC has 2 SGPIO master interfaces one with 128 pins another one > with 80 pins, AST2500/AST2400 SoC has 1 SGPIO master interface that > supports up to 80 pins. > In the current driver design, the max number of sgpio pins is hardcoded > in macro MAX_NR_HW_SGPIO and the value is 80. > > For supporting sgpio master interfaces of AST2600 SoC, the patch series > contains the following enhancement: > - Convert txt dt-bindings to yaml. > - Update aspeed-g6 dtsi to support the enhanced sgpio. > - Define max number of gpio pins in ast2600 platform data. Old chip > uses the original hardcoded value. > - Support muiltiple SGPIO master interfaces. > - Support up to 128 pins. > - Support wdt reset tolerance. > - Fix irq_chip issues which causes multiple sgpio devices use the same > irq_chip data. > - Replace all of_*() APIs with device_*(). > > Changes from v4: v5 looks good to me! I just need Rob's or another DT persons nod on the bindings (or timeout) before I merge it. Poke me if nothing happens. > ARM: dts: aspeed-g6: Add SGPIO node. > ARM: dts: aspeed-g5: Remove ngpios from sgpio node. These two need to be merged through the SoC tree, the rest I will handle. Yours, Linus Walleij