Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3869548rwd; Sat, 3 Jun 2023 13:56:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4/JHLdU2wSxBoz+tmVYaTApx6lNbvy/iPXh4Pld5/Po1Nv+H92TwZZ5RlUqANn9YPlnt8z X-Received: by 2002:a05:6a20:2454:b0:106:c9b7:c93d with SMTP id t20-20020a056a20245400b00106c9b7c93dmr2998403pzc.19.1685825784842; Sat, 03 Jun 2023 13:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685825784; cv=none; d=google.com; s=arc-20160816; b=05CmoBBiz4J4YYweBA0pUOlB5sCWKpJXZQMQ/mR2zXgD31N+OTnVGEmTwbJ7+U2+gx EeuhEHRnRHGLUIxVimf6KLGqAfHrhEmgp0yHa/uYM2ZOOpaB5pX4UDj9tPt+lKDKDlh+ M942ky2NbWxdk3UgiC+tjwXwKWS6vb7VVKDXdHqGkFQ1b6Z4R4g9BonN4hsQ5t5fonIo eof0OMUb499egl03BDko8Dvl0Uk6C3VIXnA/tviJhNO/Dy0L+nrxJD7CCTeA+pe2AH2b x6uW/xGogQp2d1NH76ZG2msFUDLCwHaC0D0ccP0Yx7hTr824xYYCbkYXVwOqt/Metg0S xDqQ== 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=MSyBUVrj1zvCL/sUTHseoVK711z0KXIwGLcvgpyUHHk=; b=LM3N1kEagoWduTZzbK7fMNr5ZQdHe/IydfT++5aHiUNLwhsslfNWz1kaLWQhWvPR6o +ZwgCuvv8YrGocasvE8rj2xIYhXRGVwWe5YtVbrNAyA2ISLNNUbAkM4U+nxUhP4dGyEJ xfclrlddx8OOkI7CQiGkWMn53O7EeJ8MoRvXyccewmwpCHaq3tAHqBm7hHoHKuYbaiV5 ZMMyY8ZcoQuTCRPRFiaYPb2lRb+BllBQxGrnaYmSlHn24YWqWv+mQlw1QqxX3BjYGK8a COgYVM/du5BlXLSKqwlUrmQxLuuh51nqCBuewY0PLq6uTcp48e+1ts/oX9BxUHozhVJI BISg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RLvVfI7A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t74-20020a63784d000000b005250c24fa2esi3185493pgc.428.2023.06.03.13.56.12; Sat, 03 Jun 2023 13:56:24 -0700 (PDT) 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=@linaro.org header.s=google header.b=RLvVfI7A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229669AbjFCUWg (ORCPT + 99 others); Sat, 3 Jun 2023 16:22:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbjFCUWf (ORCPT ); Sat, 3 Jun 2023 16:22:35 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1077E12E for ; Sat, 3 Jun 2023 13:22:33 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f3edc05aa5so4272752e87.3 for ; Sat, 03 Jun 2023 13:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685823751; x=1688415751; 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=MSyBUVrj1zvCL/sUTHseoVK711z0KXIwGLcvgpyUHHk=; b=RLvVfI7AzvC36Q7HcKvYNjDgJyKOKL/r8Igprjwc4Y+DDzZyF2A9Bup8j7kTzdEBYE s7NgX1EeCWcoq79UGTrbkJ+ZXzXh7CWZwpJsd0YUPU53CRH34+kBgA92n+Q5Z3QO+IPz ZWgdy3lKRsk5SXNZcguZpUunA5UbvEBQlKJ+QakhdHO4iUex0/qr8u+6RFMymR+0W9Bs pHh5xfwHq9+KA4qfQcn/LCP5YiGTsxG5abNyVB8egX0GDXYo1hv2CjHi4AcbXVgbVv7R gZ9vOslzvCSYTee/aLddUdljENf6IbrbzO+Df5+OdCEz3aYwpM/pFMnZhso3QFAUmr9b gHmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685823751; x=1688415751; 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=MSyBUVrj1zvCL/sUTHseoVK711z0KXIwGLcvgpyUHHk=; b=K3o8f5EqtuPH9FR/eAL693St5BUz2rRgfHbivSnLRMG+vYqsvBk7BjhcK1a3zCiZOy Akuxy/ZC/iXY8paKussQJf3kkWT9M97VaPonQhXM3q28jMGVfPgIAm20dbvsSG/pMwUD Z3LuF43d3fdCrTknUMibJCW8A7fKW1jBknVFNnRp05MoxiE+Jyb6eKlIlN7+Y759WhtT o3ftdWnm9mkDT97Jsou7X3rgx9hxS3XPU7BgewrzGkWqsJM/wbnF/XWSU2n3xMFDJW/0 4b/CXpolYeK4v/ZtUBJT6SWke5tU7K6GwCX2StPj5Pj4d2zOhwn97OR2KgBg2BQ5Cbas IexA== X-Gm-Message-State: AC+VfDx96wCyy0qBLVA+1UeHt+owlc2h/xuCvUSub0kT1FeLe9tiY4PW paYZ9AdFb7yma9KdTQCIuxOUFhmh/U8IDm1o8sM= X-Received: by 2002:ac2:5a4c:0:b0:4f4:c972:981f with SMTP id r12-20020ac25a4c000000b004f4c972981fmr3421650lfn.54.1685823751161; Sat, 03 Jun 2023 13:22:31 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id w1-20020ac24421000000b004f392625952sm572461lfl.26.2023.06.03.13.22.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Jun 2023 13:22:30 -0700 (PDT) Message-ID: <0fbf55e7-2140-751d-5347-f907a46ef78c@linaro.org> Date: Sat, 3 Jun 2023 23:22:29 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH RFC 1/7] dt-bindings: connector: usb-connector: add a gpio used to determine the Type-C port plug orientation Content-Language: en-GB To: Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heikki Krogerus , Greg Kroah-Hartman Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org References: <20230601-topic-sm8550-upstream-type-c-v1-0-d4d97b4d8bab@linaro.org> <20230601-topic-sm8550-upstream-type-c-v1-1-d4d97b4d8bab@linaro.org> From: Dmitry Baryshkov In-Reply-To: <20230601-topic-sm8550-upstream-type-c-v1-1-d4d97b4d8bab@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 01/06/2023 17:07, Neil Armstrong wrote: > On some platforms, the Type-C plug orientation is given on a GPIO line. > > Document this optional Type-C connector property, and take the > assumption an active level represents an inverted/flipped orientation. > > Signed-off-by: Neil Armstrong > --- > Documentation/devicetree/bindings/connector/usb-connector.yaml | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml > index ae515651fc6b..c3884eed6ba4 100644 > --- a/Documentation/devicetree/bindings/connector/usb-connector.yaml > +++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml > @@ -114,6 +114,11 @@ properties: > description: Set this property if the Type-C connector has no power delivery support. > type: boolean > > + orientation-gpios: > + description: An input gpio for Type-C connector orientation, used to detect orientation > + of the Type-C connector. GPIO active level means "CC2" or Reversed/Flipped orientation. > + maxItems: 1 Should this be a property of the connector or of the parent device node? I mean, unlike usb-b-connector (where ID and Vbus can be simple GPIOs nearly directly connected to the pins of the connector) for the USB-C the orientation is not a connector's GPIO, but rather some additional not elementary logic. > + > # The following are optional properties for "usb-c-connector" with power > # delivery support. > source-pdos: > -- With best wishes Dmitry