From patchwork Thu Dec 12 01:42:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 181374 Delivered-To: patches@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp280350ile; Wed, 11 Dec 2019 17:42:38 -0800 (PST) X-Received: by 2002:a62:4d87:: with SMTP id a129mr7097886pfb.116.1576114958579; Wed, 11 Dec 2019 17:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576114958; cv=none; d=google.com; s=arc-20160816; b=jocGYdAx2I5XpuJYQWU+UVXB3KzE+Tw7fr3VZ7yIOJmBtrlj9Cc081bA4omRjIL2BN meZdho0/NHdwhtUGqblP0eOXX1EY9xB4KjzWlsgHxdnzbUNgcuEdJXu+VCViBac3gbvI +ZBg/iCXgFsshsmUasIQlCx/lIgpr7x/nYnn8MSXFHzcznE0lciBOvcTwpayppdjXzWG /sx9bIhe4nxE9ytxOUYpZv0woDBd9dyBKQHaQyfbhOCzgnXditaRecsUrhzYvM57Rh4o fvTjZW6oEZOhVMinKHRUT4bjZtag5CqmtswTZZhHfFZtXmPWZastllSUq3FAVLGBrfLK gUmg== 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=X9Kc7R9+KeUY27tDEV+sMDYPQg0vMU8CdEEpsw9B7eY=; b=AaHJm/THV0aefs96jJ5NyP8+YCoaIbNstqkBbe9NpLESeeuUjW7ZK9SVx2h9zfINcH kI+mxLd+LmaaDt2DgbErf/cM7NIdoSVpQ396QKupC+rb7CNE/9c8OdI/ZloDgN95wWjf j87sjDc3Bsr7NKCmFhBkTC3MJ8yI6BhlMCjRTDrNAiMZt35HKfwRHbawiIwVwizCnHeQ XAG6FOup9nz76UIM48Fh/ZL39MeCzjJWyWyJTr6MB9yL45CbUDaLneRF1g5FxaPOTX+7 jsHwagHr3KhptfxPiSTUO+f7gKjW6aY2ndCD95GW2LkRt/1gb5/tgS7xVvNAMOeGMIBA uHJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V0PrWbfK; 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 s7sor4905700pfe.61.2019.12.11.17.42.38 for (Google Transport Security); Wed, 11 Dec 2019 17:42:38 -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=V0PrWbfK; 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=X9Kc7R9+KeUY27tDEV+sMDYPQg0vMU8CdEEpsw9B7eY=; b=V0PrWbfKF6yh5jnUesdINqEzgHzMsX3X/h8mQRQt7abSsm8BD1zIM3mTyuJAm4y3kP fjCqZ+MT657YUqC5fFq+USYJQkg/nwLbiZzbLc1ZZ/+AH1ZY2o/P7I/ogmVWFT2eoKVD VvmvB8Nw8+/gE6DnMtNB+4sghteYtNdFYbeM6Q+B1VJiUIlyNXEbJbs1yHD/dUMged95 pH+vBbrBuz/G5kKvVuB1H/0Z3wWaXELPX8OJC9XBveAInCMPrFPLT1Ygauyjsf5HBtMl 4jvvIt4F9HQcgkLnmCLBWh5/bnO15j/5DUAR1SOnmrY3lzfgR/SF7SyOLeNBzoM7XasI kbWQ== 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=X9Kc7R9+KeUY27tDEV+sMDYPQg0vMU8CdEEpsw9B7eY=; b=XCuSS1lmONv25RY6OxvKxspIUB0gYs9SsS0kor9ISSJZkvRhPq2mUwrFaBKZBl4/oN oWcSwHmnoN0dcz5HzgQT8Ai4gjdZw/CJpqEDh32o67poiTjdXCL1eNKM1DKkUFY/Vkgg gDlf6BM75JPdtn5ubmQ3UlvoyDPrb5Jrrg/CYSpTjLQYhzOZTZAVzVikstHGLIvCj+5Q EzOVFtSHXAMMZul0/bjWcsj88GWTbB6ESkdgrSrT6DwmUgSiGe2Pz+31wA0O5gBCDjLD mnWsobXVYmVecTc+3GrgiZbqim8ySd1QP4/k2RNosBO2WY4QPufvcZGZnzltlDyPVAn5 vWtw== X-Gm-Message-State: APjAAAVPCNdCCiAZzPk08j4q72PWisvalH1YrYgta5H+f5tNjbt+vh4u MdwNYuY4FDKbsFc5JYkD2MYmR1+W X-Google-Smtp-Source: APXvYqy0BVmYHRBfzJOVdXEzf35ykOhMUK6HJkBTVjdR49V2P5zoAJ4NwvOkopcghcK3+EabZw/nPQ== X-Received: by 2002:a62:f842:: with SMTP id c2mr7196663pfm.104.1576114958243; Wed, 11 Dec 2019 17:42:38 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id p16sm4217996pgi.50.2019.12.11.17.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 17:42:37 -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 , Guillaume Gardet , Jack Pham , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v7 2/8] dt-bindings: usb: generic: Add role-switch-default-mode binding Date: Thu, 12 Dec 2019 01:42:27 +0000 Message-Id: <20191212014233.32799-3-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191212014233.32799-1-john.stultz@linaro.org> References: <20191212014233.32799-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: 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 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: