Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp342539pxh; Tue, 9 Nov 2021 11:36:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXWRwcE5gPxVNwn1nxr5+a56nhPpe1ggXZnnCKxiDc07Q/iC9cuyJJ3YMrTMOChG9B8eSF X-Received: by 2002:a05:6638:2bb:: with SMTP id d27mr4080912jaq.66.1636486583273; Tue, 09 Nov 2021 11:36:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636486583; cv=none; d=google.com; s=arc-20160816; b=w3yOEQTJugF2wom3C3Ubjf7DpT0vbl4qSsQVp9IMhWliSn998y8V8ayO0/geC7p+h4 5+tz9EFHJS0DKQaKspG+R6fNg3L/pePdpUGn3LxBSmvHfirvX58YLvfTIUGh3sahpZI7 p4xgoDc1aF9GuGAq49e2sB6tew56qupVf52jbDZRrrJKPKRIT37w7Xs3reIXCMfUwPPd PndR/SKlUs/u4EXr4W9VOBTjM7yNyquh9i4LX/dSVB6O8sOgJxhtPgctyzZEZH2Vux9Z zyOCWrVF8ShM/+qhl53uWFJeGg0ED4dp2mjRHXoenx5Skk0HBCPfVx+Wv6sZixWV1Xf6 s8NQ== 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=3qdL/XmsUVAAlHMJ0Zd3E3Ybfz08d5Nq2yLOYIdP7rI=; b=hxVE6M67mq+KYmrUY0ieWl/Gp5GpHpOPyJ8cPEJ6zFFApJ7ajkj28k7D/ivvnCmPQj eix3B9vP1z/6U8g8nksGAsnQOP7iIQfkroLB8F6hnN9wj8AmJaRWKKyqQYFqZpdmS8OP NQ9BLTpMOz/747N0ZKc+qSRXafPyqzXyO/4SM/FNDt8usWLarjUJ42NlO6fE/dZ+/iv5 hFVOfsULgUeQIZfs+nrdy/MhtQbT55cDV6CmRCqQ0KpRZtJ2nogGHbAn2cs31pBpg6e3 QXfnsnAwMMRezYopD/WJNpiRv66l7joMVEQGjknzMgL3d9aRxd6DUSRhf1twmi5+bdqE 357w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20210112.gappssmtp.com header.s=20210112 header.b=dW14x6gC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p11si4442918jal.39.2021.11.09.11.36.07; Tue, 09 Nov 2021 11:36:23 -0800 (PST) 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=@sartura-hr.20210112.gappssmtp.com header.s=20210112 header.b=dW14x6gC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245463AbhKIK6y (ORCPT + 99 others); Tue, 9 Nov 2021 05:58:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245458AbhKIK6x (ORCPT ); Tue, 9 Nov 2021 05:58:53 -0500 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C157FC061764 for ; Tue, 9 Nov 2021 02:56:07 -0800 (PST) Received: by mail-io1-xd36.google.com with SMTP id v23so7467380iom.12 for ; Tue, 09 Nov 2021 02:56:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3qdL/XmsUVAAlHMJ0Zd3E3Ybfz08d5Nq2yLOYIdP7rI=; b=dW14x6gC18uB8Slwru7irseFZ7MfMIl7/RXwSLMm/Y5Xbx1YoakR268IgW9meZK+y4 dzrVEwZXDLvs4YJgsb2MwR+TxgGvLOBSvOtSmYsKE+6sdVZ/LfoiELOCXpHKHHp3o81u s//Dgxe5bqV420XvRk/KpMLrn5lr/aKXEtjO+F1j4kMvgnixkiFV2yOkqMDsSxuHIvtc FkpF2xPzFNnYSMK413wfjsbRSOB9ODmU6l0/DHGxgaBkR3e0m+K/EI4nvn0bb6A3N6vW Cbf3PFwqhrmoM9yKM/iW5Ky7VQ3nkGohBtBZOXuL7nxJnQRXDIRPfRrfHTKF1KpAfmey vj5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3qdL/XmsUVAAlHMJ0Zd3E3Ybfz08d5Nq2yLOYIdP7rI=; b=3b29KnAueQLgo3nECoQBDFN4l3UCL/nu6lTprGmEsjd7HGep2/Mymnfq35lSEyIS5T V+UeSPLoU2+joivOm60JgjvFFEqrkGOC4VprHIQr5FkT6X31wB72Ajq3ypxbkAbiDnxq OjoKKUl9E5jj7fqB0VATwy09WsYZf8cYbHi6C0kkKtPXDDrtJEGp7dJHp/5qyjFa185j PCLuHQffnMcXg8ic8VgnlaWVDZmPCWJ1HLyh49HKZyrQwiTyb55ptWo/DoBuPV5vYjxt iRQiaFMNf09P6nsazJ7/S/gs9dlmCr2lnjCzvFddeFhTbx9uQjNmgSJCFsSCKe+f5/O3 EP8A== X-Gm-Message-State: AOAM5331580HY4+qPabpeA9caTObO+1D8yNsi76cVrwc5H6XfLvHx5oE COBQIGi3XAXTfVzWuxJGPVTIMcrSLbe2McSqcmclCQ== X-Received: by 2002:a05:6602:26c8:: with SMTP id g8mr4347017ioo.74.1636455367231; Tue, 09 Nov 2021 02:56:07 -0800 (PST) MIME-Version: 1.0 References: <20211105113859.101868-1-robert.marko@sartura.hr> In-Reply-To: From: Robert Marko Date: Tue, 9 Nov 2021 11:55:56 +0100 Message-ID: Subject: Re: [PATCH v8 1/6] mfd: simple-mfd-i2c: Add Delta TN48M CPLD support To: Michael Walle Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Lee Jones , Philipp Zabel , "open list:GPIO SUBSYSTEM" , devicetree , Linux Kernel Mailing List , Andy Shevchenko , Luka Perkov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 6, 2021 at 12:23 AM Michael Walle wrote: > > Am 2021-11-05 12:38, schrieb Robert Marko: > > Delta TN48M switches have a Lattice CPLD that serves > > multiple purposes including being a GPIO expander. > > > > So, lets use the simple I2C MFD driver to provide the MFD core. > > > > Also add a virtual symbol which pulls in the simple-mfd-i2c driver and > > provide a common symbol on which the subdevice drivers can depend on. > > > > Signed-off-by: Robert Marko > > Acked-for-MFD-by: Lee Jones > > --- > > Changes in v2: > > * Drop the custom MFD driver and header > > * Use simple I2C MFD driver > > --- > > drivers/mfd/Kconfig | 10 ++++++++++ > > drivers/mfd/simple-mfd-i2c.c | 1 + > > 2 files changed, 11 insertions(+) > > > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > > index ad15be6b86bc..3701657e831d 100644 > > --- a/drivers/mfd/Kconfig > > +++ b/drivers/mfd/Kconfig > > @@ -297,6 +297,16 @@ config MFD_ASIC3 > > This driver supports the ASIC3 multifunction chip found on many > > PDAs (mainly iPAQ and HTC based ones) > > > > +config MFD_TN48M_CPLD > > + tristate "Delta Networks TN48M switch CPLD driver" > > + depends on I2C > > + select MFD_SIMPLE_MFD_I2C > > Is this device used on multiple architectures? See commit > de1292817cf73 (mfd: MFD_SL28CPLD should depend on ARCH_LAYERSCAPE). No, so far it's only under ARCH_MVEBU. Will add the dependency to ARCH_MVEBU or COMPILE_TEST Regards, Robert > > -michael -- Robert Marko Staff Embedded Linux Engineer Sartura Ltd. Lendavska ulica 16a 10000 Zagreb, Croatia Email: robert.marko@sartura.hr Web: www.sartura.hr