From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1FAF3CCA47F for ; Tue, 19 Jul 2022 09:19:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cA/mvNcxDohzvP7YbsoZbCKY9rcHSQ+Rkm+R0+OAYYA=; b=ImsAJwdvaHI0rM kiEsf4QN4GNh51Tmw4TRHx74CTbpB6Kt7fCMJA1ncQijBMNEdX2JPOLbUEVannC6BCZwmkk0NaSNG dWMS1yPfYbOaDULAd8pGbprQWBTvuLCmlk/XwAZsOxS/OQaHuHSiMp47eKcqlaHqgk/U/+99ogKCY 3rBHVxKxBg0XLNw9ZWQ0sJ+gmYqqguSe4jRM9nU+th0f1uxy2zxC3wf+3Nb11of8k2UbeojXn129k RxbK4I5B3w5cMEJblIqzspx29D1urtVm8vErBppGZsIQOpRSr1/vByvDIPTWgcWduLzqWvm1EZSWg hNqPG29x13tyR2TZ4Avg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDjMo-007Bay-Da; Tue, 19 Jul 2022 09:18:10 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDjMV-007B9P-9V for linux-arm-kernel@lists.infradead.org; Tue, 19 Jul 2022 09:17:56 +0000 Received: by mail-wm1-x334.google.com with SMTP id v67-20020a1cac46000000b003a1888b9d36so11519870wme.0 for ; Tue, 19 Jul 2022 02:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=SZZ37ggY8cL3lV2zqapt5R6LZtjQRuWfQn9rSYJzCQc=; b=NAznUbwI5zPQQxFF+/UKcS02hHALSB60T9byhzp09iDqHIySZEV1o2iw4DibD06t/1 1dYnMVLwa1GKmzOSetFn090mFrvBsZTHiy4Dbj4tJOoN4pGaNEtWiB/0GcGPmfUhLx+x 9OQjAaif0daX3G/Nz9VBcuy6JzVI46Swn9oVh7RihbtUEg9PTeAINzMuqIAsRJz49GW0 VLmBdatok+NjPPCi50T7z5cryfVibbysFZljUvvkLVLNE2V13lC7NfSXY9ORRBvLAd1s Qa78tpOyopiy6y2QVXfSwGL+9BjW1dZXzJZhr0d2L4uy/QYNNst+Ltd10Y0b1WEEVLim 4pnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SZZ37ggY8cL3lV2zqapt5R6LZtjQRuWfQn9rSYJzCQc=; b=sggOod40UD/XU6B3djFeEYlZ5TSV5uZDsGVFYDTXZc9Z5wOkL/A43wvNrCX5j6SjjB /Z5sfmzLmKqD8/yo5kEGvB2YP5aaHer5Z3mfvsi5Y64/i0XUiTGmYyMOKxb/HG9few/f iHTZ/rBOJAxBEuk8JCom9ARq78I40tEo2evBr/I5XKhU0+1uic1dKHYWG8iHN4kR1ear EoLXYlY+cj8cBx7LdwtY3FMcYlTJxgASh3NDGb837bcsCUY6hMnqEnn3EhSaWD8PCi0D hor2sFkE4sW7SSCuBxZAPZd+OThPyG4z3Z/0QE2DyBsBcEVLjOJY7dCK6esYp8B16MhB oRbg== X-Gm-Message-State: AJIora+3CWRvTiCIPTmNCyh/LOhlvaIj31DJqyVvFm+OiBggpYy/difq 2QeJl9nqafAGL1wHUq/IAzInLg== X-Google-Smtp-Source: AGRyM1ucBnTJMXb3ACZMAXwW8pNBRooM87FAlYHu4qmN5qFiTH9nR4nVhX4m4+Vg291qmM13QHsKDA== X-Received: by 2002:a1c:7209:0:b0:3a3:1f31:ef3a with SMTP id n9-20020a1c7209000000b003a31f31ef3amr5552976wmc.87.1658222268142; Tue, 19 Jul 2022 02:17:48 -0700 (PDT) Received: from localhost.localdomain (192.201.68.85.rev.sfr.net. [85.68.201.192]) by smtp.gmail.com with ESMTPSA id bk19-20020a0560001d9300b0021d63fe0f03sm12944281wrb.12.2022.07.19.02.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 02:17:47 -0700 (PDT) From: Jerome Neanne To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, nm@ti.com, kristo@kernel.org Cc: khilman@baylibre.com, narmstrong@baylibre.com, msp@baylibre.com, j-keerthy@ti.c, lee.jones@linaro.org, jneanne@baylibre.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 00/14] Add support for TI TPS65219 PMIC. Date: Tue, 19 Jul 2022 11:17:28 +0200 Message-Id: <20220719091742.3221-1-jneanne@baylibre.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220719_021751_579253_06FB1740 X-CRM114-Status: GOOD ( 14.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Not implemented - DVS 1-Regulators: Full implementation and test Visual check: cat /sys/kernel/debug/regulator/regulator_summary Full validation requires userspace-consumer and virtual-regulator LDO1 is not used and output can be probbed on TP84. Changes vs RFC: Use standard regmap helpers only. Reshaped integrating review feedbacks. 2-Reset WARM/COLD test procedure: launch reboot on the console and check visually warm vs. cold can be configured on the kernel command-line at boot time. Default is cold, but adding `reboot=w` to kernel command allow testing warm reboot. Alternative: `# echo warm > /sys/kernel/reboot/mode` Changes vs RFC: Hooked to standard linux/reboot.h Add pr_flush to ensure output to console happens. 3-SW Shutdown test procedure: launch halt on the console and check visually Note: enters in competition with other source during probe Board Test Points can be used to check voltage after system shutdown. baseport is not handling wakeup. A power OFF/ON cycle is needed to recover. Changes vs RFC: Standard system-power-controller has been implemented to enable override. 4-Interrupt Pin (nINT): NEW, was not implemented in RFC Interrupt occurring on PMIC TPS65219 is propagated to SOC through EXTINTn pin connected to gic500 interrupt controller Interrupt lines for TPS65219 shows-up on console: cat /proc/interrupts Validation: Create a Residual Voltage interrupt and handling and interrupt source is cleared. `tps65219 0-0030: Registered residual voltage for LDO1` `533: 1 0 tps65219_irq 35 Edge LDO1_RV` Mapped to power button (use TP90 to GND to emulate a physical button) 5-PB Startup and Shutdown: NEW, was not implemented in RFC New implementation to support both rising and falling edge. TPS65219 has different interrupts compared to other TPS6521* chips. TPS65219 defines two interrupts for the powerbutton one for push and one for release. Interrupt support: cat proc/interrupts `557: 0 0 tps65219_irq 47 Edge tps65219-pwrbutton.1.auto` `558: 0 0 tps65219_irq 48 Edge tps65219-pwrbutton.1.auto` Jerome Neanne (9): regulator: dt-bindings: Add TI TPS65219 PMIC bindings regulator: dt-bindings: Add interrupts support to TPS65219 PMIC bindings mfd: drivers: Add TI TPS65219 PMIC support mfd: drivers: Add interrupts support to TI TPS65219 PMIC regulator: drivers: Add TI TPS65219 PMIC regulators support arm64: defconfig: Add tps65219 as modules arm64: dts: ti: Add TI TPS65219 PMIC support for AM642 SK board. arm64: dts: ti: Add pinmux and irq mapping for TPS65219 external interrupts arm64: defconfig: Add tps65219 power-button as module Markus Schneider-Pargmann (5): MAINTAINERS: OMAP2+ support, add tps65218-pwrbutton regulator: dt-bindings: tps65219: Add power-button property mfd: tps65219: Add power-button support Input: Add tps65219 interrupt driven powerbutton arm64: dts: ti: k3-am642-sk: Enable tps65219 power-button .../bindings/regulator/ti,tps65219.yaml | 178 +++++++ MAINTAINERS | 4 + arch/arm64/boot/dts/ti/k3-am642-sk.dts | 117 +++++ arch/arm64/configs/defconfig | 3 + drivers/input/misc/Kconfig | 10 + drivers/input/misc/Makefile | 1 + drivers/input/misc/tps65219-pwrbutton.c | 150 ++++++ drivers/mfd/Kconfig | 15 + drivers/mfd/Makefile | 1 + drivers/mfd/tps65219.c | 438 ++++++++++++++++++ drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/tps65219-regulator.c | 414 +++++++++++++++++ include/linux/mfd/tps65219.h | 364 +++++++++++++++ 14 files changed, 1705 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/ti,tps65219.yaml create mode 100644 drivers/input/misc/tps65219-pwrbutton.c create mode 100644 drivers/mfd/tps65219.c create mode 100644 drivers/regulator/tps65219-regulator.c create mode 100644 include/linux/mfd/tps65219.h -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel