From patchwork Mon Jul 1 12:13:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kanak Shilledar X-Patchwork-Id: 13718010 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 12B04C2BD09 for ; Mon, 1 Jul 2024 12:36: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=fUpXhqEVLoEnNGqgqUwxPHMf98N/B5XcT+XScQUwWLA=; b=zgZBJFy6aYm4s3 7QWlXs/jyRv9YZ7gtthq+CQN7s+i1L+HI3Krgbm2zZxTy/u/Wd9G8C3GVU1VlLmOshGhAe6Dg8PXG D/Cj1QMMdEvlgTV8Rhz6UgWmBpHVDNmYD44UEa3Q+LIOHQs+Q3HopmNV3u9INNpD/5O8cw1cXoF+W m943k5CspqOgTqeYg0ipq/TMYlTNpkY5FfC4YbnLfKrGSZ/YTo4i8nf0/XtKaMLDUEt/TM7O2hWz/ gnBoQWlHOUVz3mNwE1arqZs3pN/5AV95/9oJdDjQGClYXWsLKgHoICjtfs7ci4MYfFII6c9nPE4WK KeKfoiHJCxdK6B5Q8wvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOGGQ-00000003FxB-2Mfb; Mon, 01 Jul 2024 12:36:10 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOFve-000000035nq-1cic for linux-riscv@lists.infradead.org; Mon, 01 Jul 2024 12:14:44 +0000 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-7276c331f78so2582990a12.0 for ; Mon, 01 Jul 2024 05:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719836081; x=1720440881; 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=x2JlVyvdXaf8wO0NkeSTlMZDCp7W3gnVU01+vdeONI4=; b=L3VqPq0VMHsstA9IFRwwex+ZgbFvRDhHP+5F39rCTm5HDzEYTfipcVSUi7lxWV4wn1 xSHROEQXvI35pYxnQvcffjN2w2y64RqQrmUZqe/A+AMeTOCy3dx76bja6LKCQCSsMDUT 06+7g98aPjLkKOUc8S+F5v4DcNfyFkNTc7oaZskI1FdBvXYmHlAFJomVRRFF4PQahaZv AA40h+ki44ucy3G9DPakj4xzmlaQ+Gip7Oc0MJcBWkBC7rziXZm9hbQIYO1Ug67t0nwt bhjBZ79Vzd3dd3FMGbGPVbv1+1Pd0ejLM4nb2+jn2R1PFeVka4J1I5vXnRIym0FquOoD AvCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719836081; x=1720440881; 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=x2JlVyvdXaf8wO0NkeSTlMZDCp7W3gnVU01+vdeONI4=; b=IS8WPS+14M/Wzo9Gr6oEgGdU5FUh5i9xz+tOqCCM1mgiS7bAZlQZvaHqdtXlG1e3J2 8kZe7HpUtqbyJqLBdE7f1gWe+lhWX7EZqwv6HHQ8KPV17CuJNsoZDgl/1K+V2e+orjHB kIL77vk3RynHdjKuYOKSYooo7tI7lZQ3L/5NjbWlDHFsf1kfZBAolLf+bWiRQHk8/3tX pwvo3Q8q8V8PHJIQifxcj+KnFCITpl5Ll2Qa++yVE4QiP6peiCOrhw+VOTOSXIA7/jjE hSS2j3Gx1R9Hf+rZsJODIlUdvBJZqOvtw2g26mrxlRNJ2tUBFRx/cVslxgeWC6ERTsq2 OBtw== X-Forwarded-Encrypted: i=1; AJvYcCVlsgkxLK1SUkowsryFxWpUBGtTrFJqo7/vo4gTz/wxTHSM3bLUE8aEfp5Y+iVLz3pGDChLOJ5JanzNkbwjqYegGEuAVwkcEQFOGoTWkNjz X-Gm-Message-State: AOJu0YxnyDLFk3XVCMYwfCoTzlyPT1PVhnsl1LDdhYB4ZriEWbaNkg7S AFYqcj4B7GZoEtcjywNixHAPdC8Oylv273rRayJiIU+gboZMeyjv X-Google-Smtp-Source: AGHT+IH5fZqGsM7fv4aL4Hf2OsbfmuWDVI3xrdjeGta3W/nTcuTAQXHLXW/5GIXbOraLNdXwplsgNQ== X-Received: by 2002:a17:90a:c090:b0:2c6:f5bf:5175 with SMTP id 98e67ed59e1d1-2c93d1b99b3mr8969180a91.10.1719836081239; Mon, 01 Jul 2024 05:14:41 -0700 (PDT) Received: from ga401ii.. ([223.178.83.109]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2c91ce17a77sm6613098a91.6.2024.07.01.05.14.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jul 2024 05:14:40 -0700 (PDT) From: Kanak Shilledar To: Cc: Kanak Shilledar , Serge Semin , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 1/3] dt-bindings: spi: snps,dw-apb-ssi.yaml: update compatible property Date: Mon, 1 Jul 2024 17:43:52 +0530 Message-ID: <20240701121355.262259-3-kanakshilledar@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240701121355.262259-2-kanakshilledar@gmail.com> References: <20240701121355.262259-2-kanakshilledar@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240701_051442_450969_63A79FF7 X-CRM114-Status: UNSURE ( 9.42 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org updated compatible property to include "thead,th1520-spi" for the TH1520 SoC SPI Controller. Signed-off-by: Kanak Shilledar Acked-by: Conor Dooley --- Changes in v2: - Separated from a single patch file --- Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml index fde3776a558b..bccd00a1ddd0 100644 --- a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml +++ b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml @@ -88,6 +88,10 @@ properties: - renesas,r9a06g032-spi # RZ/N1D - renesas,r9a06g033-spi # RZ/N1S - const: renesas,rzn1-spi # RZ/N1 + - description: T-HEAD TH1520 SoC SPI Controller + items: + - const: thead,th1520-spi + - const: snps,dw-apb-ssi reg: minItems: 1 From patchwork Mon Jul 1 12:13:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kanak Shilledar X-Patchwork-Id: 13718011 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 83886C30659 for ; Mon, 1 Jul 2024 12:36:17 +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=D81QKfo6RD0KRRiEiCTNbQIEBOieXnaSN2n4kOFYppQ=; b=HlOXG1jEpvlEw8 MzweqFE8mhu9lCJuxH91H29wKJrjNKKp3OwTI746YBBX2rdSNw3k1/zFyK0j/7GKaRgc+NMJZMyLF B4PvoR551DKmGGLSO16/59dq33KPlb0Zc+zUtRkTHPsQsi2Z1zglDe4uy5/7XmWifQcA58r9GPpZd c+mzdEhTxASh/ytbNEKMtZOAJ4OQzmLUtBgbNQ+FEkhaV+gtNlugAz1Mu5CFXEzebYs2HFy1aiY2z WtvjtIPLATuvBtmc8Rr2jLBBMn0scgKCLXXshT+SCwyxd3kBddMpKSHXWhup+8h9ZhduPWxHvFtwp u6CYZnP+k/oLBcXUspjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOGGT-00000003FzA-1p50; Mon, 01 Jul 2024 12:36:13 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOFvn-000000035sQ-0NxA for linux-riscv@lists.infradead.org; Mon, 01 Jul 2024 12:14:52 +0000 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-706b539fcaeso2720570b3a.0 for ; Mon, 01 Jul 2024 05:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719836090; x=1720440890; 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=rS386Usr4IoaIpluIYt7tWvHO4kvCI/g3TOu2sRYrgA=; b=epu7lSfpbZ4G0+fIitQbT9kKIMX60ZliEuvDNdPkyoPxVPJgYxzdHejDTxxy7m9DrL OFbnPORjbfArOwbwJr9DpI8k1gwLud/HpU3/VHki4/KmYRPsuaIdMXW1Lo1CNwdiIFKG nzAhGgrv/H1ZVAnkfr6ji5GX/2Nf4qLUUxTzoCKzZpiVRTyeXfdiBaHNt0tcF6C2VVJq KgNLj4l5l2v1eXufznuHxBYna+s9PYfmjtYE7bfe+GboFMsmTg39DrrqyXyUdPm0a7Ff OIL1ExxGDvYFIwDx0rceeOa0taL1gjodMx+0IVa65W4WkZAiW7QiL60aFHWKg95vsaVd dqQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719836090; x=1720440890; 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=rS386Usr4IoaIpluIYt7tWvHO4kvCI/g3TOu2sRYrgA=; b=KJCssPgNjP+yfxzRKRzB6+vMxMjnLjlJ3jUFMV743v1QZxwl5p3GteHHReIk1tOih0 QXRttJ105V7hhlbHfG5bBhO+LjCnSR6DBsFXWvTHsellHMrRwaSfGV/BkSg+pKqgGPp+ DSV+ciMC1cBCVxOXd3879Utg/PmaUTlChAu4UZUIEo/p5u85ZArFH1DaG673zkK5vccy R8cM0WCxiGGkHYL46/w6rV4fCxGhIxy0v7xpy+9k/rLYlHFdXTAiboX73y3JvU8QBRBI 79A/5RVyhFZcB2o5RQ00RnyCKOGCqQSyTmUjbdjKV+tWzsKptgPBpP/fVqU6F7dGnzLd 5B4A== X-Forwarded-Encrypted: i=1; AJvYcCU2eEtsSo1H8TGnUmedaX8iweDyZu/GEPeb8wdR7GVaaSj21hNG5+iRdex3ynEWxRSNDlbMBT8gjWbUf91+VoNi+2CJyQ4KPj/8n9NglXwK X-Gm-Message-State: AOJu0YxD36axxiLcKaB38es71BudHf8lSqLPQlItERWIN94XbPmzDYlw ZoFlseI2dDTc8T1b2Fliv0L6nsqlecg0hvAr7Va5SN/nvslJKNaJ X-Google-Smtp-Source: AGHT+IFNbabduMp8p2WkQI1bgHf8jszIWFXwxeyq2VyRo2CV/F66u8aNQnHpb3lwQVkcK28BW/LDAQ== X-Received: by 2002:a17:90b:180c:b0:2c8:2cd1:881b with SMTP id 98e67ed59e1d1-2c92815591amr13089443a91.20.1719836090204; Mon, 01 Jul 2024 05:14:50 -0700 (PDT) Received: from ga401ii.. ([223.178.83.109]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2c91ce17a77sm6613098a91.6.2024.07.01.05.14.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jul 2024 05:14:49 -0700 (PDT) From: Kanak Shilledar To: Cc: Kanak Shilledar , Serge Semin , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 2/3] spi: dw-mmio: update dw_spi_mmio_of_match struct with thead Date: Mon, 1 Jul 2024 17:43:53 +0530 Message-ID: <20240701121355.262259-4-kanakshilledar@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240701121355.262259-2-kanakshilledar@gmail.com> References: <20240701121355.262259-2-kanakshilledar@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240701_051451_157528_173EC913 X-CRM114-Status: GOOD ( 11.08 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org updated the struct of_device_id dw_spi_mmio_of_match to include the updated compatible value for TH1520 SoC ("thead,th1520-spi") to initialize with dw_spi_pssi_init(). Signed-off-by: Kanak Shilledar --- Changes in v2: - Separated from a single patch file. --- drivers/spi/spi-dw-mmio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c index 819907e332c4..39e3d46ebf5d 100644 --- a/drivers/spi/spi-dw-mmio.c +++ b/drivers/spi/spi-dw-mmio.c @@ -419,6 +419,7 @@ static const struct of_device_id dw_spi_mmio_of_match[] = { { .compatible = "microchip,sparx5-spi", dw_spi_mscc_sparx5_init}, { .compatible = "canaan,k210-spi", dw_spi_canaan_k210_init}, { .compatible = "amd,pensando-elba-spi", .data = dw_spi_elba_init}, + { .compatible = "thead,th1520-spi", .data = dw_spi_pssi_init}, { /* end of table */} }; MODULE_DEVICE_TABLE(of, dw_spi_mmio_of_match); From patchwork Mon Jul 1 12:13:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kanak Shilledar X-Patchwork-Id: 13718012 X-Patchwork-Delegate: mail@conchuod.ie 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 3E49CC2BD09 for ; Mon, 1 Jul 2024 12:36:24 +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=IHZ801/ZTGJ+to2Gnhwqe3AFHnXFNWWhMt78a4lVpaI=; b=ud4HCkMId/AE+B pVE19hUQQiw8Vl0OUzN4xaL2w8AaDSxe/rrjFLyUaOGHrJqCRHL3KTfqQh6yvRvQ50zkNI6LUX5hv 3I6GGmKdmexDqAF5GqCkaAS9QqrQRE9MzeSJwlzbwaK1opW6GvSWge5VMqRTsc+IohWpe6S9wqYEs bJxYwHGWCp1kFEuHfEYSaFvaCxLVZIW8GWPyA/8mDYzKT6EIZ7AeHi8OuzRsb1b04b/TaZnv4gLRj VJibejze0OAqW3slYCHSgldEkXnKxiXeTY5Bn3ua/PmInUTtMZI13sbt8TuSVixtKkXp3SXz81Qw1 PlzZoHpZEtOEoVZ3tBdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOGGZ-00000003G4E-1XgP; Mon, 01 Jul 2024 12:36:19 +0000 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOFvv-000000035xj-1InX for linux-riscv@lists.infradead.org; Mon, 01 Jul 2024 12:15:00 +0000 Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-713fa1aea36so894687a12.1 for ; Mon, 01 Jul 2024 05:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719836098; x=1720440898; 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=RZGF+hSKAfpUu0JnRW8V7jeP7SMQ/BQAWzymiuvR/t0=; b=B4TqS/im2cxNaI840khWtHZk5M2S+ZFGhgfAlXVYH+kMLh7sugh852usca+F7cku2E WoyoTZY2vG+uGSTq+t832uLIqUKxO/bgBpO7mzilXDWxHzgw+O9HRFIs1SktFpQyy9Nw MqSu5vkq+qQFDSd2bDO2SX1vOkzA9aVHsdBV9JYtZTGifCaGKbP/IhEXnGu2+36CkmB5 sN5bHBqR/OJMhwktUOylxKZesnkHqoLI92++sSUyesDCcNoS5gB3a9G746z8BYTs0brO A2i7kmSiYMM8b0VFKvrwAr7nt9hrSeEP8wjUuXH5mpIyl0i8Dc2ZEfeLuox24D8Bnvni pHcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719836098; x=1720440898; 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=RZGF+hSKAfpUu0JnRW8V7jeP7SMQ/BQAWzymiuvR/t0=; b=EMJ0ebdYmOLeciRSo8F0mt+bXxLp1beaiwL8Ve0Jl1zSr3df0ZNvOYwgcokV05jgoV AjIRPCLKP2wiyt9uisVjtJjPKiL2GPQdysT7grN2UmwKsqosCkZOaxtoZdKTVa/jvYwi 0bFKw0qCEhbG/75igOcyS0x9NbnbnQK7xTV0155nq+tjuiS0e77B2Xf1rfdpTo4k4UoG SmMlclOl0vHFHsy9wyU664OMngcLPS8f+7PoFUiyqgKPyaGsmEq4F9DOif3B/oooJj84 wMbXgP0/zCZ5y/4twDBkgSFYGVymj+79QVYzXJr+ZRvLMWaVSDzUuDw/wfzwP6KEqEU2 r5rg== X-Forwarded-Encrypted: i=1; AJvYcCXqteTr+WfKvS2pZSE4fMSB8Wl9d32PVbb1Q2whnLdOQ7L6KloQ+1ILhb29eS8taIbYNGkjNfbmpZIZdIb8zhzVdiTJivsCXc0Q1dYag/yA X-Gm-Message-State: AOJu0YyfkSh3oZnIpZ8NrD+26OBMpY0UZv2MJZIxp0ZUq85wYTaSIu3l ilAVhufjXhlrURAME1VLhbUi5QppqjxDkgZlLZhCR6k1FoN0Z2Un X-Google-Smtp-Source: AGHT+IHw+TJdLcLvIGB0OVy2rxLeDd/zmLr5mcFmlnJl7GUR+T4SLoYKO4G/3uCq247sGd7XaGdgBA== X-Received: by 2002:a17:90a:c394:b0:2c3:514:e0 with SMTP id 98e67ed59e1d1-2c93d76765dmr2671731a91.35.1719836098208; Mon, 01 Jul 2024 05:14:58 -0700 (PDT) Received: from ga401ii.. ([223.178.83.109]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2c91ce17a77sm6613098a91.6.2024.07.01.05.14.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jul 2024 05:14:57 -0700 (PDT) From: Kanak Shilledar To: Cc: Kanak Shilledar , Serge Semin , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 3/3] riscv: dts: thead: add basic spi node Date: Mon, 1 Jul 2024 17:43:54 +0530 Message-ID: <20240701121355.262259-5-kanakshilledar@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240701121355.262259-2-kanakshilledar@gmail.com> References: <20240701121355.262259-2-kanakshilledar@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240701_051459_374636_E7B9987A X-CRM114-Status: GOOD ( 13.96 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org created spi0 node with fixed clock. the spi0 node uses synopsis designware driver and has the following compatible "snps,dw-apb-ssi". the spi0 node is connected to a SPI NOR flash pad which is left unpopulated on the back side of the board. Signed-off-by: Kanak Shilledar Acked-by: Drew Fustini --- Changes in v2: - Separated from a single patch file --- .../boot/dts/thead/th1520-beaglev-ahead.dts | 9 +++++++++ .../boot/dts/thead/th1520-lichee-module-4a.dtsi | 4 ++++ .../riscv/boot/dts/thead/th1520-lichee-pi-4a.dts | 5 +++++ arch/riscv/boot/dts/thead/th1520.dtsi | 16 ++++++++++++++++ 4 files changed, 34 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts index d9b4de9e4757..3103b74e0288 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -17,6 +17,7 @@ aliases { gpio1 = &gpio1; gpio2 = &gpio2; gpio3 = &gpio3; + spi0 = &spi0; serial0 = &uart0; serial1 = &uart1; serial2 = &uart2; @@ -52,6 +53,10 @@ &sdhci_clk { clock-frequency = <198000000>; }; +&spi_clk { + clock-frequency = <396000000>; +}; + &uart_sclk { clock-frequency = <100000000>; }; @@ -79,3 +84,7 @@ &sdio0 { &uart0 { status = "okay"; }; + +&spi0 { + status = "okay"; +}; diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi index 1365d3a512a3..6939bd36560c 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi +++ b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi @@ -33,6 +33,10 @@ &sdhci_clk { clock-frequency = <198000000>; }; +&spi_clk { + clock-frequency = <396000000>; +}; + &uart_sclk { clock-frequency = <100000000>; }; diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts b/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts index 9a3884a73e13..14b06dd81a9a 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts +++ b/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts @@ -14,6 +14,7 @@ aliases { gpio1 = &gpio1; gpio2 = &gpio2; gpio3 = &gpio3; + spi0 = &spi0; serial0 = &uart0; serial1 = &uart1; serial2 = &uart2; @@ -30,3 +31,7 @@ chosen { &uart0 { status = "okay"; }; + +&spi0 { + status = "okay"; +}; diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index d2fa25839012..f962de663e7e 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -140,6 +140,12 @@ apb_clk: apb-clk-clock { #clock-cells = <0>; }; + spi_clk: spi-clock { + compatible = "fixed-clock"; + clock-output-names = "spi_clk"; + #clock-cells = <0>; + }; + uart_sclk: uart-sclk-clock { compatible = "fixed-clock"; clock-output-names = "uart_sclk"; @@ -183,6 +189,16 @@ clint: timer@ffdc000000 { <&cpu3_intc 3>, <&cpu3_intc 7>; }; + spi0: spi@ffe700c000 { + compatible = "thead,th1520-spi", "snps,dw-apb-ssi"; + reg = <0xff 0xe700c000 0x0 0x1000>; + interrupts = <54 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&spi_clk>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + uart0: serial@ffe7014000 { compatible = "snps,dw-apb-uart"; reg = <0xff 0xe7014000 0x0 0x100>;