From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (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 EA6DF348886 for ; Thu, 18 Jun 2026 18:03:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781805811; cv=none; b=qyFihvFmBVE7Ni6XgJoJrb03BFwdfxBSgvO3uu/xBgcouhxPLLMFtUeRntkxZHk8EHuSSbirikQtF8BZt3aDVN0nZeFKPV8fgIkKwq+eLGkzbEIExi448zzOxtXDMB0taL1h8XY24tcHj2kSsR5gT/gGjl8K3N3Ch43+7u8iL78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781805811; c=relaxed/simple; bh=oGC7L5TtVt/RanN5pjTzlERB2K6nlzG3KqEBZucZ1/M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k1epjQDxbGrMTtUAiEggyTZpZ4CXmlwLt2pDmQc28BrNumNX6RT35xJfctR0jKhy/VLYLShIKM6yJSCDElPxICqRk1ES18fzLqVtOjPJ0mw1pDepVSmA4pca7RFnn+NiAU1no8/hmtEk7e+MP6OHWJWZpg16mpMVqUJglRO0690= 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=AJfdFTfP; arc=none smtp.client-ip=209.85.215.175 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="AJfdFTfP" Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-c858961a8efso660338a12.2 for ; Thu, 18 Jun 2026 11:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781805808; x=1782410608; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=grMDKhiWxgS01CbGWcoqJuDZbxUtQgSQcTHTndsyXt4=; b=AJfdFTfPwWtd+G/9mPnqx91Dngwnte5ne1crVfz5tTeRPBek3jxgFIQvRlbbxIpvy3 NiBr8+XhstASGwA7iHGTVTjwjVb3NRy3/H4cXUTksEdSlZhZWMRvtlXDjm1cAtAUh2FO kXUmdZNtxc2y44QbwwnKNhnLX4X1AI1NqfWro2P1YOz+6HAVPopDmdVinpgh20rjnecE 66rdAW7nqSzFF4nEJU7QjeDvvkVy4yeFnfHakq1M6gI1SGOWJyRjwWUwKT73yYD9AE1J 9kRJxfda5Woe893NdJg1msygIt4QyM3rgopwvEfUREQdUjKIg9DAUYOc/tnqRlY/2d0H QIow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781805808; x=1782410608; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=grMDKhiWxgS01CbGWcoqJuDZbxUtQgSQcTHTndsyXt4=; b=ZiVbUbYJ9M/GGlM9A0WmCodhmsxM+boxKmH93ieW+WXcjd1QFMzed3cQYPc8xSqjeh I7JrOapMBP0jzBeIyccQyd/RJAlEAjs2SpvcGxCuKlcwFdZ4perlV0DccnkEc/Zdsiov bVKUSbBROczXGiNv0U1lzJer08+qhT5uZWiEszaz2mKbppUs/SAdmhZ7fQYOVJx/eOHo CgajU3C8BSdZb1EXRzhYwfcA8ikEtfM4W0IAHLV7XnbZQjeoAtYmAdI+LYog0x4JSaPH r/1gmIc+HX+ekZW06JCD4WwtPeqHVoQMWSh7YaDlBO9BasAGmU1ZHToW27rz6ybtoSzg 52cA== X-Forwarded-Encrypted: i=1; AFNElJ8xhVYK4yLeeWgXfXlVJNLaVTBvUnsnsuucp98sOY44/WS0CRVu7peKvF7K27rbwUmgiRctB0/UTAJ334M=@vger.kernel.org X-Gm-Message-State: AOJu0YzkJLVJwSqQ0AzEZ+K6cQtjZuLmEElNLfhoyl8oIGzLWG0ScPmr nfQZDI2spNtjX4r9QdQKbyI68NMjcB3L4hd96pyb3CdH30LHs8JT074z X-Gm-Gg: AfdE7cnCOC8tNzxkVkZP6Bx2yjPmunJJGoScytSIDB6dzCd3JNdo+9KanG2LsTKebGC EI+Af1U8P9xO+ZH+mTudharZ1U20sJh+0I8H5ItPIh85Wrsgqn4yRDgMB/e9Hlm+Xn+AB+Dco2Q /0U/bKZMeZh7hl3pJXko5r2yktrnUZ09c/KdJPnUuOGtAA8Huc0VDan+Ln4gWVYXeDfF6e9i2VK SyJ39L0/XyR2Y8gQAr01C+xIshYyq5qMJ/2OsIKlkBLc26hFA0yZDLBl8gSOKS6xgrO5x4ckP9n munGY8RrQG8T/QqSvX8VPeOEFnQamNIhSqggHT7BNf8I+mnkj9b+yQ4niV/hfOhzPR9BDZUKHWx ciDbeuAcAqSSqopJy53ml63183c5qT63PRU9YhE+6zRAYdLTurMbcDmIqvAXdkP1DMHqp14MeDK tqoUXr7V1fBvK9twz+wiYpjHW05DAbeR2lGwvfyZ8UdT37+M088q6jLzN/9G2sJS4hVQLsfw== X-Received: by 2002:a17:902:ecc1:b0:2b0:608d:d8a8 with SMTP id d9443c01a7336-2c718cc4b81mr2759425ad.1.1781805808229; Thu, 18 Jun 2026 11:03:28 -0700 (PDT) Received: from fedora ([103.181.54.100]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c6be262b93sm64348865ad.68.2026.06.18.11.03.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2026 11:03:27 -0700 (PDT) From: Ninad Naik To: broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, david.daney@cavium.com Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, me@brighamcampbell.com, linux-kernel-mentees@lists.linux.dev, skhan@linuxfoundation.org, Ninad Naik Subject: [PATCH v3] spi: dt-bindings: octeon: Convert to DT schema Date: Thu, 18 Jun 2026 23:31:49 +0530 Message-ID: <20260618180149.475658-1-ninadnaik07@gmail.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert octeon-3010 to DT schema Signed-off-by: Ninad Naik --- Changes in v3: - Change the maintainer from David Daney to Rob Herring Changes in v2: - Change the maintainer from Mark Brown to David Daney. - Use soc node wrapper instead of root node in the example to handle address-cells and size-cells requirements. - Remove interrupt controller provider from the example. .../bindings/spi/cavium,octeon-3010-spi.yaml | 61 +++++++++++++++++++ .../devicetree/bindings/spi/spi-octeon.txt | 33 ---------- 2 files changed, 61 insertions(+), 33 deletions(-) create mode 100644 Documentation/devicetree/bindings/spi/cavium,octeon-3010-spi.yaml delete mode 100644 Documentation/devicetree/bindings/spi/spi-octeon.txt diff --git a/Documentation/devicetree/bindings/spi/cavium,octeon-3010-spi.yaml b/Documentation/devicetree/bindings/spi/cavium,octeon-3010-spi.yaml new file mode 100644 index 000000000000..f0b708e1ccbb --- /dev/null +++ b/Documentation/devicetree/bindings/spi/cavium,octeon-3010-spi.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/cavium,octeon-3010-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cavium, Inc. OCTEON SoC SPI master controller + +description: + The Cavium OCTEON SPI controller is an SPI master controller found in + OCTEON SoCs. + +maintainers: + - Rob Herring + +allOf: + - $ref: spi-controller.yaml# + +properties: + compatible: + const: cavium,octeon-3010-spi + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + spi@1070000001000 { + compatible = "cavium,octeon-3010-spi"; + reg = <0x10700 0x00001000 0x0 0x100>; + interrupts = <0 58>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom@0 { + compatible = "st,m95256", "atmel,at25"; + reg = <0>; + spi-max-frequency = <5000000>; + spi-cpha; + spi-cpol; + pagesize = <64>; + size = <32768>; + address-width = <16>; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/spi/spi-octeon.txt b/Documentation/devicetree/bindings/spi/spi-octeon.txt deleted file mode 100644 index 431add192342..000000000000 --- a/Documentation/devicetree/bindings/spi/spi-octeon.txt +++ /dev/null @@ -1,33 +0,0 @@ -Cavium, Inc. OCTEON SOC SPI master controller. - -Required properties: -- compatible : "cavium,octeon-3010-spi" -- reg : The register base for the controller. -- interrupts : One interrupt, used by the controller. -- #address-cells : <1>, as required by generic SPI binding. -- #size-cells : <0>, also as required by generic SPI binding. - -Child nodes as per the generic SPI binding. - -Example: - - spi@1070000001000 { - compatible = "cavium,octeon-3010-spi"; - reg = <0x10700 0x00001000 0x0 0x100>; - interrupts = <0 58>; - #address-cells = <1>; - #size-cells = <0>; - - eeprom@0 { - compatible = "st,m95256", "atmel,at25"; - reg = <0>; - spi-max-frequency = <5000000>; - spi-cpha; - spi-cpol; - - pagesize = <64>; - size = <32768>; - address-width = <16>; - }; - }; - -- 2.54.0