From patchwork Fri Oct 7 07:53:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Rudolph X-Patchwork-Id: 613592 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 E4DB0C4332F for ; Fri, 7 Oct 2022 07:54:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229701AbiJGHyn (ORCPT ); Fri, 7 Oct 2022 03:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbiJGHyk (ORCPT ); Fri, 7 Oct 2022 03:54:40 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACEE2CE1D for ; Fri, 7 Oct 2022 00:54:38 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id y100so5915073ede.6 for ; Fri, 07 Oct 2022 00:54:38 -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=6cKqRbn3P/xpE+S210j3qCazjn2THQLP9aoRkXcWPq0=; b=U1v64D8Pgvbtv8Bu+3/z8FJaBKXRWTkhG0G1+gFCeQUUI439wWIVU6UwLk4uOzeNd/ lzWUdlQkq9h0b3q7C1/f5lwSoHC9GXDffAvlsniXtAfyWP+LQ11XsLkQKMYC9C1VYhFP Zq9beRSNbiAUZlI0kU3perWKQdGOUI7iqZI9G9EGSkSQCWLgMdtlbGZV+ayvdT5teB8Q 2wHTdJiBOWNtboCTYS487fwIAcMHw4CTdMiSLWFxSX+/6R/7aEec7xjnKKkt6ywb5Pbx GVUzb94cwT3dL1PZTbtNarbLyNuQRHotslKMKWvrX54Db0wKquIEXI8F7U0BFPufySXS 1mSg== 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=6cKqRbn3P/xpE+S210j3qCazjn2THQLP9aoRkXcWPq0=; b=nvJeSBbS93uz9vgQ+HoKOaH1WdDY6wITF7SuX2ltuk7ijzDAh2JbXBj56yA6lRsuxj /JOJRteBgq5MIt1jagCGNO8mACPcGFXyDUSirivLxQbYU5uT+fLRXpKFhU8SBFhcCCOb Dn6X+04ooHya93oxxeSFhVMgXf9MC8Y8jWkxRYOGYfOYFkjMPHmSteh6oeWgir9XkLNb c00ID+2egtuT7aYCo+PIJ9y6DjwucmDYBch2d8kUHDVjYQGgGwVjm0Z8e/oNSfUc3cCP 0KOEKGmPZas8tXrLZk+QcAKY/mDPQ6knKf3XeRy1xwegs145Rjw1Ti6G3P5nyYzaKDLG Rm/A== X-Gm-Message-State: ACrzQf0kqFlbxq1AAIxUqutoNqWPYY5uRhKv8P3OfumxwEDTyK48HHsH 6HFSGCXCIN0I4+8pK/ffAnMtyw== X-Google-Smtp-Source: AMsMyM7bu31JSdsR1xEWCprr46ZUrKai1I+sprEaOiyxyGdQ9rMBFzsCxdkk9f9kNrpUpdVxpeJ5/Q== X-Received: by 2002:a05:6402:548f:b0:457:ed40:5f58 with SMTP id fg15-20020a056402548f00b00457ed405f58mr3333425edb.408.1665129277211; Fri, 07 Oct 2022 00:54:37 -0700 (PDT) Received: from fedora.sec.9e.network (ip-094-114-232-236.um31.pools.vodafone-ip.de. [94.114.232.236]) by smtp.gmail.com with ESMTPSA id hv13-20020a17090760cd00b00741a0c3f4cdsm782281ejc.189.2022.10.07.00.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 00:54:36 -0700 (PDT) From: Patrick Rudolph To: Laurent Pinchart , linux-i2c@vger.kernel.org Cc: robh@kernel.org, peda@axentia.se, wsa@kernel.org, Patrick Rudolph , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [v9 0/4] Add support for Maxim MAX735x/MAX736x variants Date: Fri, 7 Oct 2022 09:53:49 +0200 Message-Id: <20221007075354.568752-1-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 (4): dt-bindings: i2c: Add Maxim MAX735x/MAX736x variants i2c: muxes: pca954x: Add MAX735x/MAX736x support i2c: muxes: pca954x: Configure MAX7357 in enhanced mode i2c: muxes: pca954x: Add regulator support .../bindings/i2c/i2c-mux-pca954x.yaml | 39 ++++- drivers/i2c/muxes/Kconfig | 6 +- drivers/i2c/muxes/i2c-mux-pca954x.c | 140 +++++++++++++++++- 3 files changed, 170 insertions(+), 15 deletions(-)