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: 808981 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C58E60BBE; Mon, 1 Jul 2024 12:14:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719836083; cv=none; b=DxFB9/G2EnMYbJ+ls+/h5g+JXnvHz2GGJAA9/m8M/m4im2/A26mHB/5M3nVf/A+LbGQLaUgs8LaiWgyX0dF/fTmU7Yq7mDoFTivQR2J/owuzPhm7gra1uZG5OPnJeqGjrwurW5n4D6tHzrv+xKEybxFhO6NiUR2ZdPIVRbgBRSw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719836083; c=relaxed/simple; bh=vVQEBAHhv92sP2fSGRtWvh7EDXEieYCE2SACw14V0Ho=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XAOvr3Ax9gnsIKD1WyRcTFJcEeiaHOIXe/0Vh8QJrxeqbtny2985wuZ7nLKMr2EmG4uiNMKVz4B6w8VuMQtqxiCh8g2hai822tcog5o/1Opl/2RKjcSHl2XE2BBW/raCSvScDi1EQKp3Ym3c9rGdMiBZe9SRLnqTf+dTpwuMoAE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SSAQDXp+; arc=none smtp.client-ip=209.85.215.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SSAQDXp+" Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-7276dff62b6so2846808a12.1; Mon, 01 Jul 2024 05:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719836081; x=1720440881; darn=vger.kernel.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=SSAQDXp+xwzDzYVdvYFNt/kR7txxUL40/4mt2AYYaW5PmqLjtk1bFliMF3UlK003p8 lFHuP68qjeKAveI1MlFW0EclYKXG7EAG2QnCUb1P8AbtQCO3+ktrjUS/ppR7IXh9uXrf xTa8nwTQUd4CrjGD98txUeL3xRc2f08OtR9FyuvFqrufVsw2PNQ4iEoPjY9BsyjBk0MV zbzIevEyEZSH2J9QQ1gfBT/Etmb/hYXetZrt4msZwX9b/43OU8t+i+PqUrSPe1ku8pIO ZZPII3AIZCBYv26NBxAoueL/2z0hTNZxJhIempfx2PFTrPxJFsceRGoEQNfbvkS6AZWl wcCw== 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=dIJb1bPsL0eqDem1lTa0OdyB9eS/nHUhVN9oaE5R0Fw0Kyf6k2I7BhsIZvt3dnhiWZ VnqaKFJawg9GYtBhFZbw3IO/lkjLlBXCZVgdBWQIbbwUs6WFDxTQPtrDa5loKlf0ZJsu QsH3HeptewnT+wtv5qQooeaLFi2t9dzWG7/BC1e1gPnNvlATZlvHPvN+MMIc0R1aUCbE VC7LRqX9zQV/1tBP6jFSnwhs7FvhzdFpvKD7wpLRNZpWHCGCllPj3+zqe78zJCu/bkRG XzRtDHrfII6+VwlxxbHeUw+qsvkzOyREx5R6RUTJSe08vz1iMfJN4qP62ZdNJSi3gMhH y6kg== X-Forwarded-Encrypted: i=1; AJvYcCX6gJW6LZ3PZTBpPzex9+wft8pnNwGDs7dhpwkTL9buwQJ3zNyHesm2tSjCJIMD356JVVKZqd2TIxR738VQAOmO27NOLCffh9AoIzRAHBD7vqcDnkmVOzobpmRn+HlU8rfBi8X+mc2e5w7F0DYU2FKukePwtrHAOmdnD4UY0JF9hei5tg== X-Gm-Message-State: AOJu0YzBR2w1d9AsMlN4lAwBh9ObpvDHSyBtUTVfHvi7YQrSLFV7zdyW 6nLDJMOm/yIMLovyVWLcxR6L1NAqRhw8r3/k5bmTQ9Zs7SBpTdXcubAYFyRs 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> Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 updated compatible property to include "thead,th1520-spi" for the TH1520 SoC SPI Controller. Signed-off-by: Kanak Shilledar --- 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: 812289 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A92060BBE; Mon, 1 Jul 2024 12:14:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719836092; cv=none; b=tG9TfrlU1eLjkocNti+zwf9ZP0nSr7u0jgFaZX2HN/ORYDBpd7vYeeZq6n1h5GZt8GZvZFFQ8+/UEjkJIaE/NhAyVR2sf92a09OTtJEfiVZq4dWtObSzVGrmSXnV0GyWvBLMxkIbHjjLWcznJLjkjpGUGLioq9uXmNlktoS71X8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719836092; c=relaxed/simple; bh=nZXNiezCVx0aOESi8wBAJNvQek+wMZFidNfa4VKpwtI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=g7JGYeTAizm+KKQ2ON0+U3DhmOeYBKwcDIr3CpExydHgy8Hnh0c/08PduYSnWNDON3hGSSvRLOpgJimAPdHmT/2hKZycTj2HiABiNDdmmcxnaEIcK0Jjh2Sh3UTxWeAp8TZDw4M/mBRu1WlhsSExvMUmpGma+PoDJrCNC2ixp7E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NuycOaDJ; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NuycOaDJ" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-706b53ee183so2620532b3a.1; 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=vger.kernel.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=NuycOaDJqd5w7shLOy0r3fQqAVlkoTImAeujHMNVXivEURPi8saVZUcdKYAPthB7yx TkXox4xQMoDd9UW2DEc7TwRdb/9/vyqNFHSGAIvQwRxf77jZ+PXxaLVHckjll12sSTSb VOcm3oNuVFtdbM+GC2JhDdffIdMbH5hozFzGVlXcHuZRd+0ATxjVSvWcJEZxs+QgDrtt mb5zbWMCoy+AxjFR2wRJ0TtiE5Z6CJ0kbKmwr76Yo6zCHekO6bbGzBHj1uJJZpxvfp50 gA+uaVMdEG/CVua6ZFTRbajHaO+7yY+Jg2NEVQO9f5GOwkMaHPc9mjezCWvnF3ZuUtHQ k8ww== 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=xMRrPvGfD2y5W0nge6jT7PKoSXpa5mwIH2wcZEKqZrcofijsCbNzIMuSnEOAnQe6bM y538YIIRlAunknmg1hL7mNUjwbNGVaTQQAKpMc79r7vemK53uKJOQSoezMy6mYuwjjVa HzVxBvoJEwMpi+okYdMGvVoEZk6iz7iFTZxE4HnF1v4+RazXQ3+IJ8OBstl6iKpqF2yf Cs9DZNhIbJlZUgciZYNgZQQk39q303TSsoF/tJvnolfNZD/kes59H6UIcSiot3jlXRv5 Ha8fXhLLEf2ECFq5friRXyOG07kqeJplFDgt+kyeMkE8DpzPNxASgXZBPZfsEtjqHUCu eqfQ== X-Forwarded-Encrypted: i=1; AJvYcCVWNGTqGQ9v5QwPCJiAdvA5sQWBEoKsEDeNHEccsgM+XmSkfLSqJoWv2xTtARCpmDY9fmIsQ1tFv4bj0psc0NH6fXb2juz9LrcFYMB5cbVULcYV3yVnvNNOciGrkZuowCvrXH8SPmbuHyBSiDMFUtB5SH9oTu3NTnluF6SdzMBlVKJQWA== X-Gm-Message-State: AOJu0YxhW/awELtMA9h0NT2a61XRBneWW1o1ZQ5vIUn5a68o41QsvjsN io7azGQx7/B9KXb5u2AaLn4Zm+6FgxcsuEKI5xakc2j6i3fzS10nwwc3FS1V 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> Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 808980 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12D0D60BBE; Mon, 1 Jul 2024 12:14:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719836100; cv=none; b=T8623xn6rYPmCMwtK4qWOP9AQ4VeZK0F/nRs2LZ5OD4yFqB82+cU9nmV0Z8HrT4lcjZoT1joQUszo3aeEfK7AlSvp4LkA4TLY3gQLsv/M1JEiX/oswVLX3b2RwdYBAFbYg9r4+SZr4LbRNrrEG6FJ2pK85qcwdw/qMMumCQW+yg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719836100; c=relaxed/simple; bh=5+KlnoDQMwCY+L9LzwtSsJQIvxvZ5Wnc6e+i87HjisE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=G8yROvd9DM/tcnRuYe1+F3hagVt0POvBsCzllBj9Hjf0CeR4gYb3KGludWOByT4VDvMutHxQJqSNClXZe5JiswzMlxndcJA+JeOBC3AQWKuuMVeyl8VmTGQMt2aWOq+9rTI/NByADs7EdhP61NWHqsaUTUXvqNYWBFwcbc4qYiY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=U6Q2hJp/; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U6Q2hJp/" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1fab03d2f23so19962155ad.0; 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=vger.kernel.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=U6Q2hJp/JbOWtNQDfdQtHTlbsf9Gchr1Kn7gS9Oyg7gyOorJWMC/wZG06cA/XrgQ3u 7z4ljwrsagbpLUYHJPHCZ6Q4HgtMhmcMFLUMPx/cHCuOQNgjS5r0uElx0TeOFIpZtmMz W+JoDUFzNEycl53vuSnxJgxGRY8ImzV+gbkIL1wcabMXDAyGNSNdfXl6CTa/vBxNFlOO US8xnae65uJhRV1iFpd6jddpkqPkoixknG426jIGYeVg+AuSCNB5A5UCG2NW2277DpO9 tbEumtdvPOZOk4ggvZO6YlYxeqnuE+Y8xdQm49Zf/PEdGefVQfMklV+3SXgq3+CIQLtL Gddg== 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=mLUG4mgUO3v9SHLz3Y8bQ53cgdQNsmopZspQNg9TdDeBsktPvMSQq5NRIF+uiLK3aP ko1pemFAy8/Y36kEqXZoQ+hVUnBPsYm8lnH5IGEjcORRywFb/odOmXfD9sW2C7TcSR/k HLGv710RIxTglcWqAdqh5fl1d7zJow7xdnRHl1Y1XBsOnjOCJe4a5up/+l5qVyWK3euh OkguL78xnochRLJh8Ra2xy0MGfRF0FlXb9RsvmbnB9JMYdC1WyHoQHxQ6CG06FPd7UiE L4FMHlvoysQ8leItEs4+1Vly78z3jQ6pcNsXTwkrzztM4fUUj8qGdjA9jVbBHJ1K05Zk nhQA== X-Forwarded-Encrypted: i=1; AJvYcCXl7gBYSaJTOyhWczbjAEoWW5D42hOQKds3fboee0H45IVDa7JELh1vSJzIaJMSH76qLzVpCaVMHyhoP7822sD0PCNRzdnFeUgE8ifWiP24tNEpiY4solzQ+fkrRjtwqUlchCgljiy/vBKJWYU016VGApZJjnqpOAUZ1aBeU8K8/aoBew== X-Gm-Message-State: AOJu0Yy1WjiirQO/XFDjnYscJvBKUxEBi9sMaBaYVD3puGr7AuQ8PzAk g6xVkg3BtUe8A/CaPY3ltwEEtQPxOMLYSrAjDQ1dWrJAJQzK/S8MWr+MF4IB 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> Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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>;