Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp824316pxb; Thu, 23 Sep 2021 11:18:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMx+LIXoGiFmNDUhOAH8dYlXDVlQX8/Tg6563Kpo0SPKT/c6PmeMpGiyNAbWwyMSeMyFi3 X-Received: by 2002:a17:906:bfe7:: with SMTP id vr7mr6590644ejb.32.1632421099617; Thu, 23 Sep 2021 11:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632421099; cv=none; d=google.com; s=arc-20160816; b=Ul7jeKP6Ewld7yCM20ivr7BJBhMXrlQVdmyXm5hFyw2RlVWbWjdFbVkFhnc5A/6wjf JuqSbXZ33R2ovjX3JM956DuDk2rllCmE/VlXKqErmW1cf+tFTTtuDD51kP+FKdVjlk9P PPDYMRHIjmhzOUdQVU8cZeNkN1M0Wm6fAyAOipHujmkMkzOkFse+3RN+tlKIxaIWC+re YvODTfQY2LZROiuPyraGYzCMG8j878VQM+jOb6OIYSk0wZl45GQ63QoUdQuSeOl4hvr5 NGYOgm7K/iNsL+z7x2p0BBWBw1k8eyhJDVcNgnH5YuvFO8BBpxMH5cg16SSptRzShtJt MqOQ== 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:dkim-signature; bh=17nVF2rSqd6ZekV9XH0hI/1A94LLTlfoYJpIt+y6Cpw=; b=gYC24l5pP32Tc6pcoiup8JlNmsfQJ8BlSxZ+I9bQd0r8zYq8iw1YcZrhKxMnK708uh Tqijaip5RTjLTKSDZ4dS/pZdh/RWcP9WLnRI9yhSOFor10xXT4rsHnINyAgWezhOA7qs StUnW7FQLa7iSS0+7MkEsy6cjj+MP/r+KKJHn/wnKU+989T/etOv/q6WG/yhbaXlecT5 0ENw2fWMn/CB+yGC/Uf+Di+QRmHodcIZRgnZcCrUaBoz/h9G34IxWzcREUMPiRkja48Y 1U8doPetaNJ/O3PM632q4MNM4KSbQXzTmULjmflQ4AMVAs+nsjWlrrPSfQlUE4utjzDC oGSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm2 header.b=evWJSCa+; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=ugR7ZLES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si8775367edm.144.2021.09.23.11.17.55; Thu, 23 Sep 2021 11:18:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm2 header.b=evWJSCa+; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=ugR7ZLES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242796AbhIWSPU (ORCPT + 99 others); Thu, 23 Sep 2021 14:15:20 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:38147 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242795AbhIWSPD (ORCPT ); Thu, 23 Sep 2021 14:15:03 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 1B652580C0B; Thu, 23 Sep 2021 14:13:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 23 Sep 2021 14:13:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=17nVF2rSqd6ZekV9XH0hI/1A94 LLTlfoYJpIt+y6Cpw=; b=evWJSCa+U2iFGl/OIt0/Warjz9npq5C5hPGgKdyuwY Nz4pKcVU6rnMxMAqyYBICfAmm/rwfTiiua6w2aysaDyhgZIamu88SXKL//K5zEf8 yYv+7Xdf3P05G3ZaEbXy/7hC6FspCAHbvQeqHosDAmHMhQ95US0vsn/3657Xv1nA z6HikmA4ErdyxizNX7pCfO4f2YdgOwqMjMprNnLjJU9mQKDyIdAY/xcRYVKijB3g NL7LTW1SogAvomJfmT9SWw7Mg2KydRHqlO7dW6coSC8dXAhHL9Yj6L+VUEpnDFF2 zZ8K27ka7k0cJVZ6nEVEKymaUB+o/oGcl46D+N6hp77A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=17nVF2rSqd6ZekV9X H0hI/1A94LLTlfoYJpIt+y6Cpw=; b=ugR7ZLESz8l7GQLGV5bNXeqJuXmkL3FC+ mkSi9+8VUizOPucCEACDiNbeFz0+b9g+Yc3quCeZSV8ZQuHEYiZV5f8eLqCOAO2w yzmePAfrXGwCFg4hXLoHvDtqKadIfAfXDhnhlUCJXxpUfKBnx7cca2LMwha4pkw6 Hdh1F/xU2+1VdiX8+I+hw2z7mnWcGw3nE1RCejQRQzb1a3zU7plzyvWipHE0tdgw F/zi48WxTC9WIGQprqK3xiVwzSJTwiSadzGnAPO5I8zguruupO0ZR1iLCDL5+hPf Ky0eYnGxeQjBbgJuYH5YnsxgL16JVdNvqd1hAEM0ZuenmzPJ9jwWQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeiledguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhvvghnucfr vghtvghruceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrghtthgvrh hnpeefhedufedtvdfhhedvudehtdejjeehueduffdtgfdvkedvleelueevlefgfeelgfen ucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepshhvvghnsehsvhgvnhhpvghtvghrrdguvghv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Sep 2021 14:13:28 -0400 (EDT) From: Sven Peter To: Heikki Krogerus Cc: Sven Peter , Greg Kroah-Hartman , =?UTF-8?q?Guido=20G=C3=BCnther?= , "Bryan O'Donoghue" , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Hector Martin , Mohamed Mediouni , Stan Skowronek , Mark Kettenis , Alexander Graf , Alyssa Rosenzweig Subject: [PATCH v2 0/6] usb: typec: tipd: Add Apple M1 support Date: Thu, 23 Sep 2021 20:13:15 +0200 Message-Id: <20210923181321.3044-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, v1: https://lore.kernel.org/linux-usb/20210918120934.28252-1-sven@svenpeter.dev/ Thanks again to everyone for your review of the initial version! This series adds initial support for the Apple CD3217/3218 chip which is also known as Apple ACE1/2. These chips are used on Apple M1 machines. They are based on the TI TPS6598x chips with a few differences: - The interrupt numbers have been changed - The secondary i2c bus and its interrupt controller are connected to the system management controller and must not be disturbed - The chip comes up in a low power state and must be booted using the "SPSS" (System Power State Switch maybe) command which is not documented in the TI manual - The interrupt mask must be set up explicitly As suggested bei Heikki, this is now done by creating a separate interrupt handler for the Apple chips and adding specific setup code to the probe function. There should be no functional changes for existing TPS chips which is which I've removed the RFT. Best, Sven Sven Peter (6): dt-bindings: usb: tps6598x: Add Apple CD321x compatible usb: typec: tipd: Split interrupt handler usb: typec: tipd: Add short-circuit for no irqs usb: typec: tipd: Add support for Apple CD321X usb: typec: tipd: Switch CD321X power state to S0 usb: typec: tipd: Remove FIXME about testing with I2C_FUNC_I2C .../devicetree/bindings/usb/ti,tps6598x.yaml | 4 + drivers/usb/typec/tipd/core.c | 229 +++++++++++++++--- drivers/usb/typec/tipd/tps6598x.h | 12 + drivers/usb/typec/tipd/trace.h | 23 ++ 4 files changed, 231 insertions(+), 37 deletions(-) -- 2.25.1