Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3183202rwo; Mon, 24 Jul 2023 07:27:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlFhXP7cPKX/rqrF0s79ZDntwh3GTXhZMAslETLbk0Yeha1p/eOsfYuVRDmJb5Gm0A+1+X0L X-Received: by 2002:a17:906:21c:b0:98e:419b:4cc6 with SMTP id 28-20020a170906021c00b0098e419b4cc6mr9749205ejd.70.1690208833254; Mon, 24 Jul 2023 07:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690208833; cv=none; d=google.com; s=arc-20160816; b=cFihM7PIfpDCi7oTXyffdtzjCH4UocbPh4HBAc0u3VNupmYWnAU5ukO0HD85oR+NcT svvG61RIaxeHoKJFnI7RsJGXMDKedMAnpMrXV2Zx00lDN6J8kYRPZEzcS98HrFKfrP8W RbRXynEpcb3OUCMEAdO3ehHNAkM4hNn7PL0/6c/8/EJZDrOOkzb7swngWmw4UK+FOAoJ pihr5lqFWoK/fJxQ9gX0ti1iIN1c0PhPcpVVHHjvGAcla62n3XZA0LLHgg5JcBBqzGKU UcmwIomlrRVtoRMK7qPCC0itooOf48Z8NpWXVWUILLirbZyEdQgmMyVmpGRpMPSg9bH0 XXng== 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:dkim-signature; bh=+lEDKhusGdw1782Vez2SrPDAzeSLm2L/BTPf8C05jH8=; fh=3LA0R0NHX02k+AycQiUe9kHb22kU1a9ylvQ1Gl2wE6g=; b=I7qFcDynFayMEPB4FP4xYdiWRPnN3bEQiDHyrYW/DAln199KjCQA63Yp18ZkdzoiWC N8mGqbJqliu3bUyIhNsRuI/sQmh0BWcY8YKUnzMy8sFnDLukNQhptNy/JIgj65mPyMft 5T+BtLuOTCvf4N/qSYbiUdb24lpBn8WQ+WNAKd7IzVTQckIqvKJ29eX6rDXx5uuZQYbq E4PRrxBkVLUV7oXZFh6RHI9DsWDehLo4Fy2lUFG7JtqPYPPa+uTQY+XeZQXfwUdwlJew mIT55xX6q0Lntl+RUFz/MKwa9T/eLy2WiaCShit5b5I1ZqNXD96bM4UpU1JLfuNCgClV fm5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VsS3uEed; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020a170906351000b0099b6c03e567si5006604eja.353.2023.07.24.07.26.48; Mon, 24 Jul 2023 07:27:13 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=VsS3uEed; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231397AbjGXNvh (ORCPT + 99 others); Mon, 24 Jul 2023 09:51:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbjGXNvX (ORCPT ); Mon, 24 Jul 2023 09:51:23 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 742A83A9B for ; Mon, 24 Jul 2023 06:48:24 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-991c786369cso694608966b.1 for ; Mon, 24 Jul 2023 06:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690206503; x=1690811303; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=+lEDKhusGdw1782Vez2SrPDAzeSLm2L/BTPf8C05jH8=; b=VsS3uEedy8IJ+nzZiLKn+YXPGocfXhv0LzQMetVQqWk4xC2uHlcr/IP4tieBORitrw nUpu7RcCzHMtqpiWBd8Krd6zGcjpa2VyaPxxG6SUvrffRjD5iFdirgekjDx7vDNe4RCN J9Dn0kQuikzyMxHSjQk8BVBDSPKN0v67dGPOuo34GAtHXNPXW2ZIMidelaW8EWFUuB8u nQBMy1jonUHN48wI0kgXSgm4Kl5W4TgvGeFkdj9FRQeOFqubvv3h/w+KvkwlPgKjiCSf Cl+RLMgFkZFAZwUh/dspBYYyXqJzU2QHWEaCL9oB40FPP9hyfV228P4BtEDaFt1Uxu9d qlzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690206503; x=1690811303; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+lEDKhusGdw1782Vez2SrPDAzeSLm2L/BTPf8C05jH8=; b=f2CcLD+S5BUYyLEYK1wqgtrFGVZErbcC3mmSfLEzcJmAIi5X81hwmQrImPrggl+nGL yHbC44nzMUM4bD1OexEDAf9AhkimoDX7ipjK8jKVSzPS2+tdpDZjvSquynzCrCX0dN64 TaMAzCtKZHSKSG0SLMUkJaIp2oVXzRARx6RWejxfJ2bglBjbTtTn8/hN/nybWx6C67Cu 6HN4jGr4b4qQnGoDkW7olVO18u249q0QX8xT/ddU/NL0gJKGtmJ66GRQe1qz4VMcKSEr DmRRy+Ftbf08NZCl+/CRifr4tnJpLW/VJuwFnNddzchHxlMd9TZY7uqriNPWyfE14dy2 NWoQ== X-Gm-Message-State: ABy/qLZblIIYHXW+ALZvCKg5aHISVdC/sYvWBuE2uYEPAcXHrXrePM6o rL7FD3C9bFcsHoqgHgmeDjmWFg== X-Received: by 2002:a17:906:9bf6:b0:988:6e75:6b3d with SMTP id de54-20020a1709069bf600b009886e756b3dmr9402624ejc.33.1690206502780; Mon, 24 Jul 2023 06:48:22 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id xo22-20020a170907bb9600b0098860721959sm6715356ejc.198.2023.07.24.06.48.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Jul 2023 06:48:22 -0700 (PDT) Message-ID: Date: Mon, 24 Jul 2023 15:48:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v3 35/42] ARM: dts: ep93xx: add ts7250 board Content-Language: en-US To: Nikita Shubin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Hartley Sweeten , Lennert Buytenhek , Alexander Sverdlin , Michael Peters , Kris Bahnsen Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230605-ep93xx-v3-0-3d63a5f1103e@maquefel.me> <20230605-ep93xx-v3-35-3d63a5f1103e@maquefel.me> <4b0f8b39-bec5-6f5d-1b98-8145e334ed94@linaro.org> <2c7e838ae4e49b72185626935f886d07895e8192.camel@maquefel.me> From: Krzysztof Kozlowski In-Reply-To: <2c7e838ae4e49b72185626935f886d07895e8192.camel@maquefel.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 24/07/2023 15:41, Nikita Shubin wrote: >>> diff --git a/arch/arm/boot/dts/cirrus/ep93xx-ts7250.dts >>> b/arch/arm/boot/dts/cirrus/ep93xx-ts7250.dts >>> new file mode 100644 >>> index 000000000000..625202f8cd25 >>> --- /dev/null >>> +++ b/arch/arm/boot/dts/cirrus/ep93xx-ts7250.dts >>> @@ -0,0 +1,145 @@ >>> +// SPDX-License-Identifier: GPL-2.0 >>> +/* >>> + * Device Tree file for Technologic Systems ts7250 board based on >>> Cirrus EP9302 SoC >>> + */ >>> +/dts-v1/; >>> +#include "ep93xx.dtsi" >>> +#include >>> + >>> +/ { >>> +       compatible = "technologic,ts7250", "cirrus,ep9301"; >>> +       model = "TS-7250 SBC"; >>> +       #address-cells = <1>; >>> +       #size-cells = <1>; >>> + >>> +       chosen { >>> +       }; >>> + >>> +       memory@0 { >>> +               device_type = "memory"; >>> +               /* should be set from ATAGS */ >>> +               reg = <0x00000000 0x02000000>, >>> +                     <0x000530c0 0x01fdd000>; >>> +       }; >>> + >>> +       nand-controller@60000000 { >> >> Where is this address? It does not work like that. If this is part of >> SoC, then should be in DTSI and part of soc node. If not, then it is >> some other bus which needs some description. Top-level is not a bus. >> > > It's some kind of EBI, but it doesn't need a driver it is transparent I did not mention any drivers. It's not really important here. > on ts7250, the logic is controlled through installed CPLD. > > The EBI it self is a part of the SoC through: So should be in soc. > > https://elixir.bootlin.com/linux/v6.5-rc3/source/arch/arm/mach-ep93xx/soc.h#L35 > > EP93XX_CS0_PHYS_BASE_ASYNC to EP93XX_CS0_PHYS_BASE_SYNC. > > So for ts7250 this includes: > > - NAND > - m48t86 > - watchdog > > I don't even know how to represent it correctly, would "simple-bus" > with "ranges" defined suit here, so it will represent hierarchy but > won't do anything ? You said it is part of soc, so why shouldn't it be in the soc? > >> You should see errors when testing dtbs with W=1. > > Strangely - i don't see any, but anyway the above will change. Best regards, Krzysztof