From patchwork Tue Mar 14 08:36:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 69395 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1635650wrd; Tue, 14 Mar 2023 01:41:03 -0700 (PDT) X-Google-Smtp-Source: AK7set+03+OoTebcl9+PCKpq/bXYrT9JX+aVqqSbHJQgm0BHUwVVyF2GVlGunF4W9PAhgwH0Lmu3 X-Received: by 2002:a17:902:778f:b0:19e:6760:305b with SMTP id o15-20020a170902778f00b0019e6760305bmr30052009pll.47.1678783263008; Tue, 14 Mar 2023 01:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678783262; cv=none; d=google.com; s=arc-20160816; b=xhw2BPOaNA4zswGqY/JxotVWqHb3+jnfrP1TMsZw1iGPO+FauclJnTHiGg57n+mIW2 nfZqWU5D2MOLYv8WORg+zSXuxU7rgf4S3JUurAhkcRIUPDjDRb3xRB3mYBbqDVYtU5ix VuqjnI6zmw/RlajGJf0NBwAWiM/XWUJjz0hc7TjRK24SwrwllrDVVJ+77Naa+Ho+b/Ev JorYqPs1BeH7ut+SuIWe7tYx52CY04ueEfjDHsUjisi4E6nF10/g1/jdHpscMZZep+q1 MCnPkgGJ7ZEhHw3lhzEfgvTrMbcN5tGxrmKoi5x2VPQqjVMNWIce4y9zD428NEF8sIYF uewA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Cwg0+pc4VJIZQKpAb9ycTGvEjiL1waHTH3VXicqsNeI=; b=G01D89ylrRCnuo9yK1SS9kcXxM/sYpthkrpVXDPvnuRX9wAH8TGhZAsGpuQHqCySKd OM2FCVtTTaDYepYWQ4aVkMsOkDDz0rbMReY7+i3rJNrX4plWhXkOvjvbqiwIUm4nqAos aPjSICOEJ/rDvRpzezdHNRwcyZHLC6Vpj8iaQ/Z29yNL4FsZQGGhU/qovA/NSiuDdL7k OdZF7zDM+awEZts6uRjnfIWF9qYq5rL7ZscX5uNqQELbUITwO0U82e0NFqqUOricOtRO fmdmBG7vYNfwpPnQsvkY7ARdu6Ei3jsPoT2R7mY96Z+SL31Sf7KJQlBzxkg/7mpeKCSc FsHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pY2vopgA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h129-20020a636c87000000b00508e085df59si1354250pgc.475.2023.03.14.01.40.48; Tue, 14 Mar 2023 01:41:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pY2vopgA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230227AbjCNIh2 (ORCPT + 99 others); Tue, 14 Mar 2023 04:37:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbjCNIhY (ORCPT ); Tue, 14 Mar 2023 04:37:24 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96A9D6F4A2 for ; Tue, 14 Mar 2023 01:36:56 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id y11so15811918plg.1 for ; Tue, 14 Mar 2023 01:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678783016; 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=Cwg0+pc4VJIZQKpAb9ycTGvEjiL1waHTH3VXicqsNeI=; b=pY2vopgApgdQt20d3yifwoFEoSz4wuPe5QsNVvKjzL4ZpWdZNeInUI2u93jz0BmK6H M9LNjXOjtm1iaMt7LC6g/jVR9Az2roFdkbTRIbM6du1SKM/tCXtjUO7OAOtbV8pp6h6j 7sm+EpX51RBno2SH7w9d9MiRmTxtgDVkI20dlh42GlEu2LZTzXJuRSIky+M5V8nfYFh/ iNuDrcGoxcFDlcmAb389B7uuLdDWU+J2BSUhVBmR0PsmGsG8lidJJ/fc7vtR3b9VGViu vj0Rzkim9M5DNCGvBCfddn1UH/AHWDCU9Rt/JsK9jgIW7WWI/SLMcnjEGPpIsG8B/7Ww 0tig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678783016; 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=Cwg0+pc4VJIZQKpAb9ycTGvEjiL1waHTH3VXicqsNeI=; b=unYVPmcJOQYQ9snY+W7S0q9GBLexwT8cZupGwpoBiBb2oGI4F3o+IdE8xhO72oHvDc 4hqFZT+yGujHGVNxljxswEUCm6HCrm1+Ml2zvr88Qp0OKCi05igXx5/E2mgZaLZ55x/F vfVSXRjNQQHRkSCA8STIbtm84p4lXTc+T706N37cKhkiZ3WVVUMQWpqIRYYVFEjjrp2A Od775+BDJbVJQGqNNTq+npsAaISj4n5p7seOMcUad+NAV3MJicl2nPJri3ba0qEY1oHA CG94X6knBNCTIje/ymFhzK4aBGv/1ehBiCv5/HSKg/N7aisk/FXVXuhkxL41bDywsxZH A5Ig== X-Gm-Message-State: AO0yUKUTj2/gBmRjvYrTRrkFFxOfB3viVVdsGr5BVGDc/zuj4gnKSH4d cD2GKU+Bwxgo/yD8dEV3hUSwBQ== X-Received: by 2002:a05:6a20:4f10:b0:d3:d236:f5b7 with SMTP id gi16-20020a056a204f1000b000d3d236f5b7mr7756130pzb.26.1678783016070; Tue, 14 Mar 2023 01:36:56 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c5e:4a3e:15d0:d540:3861:ef0e]) by smtp.gmail.com with ESMTPSA id g3-20020a631103000000b00502ecb91940sm1020980pgl.55.2023.03.14.01.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 01:36:55 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org Subject: [PATCH v4 2/2] arm64: dts: qcom: sm6115: Move USB node's 'maximum-speed' and 'dr_mode' properties to dts Date: Tue, 14 Mar 2023 14:06:33 +0530 Message-Id: <20230314083633.1882214-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230314083633.1882214-1-bhupesh.sharma@linaro.org> References: <20230314083633.1882214-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760331838558907902?= X-GMAIL-MSGID: =?utf-8?q?1760331838558907902?= 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). Reviewed-by: Konrad Dybcio Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts | 5 +++++ arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 -- arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts | 5 +++++ 3 files changed, 10 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 f477c7f5ad761..d38d0efceb88c 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -1122,8 +1122,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"; }; }; diff --git a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts index 4a7194acb44a6..c20266c11fd89 100644 --- a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts +++ b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts @@ -277,6 +277,11 @@ &usb { status = "okay"; }; +&usb_dwc3 { + maximum-speed = "high-speed"; + dr_mode = "peripheral"; +}; + &usb_hsphy { vdd-supply = <&pm6125_l4>; vdda-pll-supply = <&pm6125_l12>;