From patchwork Thu Nov 3 08:05:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Solanki X-Patchwork-Id: 1077 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp385816wru; Thu, 3 Nov 2022 01:12:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5VaqwojWCoh8ApPyeSyoT6ch5B//d6dyIPpVvn9FAyDN3yA0SbkasPiN/6yApAHVCkEpc3 X-Received: by 2002:a05:6402:ca8:b0:463:53d7:ac5 with SMTP id cn8-20020a0564020ca800b0046353d70ac5mr20966761edb.15.1667463174016; Thu, 03 Nov 2022 01:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667463174; cv=none; d=google.com; s=arc-20160816; b=nH7pnlHwVuhk7DUuhfKL/Xw+Rk5MukU8+0lZfczz6czLntuwGtD2X5oDsKRTQ6PIuc ZF+JwlOgsVaEldUmo82QYcH+izOUbLNLaw0RcJlk6pe1B4tyNGs3hqoOoag+OCji4RgU fLNmgBSegLwMCXgXKJl1n44yCQrwRpa6gDX2y0fARMbJ0GR+panB8taU7mBPBQqVsOXH ZdkjkVwf7uA46w3LHW8og3ufFM7d2MCD7Z7DDpiOidfLS75+fcFzYpcyf+aurzZLabMz zeosZaeEZvkms0siu4vYCspeJ5NixN5oDLBDfpNNoYPBT8DO1lfVgPqKdg/6TVZhd5vw JtRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TUH7vAgoJUphxioLNXds6rGlOzYEcAircCf1ge6nrIo=; b=D+FpbFpaqTcgjFnsQtrOfwKGuAQZ6zHBYztzdD5C2HyJDWAHQVUtC0A69VL2QfbLba aqwmdu580YFF2GoT2kJotJI3xS7wyxqgI1BMzIMK2I4c4ne+BP3/S8aR5XqimY7Q6FPt Zt7tTXh7xfjAoALBXzTxc7ThV8ZlwEeeXdzc6Bi+ZnjnnuZkzQup3d++kCmcbcI3ETVR 2dutq2WxWYLRsHIljVdyAvY/aN2dl+JOrf0JKvJdF6DJpKhmKmU0ZzBrPiuyPF8tRuVy tR2LALRE4RV5uyD5aIgnKBnFfg/Py8JnHpv/DwNl6iv4/d5LHmoT3R+nP7TEmrEWqeB7 AHQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=JoHSfg+v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb35-20020a170907962300b007836227b96fsi447811ejc.888.2022.11.03.01.12.30; Thu, 03 Nov 2022 01:12:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=JoHSfg+v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230507AbiKCIGB (ORCPT + 99 others); Thu, 3 Nov 2022 04:06:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbiKCIFx (ORCPT ); Thu, 3 Nov 2022 04:05:53 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A48C624D for ; Thu, 3 Nov 2022 01:05:51 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id bs21so1446199wrb.4 for ; Thu, 03 Nov 2022 01:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TUH7vAgoJUphxioLNXds6rGlOzYEcAircCf1ge6nrIo=; b=JoHSfg+vpDusiIbQMrw2c7lVK41imhpUvVnnzZfcvqpsrzG4T0Q1KjGf2p6zQjQmPj yWbGEH5Vi8rz0ZIT2QVRv+RC+IfimnGTbeTg3V1oXKGfbboQNN0D6nARkgisZ80zR54D bVxBRWNvjoZbcFYB8CJN+RuAytsuC7MNziU8IEBEy5FaSyforP8BbZzeYzzCN7HbE4Kn LOJz3qCXXVkDveKbsCOKAP5a+O+1o/oKW9HtGKKC7mc1S33yPwmxiBFCkNFs13eIhTkZ CbgY01TT4ioIDfQccbJFkp896Pn9CzEqC6RDJK4IXuKNnuJDql61Iytgqac3SQEjZTEs tAqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TUH7vAgoJUphxioLNXds6rGlOzYEcAircCf1ge6nrIo=; b=VRby049tgEt+7eDPLc50NEjTj1Ong9lVprs2Ad7faZgH1SVxVy3lEUZphn6uMXiEqA Y9mBDI1Zc7d6BOJ10IW/I4fqktN7I/zvrO87RqUIVgIzxBvVDicGuB0Fxcu0GDAjqeCZ uGPxjvjH4tMXu/aECOH0kzdlG1r6sBHa8Bd55NeCKOj9CND/j4EFQa8g10nij1yIl7E7 325EzH6U/wCB3CnEfHlOfZBM4mJagISXjk6WBtXAjh1mGEn05D6CdWzhiNTQxmVK3IAV 43ceY6gzdybYRyv2ZkD5cQvqmb0MlfUv/VSYy7UTbU0AwZSIedUh6w0ixes/0qx0BTsQ JXuQ== X-Gm-Message-State: ACrzQf18k9MQ/61USc4V0NXnueoLcfDEa/U3lQwZXN5MI3h2mte/gZI+ SWd5t6TAJALPbTGwhX0/esS1JOz10Yn2Otmr X-Received: by 2002:a05:6000:808:b0:236:9822:718d with SMTP id bt8-20020a056000080800b002369822718dmr17825381wrb.254.1667462750179; Thu, 03 Nov 2022 01:05:50 -0700 (PDT) Received: from stroh80.sec.9e.network (ip-078-094-000-051.um19.pools.vodafone-ip.de. [78.94.0.51]) by smtp.gmail.com with ESMTPSA id r9-20020a05600c424900b003bfaba19a8fsm402772wmm.35.2022.11.03.01.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 01:05:49 -0700 (PDT) From: Naresh Solanki X-Google-Original-From: Naresh Solanki To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Naresh Solanki Subject: [PATCH v6 0/2] mfd: max597x: Add support for max597x Date: Thu, 3 Nov 2022 09:05:43 +0100 Message-Id: <20221103080545.1400424-1-Naresh.Solanki@9elements.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748461865103915659?= X-GMAIL-MSGID: =?utf-8?q?1748461865103915659?= max597x is multifunction device with hot swap controller, fault protection & upto four indication leds. max5978 has single hot swap controller whereas max5970 has two hot swap controllers. Changes in V6: - Update missing vendor prefix - Update indentation in example Changes in V5: - Fix dt schema error Changes in V4: - Add NULL entry for of_device_id - Memory allocation check Changes in V3: - Address code review comment Changes in V2: - Update depends in Kconfig. Marcello Sylvester Bauer (1): dt-bindings: mfd: Add bindings for MAX5970 and MAX5978 Patrick Rudolph (1): mfd: max597x: Add support for MAX5970 and MAX5978 .../bindings/mfd/maxim,max5970.yaml | 164 ++++++++++++++++++ drivers/mfd/Kconfig | 12 ++ drivers/mfd/Makefile | 1 + drivers/mfd/max597x.c | 92 ++++++++++ include/linux/mfd/max597x.h | 103 +++++++++++ 5 files changed, 372 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max5970.yaml create mode 100644 drivers/mfd/max597x.c create mode 100644 include/linux/mfd/max597x.h base-commit: 6b780408be034213edfb5946889882cb29f8f159