Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4890509rwi; Mon, 17 Oct 2022 12:12:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5phaSPhrU8hB9ih8wxmZe+x24AIA3T7cjtrzAOqB6fZ8jxQL/BRiVCVakPW1z2TpSlPunE X-Received: by 2002:a05:6402:2546:b0:45d:8bff:7afc with SMTP id l6-20020a056402254600b0045d8bff7afcmr6589062edb.302.1666033925801; Mon, 17 Oct 2022 12:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666033925; cv=none; d=google.com; s=arc-20160816; b=X9jSLWSARuYtRJPdwns+9WkiiCqqniIuTgHeTtpQ8rrwDAAXJdKmXsP4llBZ/mLXpo roon4rbRNtHlwZIWehuw8/Dm0hNDheHlMICDeHDJF9mrJ0dbyM6FIabHC28vTWA8kyBo 6+FP95NFL7j6yCWoHDsRbdAkbqB9gCb32c3LOqCKit0+TdighIa88UbPTGTEHPUT8OET Q+TeWgn+fOo0/zNM4dHhQtWpSRfVaGUGSDsh/ayBo2DiMR10HuvKcGtiau0eSxya2kS2 5uIvCmwT5l+uN8+du5w+OcIrbrhHK5bkR01cXGqgIzcQpa8aq1zA0HOUw+0zr7rOs1pE f92g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GiJGN1wykXSQ00DVk7YPI2dlZqV1IWIoUviA+sQDHg0=; b=UPI+cONMWovMjHZZhoxHCSM/LQhw/pP2oDPy6qQBPxUfbQWr7uoE2XRDDDV7mt1L/+ w0giTxnYUaLj85jTSJN9j2AiEbhZk6XVSjNSoc4S7MS4ZNcgfoNggSFQodD9Sv/kXyj6 1Hjz7QHkm+HZahzIxz7JOyE0x/4TSjd5f5kSoi70DU4kMBM63NnSADEh/OyyBp65nh9l EffJz42RFR63PShBAV0T2d+wvmygbK3HuZ1XHpmOCerm4o96q/hrP9cogZ+nLYCmdVRe zBZ/YusyKCDzIzPgDn3UrDPZ+BF+BY9S+HBS8KJtyNuv/W8omhIo6hXAkhC8L/DR0RSS s9lg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg16-20020a170907a41000b0078dd12d0a9fsi9094223ejc.548.2022.10.17.12.11.39; Mon, 17 Oct 2022 12:12:05 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230338AbiJQSvm (ORCPT + 99 others); Mon, 17 Oct 2022 14:51:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiJQSvk (ORCPT ); Mon, 17 Oct 2022 14:51:40 -0400 Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24617691A5; Mon, 17 Oct 2022 11:51:39 -0700 (PDT) Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1364357a691so14292550fac.7; Mon, 17 Oct 2022 11:51:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GiJGN1wykXSQ00DVk7YPI2dlZqV1IWIoUviA+sQDHg0=; b=aFFM2cj8FVKLO9WHUnLln9BHixgHauwrvUFIze8pEmvCiee4au5WZBJL/amWOOlZx3 +LT7FZju2fq/N5Gnkv3I8PEfYZg++eO6+MMrmfGgtCVHy5oKSemQNOb04J0mywrLGZFR chRtqL6plb7xCKZjwQDVA8eEGTiyozAva71gAXUM0ZpL5sZDKI2UGqUq4eq8+XWNqHYy qJsLQ3WPFTDxjsqWIO5i92HvjL094k04XEBY3n7YuWohHJrf3hjsPuaDV67/iVNeBOeO V+4dLRgb7Cj07FUmYYTrEuoMNp4xDLhdLx5HmyJiurjHfSRcvWibBJI0AWjxdHtpHGNN RpNA== X-Gm-Message-State: ACrzQf1ArwvWRoKvQ5zOfREto6TRSdBge5AN49NElSMr0BjfchJa+9Mz Rnia/gBSwDSSvNn4oaGViDUu+kQT4g== X-Received: by 2002:a05:6870:6488:b0:131:a45b:a8ca with SMTP id cz8-20020a056870648800b00131a45ba8camr6395086oab.260.1666032698384; Mon, 17 Oct 2022 11:51:38 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id 52-20020a9d0bb7000000b006619f38a686sm5073054oth.56.2022.10.17.11.51.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 11:51:37 -0700 (PDT) Received: (nullmailer pid 2273470 invoked by uid 1000); Mon, 17 Oct 2022 18:51:38 -0000 Date: Mon, 17 Oct 2022 13:51:38 -0500 From: Rob Herring To: =?iso-8859-1?Q?C=E9dric?= Le Goater Cc: linux-spi@vger.kernel.org, Mark Brown , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, Joel Stanley , Andrew Jeffery , Chin-Ting Kuo , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Naresh Solanki Subject: Re: [PATCH linux v2 1/3] spi: dt-bindings: aspeed: Add a ranges property Message-ID: <20221017185138.GA2264550-robh@kernel.org> References: <20221017091624.130227-1-clg@kaod.org> <20221017091624.130227-2-clg@kaod.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221017091624.130227-2-clg@kaod.org> X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Mon, Oct 17, 2022 at 11:16:22AM +0200, C?dric Le Goater wrote: > "ranges" predefines settings for the decoding ranges of each CS. Please explain the problem, not what the change is. > Cc: Naresh Solanki > Cc: Chin-Ting Kuo > Signed-off-by: C?dric Le Goater > --- > .../devicetree/bindings/spi/aspeed,ast2600-fmc.yaml | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml b/Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml > index fa8f4ac20985..a11cbc4c4c5c 100644 > --- a/Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml > +++ b/Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml > @@ -38,6 +38,14 @@ properties: > interrupts: > maxItems: 1 > > + ranges: > + minItems: 1 > + maxItems: 5 > + description: | > + Defines the address mapping for child devices with four integer > + values for each chip-select line in use: > + 0 > + > required: > - compatible > - reg > @@ -58,6 +66,7 @@ examples: > compatible = "aspeed,ast2600-fmc"; > clocks = <&syscon ASPEED_CLK_AHB>; > interrupts = ; > + ranges = <0 0 0x20000000 0x2000000>, <1 0 0x22000000 0x2000000>; By having ranges here, 'reg' in child nodes become translatable addresses. But they are not because they are SPI chip-selects. Only memory mapped addresses should be translatable. Probably the ranges here should be in 'reg' of the controller. > > flash@0 { > reg = < 0 >; > -- > 2.37.3 > >