Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp243608pxb; Thu, 17 Feb 2022 03:11:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+nSMIQB7OIdmA1ne9ugdMfYrujSKswba/ihsnuivG5Qj/QbIuZy+rlkb8UZkm9HxiUI0o X-Received: by 2002:a63:4662:0:b0:35d:83aa:3d85 with SMTP id v34-20020a634662000000b0035d83aa3d85mr2075054pgk.530.1645096274844; Thu, 17 Feb 2022 03:11:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645096274; cv=none; d=google.com; s=arc-20160816; b=NgONHGJsHl7f0D9CSroziOtDQul+HgbQ6Q9qKSeMuEg3oTQe5izJ22Ayuimp3q7nI7 vAMD/XF8nFx0XD9XFhRl/UwBbIDKztzNWIJ6IbyxLTY9lGPLGmbjzxfqrNP9YJLwmIQy ueIrPRBAKFoKz7B/Fde5pslrDoreB6CpgDZ/9njeWZE3sdYaWAYUOpeJmHi3oxPusF5x nQH1uI4UEHW6gWeyJnhkj8WEVVrlNQEKaY1GVwCEduN+gP6pG850cyGVs/MCFYR4/a+r Dz3Pe8z4hL/kmRrWA5pgb6Ep2uCqg3k+Niogmz3Zd+T8KOLxWJBLQhKbiJy7I98OU5zn HmMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=umZ5SxdA4Cxf29AhtXPQmooOta7ssjI1BOVkwf9t1zI=; b=jlgFkWWy9LkyF/v9UXwsTXZ63jP5jo7vPWjdXgZKVhlgvM+GnnkvKUuVQVJG0YR3OT UKiJyLXFPiA89ByDZvdBgKXQpg1wMFruIly4wyjVIGpHb9HnK7THS0ioZcIZE+xGA4yd NuaHdJ8vDasUSpIVZGbzZwHZ9EE0yA42/AUfkbZkWLoSeChk2gPoF+cAbVXDEkVeI0HM udQLJ4bjiDPpNWh8sWVUXvhHg81ABUfiRvcO3I0i+M+ZFInR0h1PREBEE8o0Sjwut2ip TPrE1nJMOGa3oyVPPYVZin612R9/g7V95ZKUa+iHVEVkOvkTLC1KuhOskwsDChWR1d+a BDFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f1si23940992plg.503.2022.02.17.03.11.00; Thu, 17 Feb 2022 03:11:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237053AbiBQIn0 (ORCPT + 99 others); Thu, 17 Feb 2022 03:43:26 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbiBQInX (ORCPT ); Thu, 17 Feb 2022 03:43:23 -0500 X-Greylist: delayed 87897 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 17 Feb 2022 00:43:08 PST Received: from 5.mo552.mail-out.ovh.net (5.mo552.mail-out.ovh.net [188.165.45.220]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B40A12225FF for ; Thu, 17 Feb 2022 00:43:08 -0800 (PST) Received: from mxplan5.mail.ovh.net (unknown [10.109.146.173]) by mo552.mail-out.ovh.net (Postfix) with ESMTPS id ECDFB24EAF; Thu, 17 Feb 2022 08:37:04 +0000 (UTC) Received: from kaod.org (37.59.142.97) by DAG4EX1.mxp5.local (172.16.2.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 17 Feb 2022 09:37:03 +0100 Authentication-Results: garm.ovh; auth=pass (GARM-97G002328e9798-957d-4e35-ae92-239b6e2566ca, 6074F5EAC11FD030A47E229993F36105E76D55A4) smtp.auth=clg@kaod.org X-OVh-ClientIp: 82.64.250.170 Message-ID: Date: Thu, 17 Feb 2022 09:37:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 02/10] dt-bindings: spi: Add Aspeed SMC controllers device tree binding Content-Language: en-US To: Rob Herring CC: , , Mark Brown , Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , , Joel Stanley , Andrew Jeffery , Chin-Ting Kuo , , , References: <20220214094231.3753686-1-clg@kaod.org> <20220214094231.3753686-3-clg@kaod.org> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [37.59.142.97] X-ClientProxiedBy: DAG2EX1.mxp5.local (172.16.2.11) To DAG4EX1.mxp5.local (172.16.2.31) X-Ovh-Tracer-GUID: 03c1adce-a0aa-4472-8090-987f0bcc8d30 X-Ovh-Tracer-Id: 662029147249740676 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrjeejgdduvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfhisehtkeertddtfeejnecuhfhrohhmpeevrogurhhitggpnfgvpgfiohgrthgvrhcuoegtlhhgsehkrghougdrohhrgheqnecuggftrfgrthhtvghrnhepudeutdegudegheefvdefhfeiteeifefhieduueethfffkeeiudeuueehgedugeefnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucfkpheptddrtddrtddrtddpfeejrdehledrudegvddrleejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehmgihplhgrnhehrdhmrghilhdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomheptghlgheskhgrohgurdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/15/22 22:06, Rob Herring wrote: > On Mon, Feb 14, 2022 at 10:42:23AM +0100, Cédric Le Goater wrote: >> The "interrupt" property is optional because it is only necessary for >> controllers supporting DMAs (Not implemented yet in the new driver). >> >> Cc: Chin-Ting Kuo >> Signed-off-by: Cédric Le Goater >> --- >> .../bindings/spi/aspeed,ast2600-fmc.yaml | 92 +++++++++++++++++++ >> 1 file changed, 92 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml >> >> diff --git a/Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml b/Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml >> new file mode 100644 >> index 000000000000..ed71c4d86930 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml >> @@ -0,0 +1,92 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/spi/aspeed,ast2600-fmc.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Aspeed SMC controllers bindings >> + >> +maintainers: >> + - Chin-Ting Kuo >> + - Cédric Le Goater >> + >> +description: | >> + This binding describes the Aspeed Static Memory Controllers (FMC and >> + SPI) of the AST2400, AST2500 and AST2600 SOCs. >> + >> +allOf: >> + - $ref: "spi-controller.yaml#" >> + >> +properties: >> + compatible: >> + enum: >> + - aspeed,ast2600-fmc >> + - aspeed,ast2600-spi >> + - aspeed,ast2500-fmc >> + - aspeed,ast2500-spi >> + - aspeed,ast2400-fmc >> + - aspeed,ast2400-spi >> + >> + reg: >> + items: >> + - description: registers >> + - description: memory mapping >> + >> + clocks: >> + maxItems: 1 >> + >> + interrupts: >> + maxItems: 1 >> + >> +patternProperties: >> + "@[0-9a-f]+": >> + type: object >> + >> + properties: >> + spi-rx-bus-width: >> + enum: [1, 2, 4] >> + >> + required: >> + - reg >> + >> +required: >> + - compatible >> + - reg >> + - clocks >> + >> +unevaluatedProperties: false >> + >> +examples: >> + - | >> + #include >> + #include >> + #include >> + >> + spi@1e620000 { >> + reg = < 0x1e620000 0xc4 >> + 0x20000000 0x10000000 >; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + compatible = "aspeed,ast2600-fmc"; >> + clocks = <&syscon ASPEED_CLK_AHB>; >> + status = "disabled"; > > Why is your example disabled? Drop 'status'. my bad. I took the basic definition of the SoC and the devices are activated in the boards. I will fix in v2. Thanks, C. > >> + interrupts = ; >> + flash@0 { >> + reg = < 0 >; >> + compatible = "jedec,spi-nor"; >> + spi-max-frequency = <50000000>; >> + status = "disabled"; > > Ditto. > >> + }; >> + flash@1 { >> + reg = < 1 >; >> + compatible = "jedec,spi-nor"; >> + spi-max-frequency = <50000000>; >> + status = "disabled"; >> + }; >> + flash@2 { >> + reg = < 2 >; >> + compatible = "jedec,spi-nor"; >> + spi-max-frequency = <50000000>; >> + status = "disabled"; >> + }; >> + }; >> -- >> 2.34.1 >> >>