Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1718863rwi; Thu, 3 Nov 2022 08:20:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6cZGkDI27XxDQy50C4G+NJt2hLefx1ESvvCWW0fpvXs/PLdw423MUPYQwVBdrYr8oHXuhY X-Received: by 2002:a50:fa96:0:b0:463:56ff:4d3a with SMTP id w22-20020a50fa96000000b0046356ff4d3amr23059874edr.345.1667488808926; Thu, 03 Nov 2022 08:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667488808; cv=none; d=google.com; s=arc-20160816; b=TMEkR3kDGCzzFDqKucKtW7Vil7Ftu9S3PTulMJZWTxYHi+Dnmjgz7U/Iov7XOPcAUJ IZvaK5kdV9bFkRHU44G2jHXIJdHFKxgw4PzDJ8/46JIYhGrrIV/nI6vbia72/p9JNnMJ IEy4Bf6KCbl+uFkrW2fJRkBLmCPzna2IoJzdybm1KX9UkjtOE1b0UhhPap5eE07vdgUV uIWwKpUzXKddqpoOFCo2MV+QEuirxlRl/ca0QFbKMQDrLCaHjge6Z00QJlakY1CRUu8J ABozyrj4UmJH5gjFW17k+M6RXk3RyEkAJvOJ+4EKd6OjbbqAa+h+AMX1aeBkXHhYqbVP 1qVQ== 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 Return-Path: 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.19.23; Thu, 03 Nov 2022 08:20:08 -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 + 98 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 Content-Transfer-Encoding: 8bit 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 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 { -- 2.25.1