From patchwork Fri Apr 26 12:19:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13644698 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3B33DC04FFE for ; Fri, 26 Apr 2024 12:20:26 +0000 (UTC) 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: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:In-Reply-To:References: List-Owner; bh=P8JwbtwqQ5BYuzyISGsc8pNdZTbkXsh0wag0L50ibsE=; b=2pZPd++G2rYtQN RywXsNROw82OazQR40OaZap6qq4sE8rqYtCkuH/WbfCtMmeV+COVRRqMPdC5UHDNMKhO+qpzSU+XQ wzu9Kom6YQ8IfOWeNAELl51CerS2bUiGbdeqiGQ+tWOtTzI3N7Q/6L4P+NO5w9r1lYakK5zKFXHFf 2lxhMTzlTMfWxzBkxKd4eBP42gAB/NQ+bHTSSdk1Yx2gYp2KE+GUwJ0QbKd/jIHJWjvOT8l65T4Lk 49YNBCbbEjoFiwt5S6AnwFL14iLbFN8WylS3myz8xc8uiQkwpETigBjQ689ZjUfxz9oW7zqhPBBD2 fFXesdxB8kFfFW2ctbmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0KYp-0000000CRrs-1i7H; Fri, 26 Apr 2024 12:20:15 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0KYl-0000000CRqM-0xzj for linux-arm-kernel@lists.infradead.org; Fri, 26 Apr 2024 12:20:13 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-34782453ffdso1962533f8f.1 for ; Fri, 26 Apr 2024 05:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714134008; x=1714738808; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BvGxGr2jzc7HNRAdQ7sDWvGQAeqzlPRu9vORrfxhJ08=; b=pfTHVJmXtYFVjrCisDKPNeW0LZbj+Gtwr3ft/cxvhgg6iXp4xO7cwYx+/t+cbdjU2K RQOcGu/hR0r/VxJv22ueJDgZezqxqEnprvuXdeRI95Y32ogGwDlW9g6ZLT7eRfeDqccr 88w0FTI0a2OKcqw5VS0MDCyKnl0BpC1uSFcVbURY8I5BlI5idEb8TKEpIqNiNC36Izj8 pNg/ysjijNMynV2V/tXKXECs9NQhSCO1lbqk2THkOOaSw6FCxgb9iE6hkZwGzjicULnq LyTj/efypvQkwyE6gZcnMLvTV8OinVhXhpUQeypKufyk1zPvO9mXgDGSgZlhu2iy4Pgy luuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714134008; x=1714738808; 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=BvGxGr2jzc7HNRAdQ7sDWvGQAeqzlPRu9vORrfxhJ08=; b=qhfTBpI2T38Ls1LCiWnpBJkwVghRFVKL/YtQdaW7gy5Aaa1xhn3ZGo1keX0n8/TxRp mM8TsTgBIM+/bp19tnAy4XW/AJfGMkUfcbfKEQD8f+3TW5AD0ee57Sszycwse6Nzhrdt nJIwMczGTf4dGunDXVLA3XxB7ZUz9tROnbcGiAAMd1NkhQHWS/lMLpxSB180rPQ9sU34 roQVibKPHwlNPTvrnAqtwyxuJYEQCR+wa8ErBiwYWxVmoP5WnhYPXeak6F3vbYQ6BVDo dk4pQXwX4zhMnZxAY7Yg3A1o4UXZZsajwRPlJfKRZz7xm7/BX/mIIsSmy2oMYXmauhgj 1aDA== X-Forwarded-Encrypted: i=1; AJvYcCVCddYlQ5OqLSC3Vtky+zISfk2bnZUUIKl6SbCMCv/Xj/EGfUxDE2NlH2vbrizoFjoHEful2h7HqS8REOJXq6l5hrbvYplL8yRXgE8ddPw19B+NdoM= X-Gm-Message-State: AOJu0YxffNGORUGtj4xtFua2IUBkMova0LqivLmVsZrbWTa264LcTJ5X 4yQJ/9cI5y9ZK2X4oJqN5NGsanSdPYEo78ZYASGmz73kATEayVv9ka6Dh9yw2Pw= X-Google-Smtp-Source: AGHT+IEsg35qRGx7lt+VkeY9EjpUvvgqNyRCP2x9AyOQiNHCiXlefq3poByoLhtygl/AAoAgySNIAQ== X-Received: by 2002:adf:a457:0:b0:34a:4f1c:3269 with SMTP id e23-20020adfa457000000b0034a4f1c3269mr2072375wra.0.1714134008049; Fri, 26 Apr 2024 05:20:08 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:63cc:9bae:f542:50e4]) by smtp.gmail.com with ESMTPSA id q2-20020adff942000000b00346bda84bf9sm22478146wrr.78.2024.04.26.05.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 05:20:07 -0700 (PDT) From: Peter Griffin To: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, kernel-team@android.com, Peter Griffin Subject: [PATCH v3 0/6] ufs-exynos support for Tensor GS101 Date: Fri, 26 Apr 2024 13:19:58 +0100 Message-ID: <20240426122004.2249178-1-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_052011_297126_F3895F0C X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Martin, James & Alim, This series adds support to the ufs-exynos driver for Tensor gs101 found in Pixel 6. It was send previously in [1] and [2] but included the other clock, phy and DTS parts. This series has been split into just the ufs-exynos part to hopefully make things easier. With this series, plus the phy, clock and dts changes UFS is functional upstream for Pixel 6. The SKhynix HN8T05BZGKX015 can be enumerated, partitions mounted etc. The series is split into some prepatory patches for ufs-exynos and a final patch that adds the gs101 support. Note the sysreg clock has been moved to ufs node as fine grained clock control around the syscon sysreg register accesses doesn't result in functional UFS. regards, Peter Changes since v2: - Split into separate per subsystem/maintainer series (ufs, phy, clock, dts) - Remove ufs_ prefix on clock names (Rob) Changes since v1: - collect up tags - re-order samsung,exynos-ufs.yaml as per Krzysztof review - Add sysreg clock to ufs node (Andre) lore v1: https://lore.kernel.org/linux-clk/20240404122559.898930-1-peter.griffin@linaro.org/ lore v2: https://lore.kernel.org/linux-kernel/20240423205006.1785138-1-peter.griffin@linaro.org/ Peter Griffin (6): dt-bindings: ufs: exynos-ufs: Add gs101 compatible scsi: ufs: host: ufs-exynos: Add EXYNOS_UFS_OPT_UFSPR_SECURE option scsi: ufs: host: ufs-exynos: add EXYNOS_UFS_OPT_TIMER_TICK_SELECT option scsi: ufs: host: ufs-exynos: allow max frequencies up to 267Mhz scsi: ufs: host: ufs-exynos: add some pa_dbg_ register offsets into drvdata scsi: ufs: host: ufs-exynos: Add support for Tensor gs101 SoC .../bindings/ufs/samsung,exynos-ufs.yaml | 38 +++- drivers/ufs/host/ufs-exynos.c | 197 ++++++++++++++++-- drivers/ufs/host/ufs-exynos.h | 24 ++- 3 files changed, 241 insertions(+), 18 deletions(-)