Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1277920pxj; Wed, 19 May 2021 02:19:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbaePS8VaKiNb3Dwg0rAa4NwnaDO74YHtOsclFE2y6qxw2Y5zEG5bPadOZUc/EQuAC2wVL X-Received: by 2002:a6b:ed11:: with SMTP id n17mr8468478iog.171.1621415969820; Wed, 19 May 2021 02:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621415969; cv=none; d=google.com; s=arc-20160816; b=RsAoIkbkK8szBzliceBKB+uio+UDAl38Cn3W7GfvXJ3MLR5d/s1xUFDr3Ur+m3udfW FvKY44S+/4Jfsp/huEtF/E2ipGQQlRpJZATh0q0PqUdfYfSIoSX+u0mTW1ALQ6FA/RXA 97JDhv859V7gy14tzN63KsvZHnEhq6gEle/rYyAG2NHIoC2BAWE3Z/apmLzWvLfCHicX UZYhUjPx1hvd1nyefb77gcD/GtOpt1qkDl4RlHEVPpnUIsxZGpwoMMwD17FN5+ps8B5b /FSeAthRdmtvlJqbghlscArJ2oFuGsXH4z97PN3bsVpe3sBjeOfRU4wwMl1jF/MDMs8T Hw+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bVEEpIXI/Y5CtVnRyxBQ3wjVOQ3Vlf0v5827celIsKo=; b=KyKwvqgUhDURyUz3u37JCeciic+FHJgd494IjozL91Z82uKI6zk9D7zMbj1Mn0+1V/ yf5Uz98XsX18LMZDkJZ6zLJBLspu4DjEJv0lZmRL/ZSrr0gOqLjP5KfO0dOyJ4358za8 tlWxYDXkW+VKSsll4lbeXwPlDjx8V1hgU6gW5i1pxrRwrtABk8kuyWyVWK+dMOVaUFZT fi7cavkJfdcLzgjaWM/iGVUTj9BYKOv83AmUmb57P1/DNToLPKA1md+cjPkJwMzFiwIW YYT6+CzWOkRSLPZrv622ClNOGVp/l3WrtsHQYtQ4JZ1VtP3u6dxOrPIoGhipgy55RDBe 1BpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nMBqhSpQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t14si650301ios.45.2021.05.19.02.19.17; Wed, 19 May 2021 02:19:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nMBqhSpQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S245165AbhEQXrv (ORCPT + 99 others); Mon, 17 May 2021 19:47:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231741AbhEQXru (ORCPT ); Mon, 17 May 2021 19:47:50 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A668CC061756 for ; Mon, 17 May 2021 16:46:33 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id v6so9318510ljj.5 for ; Mon, 17 May 2021 16:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bVEEpIXI/Y5CtVnRyxBQ3wjVOQ3Vlf0v5827celIsKo=; b=nMBqhSpQSNGHZUcZtE4vR9rjwvtGJDraTV1gmLxW1M85AMzZj0UzVm74oTMMebnUXQ WUBsl1vtJj18d0zmOJ/Ho4JD+GGT/lxzvAgQM3kQLTTz7THuWCxwFpSINd+DoeUIATeE lDNarF+k4qT0/7akXNOMqzx4n8ZM0zvQcuV5vwpUPzIcTtX2PgJZpHhermsa/S5P/wH3 GiM4XuG5hqEo/bN9easQvihiBQ4ax8Nxh1K6JcWyJ01fE8YTj1yW1GnYxAx7EeB4ogfa zgfKczId40OPPuzodgNZt66+dl1nVRCGQuj6m69KMDcKLhgejMwCl+gTOL9cWO4YBriN /emg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bVEEpIXI/Y5CtVnRyxBQ3wjVOQ3Vlf0v5827celIsKo=; b=Hxa9FIEjfOk8P3Np2dsB5UZaNG6RZjwLwwKYuvWDVLd7kzHduFO+OhQ+ZDIwLPJ9Nx AkrMEKwmeWWY7P+cbfwsj5NgQxkKHmYG4FpvKN78nLy3fAGQgQiBEL4/aqJvECY6sBPn KsFrpPjvrlNUjM3KetRnw7d87vtKo+5F+NRuxlJ1+p10N17Hm9Jp8Ux6A+3nfDJyvW2o T0T/7ROg83wqKABOr7Hbg4TJn+uakSVMIr0KrfuV7R7/QEGm56DmYCT+Aw+8AdfkuZma pOw7dLjF0fEG87Fv1MXLSVwIa9oIAtWMuN1+xgWbkixCNhShnJBiW3sX/9kJ5sb+aQyH zowQ== X-Gm-Message-State: AOAM531hot5tpTFkvEmzSY6NgEpyotX0lmYIe9gdZ73Yud1X0ZybmAy7 sd+xw55R+aArxRTJUlytiCNEvI8hm23ULooZvECu1yj6JhR56Q== X-Received: by 2002:a2e:90c7:: with SMTP id o7mr1613773ljg.368.1621295192148; Mon, 17 May 2021 16:46:32 -0700 (PDT) MIME-Version: 1.0 References: <20210517193205.691147-1-clabbe@baylibre.com> <20210517193205.691147-5-clabbe@baylibre.com> In-Reply-To: <20210517193205.691147-5-clabbe@baylibre.com> From: Linus Walleij Date: Tue, 18 May 2021 01:46:20 +0200 Message-ID: Subject: Re: [PATCH 4/5] ARM: gemini: add device tree for edimax NS2502 To: Corentin Labbe Cc: Arnd Bergmann , Olof Johansson , Rob Herring , SoC Team , Hans Ulli Kroll , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Corentin, this is looking nice! Just one thing: On Mon, May 17, 2021 at 9:32 PM Corentin Labbe wrote: > The edimax NS2502 is a NAS box running a SL3516 SoC. > > Signed-off-by: Corentin Labbe > +&flash { > + status = "okay"; > + /* 8MB of flash */ > + reg = <0x30000000 0x00800000>; No pin control setting? I guess it may work but this doesn't hurt (I think): pinctrl-names = "enabled", "disabled"; pinctrl-0 = <&pflash_default_pins>; pinctrl-1 = <&pflash_disabled_pins>; > + partitions { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + partition@0 { > + label = "RedBoot"; > + reg = <0x00000000 0x00020000>; > + read-only; > + }; > + partition@20000 { > + label = "kernel"; > + reg = <0x00020000 0x00700000>; > + }; > + partition@720000 { > + label = "VCTL"; > + reg = <0x00720000 0x00020000>; > + read-only; > + }; > + partition@740000 { > + label = "CurConf"; > + reg = <0x00740000 0x000a0000>; > + read-only; > + }; > + partition@7e0000 { > + label = "FIS"; > + reg = <0x007e0000 0x00010000>; > + read-only; > + }; > + }; > +}; Is the FIS broken since you hardcode the partitions? Doesn't this work: partitions { compatible = "redboot-fis"; /* Eraseblock at 0x7e0000 */ fis-index-block = <0xfc>; }; (Needs CONFIG_MTD_REDBOOT_PARTS) Yours, Linus Walleij