From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7041C433B4 for ; Fri, 21 May 2021 01:32:46 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2BB62613AA for ; Fri, 21 May 2021 01:32:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2BB62613AA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=d3YPpJ5RMNMJ+DkWiUB8roo716pRxauwId1NdNurHLY=; b=JIzFsEKYqllDd5Rzv37xuMCNpi 9OUXZ6Zx4MqVGDDr8AlG74dBAwt6NauEPoLrsgRQtkGGW8mnmPKnjPtGpPfzM3ITxLopE5qlMPhoS xBXt25/vBOjnMHz7Nu6Xgb3y7DDxjfrYDvd9pV/yrknyVsc7nARZU3saTJeshtX+Cv3MTpSOu2bJF 7O4RHqPYEQ3lmgCzdps2Q75hJ/oF1ezvhf7NIXSQMFFLVjRZs5O0R2jkhVRxAGzKbN+5l6n3BatXo a5FJcmjBw+r/V2bSgqcK8/Gjo4kwiNhMmUkVM7QCYZceXXS3N1em86mgRDujR0xs6kRFP8WPRNBbg DihWFehw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lju0G-003FpR-Os; Fri, 21 May 2021 01:31:04 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lju0A-003Fnk-OJ for linux-arm-kernel@desiato.infradead.org; Fri, 21 May 2021 01:31:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=4FBI89K5NawSI4OT9bivk8hkv5t+Um74esUIt6g2b24=; b=dvz8urIdHxKO5WmpMARoiPPqKR m+Mc9Ogrr4tzRc+pafH+2B7Vw14YxtpOOgtgfrSajdecHDisXLXMnFXBbYzk2Imx1YCNJ+e4V0kKs PJuhPE9hmbWxGJLEBIgUSiJXZP59lJH3BcVU52f13vjMP0nK8zVRbWx6BGfaDZgKw1pjvCMpgJueF SBMW09Tfa8b6cMQi5fAEqapVRx/Z/CtKDbgbnrg66GLN3gUfhQb6iZ3/REE13CpTXerrB+8LwUxA8 2DfDsnA6ViyRDxd0A7psjw96rlzW8Q/qnJyCSpIro4k/fOh+csv7FWCugmaDyOlO8h3JQ8e5msecS rsS4fy0g==; Received: from mail-oi1-f182.google.com ([209.85.167.182]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lju07-00GkLa-UT for linux-arm-kernel@lists.infradead.org; Fri, 21 May 2021 01:30:57 +0000 Received: by mail-oi1-f182.google.com with SMTP id w127so14400992oig.12 for ; Thu, 20 May 2021 18:30:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4FBI89K5NawSI4OT9bivk8hkv5t+Um74esUIt6g2b24=; b=iyF4+F9KnhK8oFnMBH3HolPxzPAt2JIyXr2PxQZIppgOY6JPfSPoRGSAxx/BeiMwbq z9jrgievnsxKp4DJRkCb3hqexLbeLCrYy3dVBf+l3jTs7+5LS3i9yF/xe3Btvz0LWFzH Itd+OzdV1MmqCfvuDnlJ0s145Gu+AYEKefsNoXPONRBNBk8zjLareBeghp/mm2mgfn1N oOOwlEPskOqZ2oaW7pQAzQFZYcAP5Wid2BdD4J8mzozm1rGFDhVo1ort0cwXioaNaTCK N5o+Ix+rGFnP8SeAFzueT06A2UYq6aJE42xIJH4IcTksry5vnt/sIDWLJSkfA6ooLLoJ Z3AA== X-Gm-Message-State: AOAM5311oK81hVL+IDvv/tleHQdCGaCenrFPehfHo3vC1bUg+bPp7NMd XrkPRHFFnKFp7N5oek0tir79YDmrpg== X-Google-Smtp-Source: ABdhPJwrF47rCELYVEQid4jA1dmVyceMmOOxteTur32icInmDQsmtIJdDbuDCs7XiAZnLbKd04cYgg== X-Received: by 2002:a54:4385:: with SMTP id u5mr252500oiv.30.1621560654966; Thu, 20 May 2021 18:30:54 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id a18sm650502oiy.24.2021.05.20.18.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 18:30:54 -0700 (PDT) Received: (nullmailer pid 2443797 invoked by uid 1000); Fri, 21 May 2021 01:30:53 -0000 Date: Thu, 20 May 2021 20:30:53 -0500 From: Rob Herring To: Li Jun Cc: heikki.krogerus@linux.intel.com, shawnguo@kernel.org, gregkh@linuxfoundation.org, linux@roeck-us.net, linux-usb@vger.kernel.org, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/4] dt-bindings: connector: Add typec orientation switch properties Message-ID: <20210521013053.GA2430162@robh.at.kernel.org> References: <1621408490-23811-1-git-send-email-jun.li@nxp.com> <1621408490-23811-2-git-send-email-jun.li@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1621408490-23811-2-git-send-email-jun.li@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210520_183056_006198_E6DB9F72 X-CRM114-Status: GOOD ( 19.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, May 19, 2021 at 03:14:47PM +0800, Li Jun wrote: > Typec orientation switch can be implementaed as a consumer of mux > controller, with this way, mux-control-name must be provided with > name "typec-orientation-switch", along with its 3 states value array > for none(high impedance), cc1, cc2. > > Signed-off-by: Li Jun > --- > .../bindings/connector/usb-connector.yaml | 21 +++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml > index 32509b98142e..567183e199a3 100644 > --- a/Documentation/devicetree/bindings/connector/usb-connector.yaml > +++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml > @@ -111,6 +111,24 @@ properties: > - 1.5A > - 3.0A > > + mux-controls: > + description: > + mux controller node to use for orientation switch selection. > + maxItems: 1 > + > + mux-control-name: > + items: > + - const: typec-orientation-switch Don't really need a name with only 1 entry. > + > + mux-control-switch-states: Not really part of the 'mux-control' binding, but part of the connector. So 'typec-orientation-switch-states' or something. > + description: | > + An ordered u32 array describing the mux state value for each typec > + orientations: NONE(high impedance), CC1, CC2, if there is no HW mux > + state for NONE, use value of CC1 or CC2 for it, > + minItems: 3 > + maxItems: 3 > + $ref: /schemas/types.yaml#/definitions/uint32-array > + > # The following are optional properties for "usb-c-connector" with power > # delivery support. > source-pdos: > @@ -301,6 +319,9 @@ examples: > sink-pdos = PDO_VAR(5000, 12000, 2000)>; > op-sink-microwatt = <10000000>; > + mux-controls = <&mux>; > + mux-control-names = "typec-orientation-switch"; > + mux-control-switch-states = <2>, <0>, <1>; > }; > }; > > -- > 2.25.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel