Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1153963pxu; Thu, 8 Oct 2020 04:54:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKMqVfx16mUeakf6ZtGtzAqJVpbvnG9VDGNIBe9YBUhjldj4f8vzBlpxE/pSnxQzU6Ywsd X-Received: by 2002:a17:906:bc42:: with SMTP id s2mr8188223ejv.251.1602158098520; Thu, 08 Oct 2020 04:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602158098; cv=none; d=google.com; s=arc-20160816; b=DIaajftpZqiQd0uWkNaB98L97fs0FisU/cDG2Kh2mQ/1VMpVLsGLWXYHkfCHvkzMFC JaxzKy0u56Zkv7T76LfbCMA47TKidCJla0dSJ43un1hOk7nOJ1reeiPc2t4uhQ8fNRzc lXe0CN6pc9iI2I0DFzYgznuPP9UgbO6vbIiaJKXUQ82nXUp+HRnnXpNhySUvA+SPgbxk YX/IYaNwP5FKaq9IWx41QhOoJnE8US+QDvuBFlf4Xvq+wTKkDYWj2cnIFayvZ808Q4rn JeFhRQgvj3UzuzREpyR/FcQmG7X1zbiW/iH9URdWPBV/9SqzgMUDB92hef2+DvBP80/s cd0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from:references:ironport-sdr:dkim-signature; bh=DfuoDLBPP5bm3pKw2MokXa9SOp6pcRI5OGarI9x3Z6M=; b=x7Z6sNGZUXCgnM3KbfHGzh0SbtFR5KSTSau9xSadSm6cQK8jOaEL7ch5QLhpeuvsrG oFODDd89x2VTFGZDELHcmwsBn3UAgs0R2pDJIEGWo+lZPKltH+9/nSHj+nGcuy1Tf1jl obPgpTtJyLJflGazu4V5ykENz0c4ezEM3febfT5+FY+PFWIb0bzHyy6LS8DSf7rols9L 1n9igZlcm99XyoclRHCdCP8tq2h7Kq/+o0grGmo19tYnu0CwnzdNtslZCR8VA5wi3lms ovYErvC/Hj3nUo0jexi6JegVhAlxwDD2nxjI4TczdJy/BKR01Af2c5GH4xluxSePw4mq gf4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=ToQe6RPR; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id da5si4316372edb.344.2020.10.08.04.54.35; Thu, 08 Oct 2020 04:54:58 -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=fail header.i=@microchip.com header.s=mchp header.b=ToQe6RPR; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729533AbgJHLnx (ORCPT + 99 others); Thu, 8 Oct 2020 07:43:53 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:11340 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbgJHLnx (ORCPT ); Thu, 8 Oct 2020 07:43:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1602157432; x=1633693432; h=references:from:to:cc:subject:in-reply-to:date: message-id:mime-version; bh=xxGz3Rp09AvXdk/PW1qyQ+e7HIOC7dLKFFv6KdZ9KTI=; b=ToQe6RPRT1PMOAQ+MYzcX3QMrljWItSdabPk9j7meq/IEtP69BQJV8pj rp4j1yLULK7hxp33EQ66CVkmrEmaGx4gPDGNbCWWiUpseYldUikKmZ7L8 mVJ51iGM2fCB0UKE+Uz9FKt3gn4FRkG7Z9mzerVmjSr9lU9DV5xq/UmKI TE4bb4gZcB5SAV7hPmHSPwKvpJC7xv5JKscaFJ0H7fmgQYySwIY6+Z/1E YnKty2wqWB6f8s/yyGNXl+VuP+iua26Lo11O7ymsjXNQIGZh3CZM1lgTw Qyyj0UxmajuWW07+7/VXzTCd57yAfpNdoiQvJUB7qjNIEJbWjLQPWpfbB Q==; IronPort-SDR: 0Z9uZnzg3TOLv8yuUtQ33msyBJBj/9R28t1lHSilAqBe6Td4mWniU5ClWLVr4E08uzhRULTdyU iEePbQ37LnwcBhBy7jTubiBJ2XV6DGIGbmXFMSeuSENAAmnEIBbUpkihBQ1m+FTp1UYFsdtkIl y0hn6TNRK2+sXxxn5rxkw/aNNCaplpn6iztY4MC/Xwr+jqTr5SIVUSr4hmkh2N1Mf++Zd6KRmh KQY2Et0rRZBYpJGsCctDyO8TtN4C+JayEirTba/TnHH+zab8MfCeuFjF+YctW1OpyaGzwzSFmD oLw= X-IronPort-AV: E=Sophos;i="5.77,350,1596524400"; d="scan'208";a="89540451" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 Oct 2020 04:43:52 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 8 Oct 2020 04:43:51 -0700 Received: from soft-dev15.microsemi.net.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3 via Frontend Transport; Thu, 8 Oct 2020 04:43:49 -0700 References: <20201007111145.2306213-1-lars.povlsen@microchip.com> <20201007111145.2306213-2-lars.povlsen@microchip.com> From: Lars Povlsen To: Linus Walleij CC: Lars Povlsen , Rob Herring , Microchip Linux Driver Support , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:GPIO SUBSYSTEM" , Linux ARM , "linux-kernel@vger.kernel.org" , Alexandre Belloni Subject: Re: [PATCH v4 1/3] dt-bindings: pinctrl: Add bindings for pinctrl-mchp-sgpio driver In-Reply-To: Date: Thu, 8 Oct 2020 13:43:48 +0200 Message-ID: <87eem9x7rf.fsf@soft-dev15.microsemi.net> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Walleij writes: > Hi Lars, > > a new version of the patch set arrives while I'm reviewing, haha :D Well, luckily not too much changed per Rob's input. > > On Wed, Oct 7, 2020 at 1:12 PM Lars Povlsen wrote: > >> This adds DT bindings for the Microsemi/Microchip SGPIO controller, >> bindings microchip,sparx5-sgpio, mscc,ocelot-sgpio and >> mscc,luton-sgpio. >> >> Signed-off-by: Lars Povlsen > > (...) >> + reg: >> + description: | >> + The GPIO bank number. "0" is designates the input pin bank, >> + "1" the output bank. >> + maxItems: 1 > > Excellent. > >> + '#gpio-cells': >> + const: 3 > > So I thought you needed three cells exactly because the > middle cell would get you the bank. That you now have in > reg. So what about using the standard twocell? I think I answered that in the 'v3 2/3' reply. Basically the pins are addressed with two indices, and there are good reasons to expose these to the GPIO cells, f.ex. hardware documentation cross reference. ---Lars > > Yours, > Linus Walleij -- Lars Povlsen, Microchip