Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp116610rwb; Thu, 22 Sep 2022 15:22:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4J/kLukC9XxHQ8LReERTxBw2pkCtoXeswPkJs9xQUW61m69R+HgJxpURPsCM3PxsOZpD5E X-Received: by 2002:a17:90a:e644:b0:200:2f9a:bd0a with SMTP id ep4-20020a17090ae64400b002002f9abd0amr17510323pjb.88.1663885321531; Thu, 22 Sep 2022 15:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663885321; cv=none; d=google.com; s=arc-20160816; b=sis+xEO2XMhXQonD7hJigODYkdkMxbMdPXuZK2VKhvqJB/fOOZdVt/eVzbsjBwCLC3 AyOXBMvp3MPIYkrqmArF5U+nl2Byiyf7PHBYtxAaUZVhiCZ4XnVuG0WI1v1j9Zn6IpCE bgTIFX/OUoAy18lp8fjLu0IdbDnuyUk+PkLKEtDat01xUAgz/e1D4udI4+SWv/QFY7/X ePKjbycvs5EJ/Di6f/kG3ldYT9epD74a3xfjS2pEykj4N1DLj7vX65cxUF+/VSl3vXdj c8vLVMwYpvfBFET6Y0ib/fLJa55GxqgVu6Gz97+42uu+0OX5k8y+5Uqvb//vPlRuBaGj IXzw== 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=yT9PIflU4+8CXJMh22GVFsq4/UOoSXfDNRKNS53IQ2s=; b=P+fQ3NuZ9fzLNBIuvi9+QJ/HA1XsKdnbnvRi3ZFnkk629u7etXFDsRtPXLKH1ZSKWh DGXoajQ+nRVrF0YckijDNGF0/aQeAWkhqA293Ocr0lqjUBrgnWe2ZNZlV/SBkOByq6NG M+H914YK3Pu30tHasNYB6lbUs33f5wnwkwEuRSOACngEw09RAZ5CthmdT9CXwQSG1bET vFezJxvqkrq+DnSeY5GJdMJA6cuzrB3qkXIn4HvD9dPMiSawjHMvipev8s6GGXhtucUj 91ztMOYzS8DlQ4dHgnhpWPwp/GVIbCzO920pZekylZVGFBti37thC6p+y0LZ/7fQZ+gL B/Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hF28X7Zw; 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 b20-20020a056a000a9400b0054342bb20e2si7560728pfl.66.2022.09.22.15.21.39; Thu, 22 Sep 2022 15:22:01 -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=hF28X7Zw; 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 S231320AbiIVWD3 (ORCPT + 99 others); Thu, 22 Sep 2022 18:03:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbiIVWDW (ORCPT ); Thu, 22 Sep 2022 18:03:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C69DD109741; Thu, 22 Sep 2022 15:03:20 -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 ams.source.kernel.org (Postfix) with ESMTPS id 0BD43B836A8; Thu, 22 Sep 2022 22:03:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7C79C4347C; Thu, 22 Sep 2022 22:03:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663884197; bh=fYm6Cvv+PSjM2Gv/1imDNQrnZqXuBwzd5QvBMYqyNgY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hF28X7ZwzuSWNycdWLamPNPZI6RPFW7hNfcUffJ3/vAgMeB5Io/crrH/Ky6osBCpm xoSshc//XadLgdDkJSFp6NT+tMXPcao1DmFJG/FUr3bDPw4TuG1QccPE8YuYBjjpGN dyYAM/Ue+hjpWmY/Uf+5HWH4N7Wjk2k881jggeWq/j4y1jUUmCc8McnlGc934Sef7L HtzuO5YsBn8kBMP/I4TsCSj32/fiWqdfPVjseb9hlWSua+g3CPYgmQ2ZBVYF5WwwYD 4jDJgUQQFx6CbXYOlN+gUNB2fzsj6f2+7MWDVxNVC7AUVkKUzuWRNSEGyNqyjweb3Q 5sGHpxHguVnCw== 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, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCHv2 2/3] arm64: dts: socfpga: Add clk-phase-sd-hs property to the sdmmc node Date: Thu, 22 Sep 2022 17:03:07 -0500 Message-Id: <20220922220308.609422-3-dinguyen@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220922220308.609422-1-dinguyen@kernel.org> References: <20220922220308.609422-1-dinguyen@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.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 --- v2: no changes --- 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..a5d08920ac81 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 0>; 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..6353f6a361f4 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 0>; 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