Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2313522pxb; Wed, 9 Feb 2022 15:57:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrS3SNVEOR7gIbTnuWq0BlK3NBawfI4gRabrmixNqda/phYhYQb6UALJ60dDD1ERgaxF6+ X-Received: by 2002:a05:6a00:852:: with SMTP id q18mr4957714pfk.74.1644451045629; Wed, 09 Feb 2022 15:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644451045; cv=none; d=google.com; s=arc-20160816; b=Y4Y/ZOcQ5stPq1JK5hklTiaYEzRPmetw2LvhJq7YELN1H6iwDlsGDYzPiPgw/l8DXo rkaqRvrS1nR+OaLEAaqs6Cm2QeHyJPi+xolvnFt8hwQlpioFvpRDoszr9mDrsrwPOUUn aSuxKebjQc4a39Af4I5+z57X2/JvL4cmxBZyAfRmJHlOVdLmajM7nwqzE5enWX45r5R6 0RB8kj1m7YHy9g04hBn7G9pVS2j95nrt0J4Kgr7acx3rO3TQw4yYIc/HkMTYhkIjP/ss eEDPKbzbnTg7Gn2d8M7Q2nwlU6W4kZ0PO4+W4CC4Kb33wQsovfndxKD3JvtzaJB4Jyn3 VGcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ktkjxd3U0JmlaFnaNcBberOjA7QvY7xZY4GMDZF6GTs=; b=r5M6xDvtIFaoRhO4/C9dvEVHQjs5KfW7vdeATaK+fwH0Z+bEEeGTbOjYkl+4gsjulU sSNEE1aFWGbiBAzKVeACbmSD/eSrlNBT+nOdtbxMdmkFWNH/KWAhPBK9/kTWzeluXSve fMLLXLYyVsZaOt+HlMhLBfG3A6skMb7AzxkSG90Q0V6RVy1XpKJB7MotV0WRdjn9WkGp 4VRbClx+Qf3T5xl+rGC/LBdgceboWCsoCH4JClMCh2iIuBkMbLn309eFHH+H/8l2wyue yTW6tMaDg1CDZnWS+YZO9jquigjeUv9MNbTXXkjrGVuLYS8cL48QLeMau3Gw+SpjnGiZ oorA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rT3vggge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d2si17648954pgb.289.2022.02.09.15.57.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:57:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rT3vggge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BBD55E0998D7; Wed, 9 Feb 2022 15:27:12 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230356AbiBIXPv (ORCPT + 99 others); Wed, 9 Feb 2022 18:15:51 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:50420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231983AbiBIXPf (ORCPT ); Wed, 9 Feb 2022 18:15:35 -0500 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18FB4E0542B1 for ; Wed, 9 Feb 2022 15:15:23 -0800 (PST) Received: by mail-oi1-x22a.google.com with SMTP id s185so4198747oie.3 for ; Wed, 09 Feb 2022 15:15:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ktkjxd3U0JmlaFnaNcBberOjA7QvY7xZY4GMDZF6GTs=; b=rT3vggge4MvLAYz8ehb1gDHsIZQ2jYCjwcS7hvkQ4ulgYOQ+OvFiB4kq2Xz/bnyGIq hQ65+ocP8xocxt8jz9ZixNlEAgKq/sdXbO64IZ9j5DovrQIPVczcuJyb/l7BwWEP5t52 G50Kdx96U8b442xnWvePHyAahkttBkSzzlk7CYZWbvZa0pyU9Wz8NcNhe5CajSA4wYTr YRg2E5b3ANb1+cLPrYfySKkeaDYhrrx/ex/zQxYrwWv3s+rVbynh9+II2kuWkyg+/B+5 ueJRH9wrgNv7liccRp58MR6VN7yvOm+4AfMpc+jDoXQBZ597Kq2GxP9XVugN3eUtN8KB 6klw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ktkjxd3U0JmlaFnaNcBberOjA7QvY7xZY4GMDZF6GTs=; b=ppqw2V11hRDYmpzKoNJyRS9CHom5lkd5tF4qtyodPAzKfB47sii63/o8iJI/U+YD6a goMrCBY2PzatPL1/6PBjR7OiZvbX0/x0x2uYvK2lIrUQ+UDIl53lBDt4rJ6HYgWDEo3q dvR03lqCnn+rphUHn/BYv9+DcRG7SXSgnpMvkQsIVZr5kTrIC/O+qI2wR6gT0sEN+0l8 ofr8ZwIZ1HR/9eJ9EScO1XgkUvfGYlGbaShnPhIgnJ35zeh3fLv9jdbvYmdaaXSxTXHQ ksqqSrdHoSY6WDEgxVSWg2qZgadaW3t4m6ZelnCU82ivvpcJcYur9BIW24oJTcdU5MAW 2Dqg== X-Gm-Message-State: AOAM530R8x8ZYqBeNPjJESjPDwQvbE11XA6U6dU70MktYv+SaWJAENn4 gf/+i3YC5sSMb1oL2tj4egb/1g== X-Received: by 2002:a05:6808:1897:: with SMTP id bi23mr2151901oib.217.1644448522445; Wed, 09 Feb 2022 15:15:22 -0800 (PST) Received: from ripper ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id c29sm7147074otk.16.2022.02.09.15.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:15:21 -0800 (PST) Date: Wed, 9 Feb 2022 15:17:38 -0800 From: Bjorn Andersson To: Ansuel Smith Cc: Andy Gross , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: soc: qcom: add qcom,tcsr bindings Message-ID: References: <20220122001609.15904-1-ansuelsmth@gmail.com> <20220122001609.15904-2-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue 01 Feb 13:49 PST 2022, Ansuel Smith wrote: > On Mon, Jan 31, 2022 at 05:41:30PM -0600, Bjorn Andersson wrote: > > On Fri 21 Jan 18:16 CST 2022, Ansuel Smith wrote: > > > > > Add qcom,tcsr-ipq8064 and qcom,tcsr-ipq4019 Documentation for the > > > tcsr present in ipq8064 and ipa4019 required to configure and > > > set various peripherals present in the SoC. > > > > > > Signed-off-by: Ansuel Smith > > > --- > > > .../bindings/soc/qcom/qcom,tcsr-ipq4019.yaml | 93 +++++++++++++++++++ > > > .../bindings/soc/qcom/qcom,tcsr-ipq8064.yaml | 47 ++++++++++ > > > 2 files changed, 140 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,tcsr-ipq4019.yaml > > > create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,tcsr-ipq8064.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,tcsr-ipq4019.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,tcsr-ipq4019.yaml > > > new file mode 100644 > > > index 000000000000..3a82ccbb6588 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,tcsr-ipq4019.yaml > > > @@ -0,0 +1,93 @@ > > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: "http://devicetree.org/schemas/soc/qcom/qcom,tcsr-ipq4019.yaml#" > > > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > > > + > > > +title: Qualcomm Top Control and Status Registers binding for IPQ4019 > > > + > > > +maintainers: > > > + - Ansuel Smith > > > + > > > +description: | > > > + This binding describes the Qualcomm Top Control and Status Registers, used > > > + for accessing configuration and mux settings for a variety of peripherals > > > + for ipq4019. > > > + > > > +properties: > > > + compatible: > > > + items: > > > + - const: qcom,tcsr-ipq4019 > > > + - const: syscon > > > + > > > + reg: > > > + maxItems: 1 > > > + > > > + qcom,usb-hsphy-mode-select: > > > + description: Select usb hsphy mode for ipq4019 > > > > Why isn't this driven by the USB node, where I presume you otherwise > > need to duplicate this decision? > > > > From what I understand this is global, setting this will apply on any > usb present. > > > Is this platform not capable of OTG? > > > > I assume it's capable by selecting the correct mode using tcsr. > I expect that the USB controller will receive extcon (or usb_role_switch) requests to flip between the modes based on something. When this happens it sounds like the USB controller would have to propagate that change to the TCSR bits as well, and if the USB controller driver is able to flip the bits then this shouldn't be needed here? Regards, Bjorn