From patchwork Tue Nov 15 11:09:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Solanki X-Patchwork-Id: 1664 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2654906wru; Tue, 15 Nov 2022 03:17:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ZlebeI4ZRirDkQD4Ybr/oucmYRkF8ZVPX+KxHTQm00x8LoeGb2f3EknDQyVMdu8j6ydxI X-Received: by 2002:a05:6a00:1799:b0:558:991a:6671 with SMTP id s25-20020a056a00179900b00558991a6671mr18207324pfg.58.1668511048484; Tue, 15 Nov 2022 03:17:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668511048; cv=none; d=google.com; s=arc-20160816; b=wWeSlq2RowWWAXFxZzFCWQRTNobRSw5ihxfzp1rNZJUAUcdl7GLR/7ippl8JYwUvlB FzsNZOMTu+AkokYg5NvGv9X+xWK6ojXf5JJQWdnwy9y95tIv6QO55eQPmX3n3Qv9t7ri Vg8arSX//aXsA6f25fPLOwO/qxjxav5noqjR/9KifwJ3TgkApJPbRD3MVB4y2lt8V4K+ BsHagiBMoxz/elsnPcC9vgKbRwovcT5bm7CcnmNTn2tsDqqvbuAvtnyM85bae00N8Zj3 KUGR/rWY782Mi1x9VqLgzaXYuIb79dgQVed5peeMRF4CwISdbeT2mx3fUdCwOaa42v13 oCng== 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=G82XuHX1Kk5zIshKimhHGfXsi81jktt6vDeWQNQiqN8=; b=U0xalKvTEUAmEqnfgIlBiNakbHBh9JoSSifILLBlzBWQfUwhenlzgh5F5OOsf/IK1g m/2Yvvb+NkYNRoNL//FcSrSdqUkTtmmBxkhvcmEHiAea3t97bXP3MrVPvZk6NwyHMd33 mWPFWfke751nb1VXdLEYsATZuevn4b6NwQy+bdk7M9GB2q1YL5ZZUjd7DFILaCNcfsHY PYFkK6vwMexx1hmW5kKPewVWFHOPZinfUH7gyJNXDr4g8A9cDWNtlnRne4wuRX7bgNzO EwBpynj8Cb7Tcbep2Rt/QSm3XyzrBF1yBnn90DJ/DUHyRd7D2+/5Ph7KsdQHmwovnTUr Cp4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b="W4/mjbuD"; 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 i2-20020a17090332c200b0017cc894c78esi13554660plr.447.2022.11.15.03.17.13; Tue, 15 Nov 2022 03:17:28 -0800 (PST) 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="W4/mjbuD"; 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 S238417AbiKOLKw (ORCPT + 99 others); Tue, 15 Nov 2022 06:10:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235617AbiKOLKD (ORCPT ); Tue, 15 Nov 2022 06:10:03 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39A2425C77 for ; Tue, 15 Nov 2022 03:09:37 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id ja4-20020a05600c556400b003cf6e77f89cso1021949wmb.0 for ; Tue, 15 Nov 2022 03:09:37 -0800 (PST) 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=G82XuHX1Kk5zIshKimhHGfXsi81jktt6vDeWQNQiqN8=; b=W4/mjbuDk9hhAgOdEMP6kwXQdtXiR0KXEzBfPVJ6pmRP6dqFmqul5GBr/JnWYD3A7Q S7yKnABc7ZJfwpGT/HbjrpeHYOOCJ+vovhVIudD9Cw+ylzmBbvRCkxKh+1MLeNjzkGmN Ej0uMhUiy2Jys5yW4hwvU6zCZtX3CHaGg4g2Uhty0fLMT86C6a9euHorFXs1mkbAJVbd y+WeiU/oHb3jZW7X5asaV7/lFkrYvZTt193R8/6OMcZ8eWYZNauYIgHdqlBXHdJzKV+s bWwWlYm1JQjAtBCCLMKuJ/5U8Ud2A80JzVC3+5SXWqanpzK35uB3+AV2lzayaS5k7D5k FbSQ== 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=G82XuHX1Kk5zIshKimhHGfXsi81jktt6vDeWQNQiqN8=; b=CM0Id3G1405yo+2L20eVOsCYy2/m9rb1SOjX2AxIlLZLgXIbh2+ppXeWtIuCzxL8WT fxKfIVK7BXPkQKyZJi5HnqxOlre/ro86pfR994hwd6MVbe1VheGlHjG4b0pBo2x2M/no NX24JG+3EkrEWSQ8Rqed091OHecoG1QfkGD8IwP/pWUKa8dsfN9tO+pCrzwpG0SCNYD9 3/jPAiAqtb6h1SZ/jzIHTTsM4PNZIghTNvK5BjAviXYTsQYj77/YG3q4M1VQ5CmXVOOB uFNo9aod9I3Vq2LaAbVGYtKfyj0iPLBM0uMuw0kLCGiqVYc5JMvdWU4nZpzrSHO9JEoi RBUg== X-Gm-Message-State: ANoB5pkqLoQ2w+ZB41kyemMTWcjtnJ/tHHC5jh57axr0QNxpqjyr+cvj bFdPYYeNBA5EUbixrhXr2itWQlXZCx/cacWK X-Received: by 2002:a05:600c:3541:b0:3cf:6f25:a713 with SMTP id i1-20020a05600c354100b003cf6f25a713mr1039612wmq.184.1668510575511; Tue, 15 Nov 2022 03:09:35 -0800 (PST) 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 p25-20020a05600c1d9900b003c64c186206sm15480441wms.16.2022.11.15.03.09.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 03:09:35 -0800 (PST) From: Naresh Solanki X-Google-Original-From: Naresh Solanki To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Naresh Solanki Subject: [PATCH v10 0/2] mfd: max597x: Add support for max597x Date: Tue, 15 Nov 2022 12:09:30 +0100 Message-Id: <20221115110932.637091-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=ham 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?1749560641385440594?= X-GMAIL-MSGID: =?utf-8?q?1749560641385440594?= 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 V10: - Cleanup unused properties - removed superfluous comments - Update description for regulators property - Fix typo - Update 4 spaces indentation in example Changes in V9: - Update properties description - update required property Change in V8: - Set additionalproperties to false Change in V7: - Update id - Remove empty line 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 MAX5970 and MAX5978 Patrick Rudolph (1): mfd: max597x: Add support for MAX5970 and MAX5978 .../bindings/mfd/maxim,max5970.yaml | 154 ++++++++++++++++++ drivers/mfd/Kconfig | 12 ++ drivers/mfd/Makefile | 1 + drivers/mfd/max597x.c | 93 +++++++++++ include/linux/mfd/max597x.h | 102 ++++++++++++ 5 files changed, 362 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