From patchwork Thu Apr 6 19:46:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 7844 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1273319vqo; Thu, 6 Apr 2023 13:08:35 -0700 (PDT) X-Google-Smtp-Source: AKy350aIeYwXvhZDlB+rsdfRhiEr2KameRDwdoxM0T6PVb2SyAX8Sxn9KMnjboh3hhVSQwOsVrkf X-Received: by 2002:a05:6a20:8c18:b0:de:13c4:5529 with SMTP id j24-20020a056a208c1800b000de13c45529mr430261pzh.62.1680811715547; Thu, 06 Apr 2023 13:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680811715; cv=none; d=google.com; s=arc-20160816; b=jILB7+ZhIH+0PsdvgWCvVLxnnqwE1GU/wO21ijzC6M8ycG0+wQBMaUDM6eB2TF7ZRR 2OzwR0s5sCc4wolYWtXUqj1hO4b0kF8MkMQTrN6xoWnKUm5f7NWnepcJ7bXOp05PjA+8 VHqkOVEdj5+NcDDXhkDuYFv8IRh6Cbp4XFzEYxRP88h3VUi30AyZ3SSAzoWCg6NjLCSP s+TXi3aN4MwMvbZiWXpfZC+SBEbRau6yepx/wi92NY6Qxx7qWvVrELuQziq7uu3SPiJR 6CksAN5lMwsT+W4kCyqTEHYr8MlkUST45jHU1tQT0OyGaO3LKOAZdZF+FyHnIt/INozj FTSw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=BHIz3c+rkfz06Sf8NSwUCq2DbSMskpnedxbRiKolYg8=; b=D77/O3f3/D79M2xjCwSfURRbFhwkhG9HGbOls7Feic5r9cBWoipYSVxYl/Wulvk26k JMuxzY7pFu+/j/oooYfvCLOfOd/At1TAxrgyVcmRUZ38wx2DuGF41LZ0+XU4VMugtgTp 7D1LS72b3jg+BRJK6GAR9lt5fEwduyPhMhMbSbCK0Q2TUVwBLWlfDyAGHdBqRZO4N7GG 6jEOB3TGw2h8Ig5iZFikmw88yhcNBrFlwZa6HM92AeYEp7L/Q4ZR7wTmI7UW3IIclJHo 3mrgPOyyktlbREP7Yb4No8RSKzvQetNQRE6c5yLHH8HbGq8HCntld+phFZaDX3+K/Rt3 0OFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=nVRx4wz4; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v62-20020a638941000000b00502ed95c83bsi2110217pgd.362.2023.04.06.13.08.23; Thu, 06 Apr 2023 13:08:35 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=nVRx4wz4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237725AbjDFTrT (ORCPT + 99 others); Thu, 6 Apr 2023 15:47:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237498AbjDFTrQ (ORCPT ); Thu, 6 Apr 2023 15:47:16 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A78F13D for ; Thu, 6 Apr 2023 12:47:15 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id y14so40643326wrq.4 for ; Thu, 06 Apr 2023 12:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680810433; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BHIz3c+rkfz06Sf8NSwUCq2DbSMskpnedxbRiKolYg8=; b=nVRx4wz4CHS1HdYP5a9u/tqYWbB6fOinyORdjhh4t5204D41HHL79oIO/CFeaT6L11 4GTuGY/Dh+MXeL4vzy2J8Zuee3wV18Rwyc4o5h1T2msmcMh4IAGRQuAcCl3Esib/8zj0 zdLeojELnGQ6i+GElHhS97GckQmX4pNgry4TNRtk6jifs+rlTfhEppuzdgJQZiHQGmig Zy0vSnkr8oHFvsDlXEMhEpfS7bBAP8OsGz6WmkUXHE4cQlW2F5uZE6mmYpctL7WNmous QYLqO/ct2lj+YzLGHs3tjzkjGG7qVZNRU/BSaMtGigiYZBASqpeAmD6JqzEs6iX23dSc dJZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680810433; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BHIz3c+rkfz06Sf8NSwUCq2DbSMskpnedxbRiKolYg8=; b=sxi2NHROG53YuEAxULazrDc7qjNkn5iyD7r8kxk9aScSnQ2I2XPNMkC2m+aDq77Hf/ z7roeiSeELHvC3ydwsvqrt9eQCtlI2yX9Hg1YURzTmSJ2e6+XRIAPVt6+m4JPI+UQJlw cTyLlafDJKzyUjkKwXegoNs05irt0Cx+lNwkn8ra2teKh9Ga6Y5qCjxeIdC1DcUETEJs v8M9hFH/gI70neSneO8dFw8Z8bI+euqxCdeW+fvU1uSBzLbnv61ewCpI3lypUknik9i0 c1AmsxsDschzKO0mYg7XitBG4noW5YPt0E71XNAQ4JZYhNtqazolpVDYoaXUK27OjpGm OTnA== X-Gm-Message-State: AAQBX9dDdXYVuoqeqt46Ba1DLMgsZn1SUq930Ue18sBZAY5JIBudD6u1 2tjj0Wo+AvhTbrfKHAKidR4RSg== X-Received: by 2002:adf:dd92:0:b0:2d4:a843:d000 with SMTP id x18-20020adfdd92000000b002d4a843d000mr7368870wrl.56.1680810433541; Thu, 06 Apr 2023 12:47:13 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:4793:cb9a:340b:2f72]) by smtp.gmail.com with ESMTPSA id k15-20020a056000004f00b002c71dd1109fsm2593323wrx.47.2023.04.06.12.47.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 12:47:13 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 0/5] arm64: qcom: sa8775p: add support for UFS Date: Thu, 6 Apr 2023 21:46:58 +0200 Message-Id: <20230406194703.495836-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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?1762458825294147975?= X-GMAIL-MSGID: =?utf-8?q?1762458825294147975?= From: Bartosz Golaszewski Update relevant DT bindings, add new config to the driver and add UFS and PHY nodes to the .dtsi and enable them in the board .dts for sa8775p-ride. v1 -> v2: - order new compatibles alphabetically - rework the UFS PHY bindings to accomodate more clocks - add a comment in the .dts regarding a non-standard clock used by the UFS PHY Bartosz Golaszewski (5): dt-bindings: ufs: qcom: add compatible for sa8775p dt-bindings: phy: qmp-ufs: describe the UFS PHY for sa8775p phy: qualcomm: phy-qcom-qmp-ufs: add definitions for sa8775p arm64: dts: qcom: sa8775p: add UFS nodes arm64: dts: qcom: sa8775p-ride: enable UFS .../phy/qcom,sc8280xp-qmp-ufs-phy.yaml | 26 ++++++++- .../devicetree/bindings/ufs/qcom,ufs.yaml | 2 + arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 19 ++++++ arch/arm64/boot/dts/qcom/sa8775p.dtsi | 58 +++++++++++++++++++ drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 38 ++++++++++++ 5 files changed, 142 insertions(+), 1 deletion(-)