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: 180368 Delivered-To: patches@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp7062910ilf; Wed, 27 Nov 2019 21:10:06 -0800 (PST) X-Received: by 2002:a62:5485:: with SMTP id i127mr43447660pfb.186.1574917806780; Wed, 27 Nov 2019 21:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574917806; cv=none; d=google.com; s=arc-20160816; b=r/z0m0kA7owNegI0k2ZvRe76F0O01w3lu3bHVU1ev3Wxk04WZ7zYiiS4cxxQOpislT yxiY8QPhDk9wVO1OoeGYpMz0Q0K417oAiznTNQfFyU6H0zFZWAT9BK7/OCs9sqzR8K9n 83i2hKYGqOdpSQ0FnWJn9kwJhv+uO1DyH2Q2FeSHATt6fz+9VG6PsR3moUGt7RX7h1C/ wBASeKP79z7KIUBli9QfUq7Nvl/hqR6lfUZClcAkuSJubo8CVFT1hCkMiCuDV63hEECH jvQ/a0aPnlnsLOQx+NUX7N+8BLatlmlbZK0SBymjHoI+AFmZp1lugM+eHMKEw5spt0+0 9shQ== 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=bijPVAEzb+PpbucEzBhezT3J7OXGruht9k9XHqbXPdY=; b=aMCGAXN04yiVfsHLPCcTqkNb8LxRwCaxYfsnwsNtz5FAPye++v+ksbZMiYGGdTdY54 eM1rx4HQBJhYu5OFqq0b66BDUkv5czdxjFSdtEWxts5SeSBwlXNllIXLms1e2if9yz12 +dNuQsE0NYUGf8Krp8q2a3nMFlYOb0V58FHPXIl7zlrjgHerinR0r0lfbXN/JheNjVvA yCR4yOz1uaPEII6/2PNSGrdduuSkbyh5EF/WVbHYj8DLzUGocIUk0VGkErdv2ZWjTwrq phjvTr6LHtX/wyHhKn8Bu4l3t6rlxGnWFjrbTdxxFGfyQhp3romnn0OJbuxTCbCd48z9 Wukw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BDxr5QZd; 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 z13sor3711361pfa.42.2019.11.27.21.10.06 for (Google Transport Security); Wed, 27 Nov 2019 21:10:06 -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=BDxr5QZd; 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=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=ni6SWv+WHdf+2AoJigslNs236vSotrF+JTBk3qScdRfecd0HhqAVZSMWm3kaClI2aP W/5A9tC9DEsVYSpnrFYOgn5trtA/7Rnbeh5AVLM/0AIiC00LvMQFf+GPjSymo3VW197N eD6qTdeosYdeRk2qp0OHdHgZ2HrE1BCaZoi/qhNUzEwlsnbNgndYWftkPt7GowAJk2Kf WmWZL7bjuNELxQAhnBct4y+AZIBlCEsctee7gtGsl8GFHMfK+8JwZVI0ajcb/+z9dTOG IKUAX3fIu8NyHQCIa2XxPg6Q370ZGCV+jhv63LQZbObBbsNIr07tTPFmOPcFWsmGA5x0 pNmw== X-Gm-Message-State: APjAAAW/WwVy7BnlgiPaUoA0loUrnWSlLZ8PrVD2JLYgxyodnATmYw3j hS7SXFcl22pvLPP4aQZkkz0EdjAy 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) Return-Path: 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> 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(+) -- 2.17.1 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: