Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8321593ybi; Tue, 23 Jul 2019 06:38:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5GwBVOQNIAtjOXgioUNJ2MlEUx30LYQClZ/cmeDDOdCDVilnWwjULF3zMY9MirPk2s2Oi X-Received: by 2002:a17:902:b109:: with SMTP id q9mr70393715plr.176.1563889088443; Tue, 23 Jul 2019 06:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563889088; cv=none; d=google.com; s=arc-20160816; b=hVJfscCjTFg9Aots8U/WVaUDe5v1kGD/VoLcjsD1Pbhx7RdNfulsy8/dVCijvLTFgh HJq3gwyweP+ZxHF8Px6DcOruMBijyAcUGPgzrbcPMThPoRgHZtIkfjGMEetQPQWuRj9j SYVX8CaugP0MCSUyPQa+WSKRBOM4KIQYbfNn3Nx3B45SeoPQxNuPguLb2RsDP6W4g8qj AJjKayFOOENZCGCpNtnUGsDGXyR9ozJf1qztlCD+d81BE9o+7M/EaAYZ87xilAakTed0 HLzAEfLqJcdUIK+8bH8FdKA6UOitDXeiR+SMFAZjMVxgY5JEoQkFb3+glOH3mXJwShcu 6caQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5nt2VugXjt5XrF3/XOR/oWFILicVPJkaeDN7wxmTV7U=; b=ylo5vUVc1uDUptnSlpnijhSChIrYpfC9utRlJFgutMK2bjkh58v80Wv5+PfdeNENZc 6w71zJ9Bbok1kboDg/2IybrKz90qLWh+JbEzy68/AdTYUnzHOnXyqCEOZEsAduP28fZf 3xPUCFQE50Axe2ZgbHZdBqTT6IALw5iQTGTClovzohb2BV+PISZkLHwLnrdNxOm+zVjk zQhEh/hk/JZ0tzHXCl8f0vHIrbS49yT3TnYu2pzJrAfnaeGzi3BUAFv5gRv42bhVEClZ cdIMA48MBm5U7/dvf8tJ7E1ctCGvsLfE9WHuhrun/OUlJyr3GNJIZvuTc5LRSeu49k5I mj8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X1YvonD3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 1si10431100plz.129.2019.07.23.06.37.52; Tue, 23 Jul 2019 06:38:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X1YvonD3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730877AbfGWFkO (ORCPT + 99 others); Tue, 23 Jul 2019 01:40:14 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40868 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729349AbfGWFkO (ORCPT ); Tue, 23 Jul 2019 01:40:14 -0400 Received: by mail-pg1-f194.google.com with SMTP id w10so18820890pgj.7 for ; Mon, 22 Jul 2019 22:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5nt2VugXjt5XrF3/XOR/oWFILicVPJkaeDN7wxmTV7U=; b=X1YvonD3R6khALL7BjDbSfmeGb+oxFB0Yn8oSaY7vanh6Hs83Ohqkwv+euiD632z1e WUi+KeGNsw5+gmHJ2bO3XJtc3mZljXxy/qpui12TO4jz7CXB1bJ5mp+gpodlkI/nWOGZ rvBzo8LIOFkvjxQPflC17XaQI+Nac3FzfcryjNzEMEa/lBJaIfFQlHbopWUR9bxrQYVe yyZbHJZ9JDSg1IJiGqx08/WiG2+5rN1fnAMpz9u+jrvGJ7hI0uaQVmqsi/vLyEGS+/bI 7oTzNegr32gKDR7QbPUd95mr8UIc1mbTEL0WjBsM42uJSRveXhwWwQbwSO4QRy/U0YVd 1o+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5nt2VugXjt5XrF3/XOR/oWFILicVPJkaeDN7wxmTV7U=; b=s2l9LbE5etKbTZiBaARQqKVZNNS+WmIgFu8ioBK5Z9CKhfD5a9iz+DMUxwHYXYmAJ3 lZNqIJpcVG/ZGbvzamGrpHcgSHVXEKLfWmKoYMkwWznP4Coe92RJDDwQ0RHL4QLQoRMp E5709D2GZgMD00zjABMfXXMdu0sQ5y+O0b2lG1Fw1z3BRpLj1DLJXMSrszrugz4fLV+q MdO7uozGbZJrUMTUljta7sMvwTYuL/YQxIPjc7DDIVRiouEHMD8F0qNMW9vWnoEUy1eE bTmjBZBzgiTG6RvIpIs+GM4q6SAw0iqBl/p2fWITGZL2DjT2JYfD+pUl3QvaB387rNbc f7vA== X-Gm-Message-State: APjAAAXsLanMM+kLeyzb+2WYLJufl5uUtaXwhUVxaTRsmylTcHiUGMp2 a4iqYDKLuX1YeJxMxaZvT0G36g== X-Received: by 2002:a63:c03:: with SMTP id b3mr10469564pgl.23.1563860413423; Mon, 22 Jul 2019 22:40:13 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id a15sm46535560pfg.102.2019.07.22.22.40.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 22 Jul 2019 22:40:12 -0700 (PDT) Date: Mon, 22 Jul 2019 22:41:36 -0700 From: Bjorn Andersson To: Vinod Koul Cc: Amit Kucheria , Andy Gross , linux-arm-msm , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML Subject: Re: [PATCH 5/5] arm64: dts: qcom: sdm845-cheza: remove macro from unit name Message-ID: <20190723054136.GK7234@tuxbook-pro> References: <20190722123422.4571-1-vkoul@kernel.org> <20190722123422.4571-6-vkoul@kernel.org> <20190723051426.GZ12733@vkoul-mobl.Dlink> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190723051426.GZ12733@vkoul-mobl.Dlink> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 22 Jul 22:14 PDT 2019, Vinod Koul wrote: > On 23-07-19, 10:38, Amit Kucheria wrote: > > On Mon, Jul 22, 2019 at 6:06 PM Vinod Koul wrote: > > > > > > Unit name is supposed to be a number, using a macro with hex value is > > > > /s/name/address? > > Right, will fix. > > > > not recommended, so add the value in unit name. > > > > > > arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi:966.16-969.4: Warning (unit_address_format): /soc@0/spmi@c440000/pmic@0/adc@3100/adc-chan@0x4d: unit name should not have leading "0x" > > > arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi:971.16-974.4: Warning (unit_address_format): /soc@0/spmi@c440000/pmic@0/adc@3100/adc-chan@0x4e: unit name should not have leading "0x" > > > arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi:976.16-979.4: Warning (unit_address_format): /soc@0/spmi@c440000/pmic@0/adc@3100/adc-chan@0x4f: unit name should not have leading "0x" > > > arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi:981.16-984.4: Warning (unit_address_format): /soc@0/spmi@c440000/pmic@0/adc@3100/adc-chan@0x50: unit name should not have leading "0x" > > > arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi:986.16-989.4: Warning (unit_address_format): /soc@0/spmi@c440000/pmic@0/adc@3100/adc-chan@0x51: unit name should not have leading "0x" > > > > > > Signed-off-by: Vinod Koul > > > --- > > > arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 10 +++++----- > > > 1 file changed, 5 insertions(+), 5 deletions(-) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi > > > index 1ebbd568dfd7..9b27b8346ba1 100644 > > > --- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi > > > @@ -963,27 +963,27 @@ ap_ts_i2c: &i2c14 { > > > }; > > > > > > &pm8998_adc { > > > - adc-chan@ADC5_AMUX_THM1_100K_PU { > > > + adc-chan@4d { > > > reg = ; When I read this define I instantly know which channel we're referring to. The 4d above is simply there for syntactical purposes and needs only to be cared about if the reg is ever changed. So I like this form. > > > > I'm a little conflicted about this change. If we're replacing the > > address with actual values, perhaps we should do that same for the reg > > property to keep them in sync? Admittedly though, it is a bit easier > > to read the macro name and figure out its meaning. > > Well this was how Bjorn suggested, am okay if we do in any > other way. This fixes warning but keeps it bit readable too > > Other way would be to make defines decimal values instead of hex > While the ePAPRR states that the unit address must match the first reg, dtc enforces that the unit address string matches "%x" of the reg. Regards, Bjorn > Any better suggestions :) > > -- > ~Vinod