From patchwork Wed Dec 14 20:31: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: 33369 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp455772wrn; Wed, 14 Dec 2022 12:40:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4phGZluRqV9skntSaCskF2g63JD89OdCntuPXx9C/wYfjIr+jR4lPQVLkINpVbuSp57r2Q X-Received: by 2002:a17:90a:710b:b0:21f:e5c:9852 with SMTP id h11-20020a17090a710b00b0021f0e5c9852mr21583345pjk.1.1671050457757; Wed, 14 Dec 2022 12:40:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671050457; cv=none; d=google.com; s=arc-20160816; b=FBHey/IcfHlAzz07HTBeSsRAvsWGJa70ndB6uhj/cYm3tlxRCD3Mg2TYm0ZhasBqLD 5uVuWx7YXE12NIVoWml+UL/dC0yANV8LBOphG6a5DcDnyeovcMk32tX+KQUFzVZqrHGA 5VkZHd6uC6zsrRf4vnZ89cHjxoOeq0XSHKsxdpZ1bZ8sloVQ1hTRYtcQdrd5y7vYnY2i XO7Yr2y7IPH6+dXSWnZ22DoQhM7q9lIQDT0lgs3Wul3fmhgB6iHLP4Ir+9ioXEGQzao0 dOT5MJlsaJP2QUN5Zc70CkKB+BS0TEEnWnX1fUhvX/zKCAf2TLZPPO+SoMbFgMy//EQG 7bqA== 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=xfisaX1yRNC7eLaChTG8lYX6QtvwXvGxy+CVBHfkvYY=; b=JVHeeMKNU3nKzNNj887BajRzA08sO2jQcQbn+rYE2QKABakHF5x4YDk5fKzhsqgPoa AK/PmpeNvVeg+hl+BVHa7D96YGYhxl2eMg1uNBXv/bfTcQJ2Ql1+FM2+fMz80wTPVwUf g7+6x9UFBAOdZCeaBO8Px0PT0TDOFidIsGemjLmW8q2zqYOV8+bMbBjlCmG79T68tGme lDoQkP4r1zlFoLZXU57lHnkZ+1KKlPHV/Qf8tfGfw8XeUQv3mD1IPTEs7C5tPJR9i1z8 zjgUPMOmK4shiegrzIy2chI7SXVXe9d1QRHmz3qxQ4an1pZ8yyWiRqkBzI1uNigGI/2s P5NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iXwjzWxm; 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 cx20-20020a17090afd9400b0021878aebd90si2727290pjb.168.2022.12.14.12.40.44; Wed, 14 Dec 2022 12:40:57 -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=iXwjzWxm; 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 S230247AbiLNUgO (ORCPT + 99 others); Wed, 14 Dec 2022 15:36:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbiLNUfn (ORCPT ); Wed, 14 Dec 2022 15:35:43 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 240CB3137B for ; Wed, 14 Dec 2022 12:31:49 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id x2so3283364plb.13 for ; Wed, 14 Dec 2022 12:31:49 -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=xfisaX1yRNC7eLaChTG8lYX6QtvwXvGxy+CVBHfkvYY=; b=iXwjzWxm8czKkuv24mdSFWh1miR+KRa+tM7sG71WvNRjMJsKUYbqluXDfKVle+Yra5 alPu5buTji1JguvriqfWjHTI7PE2qaYG5MK1py017BGe7E4lg4y9Jcuk91iVj1rLCzDJ xQune/lj6T2xB3yQ1GI6aoXukCBiVmohQuu7DHtU/ArKIFxlxNJve/EOfzSMNJHRyUK9 F1cfn/y4P6+g/96uaNZHDD0k3NlcUqt7zAgc76DZ2ttFTVbW2xvTa2YWx298HJz4MHTd +WllCDUW2O/HWSfNWp1WJLCKzYChvSOAqYZ16mLdan8LgrOA1vb0wlkQ1raKqC2pgNRN xiAQ== 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=xfisaX1yRNC7eLaChTG8lYX6QtvwXvGxy+CVBHfkvYY=; b=s9xYgzLL7B7t2/FFADTRbiciGZN4BYjDDwb0S78pECKc5nlHuusH5DoQxYcPbB95aS EeFzSqxPWTrXsze/wsZj0QxbCPQHWeel7YbVQQfTgq0Xe6GnU0riSIpU6SI6ffhJWA4S K46JoX+4l23xXAMCvqQ8/u3NHv9baPKcsfJHexeY4nUmz7ZtNjHjMYumOhO4gGRaYrDJ VfvrhO0c6tw1BBBYd9QsM9wdXC00OBHMmlgQe3flyFz4mf34koifHMeriECcZsxsau4X xBwOmb3m02xaO1HQsZccPnz8SOcOrLhxMgU/FaOO1wOH8jys4sezbWyi2g9NeI4pvfWx Ya6g== X-Gm-Message-State: ANoB5pkeRgK5OGGVamep85iTmZsYstdwxfU/uj+MSxhDz2MK4XamHENt vD471N1aDFF6bopsFEPZKEqTlpHRr4mZSkTmfpQ= X-Received: by 2002:a17:90a:710b:b0:21f:e5c:9852 with SMTP id h11-20020a17090a710b00b0021f0e5c9852mr21559709pjk.1.1671049908588; Wed, 14 Dec 2022 12:31:48 -0800 (PST) Received: from localhost.localdomain ([2401:4900:1c60:4bad:5c3:ab51:3d81:6264]) by smtp.gmail.com with ESMTPSA id gx13-20020a17090b124d00b00219e38b42f5sm1812238pjb.26.2022.12.14.12.31.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 12:31:48 -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 v2 1/3] arm64: dts: qcom: sm6115: Cleanup USB node's label Date: Thu, 15 Dec 2022 02:01:22 +0530 Message-Id: <20221214203124.564537-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221214203124.564537-1-bhupesh.sharma@linaro.org> References: <20221214203124.564537-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?1752223404802977268?= X-GMAIL-MSGID: =?utf-8?q?1752223404802977268?= There is only one USB controller present on SM6115 / SM4250 Qualcomm SoC, so drop the numbering used with USB node's label names in the dtsi and the related sm4250-oneplus-billie2.dts. Reviewed-by: Konrad Dybcio Signed-off-by: Bhupesh Sharma --- 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 Wed Dec 14 20:31: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: 33370 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp455781wrn; Wed, 14 Dec 2022 12:40:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5dTbAYMyDBD7Qery791L2quu764rPF0ULid/3DTPuK0q7Gz8eHSoaIyY4Ui8+rSJIYSLHV X-Received: by 2002:a17:906:57c3:b0:78d:f454:3856 with SMTP id u3-20020a17090657c300b0078df4543856mr22315244ejr.19.1671050459286; Wed, 14 Dec 2022 12:40:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671050459; cv=none; d=google.com; s=arc-20160816; b=s+KdfGQDUDB0NIw4selpqKx+VJ/bpwRas6iLWyKVr02ggotNqHOwXw8Gzcc9k102Sm 372kHwnT7eRcQyoz3HCE++hPEtQe5T3TcVSiPxmT6JRF9kbkKWSo9C11+MArAjSSXCxj ML9sbKqAk0ztx7B5NxpLkD5TgizKKAo2qF9l/L9HNb9sv212Ah8yTXGOe8sSQg3uMdFQ BCvlTwTb4jnGM6KEDsD9fFqo3aTYSdtllbvRY884RXSuzg9t6u26S8FONRYU6m/J/cJV S0ag3L0hFC2UdrMO0pO15mSCrIU05GjGmS5ameZpBAoxx2ozW6JXBA8E7b3xC+m387f3 wKmw== 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=iXo7ON+W+HqSzfMLSf0nu5/9om0aVHW6nmyC6DVkBmI=; b=y4qqm8v0RGI2bUZwvHI4NhAc2N7dvXzl7gCQASE3mlcK3j4IFMI8k3jz72ZJgnDgPG GbawM9OvrH+1RvV/cXuPcHmt1RPT2pH2CnoRLcWUP7e/lpKJAkbVNrxd5PnLSghYg3Tc D6KG1sT0OsVOED7RUzvVIYTPkfoyyh65asPx5WtCWld+eArcIApC/Mn3h9xGYObUNsDj A8zs9auAEWw14mNfP/TiqnLGcUaeQi7AHAIq72qouZkGZhNVKrOcWwj+h3yZskOjq0D2 USCbl7WOXZ/fA2avdiKynNopsMKD8bYx0pyndMLjPLIzt52Ly+woyxz+BvD5gnNNEVAs lZlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XMacLbFe; 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 w6-20020a170906480600b007912fb7ad6esi10904766ejq.893.2022.12.14.12.40.36; Wed, 14 Dec 2022 12:40:59 -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=XMacLbFe; 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 S229728AbiLNUgH (ORCPT + 99 others); Wed, 14 Dec 2022 15:36:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbiLNUfn (ORCPT ); Wed, 14 Dec 2022 15:35:43 -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 D627226C1 for ; Wed, 14 Dec 2022 12:31:52 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id 3-20020a17090a098300b00219041dcbe9so450617pjo.3 for ; Wed, 14 Dec 2022 12:31:52 -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=iXo7ON+W+HqSzfMLSf0nu5/9om0aVHW6nmyC6DVkBmI=; b=XMacLbFeRR4Jifz4+Q63pAto3sNGhGFs7D/C1Jtc9QQeGCWJRFI9tvaxikbQ2t/Dco G4gssaES0KuTv0xIEbouEsR5nQPUN12ph2mTl7f99Uj+lsVkI/5E7vYiBMxy95HKhXdC 4g20V7tkXglVZZRAL3X4miN88lXYqVjsHqTp+83qH2J4i0oVpcJR6jXyE4gclz3NfinW LQn4wBQ5M4Uj63PvZevVA5hRSggTsXftzAenddpZxNwfgW7p+Hez6dSAXeTTYDeoXjF/ PLX0+mxUxBiprC6yxUcGwXSIxO/DapOC27xIn07FyGShU/pveYYzB+vvAaN1qsUhHqhK VZ1w== 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=iXo7ON+W+HqSzfMLSf0nu5/9om0aVHW6nmyC6DVkBmI=; b=vX1g4K8l/CXrqB/ZGQ/yUjLNgPii+J8GS1q/wBUHFddOp3u2/OF7EljfNrMqSvU2/z dDrWK4N72SI+FYb+dEfgbRdbybS/7igRBnIoRL/q4p1KUgk+dqwc6A8nzI3AS0fkf40q +I2Tu5Fk8Ds2apfe/gcLBNOODIS/dWB/eaWXOWJIxnaqd9QNApzmzm0pVsRtqqF9uQQ5 HLZEU7mWSROwMxz7Uj2uqfaXc7bgi3wl9yEvu2hAOmICbS/IphYcIjaUrzLf8z6NTgU2 82nOa7c6AvbXJ0W1fnuW6FI8VT71nVeAfXov0JtL3bmM853bqb7Z9GXtaMuRKXGyPB5u +RBA== X-Gm-Message-State: ANoB5plMRAlKYbpv18JLbCoIBNjBKbiZskuuxq3TABwMITUg1C4raR4/ RwbiF0f8TToDhsc3iTgRMSSNQQ== X-Received: by 2002:a17:90b:378c:b0:21e:1282:af42 with SMTP id mz12-20020a17090b378c00b0021e1282af42mr23121685pjb.40.1671049912274; Wed, 14 Dec 2022 12:31:52 -0800 (PST) Received: from localhost.localdomain ([2401:4900:1c60:4bad:5c3:ab51:3d81:6264]) by smtp.gmail.com with ESMTPSA id gx13-20020a17090b124d00b00219e38b42f5sm1812238pjb.26.2022.12.14.12.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 12:31:51 -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 v2 2/3] arm64: dts: qcom: sm6115: Move USB node's 'maximum-speed' and 'dr_mode' properties to dts Date: Thu, 15 Dec 2022 02:01:23 +0530 Message-Id: <20221214203124.564537-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221214203124.564537-1-bhupesh.sharma@linaro.org> References: <20221214203124.564537-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=ham 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?1752223406294515414?= X-GMAIL-MSGID: =?utf-8?q?1752223406294515414?= 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 -- 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 Wed Dec 14 20:31:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 33372 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp456538wrn; Wed, 14 Dec 2022 12:42:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf7SgwsWdLLpTLTGaoEsOqh7wjUQUpGNOcM6WJdjgzGFoK4IDlonuttMKX77mCBrKjWf9wkS X-Received: by 2002:a17:906:1914:b0:7c1:311f:352f with SMTP id a20-20020a170906191400b007c1311f352fmr22425677eje.48.1671050568918; Wed, 14 Dec 2022 12:42:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671050568; cv=none; d=google.com; s=arc-20160816; b=yS1v3Z+D5wzED36fUs8kIEN5QhjwCL3PjtR1w2B7jN7rWKKqGuNWFdAvOEv0ooORmc A2eQRtJxeCwn5/2SubVNXobp7qCrKRCl4jJ9QmqBsu7Wy8Ivv+nOBaeAIEX9/IAZK3tW Zy04hJKYvzy4LJwSKVZPYdvQh2E5Vl10FEWQ69/k5FhAp8zsb9hkcMrZfCafNU30Lk3G fnLOs05Xqz5h9gwRowkubuBOijoPDgSB6FodOPQI+3vRmX30bdLsZ0EsFHR9Ff29KM9g 0+oCpJnmfyQIH8GwjDyMxVaPv9ZSRwY1lh8cZnKcFNucm7PAPWl1q0CP47XzgQhDXXeN 5yNw== 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=HPIAhqEAUFnaQX9FYqtKlCHsyyM8Y3BpxN8o+Dy0qmY=; b=zvdBCXoq8VuFhSSTIJ9uRY0VxhrkuzPUF68DMoR6vq9EZkgK6AUT8xLMSWqYeE+geA SA32/T3vBkYYYHOq67uB9SL2KHDaYGgQ3X3RJASNJ4pGq03XwZ/pdYCtAE0zycCE4z7x vQS9KLbAommbt/a+bdwM6OYjUWxqL3c5FkB89zBkApwty1jg9qE2n69C3oNTTFEiKUX7 hooh4PV3oazbnV8S4aBviu1T+bdDeCVbNRamnaRONUdtzEb7upP32w8jqH5QquD0GzRL R2fFC8aZorS/6ICNrvcIisFUa/nPYrzDeiV2P0d/FdgZhKXxG0e7Blv76DrsBUNv8awx 5JyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U1+8X6Qn; 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 qb11-20020a1709077e8b00b007ae0fe6198fsi12693902ejc.132.2022.12.14.12.42.25; Wed, 14 Dec 2022 12:42:48 -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=U1+8X6Qn; 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 S230287AbiLNUgU (ORCPT + 99 others); Wed, 14 Dec 2022 15:36:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbiLNUfp (ORCPT ); Wed, 14 Dec 2022 15:35:45 -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 78E2DE20 for ; Wed, 14 Dec 2022 12:31:56 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id d3so4577272plr.10 for ; Wed, 14 Dec 2022 12:31:56 -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=HPIAhqEAUFnaQX9FYqtKlCHsyyM8Y3BpxN8o+Dy0qmY=; b=U1+8X6QnTAv8LJbEQ5qFXSEdbpe4APhf2SYNK3m2nFrNtbn8nxtzlY7N9Si8dw+JSJ Y0wL/hPH/AnvIHGLSTsFLl6TfIBEBFRbH6T3VeuqvS2saU8IhRPBbGrwvaGRSAf+9UvP wSwKHpFlvqgHUkF3sZXLdHnoMNfWXcfYBoRpGbycuOLi/GJ2q8cECsOdBT5eWXqchA9d vBq9+mau2GFRyJNe8TgN3ZL0BdxQk9YB7ggFD8a39ixUZQ4q9ayL4X8jtGvZ69WxVwwD DZX4NDLn8xmYbXheVnRSb1L+Kx3LFzdWaD+tqolVtTYeJiHyQ4CD4GlSeHg9m07LpwJ9 Jb5Q== 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=HPIAhqEAUFnaQX9FYqtKlCHsyyM8Y3BpxN8o+Dy0qmY=; b=G42E3vBd7nK3wIm2AXk4kDMpe1rktVZYtPUjKTvNf1iGimcJIxnxdeNYLdAfA/R7q/ fcLjIxGQ5SSIoX9El4hoX3X+UTt/hJa/NHGB54HAc47rvuyUvIvAJjUoAnfZOi8Hvsgx gg6SedycHClDgJJPqwpxVhh9QPDTbtziWdQ7HEmiCDMLAxHwZsqaSlGdc+sGsYnJ23Hg lGZd0PUkB8UiI6s37DQ/woIvWQw0YKET99aIFWwpqtldzhKjqXhISTL0BaQ/mNFZRrLY vNNrcOI6Oori6dsWo1oj1aqL0lnXhPZekFFv/JkWGyoU1I63qqVTVHAm8WOFnJPida4q nuhA== X-Gm-Message-State: ANoB5pn/hw/WOSe11NY3pZBDyrIL43faD2wWY2VRozrBMxNtJSHp59LL TlWx1xXxl5GtTNEtRKNuWU6Q0Q== X-Received: by 2002:a17:90a:1b0b:b0:219:396c:9e32 with SMTP id q11-20020a17090a1b0b00b00219396c9e32mr27101974pjq.16.1671049915966; Wed, 14 Dec 2022 12:31:55 -0800 (PST) Received: from localhost.localdomain ([2401:4900:1c60:4bad:5c3:ab51:3d81:6264]) by smtp.gmail.com with ESMTPSA id gx13-20020a17090b124d00b00219e38b42f5sm1812238pjb.26.2022.12.14.12.31.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 12:31:55 -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 v2 3/3] arm64: dts: qcom: sm6115: Add USB SS qmp phy node Date: Thu, 15 Dec 2022 02:01:24 +0530 Message-Id: <20221214203124.564537-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221214203124.564537-1-bhupesh.sharma@linaro.org> References: <20221214203124.564537-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=ham 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?1752223521214302885?= X-GMAIL-MSGID: =?utf-8?q?1752223521214302885?= Add USB superspeed qmp phy node to dtsi. Make sure that the oneplus board dts (which includes the sm4250.dtsi) continues to work as intended. Signed-off-by: Bhupesh Sharma --- .../boot/dts/qcom/sm4250-oneplus-billie2.dts | 3 ++ arch/arm64/boot/dts/qcom/sm6115.dtsi | 38 ++++++++++++++++++- 2 files changed, 39 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 3f39f25e0721e..4f0d65574448b 100644 --- a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts +++ b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts @@ -232,6 +232,9 @@ &usb { &usb_dwc3 { maximum-speed = "high-speed"; dr_mode = "peripheral"; + + phys = <&usb_hsphy>; + phy-names = "usb2-phy"; }; &usb_hsphy { diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index e4ce135264f3d..15f311dcd289f 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>; + 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"; + #clock-cells = <1>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + 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;