Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2970838pxb; Sun, 20 Feb 2022 05:56:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPZCBkWWB3CQ7nTqyPSU34cKgkG6rZTXVnVqoye2u2Ex1BFWSTUX2Ph1ANjPqdbnRS9dN6 X-Received: by 2002:a17:903:192:b0:14d:8b5a:5446 with SMTP id z18-20020a170903019200b0014d8b5a5446mr15317752plg.46.1645365398744; Sun, 20 Feb 2022 05:56:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645365398; cv=none; d=google.com; s=arc-20160816; b=lZn86I1uDk8Cw8L0EhGNPEomKScYusWKNtoMOjAWmk5TlNwv2FCyPd/gS9HI3mueFz JgS2YXD/HU5cBvw45/zMlmTs82gRTf7xbbfRlSAHF5hZhWnSoV10q7c6HFU0NKRQTq2g IuqIOvbRE0wTV8D06+gKuhX1M+H2lTVsw+rRQb0drjh3iUa6rJH0K09/naQfcrm+x2X9 wvZxy2zvT44whv+FFy7Myy2cIpWNugLeEgbUvffRZbBT3pLNOTnubJ014XEm+yYkM/6O 3Fe/vFIL4PazdeSLduNvea8HynH3h88claeYftu4zdF5PvQa6JzxMb4w8IkgFTa+Skhf mefg== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=DZiOtxBgoTtwB9UJCoY4ZWmHfqn+dNPJ6H+DmBuShUo=; b=UP/XahnxIlcNqqicKl2UP8LpRb4/9SZW290bnrxXwnZjRjmYW7c+PczEoYjyWjrlX6 oCa68XA32QThOUOf7gRitSt6u9yLS5vhxEvQHZtUTSGYfu/fpJlXwp7vfjAafQUxru34 /BqEGd1UmZXA/5mk2tdNQh7cBGENkCYWo7nETRAbcNo1coOMgv71wzCIdLchnGaWoqpl SKyekebJbLxBzSZtEF0pQEbkShOom8W+fZi1XxZuLZbuqGgSOn9FA2M98Pv2zv18uGz/ 5ezI0bOHpVozLHUGTR34sJbHchyTxG49fGlWlvHc99R4n6hJ+S5HLa0NDy6dOoP9cygE 6qXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=VsBO4YCW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8si7044504pfv.121.2022.02.20.05.56.21; Sun, 20 Feb 2022 05:56:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=VsBO4YCW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243246AbiBSV4R (ORCPT + 99 others); Sat, 19 Feb 2022 16:56:17 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243181AbiBSV4M (ORCPT ); Sat, 19 Feb 2022 16:56:12 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E595E541AD for ; Sat, 19 Feb 2022 13:55:45 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id y5so5312335pfe.4 for ; Sat, 19 Feb 2022 13:55:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=DZiOtxBgoTtwB9UJCoY4ZWmHfqn+dNPJ6H+DmBuShUo=; b=VsBO4YCWPc6ib471hmScxdPkd5daMf5/3q37Dx+GlNpIVyuhM1J3OTEnzAq3ifa2Nk ThSiij4+tIN2Dd/oF+tW6xv2JAJqAmURHr4Ny+pX9XNRQYFyIBL1mGJ953LQ0GCTSKUO uoNTgpN5gGcy7yeBAPELm0gJMt+qeTXLf/RkPjoIDpdVlreCHJu0HEBwnvEx5IpZJW14 D2EOiCLdJvp4lwuPO8Qitwkd6x+sikjvvc/wyk/Wutdh1YYpPBEvR+fOQTy7lcSjP4ZV WniLF2oSAtEmrfQfRWq2tnzfGF4X5+hk3oWPKLo76jIl3SPcNdt1CFQS89M/v9zjIUUM m6bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DZiOtxBgoTtwB9UJCoY4ZWmHfqn+dNPJ6H+DmBuShUo=; b=HV4gVebZobVY6HX/FgW8JCIl9LDuF4LCn2QUOVcSD/FsyLVrYJlZk4bhFoSq5ZqmGs V9J4eP7ZaCNTzJwTTf5nZ/lonD9XOqh2TFD0/PPHHg2POkL8c0Aw3/JcyTZ4abAHnvLg XZ3pMhreQBRxkL2VpDH0D1poVAj7+5Ksu5XKkbsuUY04ESvm54wZOormKdOV23Q9MWxo ZkI5aS4G/nEP5iYgSU7BEX+XBlJYt+pVeZNo5Of9azm2cNohMUCUiH7wd+x59SzGe3Q8 zz30JjH8ZdfYsB9XhiiZ/7ud79WndRzpFM7/afUi4yczyUfGuhHsITgdzXoQfDRdq8pi x6ig== X-Gm-Message-State: AOAM530s1WS7aKSsKH1xFTiiSrfVxknbu+/4ERz/17bXzyfD8wUEfPEX ixa+vzXlPXN56aO092TzPH4zoA== X-Received: by 2002:a63:e403:0:b0:365:5657:7b4d with SMTP id a3-20020a63e403000000b0036556577b4dmr10908413pgi.130.1645307745264; Sat, 19 Feb 2022 13:55:45 -0800 (PST) Received: from x1.hsd1.or.comcast.net ([2601:1c2:1001:7090:31ab:1e81:9550:f30a]) by smtp.gmail.com with ESMTPSA id i17sm13447337pgn.82.2022.02.19.13.55.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Feb 2022 13:55:44 -0800 (PST) From: Drew Fustini To: =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Bjorn Andersson , Dave Gerlach , devicetree@vger.kernel.org, Drew Fustini , Keerthy , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-remoteproc@vger.kernel.org, Mathieu Poirier , Nishanth Menon , Rob Herring , Santosh Shilimkar , Tony Lindgren , s-anna@ti.com, khilman@baylibre.com Subject: [PATCH 04/11] dt-bindings: wkup_m3_ipc: Add ti,io-isolation property Date: Sat, 19 Feb 2022 13:53:21 -0800 Message-Id: <20220219215328.485660-5-dfustini@baylibre.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220219215328.485660-1-dfustini@baylibre.com> References: <20220219215328.485660-1-dfustini@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Gerlach Add documentation for the ti,io-isolation DT property on the wkup_m3_ipc node which tells the wkup_m3_ipc driver to use the wkup_m3 to enable IO Isolation during low power mode transitions on am43xx platforms. Signed-off-by: Dave Gerlach Signed-off-by: Drew Fustini --- .../bindings/soc/ti/wkup_m3_ipc.txt | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/ti/wkup_m3_ipc.txt b/Documentation/devicetree/bindings/soc/ti/wkup_m3_ipc.txt index 4cdbb60fd0d0..df6b600abf4c 100644 --- a/Documentation/devicetree/bindings/soc/ti/wkup_m3_ipc.txt +++ b/Documentation/devicetree/bindings/soc/ti/wkup_m3_ipc.txt @@ -89,3 +89,49 @@ Example: ti,vtt-gpio-pin = <7>; ... }; + + +IO Isolation +============ +Supported by: AM43xx SoCs + +It is possible to configure any pin with a corresponding CTRL_CONF_* +register in the control module to use the states defined in the DS_PAD_CONFIG +bits by enabling IO isolation on the SoC. The 'ti,set-io-isolation' property +tells the wkup_m3_ipc driver to enable IO isolation late in the suspend path +after all drivers have been disabled. + +Optional properties: +- ti,set-io-isolation: Indicates that the IO's should be placed into + isolation and the DS_PAD_CONFIG values should be + used during suspend. + +Example (VTT Toggle using any GPIO on am437x-gp-evm): +----------------------------------------------------- + +On the AM437x GP EVM, the VTT enable line must be held low to disable VTT +regulator and held high to enable, so the following pinctrl entry is used. +The DS pull is enabled which uses a pull down by default and DS off mode is +used which outputs a low by default. For the normal state, a pull up is +specified so that the VTT enable line gets pulled high immediately after +the DS states are removed upon exit from DeepSleep0. + + &am43xx_pinmux { + pinctrl-names = "default"; + pinctrl-0 = <&ddr3_vtt_toggle_default>; + + ddr3_vtt_toggle_default: ddr_vtt_toggle_default { + pinctrl-single,pins = < + 0x25C (DS0_PULL_UP_DOWN_EN | PIN_OUTPUT_PULLUP | + DS0_FORCE_OFF_MODE | MUX_MODE7)>; + }; + ... + }; + + wkup_m3_ipc: wkup_m3_ipc@1324 { + compatible = "ti,am4372-wkup-m3-ipc"; + ... + ... + ti,set-io-isolation; + ... + }; -- 2.32.0