Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9174645rwl; Wed, 11 Jan 2023 02:24:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXsFvwDqsCAcYqIonIn+wJHepSYcSj7BLSPQA+VpEikzIWdUnottTyGBkkjdcpO7XRte5Des X-Received: by 2002:a17:90a:5d08:b0:219:4578:6409 with SMTP id s8-20020a17090a5d0800b0021945786409mr74771366pji.41.1673432647235; Wed, 11 Jan 2023 02:24:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673432647; cv=none; d=google.com; s=arc-20160816; b=bMijdMXuzFK5deJrtihUUIzSZ0fGElIbOgRBMHBmCU0X1m0aJksVLvdmqtCM9nxZQ+ cT8XRNnNvdLTPF/lPPATzfSS5/Ucn//JFZdOLaSQAX6AZDzLsu6DJNSFqvVkQ4c2zXD9 V8K7Iy1cbOyR1VWwCzPK8ioohELemfoDlM98w3D0WXlAt2KKiTaZmlXkUiBit4uftLfh nSASS+s0sCXoWr8a7UjlGkQ41q/kXNB/2lqozRyIqXZ9jhmdVl0WZswfAjwCOSX4ZyxR SE4ZdbXLvWStjs0L/J2dHZgkvm5RcRClKP0j7WxoWx0wNNbLNi04dgf90sk6w9ribk2U BnsQ== 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=eZY9at94V7P9Q8ZmcTLckeYfqsa9rY4dut4aTvEClmo=; b=eNOozUM+3v3Up5YeYXL563gGZYcaM1RAHABsFf4dib1ogi9S6tzw+B2g7SNZAbJ1B/ B+HHJkUX3jOVu1hqHijcgKh53P8bu1ASMA2QVKza7O7ceH/Z8A6fOQlaWNHvya5u7ucq Ehqkphrrn2aGYye+u8t+zy0pOj4cIGr3TC+qvez7+fNKnNisL/BFfadymetq7ZJvOQKp NWYRDJ9v8zvLtkeDd47gWuXBhmhWkBpaALXYCrPeE0xZBq0Dj3Q14+kso489uacaniuF 5FCC6gcrvc0daydX3sAQ4zxYgdqRbO3ZKK1MW7ooCm5e4vLTczPFZDL2UGWvxM0n351H ThNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=twfwFW4S; 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 t70-20020a638149000000b004ad28ffca47si12700553pgd.572.2023.01.11.02.24.00; Wed, 11 Jan 2023 02:24:07 -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; dkim=pass header.i=@linaro.org header.s=google header.b=twfwFW4S; 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 S238398AbjAKJQQ (ORCPT + 53 others); Wed, 11 Jan 2023 04:16:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232241AbjAKJPg (ORCPT ); Wed, 11 Jan 2023 04:15:36 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05A95140B9 for ; Wed, 11 Jan 2023 01:12:29 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id ay40so10626700wmb.2 for ; Wed, 11 Jan 2023 01:12:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=eZY9at94V7P9Q8ZmcTLckeYfqsa9rY4dut4aTvEClmo=; b=twfwFW4SzfZQSlglT1rzGB/JM5GiX+NnC0Sjqeo+j0cHLoNw/PxwBuXCtV43e8UNP7 zM6oZ/ggYwOE1F2Xp6WBwp4i4u2IMVqKwLsE8CtSafCz0EMo91UMT82VEGRFa6m0WvGN u98Ro3rDWXqHCyftZk+LtQQ085e73sQDoxmJ267U/P4XWh03Gq6FZtsamq6juFRwTjxD yfpopjSA+Nmwb7nmhyy1bQm8NmE02GLi0u483oa89tQf/cylcLMk5E0uoMaZh3ydEeCH s1Bigfqp3H39oDsRcsa7smNSI+rUcpWW1Ja5SSB+phaNMrgxCGmdGI+l2tiyxp4a3kQk GX7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=eZY9at94V7P9Q8ZmcTLckeYfqsa9rY4dut4aTvEClmo=; b=0TpCs4YhLfkCLMrtSxWCZ2plrI9EnVMlzGH+35ZBFrOr3rsWOhyzU/5ZNStF+iVjQ4 UGji1hcgIkd6VRo+5oIN2pLD2EdLJYQVCdOXImhfzjR+qwMY+fGsHJikHFGxmEaWt98w ZtgUKgCNZFnbrB03wv0k+KD1MztcvhArm4XWmqFse9BTVOacOUM63pWRDnWn5Z4hOjpf ZP3KJFqygHUEDlSFC0egcPGFEpSaMyrdOtcuW0s7nPzob2vCJ2Rz9ckDrK7utBQ5ySxo NlFgIo5rIOn+2CSyHDzRaOlmFBo3zpYjjFDDlT88xw2Mu7GUeXPCXh2qhQIISpvhJMo1 p/wg== X-Gm-Message-State: AFqh2krCm30wX+EojOj6DSO0RfA1JsnbjsoazbOAfeobiwgUGVrkDsUn tYJ0hC9zdu8tEJ1ei5g2MTvjCA== X-Received: by 2002:a05:600c:5114:b0:3d9:fa37:e42d with SMTP id o20-20020a05600c511400b003d9fa37e42dmr3596584wms.17.1673428347726; Wed, 11 Jan 2023 01:12:27 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id h10-20020a1ccc0a000000b003d237d60318sm17928277wmb.2.2023.01.11.01.12.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Jan 2023 01:12:27 -0800 (PST) Message-ID: <547ef944-be4d-365e-c639-91812286e42a@linaro.org> Date: Wed, 11 Jan 2023 10:12:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 4/7] arm64: dts: qcom: Add msm8939 SoC Content-Language: en-US To: Bryan O'Donoghue , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, benl@squareup.com, shawn.guo@linaro.org, fabien.parent@linaro.org, leo.yan@linaro.org, dmitry.baryshkov@linaro.org, Jun Nie , James Willcox , Joseph Gates , Max Chen , Zac Crosby , Vincent Knecht , Stephan Gerhold References: <20230103010904.3201835-1-bryan.odonoghue@linaro.org> <20230103010904.3201835-5-bryan.odonoghue@linaro.org> <6e594438-843a-d03e-5276-d6316a9dc2c0@linaro.org> <88d66834-ca80-888b-e56e-7694e84b6eae@linaro.org> <411a1a02-568e-3695-0a24-0681fbe9f265@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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 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 10/01/2023 14:42, Bryan O'Donoghue wrote: > On 10/01/2023 13:24, Krzysztof Kozlowski wrote: >> On 10/01/2023 14:14, Bryan O'Donoghue wrote: >>> On 03/01/2023 09:14, Krzysztof Kozlowski wrote: >>>> ../arch/arm64/boot/dts/qcom/msm8939.dtsi:1825.23-1842.5: Warning >>>> (simple_bus_reg): /soc@0/mmc@7824000: simple-bus unit address format >>>> error, expected "7824900 >>> >>> For the record the driver consuming this dt entry requires the host regs >>> to come first followed by the core >>> >>> sdhc_1: mmc@7824000 { >>> compatible = "qcom,msm8916-sdhci", "qcom,sdhci-msm-v4"; >>> reg = <0x07824900 0x11c>, <0x07824000 0x800>; >>> reg-names = "hc", "core"; >>> } >>> >>> If I change this and the msm8916 to >> >> That's not the solution. The warning is saying that unit address does >> not match your reg. You need to correct unit address. >> >> Best regards, >> Krzysztof >> > > Is it not the case that the unit-address should match the first reg and As Konrad wrote, yes. > that the first reg should also be the lowest address ? I never heard such requirement, although it would be logical choice. In this case your solution is to use the higher address as unit address. apq8084, msm8226 and maybe more already do it. You can also look at this that HC was made as the main IO address of a device (if one can call something "main" here), thus it should be expressed in unit address. Best regards, Krzysztof