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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0F12C433F5 for ; Tue, 19 Oct 2021 01:40:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C50906135E for ; Tue, 19 Oct 2021 01:40:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230158AbhJSBnH (ORCPT ); Mon, 18 Oct 2021 21:43:07 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:45602 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbhJSBnF (ORCPT ); Mon, 18 Oct 2021 21:43:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=FhlfOCbg3MmNuL+I1U1nD+p7uQpYMASB7+aM/nTmKR8=; b=J+7is9zKDDyOEXbyJ+X/0ITW45 DH+IVYNQe9xvfhltXKoyK9DHdHz8j5EkoDrMweTyb7vnw7Vx6r8n7BvJAAd4guSZB1K6ECYwA1HAu pfLPJBfnqqa3jDYCS4TxgHC874nL/w0aTuiqx6izO2jeQ5LMEjRl0+ShRELNW6oiU2pI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mce7U-00B1i5-Ve; Tue, 19 Oct 2021 03:40:48 +0200 Date: Tue, 19 Oct 2021 03:40:48 +0200 From: Andrew Lunn To: Robert Marko Cc: Linus Walleij , Rob Herring , Bartosz Golaszewski , Lee Jones , Philipp Zabel , "open list:GPIO SUBSYSTEM" , devicetree , Linux Kernel Mailing List , Luka Perkov , "Jonathan M. Polom" , Paul Menzel , Donald Buczek Subject: Re: [PATCH v6 5/6] dt-bindings: mfd: Add Delta TN48M CPLD drivers bindings Message-ID: References: <20210713222528.GA952399@robh.at.kernel.org> <20210719225906.GA2769608@robh.at.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The SFP driver requires GPIO-s, it only knows how to use GPIO-s, and > its a generic driver, > it covers any device that has an SFP port that is implemented per spec. > So, I cannot just extend it to suit my devices needs and I don't see > how can I extend it in > a generic manner so that it controls the pins directly via a regmap > for example, especially since > each switch has a different number of SFP ports and thus pins and a > different register layout. > > I have added Andrew Lunn as he is one of the maintainers of PHYLIB > under which the SFP driver > is, he may have some input on how to proceed with this. > > I honestly think that we have some kind of misunderstanding here and > look forward to resolving it. Hi Robert Can you describe your hardware and regmap in a bit more detail. What do these registers look like? How do they map to the SFP cage pins? Andrew