From patchwork Tue Dec 13 12:38:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 634616 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2104C4332F for ; Tue, 13 Dec 2022 12:41:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234884AbiLMMlI (ORCPT ); Tue, 13 Dec 2022 07:41:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235408AbiLMMkW (ORCPT ); Tue, 13 Dec 2022 07:40:22 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD0DA1FF98 for ; Tue, 13 Dec 2022 04:38:42 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id q17-20020a17090aa01100b002194cba32e9so3402723pjp.1 for ; Tue, 13 Dec 2022 04:38:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7RVsCHc65/n25Apk0UMd5OFnRvCxYzOfIak3gevXkuc=; b=fst2QKHMJERtQiH16RRC3rKQIEuuNljc0CVfv+0XMUPYg9KlibsyhsD0p59YFXX8XM /L4skjMsfkhD0BfpCHlLCU8h/TwgevUNKj6rY+Lcejee8/YadDX/GruHfgP0NOPCh7eE 0IlvUWP0rMiR1gyh0K9Boejq6J2inl9i1eYiLa9PK3J4W17Cs5mk5E3BDtzwgkBW5/lA x65/s26oLhjrglThUidAB2P8cHLdR7H6CNiPDvGCxjh9FQrg+OXkCzxU5sF8ob0+pTmP GcH9FrknynLa9D6d7Jj4rgWwdBGpm5KSpbKk82HsXCogzDuf5BTdlLjzz1Q07A8n7RJL RKGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7RVsCHc65/n25Apk0UMd5OFnRvCxYzOfIak3gevXkuc=; b=jh1pEUdsgB/VeRZCnXudFwGLeZeqSB1bJqHnwii8P3nJlTv/7kS8Fu4+afMPGkBKY5 2cUz6cFSdgE5j+q7htaUzEbTuJMNPu/UNppcJznkDlxwZiMHsg+Hd97632s6Qel/FT8g m4rmfH0+PpZfH+W2hZpjfzeFJFcTIUj2kU2xrRoyRdFKvjHAhNAzOhzOch1KXV0T5qhW uzXvHIS3kRibJmIXwQtxMd6mhFv+W9Ln8MrBT55Nmogc1ov8rr0VpMF0Mselxv/a6Krp /PhriXT4c0B2HBkZm6hB29S6zh2g7vrk9oC97UJIXk8bmfpsqUv9Ws9w99iDbWxM1x6y 7sFQ== X-Gm-Message-State: ANoB5pmUGmR5CFqtbYfV7tjfJm4LHPXS925eDWq43jopsHl6gh1aSrhw ztpX++meFnyvTKJGflM8u14ckb90IdIYwFCtb+c= X-Google-Smtp-Source: AA0mqf4yhWgLXFEtHPOzR+dKB3bwqHUul+V7vZkVUZ8+EhHWweTcRbp2fdEAgwBcm2hyVJuYZo8gDA== X-Received: by 2002:a17:902:7890:b0:188:fc0c:cdb1 with SMTP id q16-20020a170902789000b00188fc0ccdb1mr20388196pll.16.1670935121723; Tue, 13 Dec 2022 04:38:41 -0800 (PST) Received: from localhost.localdomain ([2401:4900:1c60:4bad:5c3:ab51:3d81:6264]) by smtp.gmail.com with ESMTPSA id m12-20020a170902c44c00b001889e58d520sm8297011plm.184.2022.12.13.04.38.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 04:38:41 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, konrad.dybcio@linaro.org, andersson@kernel.org Subject: [PATCH 2/3] arm64: dts: qcom: sm6115: Move USB node's 'maximum-speed' and 'dr_mode' properties to dts Date: Tue, 13 Dec 2022 18:08:22 +0530 Message-Id: <20221213123823.455731-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221213123823.455731-1-bhupesh.sharma@linaro.org> References: <20221213123823.455731-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Normally the 'maximum-speed' and 'dr_mode' properties of a USB controller + port is dependent on the type of the ports, regulators and mode change interrupt routing available on the board(s). So, move the same from the sm6115 dtsi file to respective board file(s). Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts | 5 +++++ arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts index fa57f4bf58256..3f39f25e0721e 100644 --- a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts +++ b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts @@ -229,6 +229,11 @@ &usb { status = "okay"; }; +&usb_dwc3 { + maximum-speed = "high-speed"; + dr_mode = "peripheral"; +}; + &usb_hsphy { vdd-supply = <&vreg_l4a>; vdda-pll-supply = <&vreg_l12a>; diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index b5f7480c2e713..e4ce135264f3d 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -1031,8 +1031,6 @@ usb_dwc3: usb@4e00000 { snps,has-lpm-erratum; snps,hird-threshold = /bits/ 8 <0x10>; snps,usb3_lpm_capable; - maximum-speed = "high-speed"; - dr_mode = "peripheral"; }; };