From patchwork Wed Oct 2 23:16:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 175043 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1417324ill; Wed, 2 Oct 2019 16:16:24 -0700 (PDT) X-Received: by 2002:a17:902:7b84:: with SMTP id w4mr6451460pll.63.1570058184098; Wed, 02 Oct 2019 16:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570058184; cv=none; d=google.com; s=arc-20160816; b=AWLpU9tmUTrafsDgmOP0ReQyUpvT6OmQauXVTSobgeJ99ky6NXVJVtTdtKMFzyOTvp YavoNogiONpnAU52EXqzwUAxnSp3lWKcASMLepDrWgf0H6AyC+jyNG3Wxzfeu1NJfELE PQYWqnllElKvugK8+onSt66dtLcS+VSmBnNdC5pHh/4IP9FQoSUV6IxaEHzJdmp2AcF9 0tjjomeLj4CBfFnohOS2Qh2UsBlWPiPbyUeoHMHiypyUz8wmMLLibe3Ibfc0K6ApIqS+ FtqJ77vwajEh7c0yDyRUIo2atciG7oSKmY81EYij+W7fOKTTD5xwJLx1rMNmwxrUx5tt 2w8Q== 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=rU3ZIe1wEyPAlyBuDaaRw79vpye8Qn/RpKU+olhtNWc=; b=MbGNLQ1qfz/Tmod7COf90MPRmjqvx0Wb+5gNQOBsgH3CuhVIwrFj5nvEEYjC5Ctnzm VWM1OVXhfWgCcKqrkT1vUOOPD4Y+kaKR0gsTKJYnL/lIK6zmlgZB1uQiTrZ1CM/csy3p 4pM6wTLpMxtQfwvReoR60csPFajA3QTwGLvIfbJBpatF4ly0JjQa6DPAvTODkJydyWyC IFeLvDMPYnuyEx8vOEjUQInxlR4dtdotIgDAMfD8fOWdGOOLtUttrxdQKJEINLFXvmAm m/wHiB7fjjqMxM+YnWPIYi/X0XB/KYNVtpCsJcLd8O6yvkBkOHugakBRWHSIFVP4kcoF rKSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yUio+wwG; 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 33sor797880pla.11.2019.10.02.16.16.24 for (Google Transport Security); Wed, 02 Oct 2019 16:16:24 -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=yUio+wwG; 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=rU3ZIe1wEyPAlyBuDaaRw79vpye8Qn/RpKU+olhtNWc=; b=yUio+wwG5BWebxxhvpw7haRUyEyivo6OPVbEi3XIn0sz8A+fsfgZW/IZSGk9ec0w4f k4ZlnzlypckTUxWu2hXxCWjxs8vw7UXlr95Mwpk0gklCavpWrE2yLme/muin40Hf1x9J ZtzTL/CsWMQoKLjUj4m/nIAlZgEjN2F9K2zALdSWKf4ca4eIshDHFjyScWISkS9ezCL6 xakFfbbDqt6ZTYKTEyt6iPYey0xWjdaWccEK8xBkX2tPDAq9m0/MdlVA+9kVeTC+Vabd 9hM4hLA32mrfL5Y1epXeavibzLHX300cNBtFli9v8J5PuuZWcPHBHLt/wi68gP7/DDEz DmXg== 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=rU3ZIe1wEyPAlyBuDaaRw79vpye8Qn/RpKU+olhtNWc=; b=bOu+/SM977wMd7WAHDe2WqjSEtXF+oTOcS/csA7y92I13jgYFrDq0A8CN6gdSN+Uic 7mThdNRjwUxaFQHuGdVO2b+xr9JpqEdBZsfld6HAYAK8mC3vLtb1CnG31wTujwp4f5s/ VLwVJeDMPagj/uzLK+EJM/mKWKRpN5vWrlDcHnbcuAWq1g5rgDoW6mi0l/rCrBtRrDfW kGClt6XII1Da+o6WsAbqEO6/ZND1aPe4K/SF+iMmVvgm+LFIQNRNOWMOTcgG5xfH8vli 4XkuTNUVVvFZ3ImwwX901L4OscyfAB3qW8GU0MMgH8yWLkgutGAPEMKyASHuC9xQqdIT GHXg== X-Gm-Message-State: APjAAAW+uOA3LQCB7EvbvWwZN0vZJ7SHKuLsg7xVHAEfxVDa6PUjk11f iJTSVliQQRi4Irqx6lZZBvPfvq91 X-Google-Smtp-Source: APXvYqwcoB4Ky8kF2Dkr6DmmT3lpgIWscDqSSRfTpsmolukj/DFBnWE3VjYEeGe1NHexI2kCdvgjsw== X-Received: by 2002:a17:902:ff08:: with SMTP id f8mr6340368plj.309.1570058183692; Wed, 02 Oct 2019 16:16:23 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id l7sm288791pjy.12.2019.10.02.16.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2019 16:16:22 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Heikki Krogerus , Suzuki K Poulose , Chunfeng Yun , Yu Chen , Felipe Balbi , Hans de Goede , Andy Shevchenko , Jun Li , Valentin Schneider , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [RFC][PATCH 1/3] dt-bindings: usb: generic: Add role-switch-default-host binding Date: Wed, 2 Oct 2019 23:16:15 +0000 Message-Id: <20191002231617.3670-2-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191002231617.3670-1-john.stultz@linaro.org> References: <20191002231617.3670-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: 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: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org 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: