From patchwork Fri Apr 15 16:59:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12815213 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 1ED38C433F5 for ; Fri, 15 Apr 2022 17:01:39 +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=OTevHCG786wwVKPAM+/vQHiTo+7Bst4sTr8tVRtiuWc=; b=N5McUlhVpj+JZW 0rot2TozVMBqwSqLYAndwL9k8IWrOSWmskmyhs24DQuiKqBBayXZZZv8VyKwoqRZ+OgvSsxLGS+LT IvEYE2J71UXYiKl1e8a102RW3tiqJvUEmrvMLqgsuD5vcLTTBZZYQfTxCMavOULDpf6woJD7Y1pvQ KorTkAQUFJp59a9NlD6/bHVFxlGXovM+ucQ+L4DcYepSfwBNadBsxka3k55rBs7P4LfOqQ9HY2siw taBY/KHcR37qWQPwO3jhvWMoRdQ1sd/5ul07PHKu8Fs6aiN7r5NC9z1lxKxXp4yAec7xqsYbOfCfV 4Vak3/EzvCTEGDE3Ft3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfPJB-00Axlk-9l; Fri, 15 Apr 2022 17:00:33 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfPJ6-00AxiU-95 for linux-arm-kernel@lists.infradead.org; Fri, 15 Apr 2022 17:00:30 +0000 Received: by mail-wm1-x32b.google.com with SMTP id p189so5221896wmp.3 for ; Fri, 15 Apr 2022 10:00:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gq0WGrwCFa0DH2fCvNOkSonNeptkGtqY34LwdIN3LF0=; b=I6rFcA21cGHuPTs2RY2P37BAl0LZBd8+WMQzCzxJXVFUKbRMy7ncw42qJXS2bQCxdF bdbFwVu6n2Ns6/wkqblBtVEFUZYKzjtiWgSz1T2aSBvGRBa96d5jm/Y7koIUgKqWToxL TBMwIYiv+x7PSkmSlR8ytbDsY5mzC7pY6WIB8KBSBoSXUeS6VhNScGDognj48gg+Fjjz qwRoeYMejvdOMD+q8hJsaDowApxmZhenSTfcTNe2dUKxEkOlbiHJ6SCl+IX0520CVuq9 rfNRCedszqfnhFyvKRVyFN1ab4/c1B9YXO8W7uWH6Y7WpQw3NsLcf6zIW+/vur77qZiX 6xEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gq0WGrwCFa0DH2fCvNOkSonNeptkGtqY34LwdIN3LF0=; b=TsTOaBaMazWMICy8gO184mnuW8wV4M65vTE+4hPLzmWC8+gyktIuh8ipz30us1KpD5 haTwCfIvLlhAF/VncTumvSuCSEsjGoLfskdnD5cq619TqdkC9Yo5lZU1ORYi2FMYyn5v R5RWVDIftWgEjbibtZKZlgi3WSwE0I+Ra1J4ETiiDXpIQ6QC74hfuunio3gTHjj3SLOp U5DIDQUWNe+BuDIaxP+7JMFCPSzFmAqg1UKNRZipCK8Xf6MN0VjnUjAKFS12e6gUymlZ j4T7Sm2sSgTzuLlIIxTAIioTaTuR8jSYrVGTqkKYu6kThnid9aiOmZwgzD77r023cJm8 PHKA== X-Gm-Message-State: AOAM532hRzrONU8a7k5pWHuCH5jJr2IQsTLvXfdtNTtgIHbW7jeJtdMu Xhiz2p8iiF9nGQqF4rEoSSR6qQ== X-Google-Smtp-Source: ABdhPJzV1ptXy802vFVzTiBT0RWKqMJu7qvTmAbOiw85HDwqnMbN4MS0LF3Eo41Npj8bE5cEzpbRZg== X-Received: by 2002:a05:600c:1548:b0:38c:ef05:4cdd with SMTP id f8-20020a05600c154800b0038cef054cddmr4090179wmg.71.1650042014517; Fri, 15 Apr 2022 10:00:14 -0700 (PDT) Received: from radium.lan ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id i127-20020a1c3b85000000b00391a363f5adsm2119704wma.36.2022.04.15.10.00.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 10:00:14 -0700 (PDT) From: Fabien Parent To: Alim Akhtar , Avri Altman , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Stanley Chu Cc: Fabien Parent , linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 1/2] dt-bindings: ufs: mediatek, ufs: add compatible for MT8195 SoC Date: Fri, 15 Apr 2022 18:59:38 +0200 Message-Id: <20220415165939.1861470-1-fparent@baylibre.com> X-Mailer: git-send-email 2.35.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220415_100028_380108_B307686D X-CRM114-Status: GOOD ( 10.24 ) 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 Add bindings for the MT8195 UFS support. The MT8195 SoC requires more clocks to be enabled compared to MT8183 and MT8192. Document the clocks required for MT8195. Signed-off-by: Fabien Parent --- .../devicetree/bindings/ufs/mediatek,ufs.yaml | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml b/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml index 32fd535a514a..5ed36e95e933 100644 --- a/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml @@ -14,16 +14,31 @@ allOf: properties: compatible: - enum: - - mediatek,mt8183-ufshci - - mediatek,mt8192-ufshci + oneOf: + - enum: + - mediatek,mt8183-ufshci + - mediatek,mt8192-ufshci + - items: + - const: mediatek,mt8195-ufshci + - const: mediatek,mt8183-ufshci clocks: - maxItems: 1 + minItems: 1 + maxItems: 8 clock-names: - items: - - const: ufs + oneOf: + - items: + - const: ufs + - items: + - const: ufs + - const: ufs_aes + - const: ufs_tick + - const: unipro_sysclk + - const: unipro_tick + - const: unipro_mp_bclk + - const: ufs_tx_symbol + - const: ufs_mem_sub phys: maxItems: 1 From patchwork Fri Apr 15 16:59:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12815214 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 5682BC433F5 for ; Fri, 15 Apr 2022 17:01:41 +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: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=gg+2qhBIqSBBCtunZT72TlBl+UcMc6LK0SYOPTxUQIo=; b=mxGTumssZ5y2/3 RH12i1XO/P/TdsbJhaQ40EzvmNDcK3I2ckjHiIniDMurQ88/1XeHGi/97bPJcwwbtRmdY8TKsWWaW H4g2oDtOiOtngbVA5YvhLnsQcwPBYju+nWDscUnm/Sp80quY2ryqqaxN8Eg+jJ7e8pqmKWNsOePH0 bzGRwYKex2pmJJS222jb9yQRmsNsWhBeJxVkeoHIjr611TJw6DMQGHs6XWkGUim9ovIx/oUnjbOS5 5PD7KVtCVrZdEw+bwrvZ2hhviZ/wTHOo6rS1kSIRHHZIZiOtFq7Yp/32qIbjRmqquODwV7xO6pc54 P/X4WWOwLA9Gwy9Skx0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfPJK-00Axod-Qt; Fri, 15 Apr 2022 17:00:42 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfPJ9-00AxjY-Fc for linux-arm-kernel@lists.infradead.org; Fri, 15 Apr 2022 17:00:32 +0000 Received: by mail-wr1-x42e.google.com with SMTP id m14so11289272wrb.6 for ; Fri, 15 Apr 2022 10:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+DtrWZQmLbh6BgPYAsMpSHPxDFToRkqobGkqBOET+Pc=; b=xWkLOaddSO4SKchm0277aiMkAwx1ZOGp2XXeXJPSksUvO3GmJz5BK80b5J3dEBY6EN wnhgzaisOm6LgOJeZz4wWQqDiZtCEiYb4OTacJJhH/O8QMp4a+YKmFVmyfCCNm+IhkUD Ufwd1uH5BIH8fK/LnX4C7Qlz5BgYuDifZGO3cC2VJsCnM2tqVC0x4M8cGPsRRzsW6Bbk XAKP5wmNFTST8DJsrASlC6AmOYIOo77PiEYCi+g/ctpZ77Tm7Ybq2uamx7aCKJSwP/dw c+UJ31dqtfTz1LQa1GpLWxscDkanxRdBLlLaambeawWsJdFNuFqzWJecW7iSoGUVR3DI r9dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+DtrWZQmLbh6BgPYAsMpSHPxDFToRkqobGkqBOET+Pc=; b=vbWAignyQzddjwezDJkQ+5Hys91Ykhv5U/nGCg5FEOtE+t7KSJxWDfZuOPDbFCAxPc /wApsv8vdnIWZrFbKSh1RrfiksNNVQ51qbIAPyPKxHtkjXUpUlm1LsTswrvdhvoLf17d B5LxjmD7BPlXgo8KYm5bGgnpk3juHyM8MnmrnXbpC51v7jr/btofUpfqxyDNeBMNwwNZ LwQCD4pxaj2MViXuXw2eHABiGioZODUjLTPeqyRTOwqj0LGFKoOed6mGWFrA565alQjy pLXx97HF3v7rBcKxkBgKLpjdDK1D9KwpaFL+eOv5qo8gwvKAYAD5YtWFIkdj5IV5o8OA OJ7g== X-Gm-Message-State: AOAM5335USbdiDLe9zMx+fmQ+liq7YIJjwM5Lxp8aerfzFo91Ft9ypzV V9yAsoz69nj2VhAfqz7p+PAf7Q== X-Google-Smtp-Source: ABdhPJyvWQj30Y6+u8XT8aJ4AK2kwz8H/ZsRhCjD+JCTOfHK6pVtnfj5JXf8eLkK9T8Dh119HuzfcA== X-Received: by 2002:a5d:48ca:0:b0:207:b62b:7483 with SMTP id p10-20020a5d48ca000000b00207b62b7483mr81653wrs.349.1650042027083; Fri, 15 Apr 2022 10:00:27 -0700 (PDT) Received: from radium.lan ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id i127-20020a1c3b85000000b00391a363f5adsm2119704wma.36.2022.04.15.10.00.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 10:00:26 -0700 (PDT) From: Fabien Parent To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: mediatek: mt8195: add UFS HCI node Date: Fri, 15 Apr 2022 18:59:39 +0200 Message-Id: <20220415165939.1861470-2-fparent@baylibre.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220415165939.1861470-1-fparent@baylibre.com> References: <20220415165939.1861470-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220415_100031_608286_7641360C X-CRM114-Status: GOOD ( 10.60 ) 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 Add the node for the UFS HCI controller for the MediaTek MT8195 SoC. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index b57e620c2c72..2255e19cc3b2 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -619,6 +619,30 @@ mmc2: mmc@11250000 { status = "disabled"; }; + ufshci: ufshci@11270000 { + compatible = "mediatek,mt8195-ufshci", + "mediatek,mt8183-ufshci"; + reg = <0 0x11270000 0 0x2300>; + interrupts = ; + phys = <&ufsphy>; + clocks = <&infracfg_ao CLK_INFRA_AO_AES_UFSFDE>, + <&infracfg_ao CLK_INFRA_AO_AES>, + <&infracfg_ao CLK_INFRA_AO_UFS_TICK>, + <&infracfg_ao CLK_INFRA_AO_UNIPRO_SYS>, + <&infracfg_ao CLK_INFRA_AO_UNIPRO_TICK>, + <&infracfg_ao CLK_INFRA_AO_UFS_MP_SAP_B>, + <&infracfg_ao CLK_INFRA_AO_UFS_TX_SYMBOL>, + <&infracfg_ao CLK_INFRA_AO_PERI_UFS_MEM_SUB>; + clock-names = "ufs", "ufs_aes", "ufs_tick", + "unipro_sysclk", "unipro_tick", + "unipro_mp_bclk", "ufs_tx_symbol", + "ufs_mem_sub"; + freq-table-hz = <0 0>, <0 0>, <0 0>, + <0 0>, <0 0>, <0 0>, + <0 0>, <0 0>; + status = "disabled"; + }; + xhci1: usb@11290000 { compatible = "mediatek,mt8195-xhci", "mediatek,mtk-xhci";