Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp329047rdb; Thu, 5 Oct 2023 07:13:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYLmec1TBbCRIIRyF32xgPTuDANCMbxszr7O3zEpi/PKUbGjviwSKzkplgVZ48myYG2lpM X-Received: by 2002:a17:90b:33c2:b0:279:1b8f:a995 with SMTP id lk2-20020a17090b33c200b002791b8fa995mr5028767pjb.45.1696515227704; Thu, 05 Oct 2023 07:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696515227; cv=none; d=google.com; s=arc-20160816; b=IOnfpTflR45x2a8RW2+POFgz9/8yPkEwRipZ/xSBiS1ij9USfv6QwjGGLz+47QU2Oh T7Vrjw4LkAvhSCOrLOg3lWUn0/TD3p1IqQ13xudVhUz07yNOrfh7SrDFO3Ac8WTwJi07 gFeednL1mp3xVanbJLypp2X7HdCfbkH/rCef7dOc4yACde2T49ElP5yLOaQbukKi2qUo 4Mlnd9JaYQGnoEZyWqS/Ark+/t1RZam0LcE8zLBiNa+40wjWq+JTffZFayroBc29IR1Y L5Ec7NSrIUBqV67x3ey6w4Dqp4/kj6jiG97FYS97+geWMmqqCczCplgwRKa2BzvMlJxX cAhQ== 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=Uj31+jd3gJyWsP/fXObaBtCToRppFqlJAWU3kN9VEy4=; fh=ooIdYZkJKgzw29M1oF/IT9lrxoiw2Uk9Wms+9UDT2Ic=; b=lfoQhQeXdfMxa2/LfpaxuJhj12UrDTkkMuULonGUZhsiTQp578iP47M/khLSF8SZdQ JwA8BNuOw9ceD6fHi8Plwy7p6tEN+ZlDgUEgELAhSrBu3XnDYTobC6P/VJ9w+3pfItEs xBWbkSU1Dj0Cs+97wJ27jD3UqkVoXT5XW2InFSmtZ8bIRFgJ2xkQeNsKuKmIFcDcJq71 fOGfV0eoQXqpR5v7W7op0SOwwFV0WnGbnX3ipdfH9TWEGXeHMM7oe2367IE8mIPmcHJj ++sUMzbE83xWsZVEEgxd0S+X5pvf7sVqFZjoNXMFHnEzF7ikt86EaAwf2iM3iZnyXIxl kspA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=HIg40lnU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id gq23-20020a17090b105700b0027906474442si1623344pjb.81.2023.10.05.07.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:13:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=HIg40lnU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1A03580C3A09; Thu, 5 Oct 2023 07:13:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232673AbjJEOL0 (ORCPT + 99 others); Thu, 5 Oct 2023 10:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232958AbjJEOJ0 (ORCPT ); Thu, 5 Oct 2023 10:09:26 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DFBE2812B for ; Thu, 5 Oct 2023 06:45:46 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-327be5fe4beso961879f8f.3 for ; Thu, 05 Oct 2023 06:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1696513545; x=1697118345; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Uj31+jd3gJyWsP/fXObaBtCToRppFqlJAWU3kN9VEy4=; b=HIg40lnUX5e90HGrA4vwjqPCKtO4IC/mgmrds6ldtAHEly9MNugKxNzhiN4rQqJz13 BS7eAqfNdiGeydyyQxAtgT9fci2gCfEWDTjxBFcF5cSiRNZbCsyiWss4fWeya6I0fZ6J lITc8xqPOsRCjOKzH64ByCCu81rdvOpvWQ+6RovhE8/ZxTDEcJVoTxkYJSc2wQzz+JRa 3eRB8VcZLzwrXx2HAKcltWeStfYDY/crUVxYytWQW0onuIz2OJp1gjMbufnySEfQVYww s5Hvh2g6IelUonIY7uwxi9LaaJ6r6cvGEXUJpbpLBaBCtCqGPUpKQda8luOqJgqXXrqU hpKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696513545; x=1697118345; 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=Uj31+jd3gJyWsP/fXObaBtCToRppFqlJAWU3kN9VEy4=; b=EJaiW3j4oSUZh1xPDdU5kF7HA4MH0Sa2FWW6BKXFADDZ6dXO8iwVVWny53eFpw+gE0 51UrTKqpk5aYEtmjKFw1qvF2eWLqnZNjb8pLi3NlljcCQj+ZrbdWMwP7BSPSKAOaqScR KULiAOCvBIrW+tb5+nvbl/NMTUHUzHI+sCY8EIZrJEJ8AkMDuXt4lYr2unrc186XTApw Bwb83cOLqCchnIibfs2uznmmvalbCJ2mfMNJiwtlAM4Vqs32E4FIj0fLfIgtE6SlHpy8 FMhlQ65wY/3RcRtY2Ba7hjViRqUrK+eL58c2zasyLj+4VKE/u0dmZ8Bl5jUuLNCJZ/oF q82Q== X-Gm-Message-State: AOJu0Yzyfd8MBmiZcg7yn7IssnM10Q0hiB0CSS/wPWcNkMG270xZURaV Eib0ufj3eC5+U141TbdxUkAngg== X-Received: by 2002:a5d:4049:0:b0:319:74d5:a2d7 with SMTP id w9-20020a5d4049000000b0031974d5a2d7mr4227088wrp.32.1696513544908; Thu, 05 Oct 2023 06:45:44 -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 d7-20020adfef87000000b0032326908972sm1840961wro.17.2023.10.05.06.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 06:45:44 -0700 (PDT) From: Naresh Solanki To: Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Laurent Pinchart Cc: Patrick Rudolph , Naresh Solanki , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] dt-bindings: i2c: pca954x: Add custom properties for MAX7357 Date: Thu, 5 Oct 2023 15:45:39 +0200 Message-ID: <20231005134541.947727-1-naresh.solanki@9elements.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:13:25 -0700 (PDT) From: Patrick Rudolph Maxim Max7357 has a configuration register to enable additional features. These features aren't enabled by default & its up to board designer to enable the same as it may have unexpected side effects. These should be validated for proper functioning & detection of devices in secondary bus as sometimes it can cause secondary bus being disabled. Add booleans for: - maxim,isolate-stuck-channel - maxim,send-flush-out-sequence - maxim,preconnection-wiggle-test-enable Signed-off-by: Patrick Rudolph Signed-off-by: Naresh Solanki --- Changes in V4: - Drop max7358. Changes in V3: - Update commit message Changes in V2: - Update properties. --- .../bindings/i2c/i2c-mux-pca954x.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml b/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml index 2d7bb998b0e9..9aa0585200c9 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml @@ -71,6 +71,23 @@ properties: description: A voltage regulator supplying power to the chip. On PCA9846 the regulator supplies power to VDD2 (core logic) and optionally to VDD1. + maxim,isolate-stuck-channel: + type: boolean + description: Allows to use non faulty channels while a stuck channel is + isolated from the upstream bus. If not set all channels are isolated from + the upstream bus until the fault is cleared. + + maxim,send-flush-out-sequence: + type: boolean + description: Send a flush-out sequence to stuck auxiliary buses + automatically after a stuck channel is being detected. + + maxim,preconnection-wiggle-test-enable: + type: boolean + description: Send a STOP condition to the auxiliary buses when the switch + register activates a channel to detect a stuck high fault. On fault the + channel is isolated from the upstream bus. + required: - compatible - reg @@ -95,6 +112,19 @@ allOf: "#interrupt-cells": false interrupt-controller: false + - if: + not: + properties: + compatible: + contains: + enum: + - maxim,max7357 + then: + properties: + maxim,isolate-stuck-channel: false + maxim,send-flush-out-sequence: false + maxim,preconnection-wiggle-test-enable: false + unevaluatedProperties: false examples: base-commit: b5d463c0eecb4a690e631fa38cb6771a906f7620 -- 2.41.0