Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp470022rdb; Fri, 6 Oct 2023 08:40:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpTqCdWDzXxfBkluovYVsG87AM1aphMaoqOiTyhoB9TF0po6QCNKjpuBdOxImN3jl/6MwP X-Received: by 2002:a17:903:2341:b0:1c7:1f3f:b6dc with SMTP id c1-20020a170903234100b001c71f3fb6dcmr9954075plh.11.1696606853016; Fri, 06 Oct 2023 08:40:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696606853; cv=none; d=google.com; s=arc-20160816; b=M5VCAteVS4ywfZZnPlFikLmw7u/5MHn78H38AGVe6XKaXiQpTM2kqsx2WQmcT+fOa9 GS4+60CHs2qIKlNdWg4bv2pFMqouFkCb12ZzKMr+QkSWWwZCLe0auY5Mz//2IhjY7KML vwrD6/z/JSD+jIRXlN1DOkTaoPBDktRcrsgHEdOXikK6dmXcny5IHLSlCnq4djRhH61C tO08WtMlIbkBWcRV53urjeQvr2CnCKNFnwEmRrCjS40MvCp8NiI+6wR8eyJGwol2CKTL vm4JUK0gS+3W9jbTlpTQQHu7kph2vVBtLSAPX6wxwwcrREUgeIlvyO78bVwbgwLlUJ0B opEQ== 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=lma5Pg2fg4HSfLNh2dO4cff8s/YsRtRpRi/g3hiWxKw=; fh=JGF4o1C2Pmng1nICZNgkHRKXHv1GnFpmPYaqYfRS6L0=; b=0zyKko2RijMzvhfFwFRFC44bLl4SrzbZTQxx+Zn4C5DE7zwSL+/p0G2EpLWDtNKfze 6oa2TgjkwtmR0xNjlSk6vZN8wSzueofWwhdBBLeyKvBuenZAwTqmusVSYOhyMcgekIwh PNYr6Z5IreWSJOJDFj8wi7KZqWAcJBaS3eEXOD2IJ+sXhL50ILhwV0OM8qz0RgyaIQu+ KRJ4l5hE9SVBKryQiJAEafGnyO8cu/d/qNRG83AnBhPa/62WIlhsUEMFq1BA5rqk7xpj 6ZGOwGAtYGdG44g+Gw1lH68Pd2LEQa+OpaUiYCxK77u4j2VGCPwHkqhSR61xSPAKSGhJ tMlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EkEDsXAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id jx2-20020a170903138200b001b025aba9f2si3679744plb.22.2023.10.06.08.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 08:40:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EkEDsXAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id CEA4E807B981; Fri, 6 Oct 2023 08:40:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232651AbjJFPkl (ORCPT + 99 others); Fri, 6 Oct 2023 11:40:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232152AbjJFPkk (ORCPT ); Fri, 6 Oct 2023 11:40:40 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2641AD; Fri, 6 Oct 2023 08:40:38 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACBADC433C8; Fri, 6 Oct 2023 15:40:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696606838; bh=CQ3tpC/DASTgxY6DDz8rdDHkbS+6W3r8KCIgNsOPPFg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EkEDsXAQ9Cmp5tr6OX02yztvXuEbocstBiOPRzphvHadTQWhWYleaSZbvu1wtGs01 6nOTIj6d39Wf9f2O3HU4RtDsg5ZmWVZ1pr95jki4nCbdvq12awFJOQrVBG5caz9bJv XJEyH23/Gz6FBn5DgXZLUxjzVEYrMw04vNqmb9eg0rYxc15KWZXl5/9Jw47i3Vtyh+ KSbT25eci1dJbo4kHPGWNi49TRMNUugOMtRhj2iW607HMXC5U4mlWQyKrswjRm+zUP /DLDKIkAf1PjodlsEqrnEG0fk/TgHo/Esmy70ObjBZxOryVStJX90YPdVdMHklQF/X USLsmjTvRBvZQ== Received: (nullmailer pid 3983540 invoked by uid 1000); Fri, 06 Oct 2023 15:40:35 -0000 Date: Fri, 6 Oct 2023 10:40:35 -0500 From: Rob Herring To: Neil Armstrong Cc: Andy Gross , Bjorn Andersson , 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: <20231006154035.GA3979654-robh@kernel.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231002-topic-sm8550-upstream-type-c-orientation-v2-1-125410d3ff95@linaro.org> X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Fri, 06 Oct 2023 08:40:51 -0700 (PDT) X-Spam-Level: ** 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'?