Received: by 10.192.165.156 with SMTP id m28csp84800imm; Tue, 17 Apr 2018 06:58:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx48fYAzucAyqbOFj9mesgIKvlqDjQS46ZNjBOX8GtsxG7/8o9+nvvoWVhxBOqw8eC2/KRGlR X-Received: by 10.101.73.7 with SMTP id p7mr1886241pgs.139.1523973522757; Tue, 17 Apr 2018 06:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523973522; cv=none; d=google.com; s=arc-20160816; b=ITe8BjSPzc35vO8EbHn1vnlV0I7At7jH111UQ5bwoSW1OIEZ99XV4QGXCjbzH27NDU oB2Fc/gPz9ijYce5J0WLUBbn/aaSiOjeh5rWGUJdKYjwIdBQhEFS5eoPuI/o91WEWxX7 gRt0MDHZCGWTxyMqVhSS/bFYqf0Y3dW3IuU4lgx4Pg/tWr98sMbCHt83253FOTzwIO1n 5m2uSleDOxRpYQq6OmUaF8HBtjsbYTh1ffpAdD+QZ1JVTA+WeyFNNLKMwy6EwsojeHDv dvywKm1b2Np/JvlM5rBpExlp8VMxhlhMEvgocNRHFhxoKwq6rILWPM8E1eVdwK9yeRRU kOOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=0gjATdUxpVkCa6thfofc0OOJ7K6E30W1B7/MCcwhi6o=; b=TsUvcjnsLZca6fiGxMrijv4st3z5YqtVOLXjV6/e7jMS/I2EaE7VABG4meZZKg7kOy XeR1j+2k3SSUQVTsCBlzWIvMQrhrihnovt0w5yhNY1uYM1kppxfCQMMEMKqsbEJxh9Vm K1tD54Epte3yQ5kAZp7utJNZurx3BgpJdd3szk10UD429cQ+bPEJgXlzNysGbiMb9uVx UI+Qe6s9Ectnx8f2wypUV4DO558f/bLBYLZFOecvmF+6N6rSo/UnBmgo9BIqMpEucnkR +vkS1LL0a2sLSABcaZO4/ZOy6k2P0mIiisDp2iVcricBwutaE94ZwNnNJ/d3Gf8OvyAV ncaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=fqvCAH2g; dkim=pass header.i=@codeaurora.org header.s=default header.b=SN7tPu0i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj11-v6si14377900plb.480.2018.04.17.06.58.28; Tue, 17 Apr 2018 06:58:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=fqvCAH2g; dkim=pass header.i=@codeaurora.org header.s=default header.b=SN7tPu0i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753823AbeDQN4y (ORCPT + 99 others); Tue, 17 Apr 2018 09:56:54 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36034 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753099AbeDQN4w (ORCPT ); Tue, 17 Apr 2018 09:56:52 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8AC156030D; Tue, 17 Apr 2018 13:56:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523973411; bh=1UZ0Z8d5T3lPi0zADN84fCfKJKtYEwCcxAEBV/tCdDI=; h=From:To:Cc:Subject:Date:From; b=fqvCAH2gNgCWco9OcOEjseZZKuyu0j1AfrRBLGjzhHmzAyyZuvJW/6SAlNx+GJz42 T8hu6ISFuBkuOArTKd6o/GGU10uwZsDmgvitCBP9TDISYoEuV535+k0o/SDXMn/pDx 5eOZvYzvQtfYyKmX2L9Zml1YYHkIYbKVp+CnECuQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lx-platforms-5.mea.qualcomm.com (unknown [185.23.60.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: yossim@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id B85F960385; Tue, 17 Apr 2018 13:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523973410; bh=1UZ0Z8d5T3lPi0zADN84fCfKJKtYEwCcxAEBV/tCdDI=; h=From:To:Cc:Subject:Date:From; b=SN7tPu0iTvtEQvsIWTxO2nOwPbJ2BXAcVNrVAY8Uzr88ECl6rgtGxI9nKJgoHPyCm 9KMEHophycK5HaUxuLl3YWuaeQGBXz+kYL48YVY4zcVj2w89x2PyrUtIgpB1V3/6L7 fcS9YtwENKsLW8GzcWDNZfJ1iUK6PSKNI1jivnjg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B85F960385 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=yossim@codeaurora.org From: Yossi Mansharoff To: Andy Gross , David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-arm-msm@vger.kernel.org (open list:ARM/QUALCOMM SUPPORT), linux-soc@vger.kernel.org (open list:ARM/QUALCOMM SUPPORT), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)), linux-kernel@vger.kernel.org (open list) Cc: swboyd@chromium.org, Yossi Mansharoff , Stephen Boyd Subject: [PATCH v2] arm64: dts: qcom: Collapse usb support into one node Date: Tue, 17 Apr 2018 16:56:30 +0300 Message-Id: <1523973390-2387-1-git-send-email-yossim@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We currently have three device nodes for the same USB hardware block, as evident by the reuse of the same reg address multiple times. Now that the chipidea driver fully supports OTG with the MSM wrapper we can collapse all these nodes into one USB device node, reflecting the true nature of the hardware. Signed-off-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index 9ff8487..1505921 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi @@ -18,6 +18,7 @@ #include #include #include +#include /* * GPIO name legend: proper name = the GPIO line is used as GPIO @@ -371,18 +372,18 @@ adp-disable; hnp-disable; srp-disable; - dr_mode = "host"; - pinctrl-names = "default"; - pinctrl-0 = <&usb_sw_sel_pm>; + mux-controls = <&usb_switch>; + mux-control-names = "usb_switch"; + ulpi { phy { v1p8-supply = <&pm8916_l7>; v3p3-supply = <&pm8916_l13>; - extcon = <&usb_id>; }; }; }; + lpass@7708000 { status = "okay"; }; @@ -512,11 +513,17 @@ usb_id: usb-id { compatible = "linux,extcon-usb-gpio"; - vbus-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>; + id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&usb_id_default>; }; + usb_switch: usb-switch { + compatible = "gpio-mux"; + mux-gpios = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>; + #mux-control-cells = <0>; + }; + hdmi-out { compatible = "hdmi-connector"; type = "a"; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project