From patchwork Wed Jun 5 17:21:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687206 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 49027C27C55 for ; Wed, 5 Jun 2024 17:22: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=UFFsYErhBW+VskrUocQhPGwo2wdEP19SXa1bm+KkGs8=; b=L4iCG62tVYr/Nf 6biV8a3jYjfHwZWB/3/NCmfBeWC/p1znMgYoyYWU8HkOd2aIn4jlBmw3gb3+/zJPUGS3VBU4U3WxT 2FTJw8sVtu9+/AERK+JUevhSgyk34f2KTuzps5xZAoBeiF2gBJdcJNf0Xtl4r3ZDOWTazKfiG7UP7 aZPNM/Qxg6kIDJPj6B3Uyedh+2jWrbFRGtAg1jHydkUZ3d7MsovyZI/uRVq2+VboWe4HyAhfPV4Ay m9A3i/mJZXZu6R0EjA8d+YxtKwU/8hXlGVO3uTt5I7xFQaNhuKDsJE6tPsbPa2vmLP6tTtkmFtlyF zXm+fKyoONAyfjbRuL3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEuKr-00000006xs9-2TUj; Wed, 05 Jun 2024 17:22:05 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEuKn-00000006xqj-3Dfp; Wed, 05 Jun 2024 17:22:03 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-57a20c600a7so45104a12.3; Wed, 05 Jun 2024 10:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717608117; x=1718212917; 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=6uLyMpvLQ2nfxB85Lbnpwtsih80slOvRMVa14hvwXO8=; b=ksnh48Hp5lxfyOXJypaltDxRq3wnJUeZYjNEPVnQ9SgNjRW7oAlU04nqPrjoZJter+ PWSpKIoPY0f1hTuK7zdE9yE3Ukt58c7AZDquTb/uH/YSAcQGx+uYRtOaa13mNd+OnsCq 4H0QJJky5abqME3yr2NhsFkyqVfPktPPVA5c8gm+Jp0vVKaCMIv+Krj15wP2P+5MrXu4 w3OQ/YDjsHOYD7IK63NcwIhppobLY60i7vxWXJIOodx31QSAEvFLnFCBP2PjfqNGr8ul zZrYloW1H8QJOCK6LHkwNgm6+1dDs9/moTkYkxTA7co8wR1GlTenzeG+IuMXCzgsTeWP lN+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717608117; x=1718212917; 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=6uLyMpvLQ2nfxB85Lbnpwtsih80slOvRMVa14hvwXO8=; b=E14/sVSuvkc/bgTHfLF8bMBMc4O0+zCh9p+2N/1sn/ltwM+H4Ed+s+GzWQuLdP978J CZv12HgLBZg7+A16zqWCdKhraLnFVbX5FS4JuLMWzJUJFH4HJ1pdoPjK7aFUUge1Hz5c Z+LcQ63XN9IpI2kTJ0H7dh3YQuhDKUP9meUMmMd94IF/EIEtkQHf73uRUvXHG4QWU2gp V8QbQy6O3I5s6iBcfvBfx8+XSDTozaSnNHRnZusomtbeyQ3WMbm7HYYEeG2g9LD0Djgk 4UjB/ETnotoc5wH1EuryBSQjD0YkQ77syh0C4xUj2ASU9lCy9hUYm/dSD7A7UGE5do6U R1gQ== X-Forwarded-Encrypted: i=1; AJvYcCWafX2AvFDvWjoQH0HM+GL0W2crZMRstA8PIotbfWnOGGYZh34aqkHAFWI5y/XmIK2eLmd7BICccuyVQSlJ5G4Bo+gXqsAFVgrskaw4QyB1QKdFIzD3CRKEhl4FwPheLvVXE6QOEb3KRCTW06Lho2GlgEqixah4Avc= X-Gm-Message-State: AOJu0YxJxxmbME+RDrRbZF0ncPUsLjLz5ZK4SDtvZllcXhaeQbc5PeVn elnyzc9szEMMHnsmQrzu85I5vl/Vn4+gQdd6IT7mzZeKyhOhzh0= X-Google-Smtp-Source: AGHT+IFkm6pEpa9c2BG9XpvddS6f3Lcy8uCRCwbthZdPaQvv53wnHkEA6vJp2EvgKZQRyYTeaPcaKQ== X-Received: by 2002:a50:aa93:0:b0:57a:212a:a21b with SMTP id 4fb4d7f45d1cf-57a8b68797fmr2102682a12.7.1717608116812; Wed, 05 Jun 2024 10:21:56 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:34f:df25:1c86:f2e7]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a31c6d594sm9666663a12.69.2024.06.05.10.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 10:21:56 -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/3] dt-bindings: clock: rk3128: Add HCLK_SFC Date: Wed, 5 Jun 2024 19:21:52 +0200 Message-ID: <20240605172154.193047-2-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605172154.193047-1-knaerzche@gmail.com> References: <20240605172154.193047-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_102201_828175_79765E0C X-CRM114-Status: GOOD ( 10.71 ) 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 --- NB: I've added the new id at the top of existing HCLK's, since adding it at the bottom would change CLK_NR_CLKS and therefore the ABI and there is plenty of "free" ids between PCLK_MIPIPHY and HCLK_SPDIF. 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 1be455ba4985..a6bd7f13d7f8 100644 --- a/include/dt-bindings/clock/rk3128-cru.h +++ b/include/dt-bindings/clock/rk3128-cru.h @@ -119,6 +119,7 @@ #define PCLK_MIPIPHY 370 /* hclk gates */ +#define HCLK_SFC 439 #define HCLK_SPDIF 440 #define HCLK_GPS 441 #define HCLK_USBHOST 442 From patchwork Wed Jun 5 17:21:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687205 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 048BCC25B76 for ; Wed, 5 Jun 2024 17:22: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=JlBHE/Krw3TaK12ZknKm1ABchnnCeMEA0g+23XACdI4=; b=N3Dw7jQNuchahs 5627yvapCFkt2DpDuTNpyeaBKxpyijlCWqp77wLKMLT+SfnOaJsr18tnG3BqqIuH4wVZsO2esuGjo VyPQ461FxAbxQeN4CHO2ZELKv6VEEvBMQjMWJQfBvHg7iQfUt5vZwDFtmcNjMiMJy9PPRXb+OAu3n L+Oefsg44Q43i8NsFOAnDN+zzLSoLiRN8cYhatF5ACZ1hpy+wWwB+2JEhTNTIUNYCJB8c6QH9k/eW vxIgm1ACYW1KNESZikmPzkkkMPYZwouekXrQh8MYuDlDc5t7FgKr6LXP0RoIMrbeZkGvIX+2LW2y9 9vD3UDPD9n5j/RgLUKdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEuKu-00000006xuE-3Cjz; Wed, 05 Jun 2024 17:22:08 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEuKq-00000006xqk-24HY; Wed, 05 Jun 2024 17:22:06 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-57a2f27090aso2078703a12.0; Wed, 05 Jun 2024 10:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717608118; x=1718212918; 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=pVMnvdRLLOzxKbJxJDKn1/rJgxuovT9+MlU6y9jorGs=; b=AKNImiQXZ7I2rkdFMWOCBorLkvfbxxaN2/+GuznhFhXkNCJE1DL/AB+wF/X5676wlm 2O3qHPWy76Ss/1NsDjchKigs466ramasDYVMo1bEndRgbtMtYcY9OXmn334cLjZKtN9v lWIUyKEuZZAWW4mXjhEo8PkU1QpcupacMryMRrqi72ec7qH1Q0LPj1rkHF2XGeabdolA iz9vNN3ZTlgPc1aouyoj3TfgQ3MhBcHWiHhsvqox1pLz5OGpJSytRcH3VOs9FXHMfvb0 1eKVPptcy5idxrlfc8zVS5n7HexsktgVyEl67JJf5e9801wmN+dQpAE/ifOMHqU+OcwK M5sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717608118; x=1718212918; 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=pVMnvdRLLOzxKbJxJDKn1/rJgxuovT9+MlU6y9jorGs=; b=t/irqLpzlShPa4m7Ervu0C2umLU5Op88/RcIvoezFfLMskWJad4roH57oJ+PgHu0Nx hYpPsr6i7ct4gQaSMXQWCVgvTsQ0+POVlssu64/wdDjSNWeU3V9Idw/I/21NfRB6AhmM /rXCQ5Y6q8foNwQljz2niI3yrYIeDiJnv/+DQsl5H0gmH5MW0KrOfpd3qfKv4MWhrtvA /VsY/L+SNIqhru8RLnwpuQRMma7BP6JCBr93yMv83oPiV2R9zAL2bqu+iOfMqAP8BsO9 xb1vNKqztfiPQz53vBwfiTrW3zsVDgwpSF0TJbavsbAI8kXYqZRlDKlKPKAdLlIBS/2D Z8nA== X-Forwarded-Encrypted: i=1; AJvYcCVXWL7rascr8Yu39dHHncPyNZPKLXWt0dih0IW3Hf3eL5moredquQNKEuYm23SA67z5Cx0nX2TkHZN2iShebE1kTpw8ujGY94VTROlR0Xrn+QRu5seziy6Ahv7Py8ENdbBgJKv63rmRpJF1hdJxigAIYRn88L5BvZI= X-Gm-Message-State: AOJu0Yx/cc0A6NU01N5NNNz7w4HytLeXBZR2G/ppq0xnmYdMExwt0hW0 AM6GQ25ZHGz8otl8MFozydlkSxC4yh6Qz3dSw0+pLotw87dnGaAOGK0/ X-Google-Smtp-Source: AGHT+IGe9TdL6YWvc/w9P1sfcG22dIIUJ0rcy3GeY94VNXeYXkoTK6zLc64eyd2PWUCAXcw/orFicA== X-Received: by 2002:a50:d74d:0:b0:572:b83e:e062 with SMTP id 4fb4d7f45d1cf-57aa53cd286mr276083a12.3.1717608117415; Wed, 05 Jun 2024 10:21:57 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:34f:df25:1c86:f2e7]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a31c6d594sm9666663a12.69.2024.06.05.10.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 10:21:57 -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/3] clk: rockchip: Add HCLK_SFC for RK3128 Date: Wed, 5 Jun 2024 19:21:53 +0200 Message-ID: <20240605172154.193047-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605172154.193047-1-knaerzche@gmail.com> References: <20240605172154.193047-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_102204_716258_F4E0DB03 X-CRM114-Status: GOOD ( 10.04 ) 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 --- 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 d076b7971f33..bc348fd0da92 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 17:21:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13687207 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 41F01C27C52 for ; Wed, 5 Jun 2024 17:22:21 +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=nJXDkAv65NKrdUGJdT+fp6R7McVuJ+a4vdYk9d/lBfk=; b=Y9CnhrAX+PXVCQ 3QoLn4GzZeYXKwWp3izngX1WAPYUEqpk7caUXgwWO6JDyhLfc2+woW2mK8FQt8A52CfEH9PPBsaRB bHxPl8gJt5mgvITHxvBWoptAdGgvE1yWQ0H3umhrFy0Bz01rypvHFPcBYRhEYUry6aFkI475jdEj+ AGqB8fuHOruPBekdFLcz3V4r/8oSKSBsxLpNr5czH3avVijcbUObKUIy18QHujOg8nnl/EsgA88cC lehc7ZvbdyDNBdX3eLEX1Yjip/9g72wh6c4gcpXuXd7A8u8s0oZj1m5j4DMbMp/fS/S2PuJ10ugJp G4NqHgLLFVJcuWvqg2Iw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEuKt-00000006xtR-13l3; Wed, 05 Jun 2024 17:22:07 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEuKq-00000006xql-12dZ; Wed, 05 Jun 2024 17:22:05 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-52b83225088so119189e87.3; Wed, 05 Jun 2024 10:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717608118; x=1718212918; 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=nSnrzfQSI7FFWe4M7p38YadUmYRLzv+fLcrRvYhlfvQ=; b=KhxoX3gnF2c/pDjSJivs2haCXMhhNiZPD0xn5TudR8JKtwrgIQQVjOTWaH/cPwE1SH e7If9PmSBcho/PGXLA945iZTKznx2r8Mr7EEzeGZKru1qvB9FKmevERdq7bATSL4D+ra Mv0enQltDZLizCrGce1RjzGjCqXFMGBWwc8Wz5QPhQzSzSKlFPposcL4wlQWmp+aExIC nyB84qHfR0M+jzgCXly3Pt4urJncURQysmop5FFm4giGvYJK7dorkIBp4CN8j3t9zuDQ z0UYorqheM80zmUOnG2FnOA++yYGyIo8LMvhjtL4enK81CJ5f2cmDu6kCn9T+YaTzd+1 tNaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717608118; x=1718212918; 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=nSnrzfQSI7FFWe4M7p38YadUmYRLzv+fLcrRvYhlfvQ=; b=Zv7hL6CT6iaMyjj4Bnv6cBhh0ReMBo+s1dBdNlf7IUZPVDcrV10SJEKB5rbvRhIlQq aoLkh69dsy0FMPfOC2c75dmm5iT9QL/enJVsJ8Y9hsFdYCkrKEGByEUeNrFD+x4TE+8J AaR9m5iVBGSxyqHJiXBllAhFHrRvnvd16JZp/X463P4ZcPgqUesx7+usp8wV4IjN1Gut 0rv+5jVbBFWq+j4NrmxAa6+lOV8FlsRw3vJDo2bexi3/9dNR1GrLkog+cMew+Z8KBF6a DXFc0YY9q3Y97JMGKApZnkiNG7eMpYxP3MHPmqLfzUCaYeedlF6w2epevMI8DXLfKoZe wyow== X-Forwarded-Encrypted: i=1; AJvYcCXm1UHuC6uxOOaSdXLfB88l/XYAHoBHX/lQi2WQUZqJjKzaJ1Nu7X0WJE1tdB/dnMacpwti3FYnX9KGCybxh0EAhkKyIptMQPqIkp56moxXimAin30XhLfyfeFC99lFbKcLLbyvT1tYnN8AmtTf45ApNm8UKeMScMs= X-Gm-Message-State: AOJu0YyjTayUgNRP/7IPDaLxAvb5zSXSX8DHmY5QbcXUKjVKNiJSnXrk 8Ez4KaT5lPdIORS+HyKkPPh/9phu+DNmjjS6GCEhaBOml27AuaI= X-Google-Smtp-Source: AGHT+IGvhcnG7M1Vbx/YQj99uXW0A5K4R73XVFCAylehvWPGYqkTm8EPKbShM4S7aRYehR6yW6Nflg== X-Received: by 2002:a05:6512:5d3:b0:52b:51f9:a37d with SMTP id 2adb3069b0e04-52bab5084b1mr1671148e87.56.1717608118030; Wed, 05 Jun 2024 10:21:58 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:34f:df25:1c86:f2e7]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a31c6d594sm9666663a12.69.2024.06.05.10.21.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 10:21:57 -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/3] ARM: dts: rockchip: Add SFC for RK3128 Date: Wed, 5 Jun 2024 19:21:54 +0200 Message-ID: <20240605172154.193047-4-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240605172154.193047-1-knaerzche@gmail.com> References: <20240605172154.193047-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_102204_310061_C478A6DD X-CRM114-Status: GOOD ( 10.44 ) 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 --- 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>;