From patchwork Fri Apr 14 11:01:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Rudolph X-Patchwork-Id: 673205 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4976DC77B6E for ; Fri, 14 Apr 2023 11:02:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230460AbjDNLCw (ORCPT ); Fri, 14 Apr 2023 07:02:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230388AbjDNLCf (ORCPT ); Fri, 14 Apr 2023 07:02:35 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02460134 for ; Fri, 14 Apr 2023 04:02:08 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id j12so826419wrd.2 for ; Fri, 14 Apr 2023 04:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1681470119; x=1684062119; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LeJCYGs+8La/1o3ZqjKRV5pTgpfcjiX/o0DJ7GFuiuU=; b=PWc0IvFGYYGPTZGIa5NPb7I7MzO0EKcbxWzupVtDZ382Zapr79SQYJvcsu3G+dsE5q 0bl/d9/dxdqh8fvO3rfVbvX1nsPoRQkoBQPxPrdH+XyXzNSvxSxWxzZSk+gVH4JXyuu/ Ug0k0674fKSSOGR3gzOrst+En++kn/4SAVtUdx9w08Q29yDsHM5PBHp2MUI5jmTb7L9M UIgU8cvLDJXUtQeUf1nAOU/B6GnCf4FWa5XKS+l3SP87Hwu4S/TXFua1GymlHl9zoCZi Fo7kbdoPAETNPDXjt7wxMmJ+zI7NcJB3EGrE4cAmHq+5+G0INpzaQMABXA9CrZWZWjip MnXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681470119; x=1684062119; 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=LeJCYGs+8La/1o3ZqjKRV5pTgpfcjiX/o0DJ7GFuiuU=; b=bJShA9B73GH1NzUe1zF2UgF2R1EqxC9JOs6kFautLEmnhAizUypoTIUG+90rr/9wrx eNd77pMvbLlzp3k2H4RNPKJOwTG6vUh8APQqx9ZVK/aNpi3bp8/9Gol1tAYHVSnxU4Cw jGQKn3OVe/eI9e2Y+pqYuoiCknXkff0RSAomOWUr55VWnCdEmlAf+RW2GO5OdRT4c4M9 3y1V3XNesJ2IqcmMDQgfRM2Dt6kyvpK8Y5Jnno4swhzCV5vHecfK9Ldz4o8kmbQkZY8z Js1HzXqF4ExXSBk2P7HavvsS0RnXsoEtFzzM66TkfroBTc7HsR/gg1tvcRNmZ1JCWxf8 VW1w== X-Gm-Message-State: AAQBX9euTxW1R22pUHQOw4lHP3mxFR7vzQrmj28WP8Kqc+Yr5guE5sJe r0h2VhhxchoiAw5yTUG8KMLtNA== X-Google-Smtp-Source: AKy350a0KwJMxkVKbsKzEwGPtVRbXGyK2bcXoAJdqkRYJcxn56kwqE9NX1DQHV47EomBTER0KhkCEA== X-Received: by 2002:a05:6000:18cd:b0:2f2:86cd:3e11 with SMTP id w13-20020a05600018cd00b002f286cd3e11mr4119974wrq.36.1681470119516; Fri, 14 Apr 2023 04:01:59 -0700 (PDT) Received: from fedora.. (ip-095-222-150-251.um34.pools.vodafone-ip.de. [95.222.150.251]) by smtp.gmail.com with ESMTPSA id u6-20020a5d6ac6000000b002f2789d1bcfsm3328830wrw.21.2023.04.14.04.01.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 04:01:58 -0700 (PDT) From: Patrick Rudolph To: Laurent Pinchart , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Patrick Rudolph , devicetree@vger.kernel.org Subject: [PATCH v11 0/3] Add support for Maxim MAX735x/MAX736x variants Date: Fri, 14 Apr 2023 13:01:33 +0200 Message-Id: <20230414110137.401356-1-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org v11: - Fix dt-binding example v10: - Small updates to dt-bindings - Make vdd-supply optional - Drop MAX7357 enhanced mode configuration v9: - Fix 'then' not aligned with 'if' in dt-bindings - Split enhanced mode configuration into separate patch - Add MAX7357/MAX7358 register definitions - Rename config register defines - Update comments and explain non default config being applied on MAX7357 - Check for I2C_FUNC_SMBUS_WRITE_BYTE_DATA functionality v8: - Move allOf in dt-binding and use double negation v7: - Reworked the commit message, comments and renamed a struct field. No functional change. v6: - Fix typo in dt-bindings v5: - Remove optional and make vdd-supply mandatory v4: - Add missing maxitems dt-bindings property v3: - Merge dt-bindings into i2c-mux-pca954x.yaml v2: - Move dt-bindings to separate file - Added support for MAX736x as they are very similar - Fixed an issue found by kernel test robot - Dropped max735x property and custom IRQ check - Added MAX7357 config register defines instead of magic values - Renamed vcc-supply to vdd-supply Patrick Rudolph (3): dt-bindings: i2c: Add Maxim MAX735x/MAX736x variants i2c: muxes: pca954x: Add MAX735x/MAX736x support i2c: muxes: pca954x: Add regulator support .../bindings/i2c/i2c-mux-pca954x.yaml | 45 +++++++-- drivers/i2c/muxes/Kconfig | 6 +- drivers/i2c/muxes/i2c-mux-pca954x.c | 95 +++++++++++++++++-- 3 files changed, 131 insertions(+), 15 deletions(-)