Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4527792rdb; Fri, 15 Sep 2023 05:13:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEh+jAthI8h0rIdJgR9skmqp5NKkfF0ZjroPAGUTV2e9iXlqOGGFTjtq/ac8IxcVwhXC8X2 X-Received: by 2002:a05:6a21:47c6:b0:148:6ebd:2834 with SMTP id as6-20020a056a2147c600b001486ebd2834mr1518461pzc.34.1694780016544; Fri, 15 Sep 2023 05:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694780016; cv=none; d=google.com; s=arc-20160816; b=MAaI3SRAZUXvDqiCWwS30FatXUfdt7ibWxJgn5xPmUwfWI5VqbqYw/ZupjUGKEKS4L Y5H/lsSXGXuHmVEg/OfmqRYT7b89Wzpk3Ya0CYQDB+7ssiuvtV9EmDa/gMbleRY2ZH/e pG6EhTzYbwhTFuOYHByQUpDzeXBY+VgCtDKe/mExUHZ1KlnUyPJLlKodpCgjpAzuzIeu ZB+R2F8m25bdC9a0i3q54UbSxWZnOMYnmaR1/YEKZJ3hta3+g9zReGi+GkODVTAHG0Ml GB6hpE6Vm0hd/o1PztfsHXOv1mwrXPtEydSWqoHJyP8e3XzYPaWhgWhc0+rEK/KQBzsB 9atw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ZU4AuTd77SCi2z8SlZIHecF6Q/OBga20jXZU+Tyw7RM=; fh=1nAHOo16FsFDnpqW2tS80fRTKeYIbF/Jr+lDbmoop1o=; b=ug4PAXbaACbLir41InuSYCKULo6zgiFVvBDV65exLzFsMl1G/3dikhisV8iXe0G3nT E6ueXQaKV+xuWAUu1I10suT7zw+pKenq79F/fGomQSMXButkf0aoZAm1rfbrsNJwBmDN a3PfZa2t1aKATUPlKuio5CEC2XwwytSjmSHZ/9K4I8Cby4JSzRvNR6TVQWT/TIO30tWD dUeZKrcAfPGPexS9XSclUl90o9XADdI7t3wVghUnhkQwbKA/p6Fe/TSTzJWSYmNIJVyx Ymu7/XoNWY+ElCKyvfIH7zQnECkXS+zWFqF1fxTTUn0jlzrl9L8DZMgMzAUOXUmw55S1 JEEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T+ArXf90; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id ea21-20020a056a004c1500b0068fc261dddfsi3230190pfb.307.2023.09.15.05.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 05:13:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T+ArXf90; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B2D598375CB2; Fri, 15 Sep 2023 03:32:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233687AbjIOKcg (ORCPT + 99 others); Fri, 15 Sep 2023 06:32:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233647AbjIOKcZ (ORCPT ); Fri, 15 Sep 2023 06:32:25 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8155730EB for ; Fri, 15 Sep 2023 03:23:21 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9ad8d47ef2fso243291966b.1 for ; Fri, 15 Sep 2023 03:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694773400; x=1695378200; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ZU4AuTd77SCi2z8SlZIHecF6Q/OBga20jXZU+Tyw7RM=; b=T+ArXf90tZNK6WJAB/Arf6yieCKcCF0mVThlCkVvgBzgPsSl6Y/1agYxy8iGFUwPaZ NeaMIero5ajJK3OD72L2C9rxVpcDMn7CVUc1y/0lb9TrQxIHE5T/Bl0nve5QTzJ2uCmh DTVEZxeFsejwAMOaY2ycjJTv7OaniPmTfllcmEfwfR49pGoctK3vN8eXAyzWMw5ioyPM 2uEbl4iuW2GL+vwJDph5oSzEUDfghLO/XfLpea0Ybq+qYGQ6Sg5NBKasuH92WqUlYgdz IQDDOi3FzdVm/HND7pnIl4MVO+NPgp1WHW6ovHZCEov+693P72TDEokX9/jOBhzgM+qW 55Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694773400; x=1695378200; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZU4AuTd77SCi2z8SlZIHecF6Q/OBga20jXZU+Tyw7RM=; b=oTwczKr2g+xu1ViavazgjSuJi6g+nXqQSLIJBvw5B90+/sLAjuf1F5yb3eIOZKJrdn 6N18gNMhChx7ZfFMVux6oML/ExnEr0g+jKWFflEEGNGaoI0tZnYTHxZorK8SG6Yx5x46 h7oCVMC/SfrIezR3lhs2kN14SshXQ2zSPNo4QedgQ5aiZ83XmltIG3zbnsr8go46eIVL jA8Bo1ZmnwFg6CVZUrFUZ8XQ1ejBHeHmQRK3P9yEGY3XWppv3PvmE7DETTYCatKULj3w aPP0CQ2yzYoN3Gs92H+3Bkhw6mg95W6pl66uWsF3tSMzol3LpsQmlT7RjF12FuIZ4zRz X5KQ== X-Gm-Message-State: AOJu0YwqdoOeCT2Jq7BohNAGLbQH9WzAJSFqQcnkzJ+oLygYYjoXhM0r OWHcMrqgyQZGvl8uSiuVSitVZw== X-Received: by 2002:a17:906:74d5:b0:99c:5056:4e2e with SMTP id z21-20020a17090674d500b0099c50564e2emr951471ejl.31.1694773399810; Fri, 15 Sep 2023 03:23:19 -0700 (PDT) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id j21-20020a170906831500b009ad87d1be17sm2211358ejx.22.2023.09.15.03.23.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Sep 2023 03:23:19 -0700 (PDT) Message-ID: Date: Fri, 15 Sep 2023 11:23:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] usb: typec: tps6598x: add reset gpio support Content-Language: en-US To: Javier Carrasco , Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20230912-topic-tps6598x_reset-v1-0-78dc0bf61790@wolfvision.net> <20230912-topic-tps6598x_reset-v1-1-78dc0bf61790@wolfvision.net> From: Bryan O'Donoghue In-Reply-To: <20230912-topic-tps6598x_reset-v1-1-78dc0bf61790@wolfvision.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 15 Sep 2023 03:32:38 -0700 (PDT) On 15/09/2023 07:50, Javier Carrasco wrote: > The TPS6598x PD controller provides an active-high hardware reset input > that reinitializes all device settings. If it is not grounded by > design, the driver must be able to de-assert it in order to initialize > the device. > > The PD controller is not ready for registration right after the reset > de-assertion and a delay must be introduced in that case. According to > TI, the delay can reach up to 1000 ms [1], which is in line with the > experimental results obtained with a TPS65987D. > > Add a GPIO descriptor for the reset signal and basic reset management > for initialization and suspend/resume. > > [1] https://e2e.ti.com/support/power-management-group/power-management/ > f/power-management-forum/1269856/tps65987d-tps65987d-reset-de-assert- > to-normal-operation/4809389#4809389 > > Signed-off-by: Javier Carrasco Reviewed-by: Bryan O'Donoghue