From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f13.google.com (mail-pj2-f13.google.com [74.125.227.141]) (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 D54F93BCD32 for ; Wed, 23 Sep 2026 04:19:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790137188; cv=none; b=b3ugRMHwQAg2lkiu0lasQHsrwVJJSu9LH4qBEmhx8ySErAFEx78Osmhmn5BDRPtSYCukFb8mGCwYbCkSl2vQSfjb1B48xXNX3I8DJ+7NLyiHfRlA7WS92HSkt96SYCf094cwOX0QNx4pk5l/m5hUujwKvFejpKfgh/E3J7As1RY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790137188; c=relaxed/simple; bh=EZAK9VCoqm8+w1Hw0Z/ZjQV7RYJy2WKFKHBPRcRz9oQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WOv/Cv2o481cWGBRICWEJT+mtekuuyLq6sUuMBDYtYM5LV/sLXSV6u/J7cfeYvdKsGiy38i25bojOqRiNTYGU0zH/Y+t0+WtuUGzzFLyZjZpByMwHnBthQbKUNxfD99UsAFNZYntUtRWK1J2ENdLW2F0k8jSf36Zv+dwBSYS0/A= 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=PgszFTRf; arc=none smtp.client-ip=74.125.227.141 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="PgszFTRf" Received: by mail-pj2-f13.google.com with SMTP id 98e67ed59e1d1-396ccda24afso316729a91.3 for ; Tue, 22 Sep 2026 21:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790137186; x=1790741986; 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:content-type; bh=UUGLxOvF7mywRs9buCfM5BiPX8wZpsZsunHJCACFyEg=; b=PgszFTRf+bpxp6D6WLqhJAhlSgI6nHW0g0guqmCx3ay6930iJhOUqeT07blTA52WSr LnR+DRHyWreJDN95HsehivpeTyyJp7s3pNoXossggOZ4GQ961YKs6K08zqw/x9yA4m+y yt3g2OO1EcwciY6lQZTIlt03Qx5MdaRKJOLt9vm0ZdVMPA6X47miVeFRIu6j4+fUpXtl 8e8Vw83q4+EtuZfjT5YIrG2hjHQRKl8PByN69nkEpmpZ95rK7Tctr+1uVLF6uZXuW3Ba vvT7VH6n/vwval0d2TI47ADxxII4Agep7a+6clxxNhXmqpzbp5Tz3xEkIzZhqQJuPSK6 0NNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790137186; x=1790741986; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=UUGLxOvF7mywRs9buCfM5BiPX8wZpsZsunHJCACFyEg=; b=I3qNRsZbHXLcZX5XxNGLAOw7KxNJs5chTRU/JjeMOcSBBvU5LpUM2Akg9O3f6CCC4w eBiLpuO2NHfi827SYQYpHgvs0t0y0KaghBiuMELF7FRelgt9udMj6Ha4qjcxOdHruqdK bgNEpG12JhOwdWTjEZk/dRw+pmFnKZXgkjs4UZOwhf4bwhUmsMS13gDnwm3/8c23deYi BUHDy6uK7BvQFIjWI2qtv+L4KtSClw7EtRPdTbopcQk+CT8uoP0IZT86X3Kv7b2pCur2 Gcx2sr1mjBru9M3poiYDVsAwJ32QVaLXzKBBf6XPBDqu5v0YtQ7bgmcm9LGMps3YE2Cp vGhQ== X-Forwarded-Encrypted: i=1; AKwUvBzZyFSsWRF1oSRgXbakPV/M3x+dMK23kXqJFAYi5iQkjttuuGeZnJpXz6N2foP4JMSD+CCTpqeNhFKvdgc=@vger.kernel.org X-Gm-Message-State: AFuF++mZ+Dvar1afg4YsIvCaSXQMD8i4A8OnTjt6Ln3NxTwUUFbz37Px j0RsXP6w4qa+l25WhfcJoBxN4JhQ9Tsxig10tENoqD9eoWDUMJHNOD8j X-Gm-Gg: AYBFou0KtNMcXl7yciol3xM6AfYmtMw0F0CLAKIKfzk56as6c7+U0+1hyd+jhLqo45t YQ1zL6WB9YlwNry+DgYHqxuGdQwBhK6CMyhQr7aSmdrx9LvxlRpufMmG+iAc7uRomHLG71v/lg/ IkSOHwDVvcyJbgdLVGrTpyQemQ8siOkPJakn9Y7uF/YuOZDOMYOhgtw++gkPFXMIPO79TzHPRzc 1EmFpvYh28bfmdDGLTWivaYVUv014SYGfIKgQSwAwajVogHkKlbf+5KxVO28d4iFM3YTxrhx0C7 w5ttv6jGtQ675LwjNiNwaiq9NAk1G2l4aHUpw5EjI1lWimtuIg8WB7R98JGaO8JCc5GOhFuxSwy Z6u4lN2HziaqdH2histR5p8S3RXPiVTAe4j8K3SjxcujOwUQnX2q4onsmo05Fk0Tbs+noSYOnRB TFPEJSNnJzMrGUN1F2Ihx8XTzmPafcwnP6Nepq7i7QWRwY81MLLHx12YRCZKJMRfwodxNJFu0oh pBq88zqpE6ptBcjp0UOJWHwLQQH8LolnbhwiF+XCJdE2okgj5tAVlEgn//c X-Received: by 2002:a17:90b:4d0f:b0:39e:6a81:c922 with SMTP id 98e67ed59e1d1-3a07e641099mr1375383a91.21.1790137186121; Tue, 22 Sep 2026 21:19:46 -0700 (PDT) Received: from localhost.localdomain (60-250-196-139.hinet-ip.hinet.net. [60.250.196.139]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a07ddae723sm2510243a91.5.2026.09.22.21.19.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2026 21:19:45 -0700 (PDT) From: Chi-Wen Weng To: broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, cwweng@nuvoton.com, cwweng.linux@gmail.com Subject: [PATCH 1/2] dt-bindings: spi: nuvoton,ma35d1-spi: Add Nuvoton MA35D1 SPI controller Date: Wed, 23 Sep 2026 12:19:25 +0800 Message-Id: <20260923041926.425551-2-cwweng.linux@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260923041926.425551-1-cwweng.linux@gmail.com> References: <20260923041926.425551-1-cwweng.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chi-Wen Weng Add a Devicetree binding for the SPI controller found in the Nuvoton MA35D1 SoC. The controller provides two native chip-select outputs and supports additional GPIO chip selects through the generic SPI controller binding. Describe the controller register region, clock, reset, and optional interrupt resources. Signed-off-by: Chi-Wen Weng --- .../bindings/spi/nuvoton,ma35d1-spi.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/nuvoton,ma35d1-spi.yaml diff --git a/Documentation/devicetree/bindings/spi/nuvoton,ma35d1-spi.yaml b/Documentation/devicetree/bindings/spi/nuvoton,ma35d1-spi.yaml new file mode 100644 index 000000000000..4e1afbdb195d --- /dev/null +++ b/Documentation/devicetree/bindings/spi/nuvoton,ma35d1-spi.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/nuvoton,ma35d1-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton MA35D1 SPI Controller + +description: | + The Nuvoton MA35D1 SPI controller supports host and target operation and + provides two native chip-select outputs. GPIO chip selects are supported + through the generic SPI controller binding. + +maintainers: + - Chi-Wen Weng + +allOf: + - $ref: /schemas/spi/spi-controller.yaml# + +properties: + compatible: + const: nuvoton,ma35d1-spi + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + num-cs: + minimum: 1 + maximum: 2 + default: 2 + +required: + - compatible + - reg + - clocks + - resets + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + spi@40600000 { + compatible = "nuvoton,ma35d1-spi"; + reg = <0x0 0x40600000 0x0 0x10000>; + interrupts = ; + clocks = <&clk SPI0_GATE>; + resets = <&sys MA35D1_RESET_SPI0>; + + #address-cells = <1>; + #size-cells = <0>; + }; + }; +... -- 2.25.1