From patchwork Wed Jun 5 21:00:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687507 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 29679C27C55 for ; Wed, 5 Jun 2024 21:01:12 +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=lRxuxJ1egVndTv1QpIP4SdrIC6DE8KtfnYOcQJRC424=; b=Cl+FxKDuBf/ncP sV5T060PTfVqsBNNyP8hfnmz7sOOlM0i35r850VwoBF0GQivWtJ1lbiRZHHC/U2yuOE56ghx/8jJR rV0VzWtYfgaXQYWAkdGW1FJ0nhCmUpaGrQuBaBV4jOnWnS0VepTkfE++BdutcnGD3RrBhR15/alv3 yQt47VP2h2U0sAaqbo10SCYo3ZJUJY4T2O3OQ7WxrqPoHyYTTpG8EtnEM5Mr4gmVshZY/4GaoIdSY DLc1BDZpat7WLpkFcwFZy7bI3sE8/PqQPUDzlEtMCKR9HNco21QoquT9lEl/HX24f1kck9h894k8E tSVIw/xWFn6lCmY6VbKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExkf-00000007XPM-3dSc; Wed, 05 Jun 2024 21:00:57 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExkb-00000007XMj-3wJ4; Wed, 05 Jun 2024 21:00:55 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-354f3f6c3b1so201397f8f.2; Wed, 05 Jun 2024 14:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717621251; x=1718226051; 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=SwbtZSg+KieEl718DTPhm+GILj3m52AXbprU8PF/yug=; b=RFXLp4zBG7Er/RjE9vNl/1y/eYG/ntx//Gn9iGN0JXjE1wBdHs2FH0bOtUgO7/LahT on36ZABCluxBKdROlx5NVhIlA9UkKT2+jCu2MZ9KVgfW/dpvxVeuQG7JFT3HjLV8tMso QohLDx+fjBKmXTO+fJbzFHCWIdO9zN3b4ZAdGMB1FiSEXzIzLH6o2g8P7c/XTiHLgOU+ hTWKd2LQHJzEZUnsKdSCR7CT80z6G0Rn2DkY0GxnoEAE7ARiWIcVU1x9FLpKfu2H8EkY VRb6yIcaz9MMaNzU2f/Zd6TD/1vTZXoHYpKuXhymJwOFQTD4m4PCFpauKFe3S0qGwsPY lLOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717621251; x=1718226051; 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=SwbtZSg+KieEl718DTPhm+GILj3m52AXbprU8PF/yug=; b=I6+g9klCSFkSaMcY7TFaHZXMRszoX/KLZJ7hNyQdCH0Rbk3IdRoh9AxkYlVjCc7lYR QxYl1RoPwpSGqt083WYrROIPS2SEwq6be0ZSlXXsZkAh05luIr10a/3rSnvpH42r89mu lH1ICmxgULLga4a2m7WpkYTxmSZPtuoq8aKsUHGscXMRsEBZdyztAIRUyhTXagC3Y4b4 +BPekTfLiBLZWDjNvlUGQTnvhjpVGnqFOgWKIKB0+/7G7J5rcLV4fuVt3ghNYeZ9p31S iAOSLovSEjJEOcjKBg1zcj6ItHCkPAGfR80IaeWQYaPg1jzzjzDaksK8yUIRD32fnGKf AJNQ== X-Forwarded-Encrypted: i=1; AJvYcCX0MPxMBXlO91mNc5pJrbHMopMHmVv5lHM2w+g5VIuHSQ709+q38EUY4f+IUwLRGvRHk+LVwjQzX5xZP60brBXAQd2y5r3cBNbnVTjQ69yms/AeM7olD6I11zfEd+if7KI8w1IZ87xMpfisgbXmWDfKSUnd/byick0= X-Gm-Message-State: AOJu0YyKLCZirducOXbMe7SkOA6SqfFG7QT4jOA7eKXOGcv5JV+bekzN U42JXoeRyrwokb36Snx5yHdX+ZG5XS0xC83nbKyv5EpkxKI9940= X-Google-Smtp-Source: AGHT+IE/9gjfgWZnYQXOAj5tp9SUA5Lk6QARVK16iFxrgqIbxjEEWBQNATeesl0pbTjRSU1L32AXIA== X-Received: by 2002:adf:fe0d:0:b0:35e:60e6:c8a8 with SMTP id ffacd0b85a97d-35e8405dd0emr2592276f8f.10.1717621251632; Wed, 05 Jun 2024 14:00:51 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:5211:58fe:dfef:c48c]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04c0d77sm15955721f8f.5.2024.06.05.14.00.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 14:00:51 -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 1/5 RESEND] clk: rockchip: rk3128: Drop CLK_NR_CLKS usage Date: Wed, 5 Jun 2024 23:00:45 +0200 Message-ID: <20240605210049.232284-2-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605210049.232284-1-knaerzche@gmail.com> References: <20240605210049.232284-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_140053_984254_3185DE75 X-CRM114-Status: GOOD ( 12.01 ) 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 In order to get rid of CLK_NR_CLKS and be able to drop it from the bindings, use rockchip_clk_find_max_clk_id helper to find the highest clock id. Signed-off-by: Alex Bee --- changes since v1: - new patch 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 21:00:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687509 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 0AC77C25B76 for ; Wed, 5 Jun 2024 21:01:16 +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=VtqM6wUGjRVsQ+4noimTIgaKDqaj1/3zrUKCtqhptCA=; b=csCdThSFhJotri xMF6rhnYO3kkSD3FlN7dUkvQXuJ/oCELiZHfcwUfOHzOzyztqHDCy9ilNsxy7XmNLHhAaZov07EZD PFjt405ZNd4pCIRfbTKdFaouT1PJHRgB77x18rvLi6Sdx7ye2Xcln4Xy70O48ipSaqgjPyK2Hm8vO Iq/NUSWfC6o7weLmPF3ZXSYUYW1t9Z4gMQ9VrW1gBp7idoiU2QA+AqFnCrFmhW1TE30VbBHl4g2pw n1KfPXdAnLLXLzehzPZovxVBOYQW9u1Iz4aZgfxP1668jvOJpIFujE/k208bJUlA7MMniTtYiG8R3 5kfZQgPG5W6Rd1zIe6gw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExkm-00000007XSo-2tT3; Wed, 05 Jun 2024 21:01:04 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExkc-00000007XMq-1zNf; Wed, 05 Jun 2024 21:00:56 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-42108856c33so8215005e9.1; Wed, 05 Jun 2024 14:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717621252; x=1718226052; 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=XuZhauiIXe/dPit2+IYYIDdw8J65X44pe+rX+iqZzH0=; b=GooW8W7CQ+5DaCtLKiA6FUrVsCQE+v17HHVapGc2/egsEXKjQdKSzUA56Ehf2jQiNw hjRg7Q/V+ZRehlIDzGFpFWo3YtKeLWROSt+0SEp3EeMJ/xOQcqUyoyzLlaQEDqE4B/S8 E6CE03bn8XdLGyJ3B9rEqr56EDeuIHRVndMBFjBkFFvIyBy9VeGTxLFCw61PdWKoOezH Xig3gg5g95x7brOsmzTi/aZvoUOI2it8wp0dfRLqx8mbRKVngG2dCQWkr2L1mYDrOYpC KAZlwJBthIX/9ceMdgiQ0nwOytTmpJbfvWKHVkTnGC2Ji3LoMRKAwc4X/UlGduPfXjc3 f9qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717621252; x=1718226052; 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=XuZhauiIXe/dPit2+IYYIDdw8J65X44pe+rX+iqZzH0=; b=syoISTKjj1VolH/B7efDEbe2MTrspFN/TNk724r0xrbFrN1dx0m6VEburaNOIFObbv mBM2uPGv+RS5OUU6mWoXyNz5XpjoNyuUjZJf6lTSqJ2jzD9iMAnBmJ+27XF8sOp+TV/q wkBrNeQ+q/tc1CD/syiBCi+0IvMp4J06ncU3KwqwWzbGx/6RFHHfyy9dk2t8wmavhqun Ee/bEXAlqXxGt6VVXmrAMasLRAkmMWpdJMwW6Xl+qYJ70yuf0aBfrAlpASuD72MzyP8D KMT0OqLSpI4s0E1uWPlNjQBIk51xAOYHGWdQzOiqpFcTviYMAffmLdAwwmvoEvjQsJOz +vMQ== X-Forwarded-Encrypted: i=1; AJvYcCUqeVFafYhiYtk5b19iALbm7MZ6KC5O1RapZJMQf+NibFrnX2tuheEIVP8NFJqyIDgwZ/MY6YMBoXlrnDdipFi67yOfjEO26KbfdV4uuZynJ0lVGj9YtG5nzr2MVVeHN0ip4Y4iI16JOemxI5Sr9XotsK66nAZT0MU= X-Gm-Message-State: AOJu0YzfG4k+RP2t747vKxzRa0h7qSV4cHAkgFtKyiUqCzGdxBZ/apG6 vSKCNgJQSsaex38W8GwyjwZoglaEoEvuXZz1fY6pmtAa8Tn6TnI= X-Google-Smtp-Source: AGHT+IE07M3Ayc5UVGzWAK6FK9JW9Ttxd18yCpMX1vjpRHWw1Ldtf8cyezEw5LAY1mfB5VzssLahGA== X-Received: by 2002:a5d:6d8f:0:b0:34c:7ed4:55a with SMTP id ffacd0b85a97d-35ef0ddb092mr806043f8f.33.1717621252274; Wed, 05 Jun 2024 14:00:52 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:5211:58fe:dfef:c48c]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04c0d77sm15955721f8f.5.2024.06.05.14.00.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 14:00:52 -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 2/5 RESEND] dt-bindings: clock: rk3128: Drop CLK_NR_CLKS Date: Wed, 5 Jun 2024 23:00:46 +0200 Message-ID: <20240605210049.232284-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605210049.232284-1-knaerzche@gmail.com> References: <20240605210049.232284-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_140054_523859_CB44A1AE X-CRM114-Status: GOOD ( 10.69 ) 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: Conor Dooley --- changes since v1: - new patch 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 21:00:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687508 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 063AAC25B76 for ; Wed, 5 Jun 2024 21:01:13 +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=6qVuIr2pkUOvf4yyix6+nRw4p7wXAUfxMNUAw81d3/o=; b=fEf6r4jXVhIzJd 8g9mUcyWJsgu0rCo8O1EYBXJnaiy9Zq3OJrreGqxsvFGAVby40MrZrVn+ij8/EdjRtCdy5UsiIWvP 6P70ENSzQNU1gIxy8jK1PZe4PPSD9ahJrGRsMSThJHtogLY9OzJLvxcbi//GHPtXrH8LiWAMwOp6J FWd1bW+8hlocUYqeJJt2LNSkxUzoiT2Halw50IAURRXPJ9itmr87ulM6GW7c7+gdpej2wbsz94JJq fRAPUq2cm4TW/S4uQg83Bk3X607HR/NNlXcsmFQUr3AosConNwT99PyZCOGUiQINCYi3c7cmmxkt/ J3Ugca3jlA43xdVYbhEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExkh-00000007XPz-1WYd; Wed, 05 Jun 2024 21:00:59 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExkc-00000007XN5-0w4S; Wed, 05 Jun 2024 21:00:55 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-354b722fe81so237355f8f.3; Wed, 05 Jun 2024 14:00:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717621253; x=1718226053; 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=33SKSYjNACPXXw3O2oejlfq/sz5jEco/GHNmXgivYNQ=; b=d6GNSmYUWsVkAYVXOMZMIdI18Jvbf8T8HwPxjYKp55C1sb7iQnk9S2BYspmgv4Esc0 WUqKFi1hT/JDPSYet6856lmxnDUJGneTAuKZjH+1m8SJa/BkFzCWOsabsgsiGvrBNNqo Mfae0XmXHnhX9GnikBzcBgutwh844yjNd5Ebsw7CDFURItDUJ/2zK+99dYL9bUjMnEG6 gTmwXJ41nAissE3du9VSYiAa9dGdJ2aLhbfY7YOFNT+bQ1mi9mNCBxLXHmIY9PMqTypW eiQ+SV5OX/WQSx8268DkHFvX8WYJUG816CNwm8PNm7eKxKoA8j8m2k712l8sR2O9ASqW NqJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717621253; x=1718226053; 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=33SKSYjNACPXXw3O2oejlfq/sz5jEco/GHNmXgivYNQ=; b=hDAm6hZlaOhOnX6b2gURPOSFIx5yC1zXEDJO6cxEdLK2hETOnEkkzhRXY/zQq7VIjj DFbMiMSZgF4U0tF90KORoKtkrimpIUIUISSblmN7HNOCrt2bL7UBNe7XCJ9fYCpDPPAq nbXwVbutlwBjAtw1y1GvqjqugavhLmgzrT424CaQpWdpdrOOismZLnhxBWs6M/wGjlx2 pvQ1/8IIv6yuO0a1UWJF5v0n4/7OK/jeefZ36pHYbyq0h/vr4SeIYqiCnxKGixgf6Xbx U8KZLurm4sEf+2WrKBEUPQU1ctcnBSPggsnpkAd2vFQR42r4zSRmMYKO2TNIp7jNjuO+ QQ4Q== X-Forwarded-Encrypted: i=1; AJvYcCVMzTYEWaCc62walm5O27BDI4E7iLDl77ZyAZBO6cc/293nAXdPDs43hnwJ92yDrU44QoppycTFyUlHSAjA7WRw2xf4t/nQHOiELQa6KtJhTQJqAX7esEmh6kAJAIqtoEAFFT+CdzVey8E08N7lbKKRit7ettvTXxU= X-Gm-Message-State: AOJu0YzAX2X93OjT8JFd3lbrOLOlqYNliZXMnah8GIxmyCaPATtH7aXw AM4Zl75MZeQl2wFlErpk83n156Ln+oV1gY+twCvW5MTsQVPzzPU= X-Google-Smtp-Source: AGHT+IFcXVzdcNVRTv2q+gnXoLiA/j0pGT6qTKLZ1gOC2fRRWKBiSTRzKhmf2QhA3zWNLo70MM+brA== X-Received: by 2002:adf:ee50:0:b0:355:796:15ef with SMTP id ffacd0b85a97d-35e840583abmr2623083f8f.10.1717621252888; Wed, 05 Jun 2024 14:00:52 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:5211:58fe:dfef:c48c]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04c0d77sm15955721f8f.5.2024.06.05.14.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 14:00:52 -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 3/5 RESEND] dt-bindings: clock: rk3128: Add HCLK_SFC Date: Wed, 5 Jun 2024 23:00:47 +0200 Message-ID: <20240605210049.232284-4-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605210049.232284-1-knaerzche@gmail.com> References: <20240605210049.232284-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_140054_268202_BC5ACBA4 X-CRM114-Status: UNSURE ( 9.58 ) 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: Conor Dooley --- changes since v1: - add new clock id at the end 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 21:00:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687511 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 5DDDAC27C55 for ; Wed, 5 Jun 2024 21:01:20 +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=zOZPy8u4j4msuv QRqY3HtxMfCruI4NRpn0eDOhf6QDZhrwm5Y64xsyRhShCPPYtFgCtGm8dA3NIHqDfX6FLWCYU1o1f PXM8cWPS0Rqa3Z5CNr4mFBk2DDpp/9C+Ka8b0kZEOy9VNaiQ4M+PuwiSYxyG9/PQkceTobWr5Gfxp 40zX//mCAiFOR1QQeFZYycgcOreK1bXR90qG/LmP1GXqZ9D8wOQ+QtDvoUxrmXnZuh2/F0jGEU25r qIa3o6g+pMr9l9yrhLIM2NMEw1T6yZK7uLIryQQQqtda9qSJhBQ4oHHYvD4IsKEL8/qKllOhrxZZH 9TcVTyiqUN7SZBBlnhQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExko-00000007XUA-0NLc; Wed, 05 Jun 2024 21:01:06 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExkd-00000007XNa-0WGe; Wed, 05 Jun 2024 21:00:56 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-35dc36b107fso241334f8f.1; Wed, 05 Jun 2024 14:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717621254; x=1718226054; 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=bZYKfj6Y4RrQskdoVLfHBUiA5YpCG5dhaso4Rx37Mtl3VMXiNRGUgH0HLp+diuy5/k LU6caD8jNaMeOeSCo+aCew/Lglfjg8zrs61lzZ0DPp+K/Nmy08z0dXoXgroHhDZ51fTR 3fvyToWYrEQPd2ceGM0dxtbYXOpZUZQt6OzSfnOp4lwB6uCQHcmtDfZo39LPLbTGvk1J 8vIco61KpPGVOronMZZ3WihqBhnu3Z7Ahf14o0hR+5BMdIAvdfCbVTNM/agjEtI6qOus Fuxm7ZQ2a+AmQABhXTJDnQkW/m2IfFyeExeD+HTgUBGP4Z0ZO+uJt7EPi2mty0hlKi6L HD/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717621254; x=1718226054; 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=n/ZMFZkeRnzfvfmAxAxEmvrdvRCXdh2hK1Ms9lwyeO4sU6aZSMKBEl0rmXDoyPOwlb qeV95od9n+pg4cgvczbcKhKclW+YA2+WAs3T22JJWYkG9yCf6JBddMF/lSZKdNGp7+nk Nwf0YjUoru5n8me8UpUcSNywhE57MrussJ5CdX3ovPPgBizGja2rkGhezTC8IJsXVnMe nMV9adRYNSpDBDhuCmIHJOFY1vFW4h+Z2l5KOTPS/ff/1Y6llqnLPv41C9xg0Dd2EY/g GHfSM7MlGg5Y0Yzdu9TuW0+1OPKz9Cm+lbWMa1uB4L0MOq4o6T7eTk7dvt5PZV3mDTHf dntA== X-Forwarded-Encrypted: i=1; AJvYcCUbcLLGRJeJSNxZr+El88PgPIYdLFbuPM/pBWCL+0Dz6cScog4de+l7ZXxtGSEY/qV7PNAacFbv52Be/jpciT2FJKfeCwi71oCU+/qIdM/BK9H3CQDAmXX38b2y2N+NusiOGK3oiOH/yKY5Y0Q1ZBpfaxnewTDVxPo= X-Gm-Message-State: AOJu0YzIKgfNMcVKCTo6Rm/HpWPayO4wInSsaUxRHvATISMYiHIc+4TH mtLv8Evckibax2R052pSP/UlBXvSAtg5TYTaijS7En0gTRZ66gY= X-Google-Smtp-Source: AGHT+IEzFnF+ZiqUZD6IAFUBc9JkLG0/nVhzj+suO7W+KygvluwYQcTuVTP0MA1/SlsiCkafZG+2rQ== X-Received: by 2002:adf:e847:0:b0:35e:f3d0:e10b with SMTP id ffacd0b85a97d-35ef3d0e34emr92878f8f.23.1717621253590; Wed, 05 Jun 2024 14:00:53 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:5211:58fe:dfef:c48c]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04c0d77sm15955721f8f.5.2024.06.05.14.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 14:00:53 -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 RESEND] clk: rockchip: Add HCLK_SFC for RK3128 Date: Wed, 5 Jun 2024 23:00:48 +0200 Message-ID: <20240605210049.232284-5-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605210049.232284-1-knaerzche@gmail.com> References: <20240605210049.232284-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_140055_200732_AC412F4F X-CRM114-Status: UNSURE ( 9.87 ) 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 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 21:00:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687510 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 AE615C25B76 for ; Wed, 5 Jun 2024 21:01:19 +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=TokzMuja3+Sh/g LrTSzk/u8a4L/AVK+KllW8dYwcdVY4zN///SnhPAMTrTsznZY/D47WN4q85tYmqSCem7dB+8esWxV KTX0+F9oSfWIy3xk1qUSBMdk3X80kVnBxBRDOJm6QlViH6Sz4EGpx0iRJMWAisyqTYQh/eCjLKCwk 3kRdHwiE7Xc/sHC6vuo/amZN06JtaIJaRSOOeyQb5YZvocu/JY9qxun1u6whjMZ+cuMT+xz8XYjwT rVC2ReW3L+s1VduUD949K0IgAZrvpQm7Lf6SXzORF1W5vAKuXovzfN1ZgHmpbgRoCTX6Jf+C4zp3r RcwkU2VkfwVVPr/ZKlpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExkp-00000007XVR-2tAM; Wed, 05 Jun 2024 21:01:07 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sExke-00000007XNs-1LDU; Wed, 05 Jun 2024 21:00:57 +0000 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-35dce6102f4so193703f8f.3; Wed, 05 Jun 2024 14:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717621254; x=1718226054; 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=Q16s/4YVXxX4rKJzukObxHNC8uYq2q++LdfHBRoxJ2B+MtxpTf5kr4twTcATkHF/PR E9HWjRpRaWzrwrB1/TN6tv76DKrH5TbFUkb78XqFRV2Zv1C2FY4jGvWHfsW7+7XWB1Yx MXKYUYwIsCLtxpfr7afJZSRxHhDzERWKtgK7nQinWKbaIYhYPS5D9R5/Z9waregKbr+D vrRRhYWIJk1ZhZiTGZ7dQGRrgBM9HVMlj6Z5Wy5K/CKfoZdvdLcan8dmYxXzkbyBC/o8 5ciZ2ELW5Z0qBaXXNsc6SM4aeUIm58OnyPj+C0OAbrzU/gGPGPpPdL5+g3f278T6M4Vz OI9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717621254; x=1718226054; 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=SB77JKts4f0eCF5rK/zpIuVoojEONv7q4XCZ9Fd92yaspbq+wUn7FulgRSYfZ/xpws p1kb6+Imh2Ah9cDG5MMmFu/PIGr3Z1yUMkp+Mqwr6WDSWOVKWz6yiYQyvpGvfzVDR0IJ tRhBVEO6Xjeu0vqR9AwPr3kSiQ7ak01jnTk+tKF8JGtfyr2K8h80/Agj5CPkM+7CGuRr osRdP8KvMfvbI/66ok55wVJu6kURgzhaUmfbPCD1q69nqjcdzp24q940+zRlzGW77qGU QwYQAMAZojVl6zxiq9SV2NTpi37fh3qA29LIMUGDgYAtRFtxGJwSHIc2owltq0zCo5Nm lmsA== X-Forwarded-Encrypted: i=1; AJvYcCWOcA1Ic9PdJHyrRfnj3HUeXVupkbyiFvXaCFHjOthOJM0PThrFRqQkKrVyv2Rb6NTOdEJxyjYW42EF42+zJM6+KK6P1HevNoUwDmPtqZrdHdveFcT+ixb1vWqrDZv4txjCVhtyoBDqg9X0rkM5EnjhmQQtdr/kO/Q= X-Gm-Message-State: AOJu0YyRBwvnSul3mzZnOn6aOBSmgyykA4G6kusTiMCTGOE3RxEWFzIa 7VDZKRrIi+/JkHJZxqmEXjkQFE58NCskUp4PHkGeOrUxtr6sFrA= X-Google-Smtp-Source: AGHT+IH/ErPZA9UlMKsmZDV/X1wnV/PWz8EhOEK3XFrFUKLnJNMrmKCwpJ2Mt6rxai/f8/VEUq6zvA== X-Received: by 2002:a05:6000:1884:b0:35c:1961:899d with SMTP id ffacd0b85a97d-35e840754camr3384746f8f.27.1717621254251; Wed, 05 Jun 2024 14:00:54 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:5211:58fe:dfef:c48c]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04c0d77sm15955721f8f.5.2024.06.05.14.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 14:00:53 -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 RESEND] ARM: dts: rockchip: Add SFC for RK3128 Date: Wed, 5 Jun 2024 23:00:49 +0200 Message-ID: <20240605210049.232284-6-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605210049.232284-1-knaerzche@gmail.com> References: <20240605210049.232284-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_140056_429378_2CE9728C X-CRM114-Status: GOOD ( 10.00 ) 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>;