From patchwork Thu Nov 3 15:15:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 14943 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp595854wru; Thu, 3 Nov 2022 08:18:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5VEOBUSwB7sZGVo80l4Eeu2N55poVnV1ah38dFEFBPx4JIMhIeKY8oLiAtATqomQ8hsT7K X-Received: by 2002:a17:907:743:b0:740:ef93:2ffc with SMTP id xc3-20020a170907074300b00740ef932ffcmr29595624ejb.514.1667488711441; Thu, 03 Nov 2022 08:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667488711; cv=none; d=google.com; s=arc-20160816; b=EYYaQ7W694AoU1nGiM60ZWYS9qNvqhcdpAl7IJ+0ltcOLYKU+JHRe2ewmmhJppkVxP UFWFtSpgF9osEL45p47CjiBx5zBDYQJuigudX6wbH0Ok6Gj6moMXCOERSyWKKPn2ec8K TYWH+sBigIrPE+UmEj+udW/qEdwSvngohqOWxaBg4DOT5OkSgbABnOtSurd+t9QKyEr4 npPLrw+goqhRJbz80sHYJWHFLJIdG19J7o5dLV7HXKqFma3c5PKJIRqKFb83Kl8uYx24 3/DjdJHKVVJexxzjKH/mKo7ApTd+dr8zdJK9JB/9uJjcjpBo2sXKpFyKGC7Fpm+CeoD9 f5ww== 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=g+KpDYBLqwMniR72UjovP2jiCd9M2UL8NqXBU2WzCrE=; b=vJ1dRgaTM+H2wqnymkTgiZFT5K7+/+H+dJuQDmfEE1P+xO2cULZDxg8LQKcLnCIq8w oas4Ma8ypcmc5/9mm0xQl0tDl3RqS1PvtEM4hb5KNUKGC42zeOeqvYFeWPtxagh2tUiy bm8rdY3agy+b2HuzYaNtedj1Ox2K48NJnyWYT43BMsTUUbKKXXNxK7cxkRlE3N2tbb5s Ej41oMKHbeQbyz3wIkIZ2KSA4274ZmF4O/43UKHqiLxDdg3gs0OA4cA+zltNneo0X8NS A3HBvLUF7yFEYBIuixxGuO97YXxogCB1G40VXjsqUu5SuFGR8JpehKKExqAcP/OLcSCr 9ITw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s2mNg8QP; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a50ea88000000b00461bff75d84si1360446edo.463.2022.11.03.08.18.04; Thu, 03 Nov 2022 08:18:31 -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=@kernel.org header.s=k20201202 header.b=s2mNg8QP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232084AbiKCPPs (ORCPT + 99 others); Thu, 3 Nov 2022 11:15:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231993AbiKCPPp (ORCPT ); Thu, 3 Nov 2022 11:15:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A97E19C1B; Thu, 3 Nov 2022 08:15:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B916861F2B; Thu, 3 Nov 2022 15:15:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13F97C43141; Thu, 3 Nov 2022 15:15:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667488533; bh=nRBQsByGf4GwLy6raZdXu+dXed6AcJwsqQwQZKWK55Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s2mNg8QPls7Fdl0m9drlwXxYBsGnE5iBUtMcZjOUPJUHsuC/ziDCJdeebJzTEEJQe gmlbdunB6UsIMpuYlCDpzfdXT9cQybwERD5L+KQq0rhioTwMzCGbcQuu6b78Am8+9o w1v82knZsAl4o1atwIppBGT0Ls2oK0xgKwoCiNGp/X/Mc5Ir+E8ZmXggwgtKt+lmJl 5Rp4Dq4VDd2BSMnUz4WanWiurGweVsRjKYUPvLxy1ny4/6V59lVbUVIZ7SGhMMeepi AwJH+bGg93eIKDFzZ9b8FNGFumS1BQLgENiN4pT9h8kF4+rDTvMHlel6s94ay1eVSk rGNt4/sp9MI/g== From: Dinh Nguyen To: jh80.chung@samsung.com Cc: dinguyen@kernel.org, ulf.hansson@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCHv8 2/6] arm64: dts: socfpga: Add clk-phase-sd-hs property to the sdmmc node Date: Thu, 3 Nov 2022 10:15:21 -0500 Message-Id: <20221103151525.474833-2-dinguyen@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221103151525.474833-1-dinguyen@kernel.org> References: <20221103151525.474833-1-dinguyen@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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?1748488643141900534?= X-GMAIL-MSGID: =?utf-8?q?1748488643141900534?= The sdmmc controller's CIU(Card Interface Unit) clock's phase can be adjusted through the register in the system manager. Add the binding "altr,sysmgr-syscon" to the SDMMC node for the driver to access the system manager. Add the "clk-phase-sd-hs" property in the SDMMC node to designate the smpsel and drvsel properties for the CIU clock. Signed-off-by: Dinh Nguyen --- v8: no changes v7: no changes v6: no changes v5: add back reg_shift v4: no change v3: removed unnecessary property in "altr,sysmgr-syscon" --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 1 + arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 1 + arch/arm64/boot/dts/intel/socfpga_agilex.dtsi | 1 + arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts | 1 + arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts | 1 + 5 files changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index 14c220d87807..55c5e1fdddc7 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi @@ -309,6 +309,7 @@ mmc: mmc@ff808000 { <&clkmgr STRATIX10_SDMMC_CLK>; clock-names = "biu", "ciu"; iommus = <&smmu 5>; + altr,sysmgr-syscon = <&sysmgr 0x28 4>; status = "disabled"; }; diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts index 48424e459f12..19e7284b4cd5 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts @@ -105,6 +105,7 @@ &mmc { cap-mmc-highspeed; broken-cd; bus-width = <4>; + clk-phase-sd-hs = <0>, <135>; }; &osc1 { diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi index 7bbec8aafa62..849b46dd8098 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi +++ b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi @@ -313,6 +313,7 @@ mmc: mmc@ff808000 { <&clkmgr AGILEX_SDMMC_CLK>; clock-names = "biu", "ciu"; iommus = <&smmu 5>; + altr,sysmgr-syscon = <&sysmgr 0x28 4>; status = "disabled"; }; diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts index 26cd3c121757..07c3f8876613 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts @@ -83,6 +83,7 @@ &mmc { cap-sd-highspeed; broken-cd; bus-width = <4>; + clk-phase-sd-hs = <0>, <135>; }; &osc1 { diff --git a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts index 62c66e52b656..08c088571270 100644 --- a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts +++ b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts @@ -74,6 +74,7 @@ &mmc { cap-sd-highspeed; broken-cd; bus-width = <4>; + clk-phase-sd-hs = <0>, <135>; }; &osc1 {