From patchwork Thu Nov 28 05:09:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 11265379 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 460FF6C1 for ; Thu, 28 Nov 2019 05:10:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2514E215E5 for ; Thu, 28 Nov 2019 05:10:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BDxr5QZd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726758AbfK1FKI (ORCPT ); Thu, 28 Nov 2019 00:10:08 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:45566 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726710AbfK1FKH (ORCPT ); Thu, 28 Nov 2019 00:10:07 -0500 Received: by mail-pg1-f196.google.com with SMTP id k1so12263694pgg.12 for ; Wed, 27 Nov 2019 21:10:06 -0800 (PST) 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=bijPVAEzb+PpbucEzBhezT3J7OXGruht9k9XHqbXPdY=; b=BDxr5QZdUNok23k8lyxS3y1ZlKHNNc4ELZ+mU2Dn/bzWGvj8AhvFqwxsu93p12BDGR 4IVjdr4gFJQGP1v3zum4XslwjezFAshgm31mNb+w17TCL8R3mrfq/tY8L6AngoTqu+MC ZbBqb7ADtZQpf7DCp+khMqANrkf+mHWNuHe2TGyUKk6rblxP8qyIUQj9Ns4e+Oq7L7EN J3UDzm5ai43a5A0OBKuPqN3Vr8/gk0UtvyJAjNXweZSwjwaxEqIYZt5Bwln4pSm17O2j XXlTKYnsDaoDxjxVS13JBlKb/pMJS6yFyYu/8nvmPlAYzhPyPdr6Vhtej/pYUtOcbUM8 p37Q== 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=bijPVAEzb+PpbucEzBhezT3J7OXGruht9k9XHqbXPdY=; b=jU0J4SyWQqEQbh9uvjLgpm1txWGyAizRGOrSC6BEBD3y5UZv05JMOCGupkR6xi452O wGAVZ1M84mwrFip3l90sObJb8/HmAmXxRPGrsrA93Sw0FRX8idklzJOS4prKzG40zxen DurHzo3kQW+KGQGR4EhOk8yXWKNPsK48il+fve6d+8VPMZgp6VBBmbuzw1J5E8wYmn/+ 2U7prM9wkCTa/SLdxiovLtUIXqxPDT0mtFOqwiVROJcMxwXAhrhbuKbBiPeLNo/ybr/f JSlMfH8ZgF8W++xfuyQNL+AV5To8u5bAdUQZRgOeh+tUcgOlCoTafgF7DBRXlk5JH7eV In7g== X-Gm-Message-State: APjAAAVtoB+k/4vToZKHqkv4qO+h765SSvWckpa1v/aeY3ap3vNTZUtR D/MfefYyA9Yuoz4heehgmdEJ0A== X-Google-Smtp-Source: APXvYqyHageaOcP7ZOVXe/q37hqFPzxHmvwOcCaNRfIR6tgS60hDSdNJ+Eg+GXENKnFhjHUG5+LJBQ== X-Received: by 2002:a63:f207:: with SMTP id v7mr9384553pgh.246.1574917806305; Wed, 27 Nov 2019 21:10:06 -0800 (PST) Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id j20sm17799838pff.182.2019.11.27.21.10.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 21:10:05 -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 v6 2/8] dt-bindings: usb: generic: Add role-switch-default-mode binding Date: Thu, 28 Nov 2019 05:09:55 +0000 Message-Id: <20191128051001.18995-3-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191128051001.18995-1-john.stultz@linaro.org> References: <20191128051001.18995-1-john.stultz@linaro.org> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.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 Change-Id: I6ac1d9c56039d76d924148e29a5e4b0bb304ed0f --- v5: Switch to string rather then a bool --- Documentation/devicetree/bindings/usb/generic.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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: