Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp436924rdg; Thu, 12 Oct 2023 09:44:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4kmz82X2IjpmoAburUP6m8CpheGf0n215KRfm8VxI7W9gLHKcsoqBOnGsHjqJ+Avb+SF5 X-Received: by 2002:a17:90b:3751:b0:27d:306d:71c9 with SMTP id ne17-20020a17090b375100b0027d306d71c9mr206576pjb.49.1697129094594; Thu, 12 Oct 2023 09:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697129094; cv=none; d=google.com; s=arc-20160816; b=CD9ySoesPsq+X7VXnoX0B9mWMe8Nim3TG27NmMcIHiV+cD83tddx/0xDVJrDZP8hL6 +MIZmS9kBOQpnLDv2kmx5YH4JtyApf27zjQI90+beEToxKdy1PvSH+Qq+eMnsMAtSB8X qlcKJYKT1TEOvHPoU90ti6TyhiMW5nPfIbM33m525++GB7TG33KCdD6k7PZUy8Rt6646 j9yU5zk+mfA3lASRk8HHtSCYm7ERJ2TA6c6/2CqWwu9yMz4i9SuDipBke9SJZ4BwWiVx BVnSSoBMsFhrORKEb8Qk8NUx5BYofe6Kt0RncfFyQdyCnvnIPoP1av3F3TJwY16Ajom5 90zg== 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=Kmi5sBYsESTl3NyHRcL6eY1fOB1IZRnBlb5UH289coM=; fh=1Mddpmn2wYnd47V0RO2qT78qly49OZKl6B4yoCYbadk=; b=PNhTcHkW9jc6w5S1vIZ8Lh2UOgdCJUevUvZ+esxgIHF+MqacqFj1mz4Z43vDrOkYi3 6/umM6P3RFMMP15quRY5d2O6Yspg25PF+pv/cYpDxmaOor+1iAMJbtdVzA6X6qbXoIYt FPA7Lnv9VrxPAylVaX6+xPM092qcgDigah2sx5/qhvdBYJ3gcr/mVa3s8okJRunnMCFK NNYEbOPfZIICcRWjiDB6nLJ9PNjyWhbqjbeesVAdxJ4ljWoOONUhKK3BKTpWf08gW7+F Q4n2CDsVMYlj+CbWdusVpEAi5Er8unNxv7+GKKpHx4yXBKfbkvSVyG4NJihRKC5hflIJ l6kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JJ3jZA5d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a11-20020a17090a854b00b0027ce5205f94si2520990pjw.150.2023.10.12.09.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 09:44:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JJ3jZA5d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 74545823CE91; Thu, 12 Oct 2023 09:44:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379518AbjJLQot (ORCPT + 99 others); Thu, 12 Oct 2023 12:44:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233988AbjJLQos (ORCPT ); Thu, 12 Oct 2023 12:44:48 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A4B7CC; Thu, 12 Oct 2023 09:44:46 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F299C433C7; Thu, 12 Oct 2023 16:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697129086; bh=Wj/b/rTXfuxjS20fYyMYenjOGieGl3jd2wJ+8o1xpmU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JJ3jZA5dX6S3T30H/LlG1i9szPvYNW9TYQTVqLJTF8nA2IrgPSQe1GqVufDKF5lPJ uv7cYGUTT6u5EjNv9tUqJbzgnXG7VeWOWgdKdKN/cZyKdJk9y3+YsBkasq002BS67f jC1dQqDEeSOGoiIrQN9WDzgu05syJ4BcD6Ow1p0E3yLzccZSFe3Id5KkQsJ2vB4jkb Thy/r78N7Yof/za89a7cXQcByx53jnxzEX2kxWPQW4EJ6JUcigykPu1yp9D46wLBTW kUqdt/MRAbQYovfhtihzNZ1jE6tVh98x2Npgl4002RU3/WVcRrrRWq0PX02wER8y5l 8tuuUEk5h9Wdw== Date: Thu, 12 Oct 2023 09:48:38 -0700 From: Bjorn Andersson To: Rob Herring Cc: Neil Armstrong , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , Heikki Krogerus , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v2 1/4] dt-bindings: soc: qcom: qcom,pmic-glink: add a gpio used to determine the Type-C port plug orientation Message-ID: References: <20231002-topic-sm8550-upstream-type-c-orientation-v2-0-125410d3ff95@linaro.org> <20231002-topic-sm8550-upstream-type-c-orientation-v2-1-125410d3ff95@linaro.org> <20231006154035.GA3979654-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231006154035.GA3979654-robh@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 09:44:53 -0700 (PDT) On Fri, Oct 06, 2023 at 10:40:35AM -0500, Rob Herring wrote: > On Mon, Oct 02, 2023 at 12:20:21PM +0200, Neil Armstrong wrote: > > On SM8450 and SM8550 based platforms, the Type-C plug orientation is given on a > > GPIO line for each connector which are set by the PMIC(s). > > > > Document this optional Type-C connector property, and take the > > assumption an active level represents an inverted/flipped orientation. > > > > Signed-off-by: Neil Armstrong > > --- > > .../devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml | 19 +++++++++++++++++++ > > 1 file changed, 19 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml > > index bceb479f74c5..422921cf1f82 100644 > > --- a/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml > > +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml > > @@ -35,6 +35,12 @@ properties: > > '#size-cells': > > const: 0 > > > > + orientation-gpios: > > + description: Array of input gpios for the Type-C connector orientation indication. > > + The GPIO indication is used to detect the orientation of the Type-C connector. > > + The array should contain a gpio entry for each PMIC Glink connector, in reg order. > > + It is defined that GPIO active level means "CC2" or Reversed/Flipped orientation. > > Shouldn't this node then have 'orientation-switch'? The 'orientation-switch' property denotes that the node is the sink of a orientation switching event, but this node represents the source of such events (i.e. the connector-side). The array defines the gpio signal providing the current orientation for each of the listed usb-c-connectors under the node. Regards, Bjorn