Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp998658pxj; Thu, 27 May 2021 17:25:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3Kty9+PIWQ+V+yvDUWBCRSsa47Z5w21YQNnX3wHre9h+U2i5h4I2oSCDCRGyxVSdd2Uvb X-Received: by 2002:a05:6602:2013:: with SMTP id y19mr4924956iod.71.1622161545877; Thu, 27 May 2021 17:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622161545; cv=none; d=google.com; s=arc-20160816; b=D20IUkagW2xyVxO/TKuM8f76IwS7eDSuW6VthoO3VjckNmkKJzWdY4ttnNENzKbvpp hcuVwyKlzwWxqtMcZZiBVsBTnjQcpEV9nKE+yYkd3mDcXMkuf8cHs68KQDfWyjy7tvct EtE9ooAI7Qd+RoaJeFz8RgTfDHuBaBrX4+ToxqJ/MAAZh6GpF/8fo73BsFxvBlsC8/T9 +F6nwqEk34wkxo5pc9NN5wK8B3ljltJHe6PXlKR47P/842OVb0BDh6ZooRf9I/xQjUX0 HI0qPjv7hhasN8Mmch/pQdQjXW6WAAPMBj3GpjbhinEJiRQ9B8K+DUiMf++BAf00/PVy mNQA== 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=igQk9HIuYQm9nCu5NIGuLrsyKhw3Yali5yjk1GzMK1g=; b=lcfYuESiJAd/wO4THunbo5Xxp5T5vW6TDNNDMdzYbwMnf3MJNrkJUsFv3HK5ikXc1x Hq6OhhpTIdXBPyQXdDM1h+uvQ19PRAPa6leeFzqLR4yILTJow6+zhGWE/qZPKhM4zqva WrWK2bMKHCK32GApxdqTSKuK3HeXd7lCB9PPV/Wx2fBP9aHUanXlSidhu79nrbT7XCFz OdhoFCeEY51RNS6zmAVazc9aME2eqifabqtP4i9T5EbthONr1zGynOmj61ORoubkgKPF V4XGamNhRgIZUexJjCnrFHFozNpycrUbCc57kD5meA8x76dyrIG+tYfMivSpPJ0kMSyz 3ktA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x8HVgNcT; 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 r9si4210236iol.40.2021.05.27.17.25.31; Thu, 27 May 2021 17:25:45 -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=x8HVgNcT; 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 S235294AbhE0XxY (ORCPT + 99 others); Thu, 27 May 2021 19:53:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233938AbhE0XxX (ORCPT ); Thu, 27 May 2021 19:53:23 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91323C061760 for ; Thu, 27 May 2021 16:51:48 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id w33so2622312lfu.7 for ; Thu, 27 May 2021 16:51:48 -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=igQk9HIuYQm9nCu5NIGuLrsyKhw3Yali5yjk1GzMK1g=; b=x8HVgNcTHMj5JVGKRHW/wCa3LzV4elPUTOyr+cwzxoYv/27GB6Vr5op7LDnUCrQFQo WClXOUO77mmSoBaztmYxV8lugmBtCRQACzf+KqoyxqoGDbVxEomeRxcBR4MgVdbD/m5i j25ZjBBY4pv64I9XaA0eR9FuybSYgX7dryXNdk8y8qVTsxyR9yV6Djus+gGeRVCxDvPO EZyjheDf/tD+dxsik7cLUNYci9rcPmcLz5hzC9h6Uo7Im8AZyZKnkKN+0XCYy4ajfYbZ hHJIqjRu9BdZbwuVeDWwXXKiwVex14BZgs29gHFPMxbvAMLfiO7aPGM550kGaBBHNQ4Z f8Hg== 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=igQk9HIuYQm9nCu5NIGuLrsyKhw3Yali5yjk1GzMK1g=; b=H5j0iyD4tvRbwaCHUdFdyHfwtPt470BoMuPfBz109oVdlBP4ujBZWI5gecGYCz+j3r 87u9/Knq7rrWNMOhrEkzL0LwuUeLGrMFjJuEccoGjEV9zEuIE4IRZnvh6zUiLO9ugXeF GUCB2CjA+PQ61XojjibOw8XLxJpaWdNgGNAVov4i9s4sn+cml/f4mMp5ofQEJg4LuW01 wkx/o929kwfiO+vi/qjbYhoJcjbfh4dwTl6e3eW8QGNUDPUxllexcSYzQF28a1Ukj3IZ h6mwnk7ufwRwgBrEeC2kLZBBOdA9hByJw+nKXGFdMIjaYolV1RGKsBcMkXQ5yf+H+B/k /QUA== X-Gm-Message-State: AOAM531N0qRUuzeMsMeDwoQ8iNcaBaDJEYjX9tXmay+Kv4wKyMpCzYPl fO8FnvFuTqyJ+5De6XEKSDiyAJS4NnWaI5/MMfAp8A== X-Received: by 2002:ac2:47e6:: with SMTP id b6mr3824704lfp.649.1622159506776; Thu, 27 May 2021 16:51:46 -0700 (PDT) MIME-Version: 1.0 References: <20210527005455.25758-1-steven_lee@aspeedtech.com> <20210527005455.25758-2-steven_lee@aspeedtech.com> In-Reply-To: <20210527005455.25758-2-steven_lee@aspeedtech.com> From: Linus Walleij Date: Fri, 28 May 2021 01:51:35 +0200 Message-ID: Subject: Re: [PATCH v2 1/4] dt-bindings: aspeed-sgpio: Convert txt bindings to yaml. 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 Thu, May 27, 2021 at 2:55 AM Steven Lee wrote: > SGPIO bindings should be converted as yaml format. > In addition to the file conversion, a new property max-ngpios is > added in the yaml file as well. > The new property is required by the enhanced sgpio driver for > making the configuration of the max number of gpio pins more flexible. > > Signed-off-by: Steven Lee (...) > + max-ngpios: > + description: > + represents the number of actual hardware-supported GPIOs (ie, > + slots within the clocked serial GPIO data). Since each HW GPIO is both an > + input and an output, we provide max_ngpios * 2 lines on our gpiochip > + device. We also use it to define the split between the inputs and > + outputs; the inputs start at line 0, the outputs start at max_ngpios. > + minimum: 0 > + maximum: 128 Why can this not be derived from the compatible value? Normally there should be one compatible per hardware variant of the block. And this should be aligned with that, should it not? If this is not the case, maybe more detailed compatible strings are needed, maybe double compatibles with compatible per family and SoC? Yours, Linus Walleij