From patchwork Wed Mar 11 17:21:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 184405 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp869824ile; Wed, 11 Mar 2020 10:21:20 -0700 (PDT) X-Received: by 2002:a17:902:6b48:: with SMTP id g8mr3921238plt.149.1583947280783; Wed, 11 Mar 2020 10:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583947280; cv=none; d=google.com; s=arc-20160816; b=Zayy8fDqhJnHwJc6KDr+B3G9TaT/TSgdZyoSQMolz6mVh+fe21GsbJr90VFf3PULSm BAof/d+9xkwEXzrXwzjTjiifRqFB6xEDkP6buYKcXluPNRGKHrhPznTB7QoJ6LH2r4pD iqs+ehsSS8x0PowrWgN2dnyAaA8+p7z/6rHfr0P7fBPvsTaJ//xoutlWY8RIR/8mJcTz lMstj2mLlTy2b3+WYaL1eTwf0PY9OxWYo2XjF5Hf8hI+gM5qR+z+w1YjyZm52YGcraeb WwL/L1KG8PKF2oJDuqYJQStxbku5XU0LcMBjDz+BbxR4oDzVTlpmyq10pINFyGj6eZzI AvPA== 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=BvrsPeqWN8PtkcsNQt8nmKsbCOyaPIU6nwAu5WHHWq8=; b=CmrpgYtHvdy6GNrXApST4x6JsO6sqzYq1OnsZtXzE2SVSQ5mt6iAp+ocPuSjDlIs0E AN7oqj07ARGszivNJ6nPKtsXn9ayhN+tXl/DNFnAI4dxqtKfgrBxTgKpqL6YgvjnHRPg jn9ieBSKbacrULXdtkVaKCKp+KZwqktCg2UhvF272twQYU4Sjt68VDr5ItyNbt1WWock UH6nxqOd9omJT2yebkKIh/z12CUebAeg/zblUrw2FloGT9eTjwaaQUn/3mJp1ilJKNNt EP9711sOmUK66/z5+y5hUwlQNK8JlplflDca/O09WFdeN05hAEqikGfLGYeEdByVrwW7 qleQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TfYJfPNX; 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 s4sor2739849pji.12.2020.03.11.10.21.20 for (Google Transport Security); Wed, 11 Mar 2020 10:21:20 -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=TfYJfPNX; 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=BvrsPeqWN8PtkcsNQt8nmKsbCOyaPIU6nwAu5WHHWq8=; b=TfYJfPNXDyg7iWT/Fd3jB7IH6WKr/zMsvJ/gTE5hEguO2A3zg+wjjQxZg/cPmIojfA cKBJKHCfLfAOqFDrSuM+KQ84YqXozsJ4LwtT2mAB+ZD/OV8kyP9AjFfazLce0v7E3izJ ahAYskc18sFP0iYb4bjjdG8tGkrP+TAGNuBEZgqnSoTjI0V2ne6LozkbFwwd0OkiBgnu X9bkB45h5OHWLGqTkTrjIrd5KxXIz/Yp7uxPgNG5fKiF/3BqXF18pKQjTptae8oVVDrl 2HQF5kcQrEfjYyz8ZyG9TIkgKrAENB+1UgeqD5AanPNV3wtDt7B3CGTD6W/O+nwhgHCo W9IA== 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=BvrsPeqWN8PtkcsNQt8nmKsbCOyaPIU6nwAu5WHHWq8=; b=jvud6BXSvJ6qKROgBMOVYvZqev1DZxOPOegzaEnVN2qM8cjeIBXEfupU5fOr4bK5H4 RG6SBHfhqt6eFkL/tMWltdtdBNNwzZ9o3grBf0c/WY62IFLL/9kMLtPNR/rrUwTnXawW m6n233K8z+Woy7K5F8/FkqWE0pUT9ir9tuSupzTNY4CGUFv1NNS2K042j6+V7nkBFWHK 0QeMNR+pEg+z2K3PKZmcZkYNPA9Yqcoa2a86+m+xrpnzdQILeJzX4QBertmYnO5ndK1C HkejnB7xEmsOEuP1EuATiBh00hfups6aQHBqDq5RlOfuKmN1eePrFqrIyZv9eM3Dza1j oceQ== X-Gm-Message-State: ANhLgQ07bTk/uimtsRvnl7QYbfCvrUBMLwnPjYPJRuAzJnnXicDDyqw3 n6E7w2s3oaIzxRFrpug3x0QkJgd9 X-Google-Smtp-Source: ADFU+vtC1b03FsBk1BpWenvotET0rYCstf8uvZMELbv4ZkHpP4tW/T/5xcVCLk7efl+kVQr7Studug== X-Received: by 2002:a17:90a:b10d:: with SMTP id z13mr4563816pjq.132.1583947280382; Wed, 11 Mar 2020 10:21:20 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id b24sm14914053pfi.52.2020.03.11.10.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 10:21:19 -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 , Guillaume Gardet , Jack Pham , Bryan O'Donoghue , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [RESEND][PATCH v8 2/6] dt-bindings: usb: generic: Add role-switch-default-mode binding Date: Wed, 11 Mar 2020 17:21:05 +0000 Message-Id: <20200311172109.45134-3-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200311172109.45134-1-john.stultz@linaro.org> References: <20200311172109.45134-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: Guillaume Gardet Cc: Jack Pham Cc: Bryan O'Donoghue Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Reviewed-by: Rob Herring 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 diff --git a/Documentation/devicetree/bindings/usb/generic.txt b/Documentation/devicetree/bindings/usb/generic.txt index e6790d2a4da9..67c51759a642 100644 --- a/Documentation/devicetree/bindings/usb/generic.txt +++ b/Documentation/devicetree/bindings/usb/generic.txt @@ -35,6 +35,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: