From patchwork Wed Jun 5 20:51:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687470 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 E61BEC27C55 for ; Wed, 5 Jun 2024 20:52:29 +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=fv7v5g7Bl9DY8bFQB8iuI7uXp0ZL3L6kATDx3ycihSM=; b=vbYQUhLqC6ozCr AxbZMTpij23xlQ3a7ASFwNdArgAsudCd+VhNvNre/JNUX90hiUIxG0AzTyXSuiaTGbimHrz57szEj axwIdcLa2+rIbf6Relag+nWT7FcvGeDGtsLSrTai9s5TDmEEBcPluCnc6dyqEjrQp/a+kLaeLxPVo 8AlgZmlpkg+HCJ7Z/pWGWQpVVkwvcFXsny1p+6aGg64rrk/8rYOLUfhP/RSC6kKYFCPaK2e5Z/qqp XjuYAoS1gC5kmoBgCBXbi7s47ONtlLkq3692sINbCqiA+Ny/4nz0NUlXqeQ1dVsaOxDz//m7mu4L1 RpnPKitdkys1no1wO3/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExcI-00000007V3d-0Zj9; Wed, 05 Jun 2024 20:52:18 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExcF-00000007V2s-3W7W; Wed, 05 Jun 2024 20:52:17 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-52b992fd796so294047e87.0; Wed, 05 Jun 2024 13:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717620732; x=1718225532; 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=tRZR2FIRT4kLU11sqM7VA2ozbtsr+hE+nmcdAqWhupg=; b=NXJa5iWOZNPvIXfXyxnj/XZ+YSaOPiVsNBtril0jfBiug52Sg4G/+ff3yNuPHyae2p nhagQsFH7y5VuoJuwBTu/fCgY05Q8d8k3pRGwovhryU/EyIsrlKfAoQrH010bV4PmU29 22/FUyDQCENMfoRoMRGXbp8lXTDrQuHMKgC6xVCuKi2XbVh0nEP3GJ1BGplA0GR5cN4A FmguxNMxAAyxlPQBtuukY4BopxipMo9UVHQoOExGHOI1ZHZErgPXiOZszvpZA0GNQDI4 bOC+sYU9izHjtXc1F7gApO2qsbT0nKlKRZxSzv5QhMesRCUYYHo+atTpNkAKTn7EQyO+ 2AAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717620732; x=1718225532; 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=tRZR2FIRT4kLU11sqM7VA2ozbtsr+hE+nmcdAqWhupg=; b=xEZxvVDYVPt90wSRBLPvDEBE2yn2CL3fE/hisFqbuX/3/doYrW1bsyCj6Xi/9tKo/D U6lKhBWPwhDmGA37JYpqnDxy+SSRPA0HjJGASXg2eW2G4vRqF2mdCfiKELuhMgbuzPWw 9oallBw7qXCwP4bEbNGUYbNg0cQl8OO8OtWc+1YnFzKNnlN5ZWekXcPRaRWDJz0hTB6p BnPpSfjY9gl1v3JaXMilJvS5ygZQtzOX7BmRAUHhXzfflRJpqsv2PDQOHUSj1IHNtAGQ IhRPQH5QGOQrNkCvtqPyw2iWYyc1sqvz08SUrZHNjAVhksnG5y2uRVHB1P624HtvXxDD v0+Q== X-Forwarded-Encrypted: i=1; AJvYcCX+8JpupyaB1qzQ2kF+LfkRivZ+57K0VBYO+WD0gobDfwoxweJ+mLsOJB+3TXxLnj89jYQme4vk2Rw2f0s/YpF9s2tz+lk6Wt03CASGYd+xIzdDiCR6TC+/bN64zqEqlIIBVga2jqfL52lP9crkbApaWihkXSoTbAk= X-Gm-Message-State: AOJu0YwCM3OBn0CgXdqWeOSRtQL8v66CxXQqzZovpjJxtWnSq0yHfIhr PN1WTfSAs/4T2wzTvC5hEI+dAP79s7c2/s2FNgPEEtnKCgmJdvg= X-Google-Smtp-Source: AGHT+IGj0rVw+PbaW//1K6g6mF5yaX4g2jKv2yrK3ycmj8fN1glaSqwLjxl18e4/YdglcXhTAkU7pw== X-Received: by 2002:a05:6512:3b97:b0:52b:8847:ad0f with SMTP id 2adb3069b0e04-52bab4cb7afmr2982121e87.11.1717620732322; Wed, 05 Jun 2024 13:52:12 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:5211:58fe:dfef:c48c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6c71bb5affsm72265866b.147.2024.06.05.13.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:52:12 -0700 (PDT) From: Alex Bee To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee Subject: [PATCH 1/5] clk: rockchip: rk3128: Drop CLK_NR_CLKS usage Date: Wed, 5 Jun 2024 22:51:59 +0200 Message-ID: <20240605205209.232005-1-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240605_135215_897520_08466EF8 X-CRM114-Status: GOOD ( 12.16 ) 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 Similar to commit 2dc66a5ab2c6 ("clk: rockchip: rk3588: fix CLK_NR_CLKS usage") this drops CLK_NR_CLKS usage from the clock driver and instead uses the rockchip_clk_find_max_clk_id helper which was introduced for that purpose. Signed-off-by: Alex Bee --- drivers/clk/rockchip/clk-rk3128.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3128.c b/drivers/clk/rockchip/clk-rk3128.c index d076b7971f33..40e0e4556d59 100644 --- a/drivers/clk/rockchip/clk-rk3128.c +++ b/drivers/clk/rockchip/clk-rk3128.c @@ -569,18 +569,22 @@ static const char *const rk3128_critical_clocks[] __initconst = { "sclk_timer5", }; -static struct rockchip_clk_provider *__init rk3128_common_clk_init(struct device_node *np) +static struct rockchip_clk_provider *__init rk3128_common_clk_init(struct device_node *np, + unsigned long soc_nr_clks) { struct rockchip_clk_provider *ctx; + unsigned long common_nr_clks; void __iomem *reg_base; + common_nr_clks = rockchip_clk_find_max_clk_id(common_clk_branches, + ARRAY_SIZE(common_clk_branches)) + 1; reg_base = of_iomap(np, 0); if (!reg_base) { pr_err("%s: could not map cru region\n", __func__); return ERR_PTR(-ENOMEM); } - ctx = rockchip_clk_init(np, reg_base, CLK_NR_CLKS); + ctx = rockchip_clk_init(np, reg_base, max(common_nr_clks, soc_nr_clks)); if (IS_ERR(ctx)) { pr_err("%s: rockchip clk init failed\n", __func__); iounmap(reg_base); @@ -609,8 +613,12 @@ static struct rockchip_clk_provider *__init rk3128_common_clk_init(struct device static void __init rk3126_clk_init(struct device_node *np) { struct rockchip_clk_provider *ctx; + unsigned long soc_nr_clks; - ctx = rk3128_common_clk_init(np); + soc_nr_clks = rockchip_clk_find_max_clk_id(rk3126_clk_branches, + ARRAY_SIZE(rk3126_clk_branches)) + 1; + + ctx = rk3128_common_clk_init(np, soc_nr_clks); if (IS_ERR(ctx)) return; @@ -627,8 +635,12 @@ CLK_OF_DECLARE(rk3126_cru, "rockchip,rk3126-cru", rk3126_clk_init); static void __init rk3128_clk_init(struct device_node *np) { struct rockchip_clk_provider *ctx; + unsigned long soc_nr_clks; + + soc_nr_clks = rockchip_clk_find_max_clk_id(rk3128_clk_branches, + ARRAY_SIZE(rk3128_clk_branches)) + 1; - ctx = rk3128_common_clk_init(np); + ctx = rk3128_common_clk_init(np, soc_nr_clks); if (IS_ERR(ctx)) return; From patchwork Wed Jun 5 20:52:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687471 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 A0D00C27C55 for ; Wed, 5 Jun 2024 20:52:34 +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=BZ7keh0Yw6mDjOQgRnkrUQ6DyM1cH8Qhfuy4RbW6mck=; b=SYYA9ggNU/jyjq ODJmRUh1I7r/JX6ZjPE64YdndzUiB1+a4+k5HHM4wKhYGVV+GYW9QNWYBwt1rprXR9QGreFXsI2G/ XfVToIbN0yBkXNGMijt0Ss2OMqL0JM7zQHOiHsY4HqFAUZk1EGKvReosrVsKP7I5jscUu9hCSXzVh rQptAlhxj1O9qILWq8GQ8Yss7RjcvrZEdPlqNEpy46u20MqLLswhG25AvgcYA8uxhOkhPWxOPYT4w irNCapytT6sDy7thO9jMh75KhgCT3GrCEq1R8k/T8ly5txS/t312GQb1cXfBRE4bpnkB934ltX8rz bmZQcRl7SJ2AP5UbVa8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExcM-00000007V6r-3dWv; Wed, 05 Jun 2024 20:52:22 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExcJ-00000007V2u-36dV; Wed, 05 Jun 2024 20:52:21 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-52b98fb5c32so408531e87.1; Wed, 05 Jun 2024 13:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717620733; x=1718225533; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ntabvct72qGvPmbO5oeReuAlzSAK04HTOHOuuEcj1Pc=; b=CiJbaV7t+NZ2m8vGH0WqslebqfqwV2q/DixOJH2N4l2iArdJLL51RTEJ7vaBQZptRA z0Q60XFt346UZ6pcgGCyWT7fPmSK5yQfKAf9m6MA+BfToH5vQzcOWFKlTbiIBceFRqmx 9BkCDA/Gy7Cm5m3uLk1YrMaXVg8DMo0wzQEEaSwyOguvxLNiVNuydXYbAf42l0HWUXtj a0rRwKlhgxHvtbMSvcQYZnVJwt08ftWK29o0K1LWlLiVpvpvGuDRPJhc8TpoAVM2t3kZ MZWFpubCT4VBi+Jp/kyYazwhVVw3Mtt3rp6jvjm4SZ/WT3svaplQH2FJ1BRiYm0jL1yv WdFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717620733; x=1718225533; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ntabvct72qGvPmbO5oeReuAlzSAK04HTOHOuuEcj1Pc=; b=DVOFyKPE9N61gxfRgP2E9i0lm2xk2zbbVXTFjrDhpTUYaN4FCqT/TxP8cl2EPl5wLW NcbEiFr2h4NEJBSpjmR3jv9fkthMaPeFAEKQIYu+3E+9TdfgLW0VG0fVXCH8az7pgFY2 gMFu6SpE5iTwGBi2l2IKh3At6GUN97XEFeBaJz3gQO6Lkeq3QW+5qJnsXBCGOZC8XgNe 0BVIVhPhPJmwCJmFy8ZmlYtKwRP06vTksJSTIvlnrp3dNnTZSMc0Ao5iw0S1hsPRWStf KHdj9YusD4aXL7y+PgyVFeaOVAW0zXchC3pa2+kb1LOAMNHNIfVV95LTgfD/yj46/H3L VVEw== X-Forwarded-Encrypted: i=1; AJvYcCUH0cy1r9nNkX4SZSpX9VgD+XHZuTDqcZ4aJ27Em5SyHGXWQbncU42mOCZbeqE3jMysVY58STlgL0AQpV4abgdgAYGfKYVoJ9XmybWYM+X/2xLNaYCcPdxpTpCaoCtVieB5eXb3sxb/5jFv4piU4bGKWBpDgBc1Bks= X-Gm-Message-State: AOJu0Yw7ippiZBU0wnSD1+LVR7B1+4Nu3ZDfSR77hjsMHoSIBe1e9dxo WKFqgvIYmbtobdyKjQ6RkIxe62PXquVP8lCv1wmJUfkRgPs6Ccc= X-Google-Smtp-Source: AGHT+IFLsFZKV2UCEFoLeUQP6sDHDvqEj6Gdi7GN5knUg+e3+onFNbKTpZbrCaUvyEmzLhZLX0d6oQ== X-Received: by 2002:ac2:5592:0:b0:52b:fb4:1283 with SMTP id 2adb3069b0e04-52bab4d8022mr2642243e87.15.1717620732936; Wed, 05 Jun 2024 13:52:12 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:5211:58fe:dfef:c48c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6c71bb5affsm72265866b.147.2024.06.05.13.52.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:52:12 -0700 (PDT) From: Alex Bee To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee Subject: [PATCH 2/5] dt-bindings: clock: rk3128: Drop CLK_NR_CLKS Date: Wed, 5 Jun 2024 22:52:00 +0200 Message-ID: <20240605205209.232005-2-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605205209.232005-1-knaerzche@gmail.com> References: <20240605205209.232005-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240605_135219_857632_8B087DBB X-CRM114-Status: GOOD ( 11.08 ) 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 CLK_NR_CLKS should not be part of the binding. Let's drop it, since the kernel code no longer uses it either. Signed-off-by: Alex Bee Acked-by: Krzysztof Kozlowski --- include/dt-bindings/clock/rk3128-cru.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/dt-bindings/clock/rk3128-cru.h b/include/dt-bindings/clock/rk3128-cru.h index 1be455ba4985..420984fc2285 100644 --- a/include/dt-bindings/clock/rk3128-cru.h +++ b/include/dt-bindings/clock/rk3128-cru.h @@ -145,7 +145,6 @@ #define HCLK_CRYPTO 476 #define HCLK_PERI 478 -#define CLK_NR_CLKS (HCLK_PERI + 1) /* soft-reset indices */ #define SRST_CORE0_PO 0 From patchwork Wed Jun 5 20:52:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687472 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 5A7E2C27C52 for ; Wed, 5 Jun 2024 20:52: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: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=G99pnvgejivQn68Bbs6p21ROwx1JVBqNwLK/Qy5WcPc=; b=lNUV1Qs4JQp7uu nRHlqs13XX7I9aoTiEA+F0z5gfTCsRsHkq+gf70zxw705BQBpaWJOYvOxzrziQ7fJbASPgnxdRCqh FiNnk8DFuMkn8cex2gl3P6C/isq3CYaRISej/j4AogrEh9byiwaNjjzxZvTt6E6V/deuOtBh91HsB s5a71nwdE9h1Qj0ss3nmwTv+GW0A/k3p4GfDTDVxGJ/GAHR3dfNrQRqD/wLbaMz+83sUFjeIVLT84 ib9xkDn+bfmFOIyhYos0yap78o7/DuoRE0ycXmQxJ9sDVx4MO6fRdAO95/p9QA3cVjZJFeOm/m0jP ZvQEu2aTDDc4oTFJb9Vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExcR-00000007VAg-3vdO; Wed, 05 Jun 2024 20:52:27 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExcK-00000007V30-05s5; Wed, 05 Jun 2024 20:52:21 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-42135a45e2aso2929125e9.3; Wed, 05 Jun 2024 13:52:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717620734; x=1718225534; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Bv2MjK1b3RmQFqpYtvaVw+b1geYBojSDIiV6z6FsDD4=; b=CyEA9TydZRr4UYoF/ZqP7PkFAKJoHuA5U7STeHi3hFCpScrq/eOK1Krdd837Zy7ZVP 4ae8e03aaUIyCfvq7Bu222SZFXfi2otvUp++kTCyjaaBUP38q759AenQtSvpibdxkvhx E324ZBXA3rAkWHGVac/a16uNcO2+zVAatTFWAmODiQWTwssCpabvCOUpRIeer1CIdQ4f UrYocM+HNMDgU7f8IggSWPTIKyUtzEZLp8gI3IrdF93wfhTvoihlR+FrpFBLD/zWpLfS ybfP/OhB3njh9VQqSd6R0cry4snWsVycmGShFa12NDd6o67GcjUAJub6W9ATpN9BM213 q74w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717620734; x=1718225534; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Bv2MjK1b3RmQFqpYtvaVw+b1geYBojSDIiV6z6FsDD4=; b=t2aYwbEou//fvRYEAAI2CB2YJrJh8witWxeMC5j7ws/jUBrvYOJ8FwdxTy+6Jjntuo LYiUpdDGMAlC5trjYJZBWrOrHj9BpwrhWkzJz6J4ooqmz3GblEmWbo8m2W83ukHxc9Mz vjq4sW1mAWm7Zrblx4hF/1ITKa7aNIZqHVP0k0FGMeRnqYSx8HMlBNDpoK5LunZrT9fW cd610lyw8Pq2KmpT7K7WrFEiAh0vQSl/5PgjHDuNlXNCzo451pVFW09UFAlDzbAxg9tZ ZJAvsU0mvP1Dvr7mnzsrsivN+qFkkVMqaxvWDy0nCBwk1MkYhuavGl+E2fjt/IgVoti8 Gf9w== X-Forwarded-Encrypted: i=1; AJvYcCUDws21fpg43WilEBL7xqfpk/8Ox/uXyK5OhHMMptlWR1T7ScKlUsHiQNiXqm1PpNpp6AKejvO6NA9MjnBge/WWvepHWA1hFzcXH4IYIz8bf9Ownc1iKljcO3ZMsQIUdfOjQC6iGmO3MBOmdxunUOwwSRwCXuzrnjE= X-Gm-Message-State: AOJu0YzJ8W3es4r/EfEjjmmJeMwyeHUcZGfrbnyP3h1XUOOxiDeBBvGB HXu1TjTQSOr98Sy+5vg8MwbVkf2HCEFwYwHGiv/a1MC6z1biZEKo6EB4 X-Google-Smtp-Source: AGHT+IEdu7DZ/9OzmqugpPTGdnR+0jSWZhYN2028kVpeF4tyO0nXwrIm165+21c8BBaDKxmAhsDWEA== X-Received: by 2002:a05:6000:1048:b0:35e:5b9a:2ce8 with SMTP id ffacd0b85a97d-35e8ef7ea0cmr2749551f8f.51.1717620733690; Wed, 05 Jun 2024 13:52:13 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:5211:58fe:dfef:c48c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6c71bb5affsm72265866b.147.2024.06.05.13.52.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:52:13 -0700 (PDT) From: Alex Bee To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee Subject: [PATCH 3/5] dt-bindings: clock: rk3128: Add HCLK_SFC Date: Wed, 5 Jun 2024 22:52:01 +0200 Message-ID: <20240605205209.232005-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605205209.232005-1-knaerzche@gmail.com> References: <20240605205209.232005-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240605_135220_164411_B14CCBF4 X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. 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 a clock id for SFC's AHB clock. Signed-off-by: Alex Bee Acked-by: Krzysztof Kozlowski --- include/dt-bindings/clock/rk3128-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/rk3128-cru.h b/include/dt-bindings/clock/rk3128-cru.h index 420984fc2285..d731c3ffbe1e 100644 --- a/include/dt-bindings/clock/rk3128-cru.h +++ b/include/dt-bindings/clock/rk3128-cru.h @@ -144,6 +144,7 @@ #define HCLK_TSP 475 #define HCLK_CRYPTO 476 #define HCLK_PERI 478 +#define HCLK_SFC 479 /* soft-reset indices */ From patchwork Wed Jun 5 20:52:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687473 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 3D733C25B76 for ; Wed, 5 Jun 2024 20:52:46 +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=NY4tu7gBjbMOdfrkNaqB9MeDR6zF+6ciX4JvmacPhOU=; b=fn5GCrj0P6e5pW i59aJzfOkmQA8SKDlVozw8dy1nt8iYmiA0A90ZI8UGKpbMS4zvieIioYafUomaH5eAl79dakZnsKB /JKEJQpr96naYs4hl5dVQMCVl/s+rXWLYV0l8YsFvADA1AfV/9pOJkR5L82AXRfb4m75tGyjjKjZA Byb3hQEJI7fFluCLzWCKnzwGiDocr52ZKiW0JKdWMUlPpPdGGT7x/VEN7kt7UXyQHWKA7EBfW6p7m 2BxA9BodY2SOIUZ3OVpeO6wrh9UKnuQERz/bZGCdHUnUcCVBTpe2RSUWCBwi9Z307yjEfntZI7kuv LH6xakb8R8K0B5IN7iYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExcY-00000007VF2-06Y6; Wed, 05 Jun 2024 20:52:34 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExcK-00000007V3x-0UpA; Wed, 05 Jun 2024 20:52:22 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a68a4a9946cso29117666b.1; Wed, 05 Jun 2024 13:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717620738; x=1718225538; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fk9rPd7/DZbkWMr4RLdz9e3yLOVFGIh3KC1NJKidnyE=; b=gb3zpN6Nxpz/jmCKpZPTOAabrVuj+1mUb7x30tMRiOOhXXhQ9qx+yX4Ie4yZ3hmdCm AGKlRvInYQohsKeLSPoYzjSmF/fnUQ2bS8GegFTEQtXTyyy/RF6mMCL1xr6FKga8UMnV iQdiy1fuQ5GS0t++Cwpqob8s/+NNQ8GyyEhX3cxJAMxsrWMJzNqkwoI+phg1vQan0429 qCuPDMo4ReH5hVPmhxFjLTwLIRarBawmp8Ss0wpyb3U4gGXw7/hKn+uBsk90vJ5oEak0 GSw/ZT6bQidG+ipPC6ScrrtOZlaWjaZycuMZGribxE+fs6VSMM8KJwxbqLaja9wgkSHZ Bo7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717620738; x=1718225538; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fk9rPd7/DZbkWMr4RLdz9e3yLOVFGIh3KC1NJKidnyE=; b=eOUGPcQVntxbwtEbsFEqSWwXg6cpPQlbrnjOVn5z3y00XAvjkW+3sBlLsyi3IvNU9g a6UUcuFDzbgWeTi/N9d2C7jYPHBh2A8rxH1YTq3Vorz5memojg1Faukw7XWPtOWfvj2g crBv+JEZWHAVffpxoPK4RjDqZJSl5h4bmhKu5YWPKtkAqGAFOsT6rXVWQ9jWmNarucHb /TIkLXp0vudxy64ACs2/WAxtikKYAYYovBSGOrLS2qksG9G0T6IKu9gGCcI/Db4QqbS8 ZtRd9qbK8UFlPzGJOjVdSB2XmwKo2b3iJHfZIsZBKDXy27wiPi1Q8P/l7+8D+3LDJdn2 0QwA== X-Forwarded-Encrypted: i=1; AJvYcCVHJn+IKKq2OkTKfWqyITCecj/i2RVnofse8RQLJKLcff+9+/Fk489gpNOtincl6YJ0rJXdyWJfrxnvFBNxISZz6R9JbeQBqXUx3vrYxWOVHbwQmVKb82meoW+aTYTyP1YzXfkmM+kcYGQsWk1K7bn60axClt/XrjU= X-Gm-Message-State: AOJu0YyveWrjVF4fbI/20ufiDpnYJyTk5xB9PPlPa0mLaQackAH/iUyR ITkDyY4dLRs4/INmEjjR6sbB7gC4DmDqimLfMDWscuo6zOXIBxM= X-Google-Smtp-Source: AGHT+IFxk01mOm2Vvy86LGflkR3CoOnXMk786Ch4vDnYvFK7m+z+sREVwOABFmNJem1shA1DICE29g== X-Received: by 2002:a17:906:c10:b0:a58:a0b8:2a64 with SMTP id a640c23a62f3a-a699fab8c78mr229435066b.5.1717620738250; Wed, 05 Jun 2024 13:52:18 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:5211:58fe:dfef:c48c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6c71bb5affsm72265866b.147.2024.06.05.13.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:52:18 -0700 (PDT) From: Alex Bee To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee Subject: [PATCH v2 4/5] clk: rockchip: Add HCLK_SFC for RK3128 Date: Wed, 5 Jun 2024 22:52:08 +0200 Message-ID: <20240605205209.232005-10-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605205209.232005-1-knaerzche@gmail.com> References: <20240605205209.232005-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240605_135220_264196_14E6D290 X-CRM114-Status: GOOD ( 10.34 ) 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 The SFC IP exists only in RK3128 version of the SoC, thus the clock gets added to rk3128_clk_branches. Signed-off-by: Alex Bee --- changes since v1: - none drivers/clk/rockchip/clk-rk3128.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-rk3128.c b/drivers/clk/rockchip/clk-rk3128.c index 40e0e4556d59..7c3d92af12df 100644 --- a/drivers/clk/rockchip/clk-rk3128.c +++ b/drivers/clk/rockchip/clk-rk3128.c @@ -553,6 +553,7 @@ static struct rockchip_clk_branch rk3128_clk_branches[] __initdata = { RK2928_CLKSEL_CON(11), 14, 2, MFLAGS, 8, 5, DFLAGS, RK2928_CLKGATE_CON(3), 15, GFLAGS), + GATE(HCLK_SFC, "hclk_sfc", "hclk_peri", 0, RK2928_CLKGATE_CON(7), 1, GFLAGS), GATE(HCLK_GPS, "hclk_gps", "aclk_peri", 0, RK2928_CLKGATE_CON(3), 14, GFLAGS), GATE(PCLK_HDMI, "pclk_hdmi", "pclk_cpu", 0, RK2928_CLKGATE_CON(3), 8, GFLAGS), }; From patchwork Wed Jun 5 20:52:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687476 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 057C2C25B76 for ; Wed, 5 Jun 2024 20:53:11 +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=ueraLag8Xkz1PR3unl1nOWU0NGRdLyhf38PZShKjOOo=; b=PwJ0K/pjxNaAj3 REY5yLgxWtxmSqMBm0NluWVsEkHVRpsjO492NRJqlxDNVuS5D2pENsRizxgfOy4gi4LdxWTpqtT93 R+QgV2oIciL9hUPyDw0fi3+RIz8BuyH/NHby4YHHMb6PugVON/S/b+PmIMH8dzYCdpFP9uXrIzIU2 LWo1ONmXsEd3w4+66A0ceYeqAilr6tqzqKobLFPmeSv7r3ZZUrWCGAkYE5ImNL2xoSd19VBp64dWw bA8g/jUPBEBMSbhrRvxxlSp+gGuIKyshmNcvcRTiOYVczIXzoNjbJdRopZi21K3WF1kMd4vPg3tPB t6yTJ1SmhCuCJuO1dZ+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExcx-00000007Va8-1037; Wed, 05 Jun 2024 20:52:59 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExcL-00000007V44-3wqx; Wed, 05 Jun 2024 20:52:23 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-354dfe54738so195169f8f.3; Wed, 05 Jun 2024 13:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717620739; x=1718225539; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jhHtvxGUyohTCTNa+GzFt+gMuFh5QKejQOFzumSpgUQ=; b=MGhnK8/eRGJBsQFnMBlQkTBhzn08+WtqwF/Z1nWHUQxkt9QhDgAJGH2QaKQDPUehAs PXagDU1bpcf+h4OMKGBzzbhQR0YL+xtQNK4E7NWH7AgV/N4P3Ef8dl5cyxY7RcNlZJCs QhQxJ9W8qkcVcsvYRFeuza9xJlHJfhasuyA/PTSxk57YbM4ZjVYw8eE3ulP3yj/BvyEd Ja1p+rfhSBAH8NAzHwdIqtL525j6Hp6xHNdQuZichhq/HuAS+1FNyH1lOw+IRfhUfr6y 7kcfvKHGkdI1wH/O+hr5fWxmU7ocL78MgQwRdyFyd5YxRBgJ9VZNTUxd0ePh6nyl23tr E5YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717620739; x=1718225539; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jhHtvxGUyohTCTNa+GzFt+gMuFh5QKejQOFzumSpgUQ=; b=fNZ51McqY+Qt+c7Z1zKxDnc6LEKfsv4AZhPBWfQ6VWmzZPQdlJw1otuDgXM1MddNJn L4OrgdJxAfSYN6fo4VEwWcyk4d7qkEMUHHElXGPl1kuTJzm2t6IqSWX9j/Gezb1nuRPx 5M9zef/Jf6VUGyMSSJrcW8YKZsCmCWennXQEkEN3fdJ2VTCK7KH327pM0UvYFhLUsC+c u99oWRXUdzN4sMOah/d4PXWxpboNWuUIOHEizk3oZMWqye2wlPVUlM8ZOKw84IXAMRxd 58I1MS+ErZSo3nse8ecmZkBDBHRSj3263GAGCMOPLlvKLZ0QmYGRWzFCHLFE+gB4DW3T sMSQ== X-Forwarded-Encrypted: i=1; AJvYcCVfDJtbcufMySI63/ybCFgEJapCUsFYjE4+7FLiL6vH71QDWqO4pLn4cdnclk6Z3TXKre46tMakALHR5pAEi3/abuy9MeGBLMTe3js0OMIEJedt7ar5gzyHtJ6vWrt2mgfa7c9uR1bQcYChJB69ccfOSZz6PmCZkQQ= X-Gm-Message-State: AOJu0Ywyd81gO8gG+yTA64WHW9ISrf3s6E5ZKhknUYzI/BmGWsAsvUs9 APvOAjvuUvjZN+jQRieyrGJ0VIWKG5gqpzkPYF16reisTK8mqYk= X-Google-Smtp-Source: AGHT+IFCUf/nSWcFwovwvBwGIMkEfxcyaPdZQUK7IjGCB4qaZIM7Vbj8k1JhhipZFwk6qW+PghjHTw== X-Received: by 2002:a5d:5886:0:b0:357:bd78:4954 with SMTP id ffacd0b85a97d-35e8833a4ebmr3356057f8f.30.1717620738877; Wed, 05 Jun 2024 13:52:18 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:5211:58fe:dfef:c48c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6c71bb5affsm72265866b.147.2024.06.05.13.52.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:52:18 -0700 (PDT) From: Alex Bee To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alex Bee Subject: [PATCH v2 5/5] ARM: dts: rockchip: Add SFC for RK3128 Date: Wed, 5 Jun 2024 22:52:09 +0200 Message-ID: <20240605205209.232005-11-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605205209.232005-1-knaerzche@gmail.com> References: <20240605205209.232005-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240605_135222_062730_DA586B75 X-CRM114-Status: GOOD ( 10.18 ) 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 Serial Flash Controller and it's pincontrols. Signed-off-by: Alex Bee --- changes since v1: - none arch/arm/boot/dts/rockchip/rk3128.dtsi | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index a7ab0904564f..22e2a35dedb1 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -399,6 +399,15 @@ usb_host_ohci: usb@101e0000 { status = "disabled"; }; + sfc: spi@1020c000 { + compatible = "rockchip,sfc"; + reg = <0x1020c000 0x8000>; + interrupts = ; + clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>; + clock-names = "clk_sfc", "hclk_sfc"; + status = "disabled"; + }; + sdmmc: mmc@10214000 { compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0x10214000 0x4000>; @@ -1155,6 +1164,32 @@ sdmmc_bus4: sdmmc-bus4 { }; }; + sfc { + sfc_bus2: sfc-bus2 { + rockchip,pins = <1 RK_PD0 3 &pcfg_pull_default>, + <1 RK_PD1 3 &pcfg_pull_default>; + }; + + sfc_bus4: sfc-bus4 { + rockchip,pins = <1 RK_PD0 3 &pcfg_pull_default>, + <1 RK_PD1 3 &pcfg_pull_default>, + <1 RK_PD2 3 &pcfg_pull_default>, + <1 RK_PD3 3 &pcfg_pull_default>; + }; + + sfc_clk: sfc-clk { + rockchip,pins = <2 RK_PA4 3 &pcfg_pull_none>; + }; + + sfc_cs0: sfc-cs0 { + rockchip,pins = <2 RK_PA2 3 &pcfg_pull_default>; + }; + + sfc_cs1: sfc-cs1 { + rockchip,pins = <2 RK_PA3 3 &pcfg_pull_default>; + }; + }; + spdif { spdif_tx: spdif-tx { rockchip,pins = <3 RK_PD3 1 &pcfg_pull_none>;