From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F13A1C233C for ; Tue, 5 Nov 2024 08:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.121.94.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730796121; cv=none; b=IadQT95KPF9ppY0hTjJGctbBQF/I2Ta4YINBWgy18mALXB5+lk/SqM/Spyhgy7g3oumgONJQB5EU3fiUZhjK5K6NJUfle7aZGcpHuWFIV+pmCBBYv/02MlO4QlxnUWDB9GQTcbfs/MDvmcRkEnSkh8XW6qKGQC2ZjpGOlsw3qeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730796121; c=relaxed/simple; bh=PghXW7gaZF1lHy96HgwX9n9i2uXrKk+8Si62faTbS18=; h=Date:Message-Id:From:To:Cc:In-Reply-To:Subject:References; b=gcDYirq1mDmTxQ2m6NEyg8s9h/hZx7hxpRwKI0nGtVfX+VZz+1XfpW8XHivE9flSyGWHRkImAu8p7GzxsGST9XaBMdx2i/5DzCmn374FZqwwGlHhQmm84ieD0VyqhT1SQ3ERGuoPUed+IwFEK62VtohWbl0NyShHfBnFA5MBbKI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xs4all.nl; spf=pass smtp.mailfrom=xs4all.nl; dkim=pass (2048-bit key) header.d=xs4all.nl header.i=@xs4all.nl header.b=lYgRInHZ; arc=none smtp.client-ip=195.121.94.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xs4all.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xs4all.nl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=xs4all.nl header.i=@xs4all.nl header.b="lYgRInHZ" X-KPN-MessageId: cbd3c289-9b51-11ef-8d51-005056999439 Received: from smtp.kpnmail.nl (unknown [10.31.155.5]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id cbd3c289-9b51-11ef-8d51-005056999439; Tue, 05 Nov 2024 09:41:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=subject:to:from:message-id:date; bh=jefnxVo5g2H0Su9GziWcx7xJMa463Zc+Yp3+Yh3BVHg=; b=lYgRInHZEGEGH/dOZfkoaC8/iZWU5AkH6VZn0Alk60Z7+RyVneblrEOPFdUR7WL4sVA518nO5q+Q/ j8FO6vztuP1v3Q8BHY8VIY1JRqlyLJOqI/+EUFfvMXLOA7AzUfvvKPD0piD+1lHtE/nUArRLOa5bDW 2/fGR02W9ejHFdMvvXUHE6PBsmW/BtMUB1mWeBVOegRgIBtxqXHg920URl5oUzrIg3AnliULfxbsiB 6yRxu6JC8aVflWKzkebX+egmQeogHSS6ol45qgsRZ1lSxd9UgtG8oFiglt+54POChTFGLZD/3Sgwhr 9F7J0MYHzEYaCS9lV1tWPVKR9z0fe+w== X-KPN-MID: 33|DvtP+JdYvzSblrsg267cZse9/LQIrxsjK7xbTQSHViMueZiHcwJ9JP7t5Z0peDU eiukTx7x+7l/cI5g28XYgCXH+5MSPTXWzfQRdkH7uEL4= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|JvOqZX1LaV8o6V89k1e3f0Nll+2+Ct0klrl86zRy/XeEYFMeTkVlUzc6ubdJbXB HBTFMVcQRcXCMRT/CynX8wA== Received: from bloch.sibelius.xs4all.nl (80-61-163-207.fixed.kpn.net [80.61.163.207]) by smtp.xs4all.nl (Halon) with ESMTPSA id cbfa2edc-9b51-11ef-b66d-00505699b758; Tue, 05 Nov 2024 09:41:49 +0100 (CET) Date: Tue, 05 Nov 2024 09:41:48 +0100 Message-Id: <87a5ee3wdv.fsf@bloch.sibelius.xs4all.nl> From: Mark Kettenis To: j@jannau.net Cc: marcan@marcan.st, sven@svenpeter.dev, alyssa@rosenzweig.io, broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, j@jannau.net, towinchenmi@gmail.com, conor.dooley@microchip.com In-Reply-To: <20241105-asahi-spi-v4-1-d9734f089fc9@jannau.net> (message from Janne Grunau via B4 Relay on Tue, 05 Nov 2024 09:08:29 +0100) Subject: Re: [PATCH v4 1/3] dt-bindings: spi: apple,spi: Add binding for Apple SPI controllers References: <20241105-asahi-spi-v4-0-d9734f089fc9@jannau.net> <20241105-asahi-spi-v4-1-d9734f089fc9@jannau.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: > From: Janne Grunau via B4 Relay > Date: Tue, 05 Nov 2024 09:08:29 +0100 > > From: Hector Martin > > The Apple SPI controller is present in SoCs such as the M1 (t8103) and > M1 Pro/Max (t600x). This controller uses one IRQ and one clock, and > doesn't need any special properties, so the binding is trivial. Matches what is currently in use for U-Boot and OpenBSD. > Signed-off-by: Hector Martin > Reviewed-by: Rob Herring > Acked-by: Nick Chan > Reviewed-by: Conor Dooley > Signed-off-by: Janne Grunau Reviewed-by: Mark Kettenis > --- > .../devicetree/bindings/spi/apple,spi.yaml | 62 ++++++++++++++++++++++ > 1 file changed, 62 insertions(+) > > diff --git a/Documentation/devicetree/bindings/spi/apple,spi.yaml b/Documentation/devicetree/bindings/spi/apple,spi.yaml > new file mode 100644 > index 0000000000000000000000000000000000000000..7bef605a296353a62252282af4ba45a71b20b7b6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/apple,spi.yaml > @@ -0,0 +1,62 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/spi/apple,spi.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Apple ARM SoC SPI controller > + > +allOf: > + - $ref: spi-controller.yaml# > + > +maintainers: > + - Hector Martin > + > +properties: > + compatible: > + items: > + - enum: > + - apple,t8103-spi > + - apple,t8112-spi > + - apple,t6000-spi > + - const: apple,spi > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + power-domains: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - clocks > + - interrupts > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + spi@39b104000 { > + compatible = "apple,t6000-spi", "apple,spi"; > + reg = <0x3 0x9b104000 0x0 0x4000>; > + interrupt-parent = <&aic>; > + interrupts = ; > + #address-cells = <1>; > + #size-cells = <0>; > + clocks = <&clk>; > + }; > + }; > > -- > 2.47.0 > > > >