Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5018639pxb; Tue, 28 Sep 2021 08:57:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyny6JBkP3TtfxNY07YzRwbkjD7/aA8D3/Z4LyjNOu1O9GwDsbJXXmDDnp3Ku3+TIi/IoII X-Received: by 2002:a05:6402:289b:: with SMTP id eg27mr8567131edb.25.1632844634860; Tue, 28 Sep 2021 08:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632844634; cv=none; d=google.com; s=arc-20160816; b=cj5sfQDmIwTyOX0vKDTLv9OddwJEiXvya4oi2jtqFSptASW6hbyMQu3VdbDTzVMyW+ 8IRea0HnMK/JRjtXyg2qqp/M4luqVrpcFpQof9nPDfSbCHAMRRy3xQA7TTVG1tbUc+8F df2aFkyOmX2B2Wmn0DneZOlpCAGzdb1QurJ5ZwYYNaxcJkMyFfgE0SN9r2wU9QAAjE/M PJpvklXrP6pFCbspuoSymreWLMBARB4llOAbeACOmpmdrsQskqFT8qQ80oTJg8EAi2K1 8diWscs/vOUfvc06eVpHENrRQOeIrC24E3AM555pO14JQiFBV1iVKxrkWtyA4HsEU1sv +Wkg== 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=Y1NfofkeQMpms15HG9J/5g3fXCeHBXSK7jIqptB1puk=; b=05ock8sND+V+HINsgutSyt/GWwk91RpjWheeirYN4kwsyGkJlX0M3bzztjA0siHmLC mnJFpKX3m8YZ24/gI/mJ5EfCRP0G6rP02sjNev2d/fXjiMsZxHT+T8J19TrEZlsv5jfj 7OEuTNSYYylGOAaYU/tXCmrc2hm85tKVQhWrteYORZWn8tggl6Ym4cbocqyEZP8+7HQm w4zMj94xtIpI1+KtQUgqn0p36eSlsBmfIKom7S0A3jSAp6NiYkiN0rzigveU8CAqBLer ZpkVf0u53gbfDu1+iggSsEggohr3BBkbHYCD1p/hu0VV74NABEoPy5IZ4wXmbQk5yzwA oCQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm2 header.b=LdxjyLA5; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=sqjwF3v4; 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 hs35si345097ejc.772.2021.09.28.08.56.48; Tue, 28 Sep 2021 08:57:14 -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=LdxjyLA5; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=sqjwF3v4; 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 S241699AbhI1P47 (ORCPT + 99 others); Tue, 28 Sep 2021 11:56:59 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:40811 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241514AbhI1P46 (ORCPT ); Tue, 28 Sep 2021 11:56:58 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id EE551580C23; Tue, 28 Sep 2021 11:55:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 28 Sep 2021 11:55:18 -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=Y1NfofkeQMpms15HG9J/5g3fXC eHBXSK7jIqptB1puk=; b=LdxjyLA5MaFR81GrboLqtJEg2m/YdTRRtZEQQlgyGO 8qm6HQTRhH1w9egzWPPLPCHczeyO0Pbof7fjAeUM55+kh8ji/d37qCcpD2LLFKte pLRP7OrP6POJTH72DpXt7cdw4NqbHFfXINRFRoFQA21HJU+PRwo8qUVTd3C5481h PhfI5zlhZSIM9cghiDIQ1hGic4gJ3RTHrv2MF30MV4IyN2Hz6M5/Vipmgd8HXDso tw7ywYhryv5d5OiYJSifqZATHqa8SohOIVXoK/iRmtIEqhPakUSOcv9Gdc2+ZQcB 2v/GGMcneHzGf9dUcWYbUms2ouroJngZqIenRv/IaguA== 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=Y1NfofkeQMpms15HG 9J/5g3fXCeHBXSK7jIqptB1puk=; b=sqjwF3v4I+i4Uv9lr76WJz0jwetf+WEQv +mLGp3KEgNfDKy0PAIJdt7rf/uJDH9t5pIcitodH6jTxbpweHuhtEpuAL75dd8OI bgaaNe1/o2uNd2qtWcTbJ4r1Bu6IIIkh3dc8LnBBAmAOKIXqhX55P7nbbps2yTlI B+FNaAhhqnX6LBwVjQAAx3/rurGZ6Zl96okgTHVImGAAUPfyH4ztJfwPrnK7P0y3 +8TKPs0d/TudWavX9inz1SGN6IhuZvI8p166bHJ6HMuo6vPjCCPEdr7vTLCvJDBD KGcDGkLvPa/Jkx5acrTcse+1BcdP9olWjeJtyrTxttz4hmSSHgpFg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudektddgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcurfgv thgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvghrnh epfeehudeftddvhfehvdduhedtjeejheeuudfftdfgvdekvdelleeuveelgfeflefgnecu ffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehsvhgvnhesshhvvghnphgvthgvrhdruggvvh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Sep 2021 11:55:16 -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 v3 0/6] usb: typec: tipd: Add Apple M1 support Date: Tue, 28 Sep 2021 17:54:56 +0200 Message-Id: <20210928155502.71372-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/ v2: https://lore.kernel.org/linux-usb/20210923181321.3044-1-sven@svenpeter.dev/ Thanks again to Heikki for your review of v2! 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 The only difference to v2 is that now of_device_is_compatible instead of of_device_get_match_data is used to switch to the CD321x logic as suggested by Heikki. 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 | 206 +++++++++++++++--- drivers/usb/typec/tipd/tps6598x.h | 12 + drivers/usb/typec/tipd/trace.h | 23 ++ 4 files changed, 209 insertions(+), 36 deletions(-) -- 2.25.1