From patchwork Mon Oct 28 21:59:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 177977 Delivered-To: patches@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3978418ill; Mon, 28 Oct 2019 14:59:33 -0700 (PDT) X-Received: by 2002:a17:90a:2470:: with SMTP id h103mr2035508pje.12.1572299973399; Mon, 28 Oct 2019 14:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572299973; cv=none; d=google.com; s=arc-20160816; b=wgmsiiYnwoRfF2pPecJR2ah6U4Z8GAmMqPM4pSzyv/gLM9L1Hjmw67WNbgVVpZRe68 50hWS0htCAuSQLI8Zki3M7i9iXF0NLXwAfE438eoHyRwB5d+0ITyPvSiBOAy9Kn7Vowz XGa9QNNwZIwkhxZ7qwhriWp8uD2qAuhLCQHsuxiXoMltU9hLeg/kvxPsjnxqBYopXRW9 acn8ngpCUUsi9llOX6xWsbC1IVsNNPB8I7AzArCU0z13qvltyY10C64qUT2FsfHm9sYh ouvj3+uTajWYHutq3btmQnv9O7usphHTbuJHccGTn4mFaMhg/zZNmJz9bnza+mUMhZte o51A== 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=PwMMZk9WZCsU4Du96enXrC4F3u/XmD+gFRyu+Xx8uI0=; b=UTrsOXTHoc4M0jY02bp30p3b+tD1/wzPl0lcWTZ0V6PpTOWwL3duuzZd26F8PfpXIJ IGFd5k58qZDXx+rpDfK2PVVAv5fSyDfLKQ55Rz5qXvdYADd8whJrTuf1p/kQFeAMy4dq 5eJ7QbnZYSkcXyUgRZvfcM/BMe0f8GlhH2rALgrlIYJXyczzumQUkHNkBp4HtbDnOi0U 5PJgV4WG5NMHjM6W/llp3qFXqvjv0+6Mq8RBRYjDeDmLGCHkcvBsjj5/WHCjJ9/4dVEs /Lrm7xByiFgkoYRx/vutuyYmZs16KbLYb4iRohjOdsQISgbfEaTK4MaFFN1Rh6srZZE2 t4iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yK8XTi+y; 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 b99sor1138585pjc.27.2019.10.28.14.59.33 for (Google Transport Security); Mon, 28 Oct 2019 14:59:33 -0700 (PDT) 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=yK8XTi+y; 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=PwMMZk9WZCsU4Du96enXrC4F3u/XmD+gFRyu+Xx8uI0=; b=yK8XTi+yTqTvJtzBmsrxxZLC61ETTwPZxqGYnTbkgxYjA6GIs/gPQoC01K2sxBxzFl MMEwxtYn+EJXpjSvIP6eGGl7wmPAW+jGbqWOHspOj7EiQko05VJsEfSp1MN18G1jOUEU /5vTuSj/FWaKNs2T4pu58ii6asJl3R5vuhWgK6r81QFP2V0ka7iE7k4OCpik8Nm6QAy/ 60it1XUz8BIpKv+SwD5N6xFqcNCU49JuBRhvm4ufv4JLjR081Bk5Hwi2cJwsZDpPF1/P DuxqNluasrbfqixUPmc41KVHc9FIFjCHiqGdjiSmYwyl9wuBRQpRJs6hkDEtjHnf22EU /0MQ== 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=PwMMZk9WZCsU4Du96enXrC4F3u/XmD+gFRyu+Xx8uI0=; b=Dn1r4FQNlrBjZfLq/xs5JtyHy2etyUsAcmQOh6Sy8aTXHk/K+HwHADSuzAXZ9SK9WE 2DvbI72oWhTBv6rEfXp/ojuCeYK87kceYXwQcpw5EXNkupEApBTxmI5qTqaJTWlALayt hzN/JIXEFSnvK+sjLTIq4PWUH8srBq3kFaJR4q6WGuiU+oIhfKzMC6ZEuAXaz0Kegecs u/7n+q15X4wPksHVIY8L7Nozt17ge2S/xVvvRFNpYIw6eVRW/fpwu/1PWZT4UC1TZEsJ CFV5cCkgcf/HkiVxmy3kNrseKOaSCkoTRq4OczsuI9qkXfKkKd2x+pniVqDjTq9jnemd Uesg== X-Gm-Message-State: APjAAAUxxqRBeylY+1lvmmYrxLk0U1vOVpf4smCbujWKJa2751Clu9xT CkfSMzy0u13yqhgcPmIVAw/DyBVS X-Google-Smtp-Source: APXvYqw+lIWkxCOYZfgUieLhn03j3Firptukiq0WcBWbrHmeAQRBK9que/SoMHJEv+L5UyY/O19Z1Q== X-Received: by 2002:a17:90a:a616:: with SMTP id c22mr1907346pjq.61.1572299972866; Mon, 28 Oct 2019 14:59:32 -0700 (PDT) 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 f12sm10880612pfn.152.2019.10.28.14.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 14:59:32 -0700 (PDT) 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 v4 8/9] dt-bindings: usb: generic: Add role-switch-default-host binding Date: Mon, 28 Oct 2019 21:59:18 +0000 Message-Id: <20191028215919.83697-9-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191028215919.83697-1-john.stultz@linaro.org> References: <20191028215919.83697-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 Reviewed-by: Rob Herring Signed-off-by: John Stultz --- Documentation/devicetree/bindings/usb/generic.txt | 5 +++++ 1 file changed, 5 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/usb/generic.txt b/Documentation/devicetree/bindings/usb/generic.txt index cf5a1ad456e6..013782fde293 100644 --- a/Documentation/devicetree/bindings/usb/generic.txt +++ b/Documentation/devicetree/bindings/usb/generic.txt @@ -34,6 +34,11 @@ 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-host: boolean, indicating if usb-role-switch is enabled + the device default operation mode of controller while + usb role is USB_ROLE_NONE is host mode. If this is not + set or false, it will be assumed the default is device + mode. This is an attribute to a USB controller such as: