From patchwork Fri Nov 8 01:17:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 178841 Delivered-To: patches@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1924260ilf; Thu, 7 Nov 2019 17:17:30 -0800 (PST) X-Received: by 2002:a17:902:b693:: with SMTP id c19mr7295945pls.89.1573175850029; Thu, 07 Nov 2019 17:17:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573175850; cv=none; d=google.com; s=arc-20160816; b=LYTp8rpxCIT0ugmL1ucQbobP31rJaqyvjaRrbEibTLyyio8ksDA8+NqSvyNEBKIBUk CJcRA6slSzeJ1D3DHLXDIGmOH0LYpzttSbgL9iwXnxbLpAJw5pW2tO1ssgWcqVY76YJq A1xdld05RaY1IKxy2W051JgW8dUNrdSudlKyiyLcqIXFzg+3h6oUulD6pyxXYs0kYZTU 6bS4gl4NDNcCjz9bUVbWkqzffclc3631qCbCh2O7uXAxFSGkq+UNMNvJchywgU/SdWDw CQwxmKacBj3xGs78MFt7aDc/sUfRydRaIqtubWptISeyfTgJTO+i+NiuFf1gWOJ2c/Zs r6rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LLXZrZ84x0Pyw/nld9adeknAuwlBiKPfBfqjo8+Ifgo=; b=SZIq9jW5T7hIJXMMO918AfybsP0P6VQ+u/Hm7IdQ3BasX2XMvVGtD+nfvAHwzARCgG PTm79XLCEstFfK96WL0Zsug7EO/1d08LtPB2LcJP3lfxruXHiyYeRn1myZ6TKhul0c9n 1EO/6HLYJoh7bO9olqZu7JIrMKhSqBZehbk6/bEvlpMt8Gh+rknNjy2v31y61KLifEVh 7t8QqYs7GQT8ICiomf9agJtfy49mdzvCpxDZpDRSQsZeTW0fpmi0GYR+9ToRtrVTOVnZ L4s+dm5ZpoKiBONeHF1o3uYhPK3tTbmJTlGqTf5UOWqItuqsejhgN8+lu5/AgAVjSjXH RbNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="u/JvJWNt"; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id u9sor1840071plz.64.2019.11.07.17.17.29 for (Google Transport Security); Thu, 07 Nov 2019 17:17:29 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="u/JvJWNt"; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LLXZrZ84x0Pyw/nld9adeknAuwlBiKPfBfqjo8+Ifgo=; b=u/JvJWNtCX0x9O+sSjvMa/QWd8kyTLghXlBUPWCupQcRCLT+i3CCELlTUCl24eIxb5 zA/Pz9hWhV9GWJrulx67Xr59HQk32CVEqgT/eaRosc79Z3ycVrHIlbOvcFDSqfds/JnK 6Uj4VLci3lcaQ/cn4WkmbVndipKWjYnelFlhJtAh0IKamhRF1hkS0OeElXESfWmKqYFi oXo+/V0PdT6sOAfet/xjOUDfhbjWHflFooe0WhgiY4NqAsnaXE51DgIQ7D57AltUmhD2 yFT/0Jtdudw3tuIeNGwAy/fPpGhRhQSWNqziPBMnVBUbEr3VRp+H6wiITyKQork4q4f/ 5ZtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LLXZrZ84x0Pyw/nld9adeknAuwlBiKPfBfqjo8+Ifgo=; b=Q0qEM92loE4EZrSG0JolPfm4VAQmVRQ3d7T3wGj3aCyPfcgmk5gdqPsCTYJkwkLTo0 +J7OHtmCxUIpQg4kbayUOQA2X5iKkxvzkhgEOJGlxxOCwU3q4b5f4ccg/VvUsriXsXjb CaTcZhIXabQYJVl63X0AnGiq6ViPF22VgrGdJyL60crEmvtGjJpxRYI+Zp7wdI0oSIan oek4HTUgBI9LWTWFzY4UobmB/HFLjvTL/kyhxEFo2CbhfPbBScV7mUTyz8raYvyQJJx1 JIwn/qKbk2e2qAhOaB/iCBsmlAEiI+gXHqW4d9ba2tPaPgURo5RP7mkSvbjn+h6Vcd7T DJ3A== X-Gm-Message-State: APjAAAWYAXpLHOYPQxayaokW6uaw1dlSH/JZT4+k7bUz2YOlTk43pTRf IuDtwn0XgIPgG0ngw/ipqJ0icQSZ X-Google-Smtp-Source: APXvYqwS5DMlcFIk+38hkbxym79JhkVpzW7JM1wV8qZd6lco9HB/8rFAXIE8J/Oq0TJUCqk28jNfIQ== X-Received: by 2002:a17:902:6946:: with SMTP id k6mr7463711plt.60.1573175849449; Thu, 07 Nov 2019 17:17:29 -0800 (PST) Return-Path: Received: from localhost.localdomain (c-67-170-172-113.hsd1.or.comcast.net. [67.170.172.113]) by smtp.gmail.com with ESMTPSA id s23sm3801627pgh.21.2019.11.07.17.17.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 17:17:28 -0800 (PST) From: John Stultz To: lkml Cc: John Stultz , Greg Kroah-Hartman , Rob Herring , Mark Rutland , ShuFan Lee , Heikki Krogerus , Suzuki K Poulose , Chunfeng Yun , Yu Chen , Felipe Balbi , Hans de Goede , Andy Shevchenko , Jun Li , Valentin Schneider , Jack Pham , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 2/3] dt-bindings: usb: generic: Add role-switch-default-mode binding Date: Fri, 8 Nov 2019 01:17:22 +0000 Message-Id: <20191108011723.32390-3-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191108011723.32390-1-john.stultz@linaro.org> References: <20191108011723.32390-1-john.stultz@linaro.org> Add binding to configure the default role the controller assumes is host mode when the usb role is USB_ROLE_NONE. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de Goede Cc: Andy Shevchenko Cc: Jun Li Cc: Valentin Schneider Cc: Jack Pham Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: John Stultz --- v5: Switch to string rather then a bool --- Documentation/devicetree/bindings/usb/generic.txt | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.17.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/usb/generic.txt b/Documentation/devicetree/bindings/usb/generic.txt index cf5a1ad456e6..dd733fa81fad 100644 --- a/Documentation/devicetree/bindings/usb/generic.txt +++ b/Documentation/devicetree/bindings/usb/generic.txt @@ -34,6 +34,12 @@ Optional properties: the USB data role (USB host or USB device) for a given USB connector, such as Type-C, Type-B(micro). see connector/usb-connector.txt. + - role-switch-default-mode: indicating if usb-role-switch is enabled, the + device default operation mode of controller while usb + role is USB_ROLE_NONE. Valid arguments are "host" and + "peripheral". Defaults to "peripheral" if not + specified. + This is an attribute to a USB controller such as: