From patchwork Tue Jun 22 20:32:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 12338581 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBBBFC49EAF for ; Tue, 22 Jun 2021 20:32:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 952DE61380 for ; Tue, 22 Jun 2021 20:32:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 952DE61380 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=M2sob7LmjEgw48IQnovoGehd+DpMcg9xDWTGg8hjdKM=; b=F+r5sj1xKvgnHD M8KcL44jb7duNI6vBw28C+jjNszgLNdL/Fauvd5HQ0TK4uEjrKCpVXMFoH+ESfLD7lodFIWpyYSLf 2btK8uNwqqXkky9zx2Ye+jsip/KQq6WcxNx1JxL4SctAo95uNke0dBpXyy06OAIXRVB33SHB98ktd ngZdDd7i6QiOnzQ56CsE53LjtCk1fuXR3qRzi5gDoWWDscvEhpa6j4b+PsFirCjCn0m/Y6Iy7531X EoA9Ytw3wznW202ih2W6NmE3QcgqfKekkl2zCoyaIZ2jWRHNgpIWTWl4N+17e790Y4Wrl31rCrfyv HYhXYju1vUv6TTvjEIUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvn4l-008MBp-6D; Tue, 22 Jun 2021 20:32:51 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvn4i-008MAV-KH for linux-phy@lists.infradead.org; Tue, 22 Jun 2021 20:32:49 +0000 Received: by mail-ej1-x636.google.com with SMTP id hc16so341235ejc.12 for ; Tue, 22 Jun 2021 13:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fmVw9pStfenfEOP3qSjlczojcgA/tTjIT2DLlSdXh+0=; b=WkwTLrEXm5bfSNXiGy18ZXmxAcf2lFYjWpEJ0mhRfQcr7LsSkQSJ00Y3dnnvXNA7bP hC0KAC0yyZJxuA/b5UorpOpYvG7H+KhJrOX4qyl7DJmCpIAfVm0p+MErmPhQFA9wUFy5 pW6op6qf6AfHSotPx4laPGlN+6Efh8FFXya3+bEnQZCLaGERZ/wcvDBAdn8TQTGiaW82 sDruRHgKAtQu1+D6lqMcipOzQhYBL9ibHCwcakvVvx6ACIb6TQ1ZjSICf/xNSgwT52PM te2gEEiX+J6HU+k1NHbEqtlSHlh5+YjDXpQFcCCIwVo3LRHH0F6pnW7RpUZuqphmQ1Wm vnfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fmVw9pStfenfEOP3qSjlczojcgA/tTjIT2DLlSdXh+0=; b=dprZwbPk8noMfIMBQuYMyOfkxyTF7Q5u6bDTOMTFBAuvNdrkgG8P7si6mb3/twxyVH HCReXyZmD35HgXUsQJnx7LLowQbkYdSC5umg16oWe+S90IH9t6lbi2DCs/c4qVQIE2UI SAD10iG+9cntXBjfBfwORNYJqdXKxG07ujT8ioVsYeV8rg+HMZXZP8Y2ha+Xz1C1qLaQ 8D8pCu/wuzr8msvKC6h0lFvrNIO/zvPqACERWXQdWePSwJXapUwb5ri1oL6G7dkDnThA 464w4PZUGsqBrGh0Sxa7Vrj7BYICtxWMSpkU4mXLIjnss9Su1D34e3BeUALV3AjK34f8 syNw== X-Gm-Message-State: AOAM533hqlGvAS+W0vSEP892R3wzzcd/SQx9z2nlRwcos7PvaVw1x58c pSLcj7+4AxJtbuLpG23Dx6s= X-Google-Smtp-Source: ABdhPJwBBF/JzwFvctm6Kb/5QRElS2Jo+5/sgmj4KLRBIJ/c2T5sA4W8f4/PpG9ANWgbSDPuhPEe9g== X-Received: by 2002:a17:907:7662:: with SMTP id kk2mr5879847ejc.218.1624393967267; Tue, 22 Jun 2021 13:32:47 -0700 (PDT) Received: from localhost (178-169-161-196.razgrad.ddns.bulsat.com. [178.169.161.196]) by smtp.gmail.com with ESMTPSA id i6sm6429481ejr.68.2021.06.22.13.32.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Jun 2021 13:32:46 -0700 (PDT) From: Iskren Chernev To: Bjorn Andersson Cc: Andy Gross , Greg Kroah-Hartman , Kishon Vijay Abraham I , Manu Gautam , Rob Herring , Vinod Koul , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Iskren Chernev Subject: [PATCH v1 1/3] dt-bindings: usb: qcom, dwc3: Add bindings for sm6115/4250 Date: Tue, 22 Jun 2021 23:32:38 +0300 Message-Id: <20210622203240.559979-2-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210622203240.559979-1-iskren.chernev@gmail.com> References: <20210622203240.559979-1-iskren.chernev@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210622_133248_692677_E83374AD X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add the compatible string for SM6115/4250 SoC from Qualcomm. Signed-off-by: Iskren Chernev Reviewed-by: Bjorn Andersson --- Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml index 413299b5fe2b..4e6451789806 100644 --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml @@ -19,6 +19,8 @@ properties: - qcom,sc7280-dwc3 - qcom,sdm845-dwc3 - qcom,sdx55-dwc3 + - qcom,sm4250-dwc3 + - qcom,sm6115-dwc3 - qcom,sm8150-dwc3 - qcom,sm8250-dwc3 - qcom,sm8350-dwc3 From patchwork Tue Jun 22 20:32:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 12338583 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFFFFC2B9F4 for ; Tue, 22 Jun 2021 20:32:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C127061380 for ; Tue, 22 Jun 2021 20:32:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C127061380 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=K+Anv1yXNQEz0a4Q6Cvg2muIlaKlfxYidsUHOr210C4=; b=oB4dqmJ+m8JyOb dExh3fS2H1cZxGmMeuNbflEBnzCrRN6iGxkHKWO92zpsmSNr0+ZTpUOieLnyDrlHacUovtaaxhldn ntZFRl1o6+aPl6bcLDoMAh1m6b7bIupzRaD8Ol5S/uIWfj+f9TU1ouzTGZTfSk3WygRST7SHPzG1l Vgvp8MDaFODce1TQ6uOD9Er0iBzhlTS/Hf8YXsSZA8pk+Va9Fwav2kPsHPmRjE1Ym3r3T9G0xL7pD KwHKy+m5bL3/J7uDzt/NTJcEhVnvkQPt55/U7vY7G6tqVk6eBKiS9oRTlT03Q8YBnDIBwradmkJcX YoGnGN9IMayLsXexY39Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvn4n-008MD0-AY; Tue, 22 Jun 2021 20:32:53 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvn4l-008MBM-AM for linux-phy@lists.infradead.org; Tue, 22 Jun 2021 20:32:52 +0000 Received: by mail-ed1-x52b.google.com with SMTP id d7so578815edx.0 for ; Tue, 22 Jun 2021 13:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5L9O5W6vqtHlRNNhg8y33uw5t/t1zDmxkWG7/hifX4s=; b=TZBvDahborAi1UNMGY6XRxFh2vH0Zu3dPPYZzelTD8D0tt8c9s8JyM8tpgdADXKa7p KPSeJszvQti2oEvf2h+zH9eCsxA5z0i1Sz/w1JFPcu6Qeac9kau0UGe1FFAJ3wwyERlU 4tuYQW5E1s7D9fexVGCoqdMDzIGtZKh3cwI3cjuIeo1gR4izzQjEAxiWH7Rqlh82MbHH s2nfD3YQ6PwtZaNKZFQ6niLASjK9pQs3D54M7i2mjO38svMNG83s+pduPgte0rzJ9TOI u7hii0lv/AX+GT1/7adc+gIvQ0jBMrlEOM6F8btdh4qiUjJ0Jwswv5fCZ9BEhnjo0xbu G0uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5L9O5W6vqtHlRNNhg8y33uw5t/t1zDmxkWG7/hifX4s=; b=pHjV/tz+OJvJu/Wag+U6kEv0WiSaI2gwRmr2y0DY9eR/j2GQNwIPIeo3IUB/fLp80W mn3gX9DazN/eyi2R783NjeSKszqjEQN9apCFyWPQcGPC/4U46hT8G8+uvU37zfBDYf5g ri6FtqsRybCORBSi/o2/Mi8FgKdouaEynBxk/LK6k+5/z5ruyRxfobptjh8S0ueWe+zD 5Apufb8NlAbCWNd0zrifQuTtaBuvXRlk/OSMfvgU9QYD+E9OsGm9ujRo1Y8OIpSJYu7C zml7k5nSifRgipHkxGGLK2m/9iTs/48IjLLzNXUsBt+HMsd2m45qsLpgQstmgSDSMORO gB2A== X-Gm-Message-State: AOAM533yInQzWC2OSGPTvpL1ckAPsI9kZz6Jz9awLsoxGjJta6kMc8QS ZCbwopauDm2Sj17Nz3n0s+s= X-Google-Smtp-Source: ABdhPJwrnzeNol/nOOau418ZZ5VK1eAFoHJoCxe+gbyHT+Zf+yhoz1Q14KpdegTjFaU+N6ysTojBgw== X-Received: by 2002:a05:6402:2898:: with SMTP id eg24mr7527249edb.155.1624393969684; Tue, 22 Jun 2021 13:32:49 -0700 (PDT) Received: from localhost (178-169-161-196.razgrad.ddns.bulsat.com. [178.169.161.196]) by smtp.gmail.com with ESMTPSA id r23sm7868454edy.13.2021.06.22.13.32.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Jun 2021 13:32:49 -0700 (PDT) From: Iskren Chernev To: Bjorn Andersson Cc: Andy Gross , Greg Kroah-Hartman , Kishon Vijay Abraham I , Manu Gautam , Rob Herring , Vinod Koul , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Iskren Chernev Subject: [PATCH v1 2/3] dt-bindings: phy: qcom, qusb2: document sm4250/6115 compatible Date: Tue, 22 Jun 2021 23:32:39 +0300 Message-Id: <20210622203240.559979-3-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210622203240.559979-1-iskren.chernev@gmail.com> References: <20210622203240.559979-1-iskren.chernev@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210622_133251_384776_7270B158 X-CRM114-Status: UNSURE ( 8.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org This compatible string is for the HS USB PHY on sm4250 and sm6115 platforms. Signed-off-by: Iskren Chernev Reviewed-by: Bjorn Andersson --- Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml index 9f9cf07b7d45..70258540676a 100644 --- a/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml @@ -23,6 +23,8 @@ properties: - qcom,msm8998-qusb2-phy - qcom,sdm660-qusb2-phy - qcom,ipq6018-qusb2-phy + - qcom,sm4250-qusb2-phy + - qcom,sm6115-qusb2-phy - items: - enum: - qcom,sc7180-qusb2-phy From patchwork Tue Jun 22 20:32:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 12338585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30CACC49EA6 for ; Tue, 22 Jun 2021 20:32:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EE8906138C for ; Tue, 22 Jun 2021 20:32:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EE8906138C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kzxSqYB7tBTHMxkmXwr1r4ImumcgsSsZ2JcMWNh7RJE=; b=AsHUnoyeZqbCd7 Gg3pfAp6U6FfBuI6kjmJcLeirjfGwiHyKSp90f1bE0/2FGQMFvp9hLv0SFDbMNCPKj6u/zRDIxyel wuB3K/DRy7gqbFnujYDhqIyBwyGGZs0cwkfV1rvP+tsBHeMtRSVGVAZhOUIh35gvxT6hHtQ6Rtlod tIKRs6lELAXFgfJoFaCMUgvVPBdJrMi6DdkP8wiY+NDWGM3EfbJzU/vU5j9aayhLBhKfSfUEemkjK Zxq0O5T4Kjx6y8L1GUFPK24B55WDRTrrDXtyjcbHz0UcDVKVZpeXy5ySmmpxM24PFAjznvXkX/+zt knQOXhgIPK0tqwn3+KoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvn4r-008MEd-II; Tue, 22 Jun 2021 20:32:57 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvn4o-008MCv-UC for linux-phy@lists.infradead.org; Tue, 22 Jun 2021 20:32:56 +0000 Received: by mail-ed1-x535.google.com with SMTP id i5so535601eds.1 for ; Tue, 22 Jun 2021 13:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bRmU0C3A1PBdjl5vqeNkyE5P00d04OKPIvoyRXjo+cI=; b=eh78Bnm+j6S+6X8B4s3AYZQLwNjytisFyOUjyuDFx/wSupiyaqCr2ozjjOv6M3xEqX LU8IHRiV8IikDPeGWn/cBz0LRw5XUW1oZZJikY2RaYpnqDuq+3itzyiBjkUKKA0UOP9l cFi8EcRZyKKbhool2g1Amf2jS3UevUz5Q4OfwvgdsBYgcZHT2RHKBzUXmWH3+XAPgYXa jfNLyJSbdoK0ztXXFJf8QNHc7ZYjqVosv/vk4a1Si7e6iGL+Kzy/pS36SOzBK2kpIAR3 2NH4RdTLdZkWdxqJi68zLT1icK5SJ+nuniJ72MUADL+Yvq3IryMgUigBgelEnS+5O6iX 5OOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bRmU0C3A1PBdjl5vqeNkyE5P00d04OKPIvoyRXjo+cI=; b=qv2Y3raBdENSfF8Ab4uUnzEKW35nhv/xD1lt1r4BXA7b3laFiryx+7QSEjtBVQyQhF Cn+RuExJ57xx4D/qRCze7VFlpg28UDyHLQoCul3udK0w2htsb2FhpO/tqalpH5FFS2Fz ZRJjIiS9q3BvTLCrLNvnKPISGkUpeA9pdU6B+X+sTs4CRWVwnA+vuo0LHcbVOtzfTRDZ cyWH8/88DkKf09XcZE1YwOdALpprAmldLTXoVfDHqzQWLeSjlJBAM81ApEnd5DKx5wG8 N1S/576wTwT4CAA+0NaM5OyRLiUx1I4qj2Ta5Eym6Z/b2w0LzxfWiisi4DRFf4XbK22w zv6g== X-Gm-Message-State: AOAM5339cLzT77JEjVYRWHM4roj9tRG8e5zuDyguLV75jk7x4RKKvQBa ifkt7nFNmOqoo7jqjjwLI8U= X-Google-Smtp-Source: ABdhPJwbz3QUmSTzQ0fczfEhsl+CmyOYAFuQUrl3h0/d+tDgTfmd4HKyyk8/MVZ3hoPB7fbCSsY/BA== X-Received: by 2002:a05:6402:138c:: with SMTP id b12mr7698964edv.268.1624393972375; Tue, 22 Jun 2021 13:32:52 -0700 (PDT) Received: from localhost (178-169-161-196.razgrad.ddns.bulsat.com. [178.169.161.196]) by smtp.gmail.com with ESMTPSA id fl21sm6514883ejc.79.2021.06.22.13.32.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Jun 2021 13:32:51 -0700 (PDT) From: Iskren Chernev To: Bjorn Andersson Cc: Andy Gross , Greg Kroah-Hartman , Kishon Vijay Abraham I , Manu Gautam , Rob Herring , Vinod Koul , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Iskren Chernev Subject: [PATCH v1 3/3] phy: qcom-qusb2: Add configuration for SM4250 and SM6115 Date: Tue, 22 Jun 2021 23:32:40 +0300 Message-Id: <20210622203240.559979-4-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210622203240.559979-1-iskren.chernev@gmail.com> References: <20210622203240.559979-1-iskren.chernev@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210622_133255_017949_A02B19D7 X-CRM114-Status: GOOD ( 12.27 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org The SM4250 and SM6115 uses the same register layout as MSM8996, but the tune sequence is a bit different. Signed-off-by: Iskren Chernev Reviewed-by: Bjorn Andersson --- drivers/phy/qualcomm/phy-qcom-qusb2.c | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c index 8f1bf7e2186b..3c1d3b71c825 100644 --- a/drivers/phy/qualcomm/phy-qcom-qusb2.c +++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c @@ -219,6 +219,22 @@ static const struct qusb2_phy_init_tbl msm8998_init_tbl[] = { QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_DIGITAL_TIMERS_TWO, 0x19), }; +static const struct qusb2_phy_init_tbl sm6115_init_tbl[] = { + QUSB2_PHY_INIT_CFG_L(QUSB2PHY_PORT_TUNE1, 0xf8), + QUSB2_PHY_INIT_CFG_L(QUSB2PHY_PORT_TUNE2, 0x53), + QUSB2_PHY_INIT_CFG_L(QUSB2PHY_PORT_TUNE3, 0x81), + QUSB2_PHY_INIT_CFG_L(QUSB2PHY_PORT_TUNE4, 0x17), + + QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_TUNE, 0x30), + QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_USER_CTL1, 0x79), + QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_USER_CTL2, 0x21), + + QUSB2_PHY_INIT_CFG_L(QUSB2PHY_PORT_TEST2, 0x14), + + QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_AUTOPGM_CTL1, 0x9f), + QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_PWR_CTRL, 0x00), +}; + static const unsigned int qusb2_v2_regs_layout[] = { [QUSB2PHY_PLL_CORE_INPUT_OVERRIDE] = 0xa8, [QUSB2PHY_PLL_STATUS] = 0x1a0, @@ -342,6 +358,18 @@ static const struct qusb2_phy_cfg sdm660_phy_cfg = { .autoresume_en = BIT(3), }; +static const struct qusb2_phy_cfg sm6115_phy_cfg = { + .tbl = sm6115_init_tbl, + .tbl_num = ARRAY_SIZE(sm6115_init_tbl), + .regs = msm8996_regs_layout, + + .has_pll_test = true, + .se_clk_scheme_default = true, + .disable_ctrl = (CLAMP_N_EN | FREEZIO_N | POWER_DOWN), + .mask_core_ready = PLL_LOCKED, + .autoresume_en = BIT(3), +}; + static const char * const qusb2_phy_vreg_names[] = { "vdda-pll", "vdda-phy-dpdm", }; @@ -888,6 +916,12 @@ static const struct of_device_id qusb2_phy_of_match_table[] = { }, { .compatible = "qcom,sdm660-qusb2-phy", .data = &sdm660_phy_cfg, + }, { + .compatible = "qcom,sm4250-qusb2-phy", + .data = &sm6115_phy_cfg, + }, { + .compatible = "qcom,sm6115-qusb2-phy", + .data = &sm6115_phy_cfg, }, { /* * Deprecated. Only here to support legacy device