From patchwork Mon Aug 21 06:20:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Rudolph X-Patchwork-Id: 715550 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 6B6E6EE49B0 for ; Mon, 21 Aug 2023 06:21:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233390AbjHUGVL (ORCPT ); Mon, 21 Aug 2023 02:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbjHUGVK (ORCPT ); Mon, 21 Aug 2023 02:21:10 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9217B6 for ; Sun, 20 Aug 2023 23:21:05 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-529fb04a234so1832170a12.3 for ; Sun, 20 Aug 2023 23:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1692598864; x=1693203664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=b90IMLBWM6zQGsk777iCjnjr53BKkJdrEo5WNQ1ldaY=; b=Q+SzAlC91XHDsIyrPa4QB0FT7/Qip3dp1cdy1vffxHH1YfDpqjsQyxgO3AnAeO0z1Q IvcbBCpS7qdq183J8cQTO5mRjlZipCJwOdYisGm8roNtD62WJNSnzq4CeJeB8lkwJrZk itAEJSTKbA2tByN6JBYmp36EGZVmfL2p6S8cNurlERMSPAyF94fqTroQNu0RDIF/GlrY kH909ZJlRL6alQCY/eYg1o7zIqOJ1CmOo8NRAFJOSH5RTZ1ZRMpD1YrmAZHQw9EUJNBu 84tdKzSL4K9vWTmrOjYmdHQvBi3cATXy3CF4e5iEmzfv1rB2LLBeTIikaOeTpWdTj6// 7vIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692598864; x=1693203664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b90IMLBWM6zQGsk777iCjnjr53BKkJdrEo5WNQ1ldaY=; b=Bs47O/vPjmNey2gheGOtbgt/PR0/Uyy0LydTJW4T2uFTFk3yypmayYZ2CfXMbpjkzj 1DEEEfE8F/rELBc/9Uo2v8Ic/im/9XV7uVoK0AFu5Tnckl7AV3i+9cZ/rMIJnPKzJbBt k14bnXt2+X/0S6a+5IfgaPMUtNUwOg1p0s7PUfd8ZhU4ktUXygDRhfbToAkM0NrsIS2r oW1VCiVdKk4MibM2knLfb2QSpSxaqO0r/d/zOaazZDWMI7/Yfatssm0s8I8kRP9MdfpO nSvvdkQfXg5gIFq9UcbNIgw4Z+e3mPysXVFuX+6DQ/y4AGxTCKC5oHyGSF+5lUSf8ySI gtVw== X-Gm-Message-State: AOJu0YxYHa15EM4ZAsLf7Gu2FoBTNPIID6qPHRQAabaX3rlq6FS00DR5 bCB8nbHrCa9Abt/NDhKHmbQgOA== X-Google-Smtp-Source: AGHT+IGqdAx68HaV3YTA0e4cdv+GHibtHR1RLOkS6C2Hl5ScDhgRTdFtCLipQcXNuMlBTQHX2zEkxg== X-Received: by 2002:a50:e712:0:b0:528:90d7:a19 with SMTP id a18-20020a50e712000000b0052890d70a19mr4613989edn.11.1692598864385; Sun, 20 Aug 2023 23:21:04 -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 c4-20020aa7df04000000b00523b1335618sm5455003edy.97.2023.08.20.23.21.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 23:21:04 -0700 (PDT) From: Patrick Rudolph To: Peter Rosin , Laurent Pinchart Cc: naresh.solanki@9elements.com, Patrick Rudolph , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [v16 2/4] dt-bindings: i2c: Add Maxim MAX735x/MAX736x variants Date: Mon, 21 Aug 2023 08:20:22 +0200 Message-ID: <20230821062027.2631725-3-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230821062027.2631725-1-patrick.rudolph@9elements.com> References: <20230821062027.2631725-1-patrick.rudolph@9elements.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Update the pca954x bindings to add support for the Maxim MAX735x/MAX736x chips. The functionality will be provided by the existing pca954x driver. For chips that are powered off by default add a regulator called vdd-supply. Signed-off-by: Patrick Rudolph Reviewed-by: Krzysztof Kozlowski Acked-by: Peter Rosin --- .../bindings/i2c/i2c-mux-pca954x.yaml | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml b/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml index e5c1070903ef..2d7bb998b0e9 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml @@ -4,18 +4,29 @@ $id: http://devicetree.org/schemas/i2c/i2c-mux-pca954x.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: NXP PCA954x I2C bus switch +title: NXP PCA954x I2C and compatible bus switches maintainers: - Laurent Pinchart description: - The binding supports NXP PCA954x and PCA984x I2C mux/switch devices. + The NXP PCA954x and compatible devices are I2C bus + multiplexer/switches that share the same functionality + and register layout. + The devices usually have 4 or 8 child buses, which are + attached to the parent bus by using the SMBus "Send Byte" + command. properties: compatible: oneOf: - enum: + - maxim,max7356 + - maxim,max7357 + - maxim,max7358 + - maxim,max7367 + - maxim,max7368 + - maxim,max7369 - nxp,pca9540 - nxp,pca9542 - nxp,pca9543 @@ -56,6 +67,10 @@ properties: description: if present, overrides i2c-mux-idle-disconnect $ref: /schemas/mux/mux-controller.yaml#/properties/idle-state + vdd-supply: + description: A voltage regulator supplying power to the chip. On PCA9846 + the regulator supplies power to VDD2 (core logic) and optionally to VDD1. + required: - compatible - reg @@ -68,6 +83,8 @@ allOf: compatible: contains: enum: + - maxim,max7367 + - maxim,max7369 - nxp,pca9542 - nxp,pca9543 - nxp,pca9544 @@ -94,6 +111,8 @@ examples: #size-cells = <0>; reg = <0x74>; + vdd-supply = <&p3v3>; + interrupt-parent = <&ipic>; interrupts = <17 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;