Message ID | 20241203-gs101-phy-lanes-orientation-dts-v2-0-1412783a6b01@linaro.org |
---|---|
Headers | show |
Series | Google Pixel 6 (oriole): TCPCI enablement & USB updates | expand |
On Tue, 3 Dec 2024 at 12:40, André Draszik <andre.draszik@linaro.org> wrote: > > Turns out there are some additional registers in the phy region, update > the DT accordingly. > > Signed-off-by: André Draszik <andre.draszik@linaro.org> > --- Reviewed-by: Peter Griffin <peter.griffin@linaro.org> Tested-by: Peter Griffin <peter.griffin@linaro.org>
On Tue, 3 Dec 2024 at 12:40, André Draszik <andre.draszik@linaro.org> wrote: > > On Pixel 6 (and Pro), a max77759 companion PMIC for USB Type-C > applications is used, which contains four functional blocks (at > distinct I2C addresses): > * top (including GPIO) > * charger > * fuel gauge > * TCPCi > > While in the same package, TCPCi and Fuel Gauge have separate I2C > addresses, interrupt lines and interrupt status registers and can be > treated independently. > > The TCPCi is required to detect and handle connector orientation in > Pixel's USB PHY driver, and to configure the USB controller's role > (host vs device). > > This change adds the TCPCi part as it can be independent and doesn't > need a top-level MFD. > > Signed-off-by: André Draszik <andre.draszik@linaro.org> > > --- Reviewed-by: Peter Griffin <peter.griffin@linaro.org> Tested-by: Peter Griffin <peter.griffin@linaro.org> Notes on testing: Verified that type-c orientation notifications are sent to usb phy driver and that Pixel is enumerated as a USB device with both cable orientations [..]
On Tue, 03 Dec 2024 12:40:23 +0000, André Draszik wrote: > This series adds and enables the Maxim MAX77759 TCPCI for Google Pixel > 6 (Oriole). > > It relies on the bindings updates proposed as part of > https://lore.kernel.org/all/20241203-dtbinding-max77759-v3-1-e1a1d86aca8e@linaro.org/ > and > https://lore.kernel.org/all/20241203-gs101-phy-lanes-orientation-phy-v2-2-40dcf1b7670d@linaro.org/ > > [...] Applied, thanks! [1/5] applied (but b4 lost rack) [2/5] arm64: dts: exynos: gs101: phy region for exynos5-usbdrd is larger https://git.kernel.org/krzk/linux/c/527c9640e4f04044afa98f3ce18f8af89ac4a322 [3/5] arm64: dts: exynos: gs101: allow stable USB phy Vbus detection https://git.kernel.org/krzk/linux/c/95350c0ec27d906cd95375084ce343bc65421e70 !!! NOT applied - waiting for bindings to be picked up: [4/5] arm64: dts: exynos: gs101-oriole: enable Maxim max77759 TCPCi [5/5] arm64: dts: exynos: gs101-oriole: add pd-disable and typec-power-opmode Best regards,
Hi, This series adds and enables the Maxim MAX77759 TCPCI for Google Pixel 6 (Oriole). It relies on the bindings updates proposed as part of https://lore.kernel.org/all/20241203-dtbinding-max77759-v3-1-e1a1d86aca8e@linaro.org/ and https://lore.kernel.org/all/20241203-gs101-phy-lanes-orientation-phy-v2-2-40dcf1b7670d@linaro.org/ With these patches, we allow the usb phy to detect usb cable orientation, and we make it possible for the USB DWC3 core to enter runtime suspend upon cable disconnect. To: Catalin Marinas <catalin.marinas@arm.com> To: Will Deacon <will@kernel.org> To: Peter Griffin <peter.griffin@linaro.org> To: Rob Herring <robh@kernel.org> To: Krzysztof Kozlowski <krzk+dt@kernel.org> To: Conor Dooley <conor+dt@kernel.org> To: Alim Akhtar <alim.akhtar@samsung.com> Cc: Peter Griffin <peter.griffin@linaro.org> Cc: Tudor Ambarus <tudor.ambarus@linaro.org> Cc: Sam Protsenko <semen.protsenko@linaro.org> Cc: Will McVicker <willmcvicker@google.com> Cc: Roy Luo <royluo@google.com> Cc: kernel-team@android.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: André Draszik <andre.draszik@linaro.org> Changes in v2: - more appropriate dwc3 quirks to achieve reliable Vbus state detection (patch 3) - drop patch 'dt-bindings: usb: max33359: add max77759 flavor' from this series as it should go via linux-usb (Krzysztof) - max77759 tcpci compatible has changed - Link to v1: https://lore.kernel.org/r/20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org --- André Draszik (5): arm64: defconfig: enable Maxim TCPCI driver arm64: dts: exynos: gs101: phy region for exynos5-usbdrd is larger arm64: dts: exynos: gs101: allow stable USB phy Vbus detection arm64: dts: exynos: gs101-oriole: enable Maxim max77759 TCPCi arm64: dts: exynos: gs101-oriole: add pd-disable and typec-power-opmode arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 104 +++++++++++++++++++++ arch/arm64/boot/dts/exynos/google/gs101.dtsi | 5 +- arch/arm64/configs/defconfig | 1 + 3 files changed, 109 insertions(+), 1 deletion(-) --- base-commit: ed9a4ad6e5bd3a443e81446476718abebee47e82 change-id: 20241127-gs101-phy-lanes-orientation-dts-9ace74a2c25c Best regards,