From patchwork Wed Oct 16 03:33:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 176409 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6783749ill; Tue, 15 Oct 2019 20:33:56 -0700 (PDT) X-Received: by 2002:a17:90a:a401:: with SMTP id y1mr2286646pjp.118.1571196836254; Tue, 15 Oct 2019 20:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571196836; cv=none; d=google.com; s=arc-20160816; b=f+f2ZimhBoB7II0ijALvMWIkUuCAkrp5ly7BE4+92qZpDWn8o5T8Cz1fb+DfoN/f9r km7XAODCWDBgfzoRx/8OkPFASgdFc3wbQtSEGyM6WQQPdqtEDtDMgSXgmlU1GqyQCmij GEfHodD6/orBeBJzemCyoto3Ktt/vaSw8oS2RAxG2IOq+2QlPVS37U7qvcyZaodNZN7g T+bq68GlF1IPU4b13dO9n++IxIoRY75XscWP3ELjBXb7N4ze7xGpZXGlYcfmbMVlJeMc WPM1BwCk4kuiKkVBMDnCBS2HQad7xPxEn4gWEDHgqPYsFRJQepoWcu3hJhKYRAjGK1pA o3hA== 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=2keRpRTlNq//agdfEU+WzxjuweOfNeyW5raNbEYcYgw=; b=fYVVkFAIuLNm3Gb6qBcAqqmnXToLCM71gTpWRvsPWW4fbBn7rzivZ8L8blxzFX7ahn Iu2YBQBq42LCZMrrPoA1tZgzcs22YNU7/NDV5DGhEbgzlghCNIMyDzUtK0H6GcSWiAcj PFtTxxeU11E0UtXzNY8GQa62/KJLKjOHKj14VUT0EgYNIKSfHHgX24r1Lo3TJCsNYo8y BFgE8WpB3S+s57+I6oBbHRglzpoa9WqDx/7+OmmNqE58k1WscA881svvMAHBj7Z4Mut0 diOISLYvCR8t7L7lj+uEEuvvwW5zcPPKCA3BIHJuAyipC+h/bTvWUpdF0nF0LYbkdci/ mqYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v2mpFWC0; 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 41sor29737419plb.73.2019.10.15.20.33.56 for (Google Transport Security); Tue, 15 Oct 2019 20:33:56 -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=v2mpFWC0; 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=2keRpRTlNq//agdfEU+WzxjuweOfNeyW5raNbEYcYgw=; b=v2mpFWC0YeHuM2R8yAg/xDpZt4YlyYEVb2YKwXwoQsMjqhvV4fsR1Q+zHo3hChIz74 MW6PS7z0+vutQPyCMifBfWFJu7BomzYe3pJZZNJX9fBPaYzen1Y83jxgqRXYBaS7U9H5 scyF2ijATEZVAZbM+jVPL3xBacyxLHMqGCOE2s+vXhdWKMN15J0X1c+Sg2O7EyOWXzvH V52YtiHaU85DASd1pNaSNMJRInWisTGPtptGEwmH6o7Nnegid13neEpqqP3dKTUMjQnJ tvTz2rC2F9gEnOwqvQdfEPwBq0sMvAzaAjD+WU5GOr/0YMnusEvDyJFkLqPqltkOQGC4 Vz+w== 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=2keRpRTlNq//agdfEU+WzxjuweOfNeyW5raNbEYcYgw=; b=VgeshD5axnenXUdVncncHmnTPPGAQ30Dd/WUYzBZwiAn462ZjE4vDsOSf6TTMrzaB7 esfvlVQ2/JgXZJd7das5kXFAAc3yfoyHwoj9wJLn8xsX2o0NGVhBMpmt78zDacJ/D6Td X173DB5rr17uGtoqTm8Pjcnkjv8Ncwnfwa4iEM3E5UO9e5en7P5mLYnAWu+W2Lt8zzCv 8jdmB5EKY5lOoA1cJXA3SUGrT2gFAVXKYXdUMfI01b94nrGZkqYqLM/h1If0DToKQXb9 nSMksYAlyGNEjsDWDubEykjjL0smWN/j1E01NopkGaFmHHJlw1YLPostT59GckYEQizf x82Q== X-Gm-Message-State: APjAAAWGsmMe3H/sqLddQeB1bJ4kI7dWP6BY8x2kCLuMxS+1bwh/jqoq AJ8ZESXdtuCuRUx0CmK8hM++qmFX X-Google-Smtp-Source: APXvYqzHJcZTagsu+7PgWeGgCQGg5oFBlQy68utODPD6pCC+Bv83uRYHQVAk7xRaFQ4dZKLhn4gl5g== X-Received: by 2002:a17:902:7891:: with SMTP id q17mr15072798pll.241.1571196835824; Tue, 15 Oct 2019 20:33:55 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id l23sm748356pjy.12.2019.10.15.20.33.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 20:33:55 -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 , Jack Pham , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [RFC][PATCH v3 08/11] dt-bindings: usb: generic: Add role-switch-default-host binding Date: Wed, 16 Oct 2019 03:33:37 +0000 Message-Id: <20191016033340.1288-9-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191016033340.1288-1-john.stultz@linaro.org> References: <20191016033340.1288-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 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: