From patchwork Tue Dec 13 12:38:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 32799 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp94305wrn; Tue, 13 Dec 2022 04:43:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf7c6gev9TK0pMgr5yIqD395Co00P0kI8PG2SiG80/1CQMHJGD9y77kQxsHLCYtXcxjpKKbf X-Received: by 2002:a05:6a20:9296:b0:a7:882e:3a2f with SMTP id q22-20020a056a20929600b000a7882e3a2fmr18127710pzg.28.1670935408490; Tue, 13 Dec 2022 04:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670935408; cv=none; d=google.com; s=arc-20160816; b=j7xUMjw7V0WqR42JKa3gP84wZvfLMTP7gxvbOqsmR3Ig4fdNMzbOrgW7pNZWS0g7Ij yAAcqje7JFWSjnk2oMpTsYfQTU1YHIwXgnt4wT4B8wcCE1qW1y6XXdGo5tppSIRERLGp b9yfFAKCmKT4P/L7c3bMH8bUpq6iLUl1vg571LqiFeQA6gVwQ6STM6ftt4rLYA6zPbR3 OiP3we8Xt8dvAO6LeR7X2mYKiLpzRk8SSMpRZXtDdeYluNQ7BS2VCe0OtmQhuM5eNJgi B+CyKCJOAOyhUZi6pjuv8/KoFD/SgLHb19uDxJ6rc/BD/T51mx1NYtrR9H9B5odNpaF/ 3ifg== 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=wKPVsv2TqsP8zux8ohBTaLzqLXnKFjC2mxPTp1lrDzo=; b=Ieyz31i2UrKUjN0WKYItYsefUDmAe5+d/zPkaso4rGHhURFwQAHfqT6gfJX95izn7H W/hH72MHHs3/QJqO+kl0QZte2LrZ9azmCS2jzLSgXcFw8+Rf9IT9go8WSisjxrmKsz1C lRTYDtrt9tbjNzrpczjPjoglXLXmJ+VqWDIYoXJ08TZkLnrGbrzAsV6RznMgVQ7yFU37 g2sinqUH/1tENuqJxKQmIRW3AvhsTFW2NJVsU99nScs1XU/baf4bkHuGLDbf9BNBMh4k WwHUIJ0zz631mZgsnQPu0PbPNNbE9WFoK5MuAwxJ5S1G1DRUtLWTyZCQM1LChFPTjOKr PEfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pRkn7CER; 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 f18-20020a635552000000b00478ab063103si12143856pgm.821.2022.12.13.04.43.15; Tue, 13 Dec 2022 04:43:28 -0800 (PST) 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=pRkn7CER; 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 S235025AbiLMMlL (ORCPT + 99 others); Tue, 13 Dec 2022 07:41:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235030AbiLMMkT (ORCPT ); Tue, 13 Dec 2022 07:40:19 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1C401FCCD for ; Tue, 13 Dec 2022 04:38:37 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id 4so9504704plj.3 for ; Tue, 13 Dec 2022 04:38:37 -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=wKPVsv2TqsP8zux8ohBTaLzqLXnKFjC2mxPTp1lrDzo=; b=pRkn7CERucvFWodZldKONF9Sc3CWZ5+E2aWS2cNNcv38w0mNCRE0sMmaG2VaE/Kwvf viS3cXILhSRSGiOMd9Sxi9s+40tXTMfqfK3ZI+GeJ2rgsmxNmJvmcOS5gGc8t8xzUTeF p7q5bOYgnA0rv93Yalk1qWGktpGkJxSo2R/9Gtg14Njk7pqo3d3HHnxeQitdNfPLXBMn vsb+41wvux/AFaQm5vFVuX68M0pdEP12N9FkRzbpGw0UuZOMlIZNGUdgb2kWhjuvWzHD ZRhJvCpMmPykClY3mctXRQWyAJPvTyR7oDvR7iA09AzG97XIlFLuB+gXhP3/hqoLnl4y Fjiw== 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=wKPVsv2TqsP8zux8ohBTaLzqLXnKFjC2mxPTp1lrDzo=; b=F7tvd+rNzAIQmX9cL8OE2/xv7zZV6Da7a8Wz6Ds+hZaaQ2/Snvyd67uZn3WaJx6ztT QRBu/+lU0X5LAr7V+dDDYKhJtKPYF1zH14wyT9LF+vvUlTIc/EMu6Dnq9D4rU0VULS+S vWo3coaFD53JcjifQ971oXmOYoUvcyx6YTzQstB09+rcT5Y8QVDO/71kD9NOGdgCuZZm 0t07zR7QWNEoiVKyEIXWbE/Mr7uJ/tEhS8M/WiLGRccZukegaMxWbTykp8FkpF3pRWSE wcej4wd5TbPpjgyv2Bjm+HfXmC6K2P1ytzqQtKsgb0xDJpw3G/2+neTK0hVEDdK+GI7c s+Xg== X-Gm-Message-State: ANoB5pmJjml3Oagd9oisqpdLBtsT4sc/H7oslj/qoxTxICm4RIZRX16Q ITfRTnRF/8ovoKAZLVLLRVHPgA== X-Received: by 2002:a17:902:d412:b0:18f:37ec:9675 with SMTP id b18-20020a170902d41200b0018f37ec9675mr9524687ple.21.1670935117264; Tue, 13 Dec 2022 04:38:37 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 04:38:36 -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 1/3] arm64: dts: qcom: sm6115: Cleanup USB node names Date: Tue, 13 Dec 2022 18:08:21 +0530 Message-Id: <20221213123823.455731-2-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 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 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?1752102766912063501?= X-GMAIL-MSGID: =?utf-8?q?1752102766912063501?= There is only one USB controller present on SM6115 / SM4250 Qualcomm SoC, so drop the numbering used with USB nodes in the dtsi and the related sm4250-oneplus-billie2.dts. Signed-off-by: Bhupesh Sharma Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm6115.dtsi | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts index a3f1c7c41fd73..fa57f4bf58256 100644 --- a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts +++ b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts @@ -225,11 +225,11 @@ &ufs_mem_phy { status = "okay"; }; -&usb_1 { +&usb { status = "okay"; }; -&usb_1_hsphy { +&usb_hsphy { vdd-supply = <&vreg_l4a>; vdda-pll-supply = <&vreg_l12a>; vdda-phy-dpdm-supply = <&vreg_l15a>; diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index 572bf04adf906..b5f7480c2e713 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -565,7 +565,7 @@ gcc: clock-controller@1400000 { #power-domain-cells = <1>; }; - usb_1_hsphy: phy@1613000 { + usb_hsphy: phy@1613000 { compatible = "qcom,sm6115-qusb2-phy"; reg = <0x01613000 0x180>; #phy-cells = <0>; @@ -991,7 +991,7 @@ spi5: spi@4a94000 { }; }; - usb_1: usb@4ef8800 { + usb: usb@4ef8800 { compatible = "qcom,sm6115-dwc3", "qcom,dwc3"; reg = <0x04ef8800 0x400>; #address-cells = <1>; @@ -1019,11 +1019,11 @@ usb_1: usb@4ef8800 { qcom,select-utmi-as-pipe-clk; status = "disabled"; - usb_1_dwc3: usb@4e00000 { + usb_dwc3: usb@4e00000 { compatible = "snps,dwc3"; reg = <0x04e00000 0xcd00>; interrupts = ; - phys = <&usb_1_hsphy>; + phys = <&usb_hsphy>; phy-names = "usb2-phy"; iommus = <&apps_smmu 0x120 0x0>; snps,dis_u2_susphy_quirk; 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: 32800 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp94396wrn; Tue, 13 Dec 2022 04:43:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf7BwT26BD/FB0OkYQDbpXw7vOVLhAbbkbGAG28X+Ugz3d4ipWsgopj8FUWX149SxCqu70vF X-Received: by 2002:a17:90b:2685:b0:21b:c5d9:3478 with SMTP id pl5-20020a17090b268500b0021bc5d93478mr20487892pjb.0.1670935419381; Tue, 13 Dec 2022 04:43:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670935419; cv=none; d=google.com; s=arc-20160816; b=ZBIrGqIraFjyRzxKCS1wELLiwOWjmfSauFaiYjpEPG4I114/589p0KxPOzCDvZ6foD onfpNrQyUcFmiuPAc7uScWGDfAhn5nFyM0HaFlaL3vKs2Rwu3vYVsbkLuPaatX3HMiSi y1j/IGDJjI52flOfEy1QU3W7NMUHXYG/CxB3JlTzW1UeLKSOvNSYX7f3t+oCWVNouJqg +7axyZgVwK1NhMAhDVAoPwaciWoG4XhYr0a1B4zNfOwaRhsKo8KVt1L301kU9SATT4Cx W6ZHEsR8QA4zVxgnaOkwGcjxsLBdSxwZdCwljr5V6+5QqUG/aZdPUGRqlKqAdAD855Z6 hpqg== 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=7RVsCHc65/n25Apk0UMd5OFnRvCxYzOfIak3gevXkuc=; b=wQ0jfw4xKHkQR6OaAXPxdPgJeXmCYB2Kq42yxmngjm4R0Rh452Qi4KrBJkfBEC4Pyy UKnc8eUsts9vwqD5FrHnlo5tf4shew/G128zD8SbaITyncgN1tkmHhd/ZkSR5+hXNRO6 2gWv05gc5fc/1unmuEJSjhgcwObXy+Z0UVeqWpMgnkzcwAcbWK/qEYnONeD/HYxEW6s1 846IGRm4X5cvSZXL2/X4FNDSacVLmF9/DqY95mOZo9pwPWT99l7l85yexIU71bidiw2F 986g/yYp4jDyA9JxyUsnIxMnjxFuCQEl7kTWsSMBlXB+n16VxmLIK3E5dICSd6j27ETj C5Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fst2QKHM; 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 il5-20020a17090b164500b00218a9f90590si14225999pjb.2.2022.12.13.04.43.26; Tue, 13 Dec 2022 04:43:39 -0800 (PST) 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=fst2QKHM; 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 S235599AbiLMMlP (ORCPT + 99 others); Tue, 13 Dec 2022 07:41:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235351AbiLMMkV (ORCPT ); Tue, 13 Dec 2022 07:40:21 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 555141FF96 for ; Tue, 13 Dec 2022 04:38:42 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id e7-20020a17090a77c700b00216928a3917so3369506pjs.4 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=hCP7IWur35YDYRBAlFst93iTr+pDP8OiYfgXUfW3v2GqO4OMNZyiXLqyPnb2I6/rU0 uODoVyvprqJcUivEh/uxuAWhp7IuBnAF3ngtYWO1vZkJInpqY+G3kSEokILJIsYSKPTz /KthqixGQB3wVaiqyxCjLG9WYpCP+3ncRIEGFYs+JTGa37oH5J9mKkcBb11pFeCMPxFB ImjeJNhOnM8b/CbEI04MkOvUYM19vfWqXPy08HJZv7FpZDsNQeTL7Acz+Y1NWqMw0pTH tkQDN2Z9S5Pxd/pvyNYXf24o3ha2YnmRtJUQOaco7vZUiAzXwY811a49IouqMo2gaVTS N90Q== X-Gm-Message-State: ANoB5pkI2NLqLx/lrw/I9fhFP9EmLUIxd8dS8WiHXf0PV7Pd6I6kCgGI nyCcFjipVtdNH8ygms5pGklwYA== 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 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 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?1752102778203415086?= X-GMAIL-MSGID: =?utf-8?q?1752102778203415086?= 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 Reviewed-by: Konrad Dybcio --- 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"; }; }; From patchwork Tue Dec 13 12:38:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 32802 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp95168wrn; Tue, 13 Dec 2022 04:45:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf7GFGUG+M3fkYEFcknhi4hqys2ZSYapDyNq/JIr3mF+LVfucIBW7Yxe9yacrS3uTJiREor9 X-Received: by 2002:a17:902:d717:b0:188:fc68:d366 with SMTP id w23-20020a170902d71700b00188fc68d366mr20818718ply.40.1670935510413; Tue, 13 Dec 2022 04:45:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670935510; cv=none; d=google.com; s=arc-20160816; b=PvqbPD0VKI856m+Ti3YQvlp2qkaTOiNXaojB4zZ02LrsmfbpYc0GvFiobtYeUMqqyZ mQeVjU7VmgLVGluN236q2l24rtjIZ1O865Tqw6cnR210Gw0bIFOcaBCXtA22QQ+6teGp hZOd/NSrEM+MMMN1xdEXP02B5lIOVIy2LgGruY1pyl8L7LxuqxljJtiiCx/y7zibGgWL jp6TWf6XHpcmvtsZwDDChthvjU2/LObBRWoPl0sOV3aRfzbJnT3ALiLQL4WmB+5Q5lym a0t63mAw8+nLgX1EDex5NRb9llDSzbjODGNqS6tNT1iduJcWcRuVorCy56LsLJB+BPg8 jnJg== 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=YePhAvYUlwABIizeZpsWNnCslmbzuPktDGT0aWh+WCg=; b=f0/5oi+kAwSu2TDIZ4f/0msoob3TsDrJDcr7S7wUVWb8mzxXSxFZTWXMe9JGpr2woi WcSEXD+xVBqJraTs4uwr1OtGBHCIETa0XIFgBRxbPDNk3kS449PSuYZbUDuWzw8gl6bo qz82ZWo3oTzFfko8b1zg77efuwWGWNmoUtKhoamYlml3XYmIP27LqgjhUihYLodc2rmm 9iN1qq54xlcGmbNS181gPnY5KoioDgQgoaSkWdrDbB7QXOvMEyFl6pSYGhLhhYAfilhk DDcpMyNCVrDkINcLOFCvA2NOLjKmQh4HLiFdPH7jEPohXqsfp2dO13XSks//5XV6Pebo Olcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wv/khjKA"; 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 z17-20020a170902d55100b0017f75654a27si12321992plf.510.2022.12.13.04.44.54; Tue, 13 Dec 2022 04:45:10 -0800 (PST) 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="wv/khjKA"; 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 S235703AbiLMMlU (ORCPT + 99 others); Tue, 13 Dec 2022 07:41:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235691AbiLMMk0 (ORCPT ); Tue, 13 Dec 2022 07:40:26 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 895C01FF88 for ; Tue, 13 Dec 2022 04:38:46 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id gt4so3263722pjb.1 for ; Tue, 13 Dec 2022 04:38:46 -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=YePhAvYUlwABIizeZpsWNnCslmbzuPktDGT0aWh+WCg=; b=wv/khjKASLevaKX2RJcymDxwDpHNeoxY2XZUcYsF+4DMkZIR6kzHyWjRoTxhxczneR EWMsMfMZk0zWvLbKdv5PZ83Oggfy4nd5VWWR2ghyKqIFxUjhaQxkjUvRzGqdX28Q3gI/ xb2m92RWtb4jDUJhiNilm04L+BlZAq/J2HMUAC478z3BrOudaD2+kwoT4GRYRATr4CVC 60QBlrGkS6GxVrTWd67MXhMoSdQKn6/nWkx5JZYrQSJxUYWVGhWHRe5Oc9cmmtimh57M nSZYflCcfncJN0nwJPtrBolVCYn2fFHBhj6Qx36xFEhDPIg5ifJ6Qthqr4U1Axqj9lWh yufQ== 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=YePhAvYUlwABIizeZpsWNnCslmbzuPktDGT0aWh+WCg=; b=1jczGCeLmZ5X30GNDdpLW5tv0l7Bs0+wZ8t/XBr8pRkevgHnXNz4syXtojP0K2m20W 0KGjiS2ooVXPfyPen9CpqiCMYHQtHyyQjGiBQKSXL7wZhS+3toG7rTVAQvUx41C2PVho 6dR1Mz5jhDNTTcmTzLafEcybOiyXNZ3NSsR82R47oYOYQHG0zoekY1M7S3ZL27lRinvO nFu3R5p8nbUua/uBqKKZsuqwYrJlZUd2I+h6Q+7OP/g3zYZ3J0Yg/JMfGs/S50L7o12B EhhnkXmGM91lF4VgtCOT15jWylhva7OSj6Od4pW0oH2aifGeQEH5DQsCsG7K9bEAHy0N twYw== X-Gm-Message-State: ANoB5pk6r2IEeAUAu7e4zH+ioELY9aDlR0KzTz74xOb+nXWLLyxjKCB5 hM5imQYz1vy386Bxuf/pwxCgTA== X-Received: by 2002:a17:902:e851:b0:189:a6b4:91ed with SMTP id t17-20020a170902e85100b00189a6b491edmr28013735plg.17.1670935125702; Tue, 13 Dec 2022 04:38:45 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 04:38:45 -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 3/3] arm64: dts: qcom: sm6115: Add USB SS qmp phy node Date: Tue, 13 Dec 2022 18:08:23 +0530 Message-Id: <20221213123823.455731-4-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 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 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?1752102873736719714?= X-GMAIL-MSGID: =?utf-8?q?1752102873736719714?= Add USB superspeed qmp phy node to dtsi. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 38 ++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index e4ce135264f3d..9c5c024919f92 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -579,6 +579,40 @@ usb_hsphy: phy@1613000 { status = "disabled"; }; + usb_qmpphy: phy@1615000 { + compatible = "qcom,sm6115-qmp-usb3-phy"; + reg = <0x01615000 0x200>; + #clock-cells = <1>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + clocks = <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>, + <&gcc GCC_USB3_PRIM_CLKREF_CLK>, + <&gcc GCC_AHB2PHY_USB_CLK>; + clock-names = "com_aux", + "ref", + "cfg_ahb"; + resets = <&gcc GCC_USB3_PHY_PRIM_SP0_BCR>, + <&gcc GCC_USB3PHY_PHY_PRIM_SP0_BCR>; + reset-names = "phy", "phy_phy"; + status = "disabled"; + + usb_ssphy: phy@1615200 { + reg = <0x01615200 0x200>, + <0x01615400 0x200>, + <0x01615c00 0x400>, + <0x01615600 0x200>, + <0x01615800 0x200>, + <0x01615a00 0x100>; + #phy-cells = <0>; + #clock-cells = <1>; + clocks = <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; + clock-names = "pipe0"; + clock-output-names = "usb3_phy_pipe_clk_src"; + }; + }; + + qfprom@1b40000 { compatible = "qcom,sm6115-qfprom", "qcom,qfprom"; reg = <0x01b40000 0x7000>; @@ -1023,8 +1057,8 @@ usb_dwc3: usb@4e00000 { compatible = "snps,dwc3"; reg = <0x04e00000 0xcd00>; interrupts = ; - phys = <&usb_hsphy>; - phy-names = "usb2-phy"; + phys = <&usb_hsphy>, <&usb_ssphy>; + phy-names = "usb2-phy", "usb3-phy"; iommus = <&apps_smmu 0x120 0x0>; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk;