Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1458C43381 for ; Mon, 18 Feb 2019 11:34:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 663B9208E4 for ; Mon, 18 Feb 2019 11:34:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="FV5qy0iy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729997AbfBRLeT (ORCPT ); Mon, 18 Feb 2019 06:34:19 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:41552 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729907AbfBRLeS (ORCPT ); Mon, 18 Feb 2019 06:34:18 -0500 Received: from [192.168.0.21] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4631F49; Mon, 18 Feb 2019 12:34:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1550489656; bh=0BjzXHkmC829FF6InMLsFoWPyG8oZUx4oqR788gr+jQ=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=FV5qy0iyGE+I8cw1KRAvfuoI9W7o9/YAjjb//x/kKe7ycofSkoQ9B7rkx8wLYLLvv 9x3chkYTTt4Yau03Ax/ulXlRetXzlJwxL8r8YOZB0zhiijdddCu0uBQrvBiLDawZFu LSCv26vNz3QQoiH2umtrhLhWwkH/4TyBS7G5P5b4= Reply-To: kieran.bingham@ideasonboard.com Subject: Re: [PATCH 1/2] arm64: dts: r8a77990-ebisu: Fix adv7482 hexadecimal register address To: Geert Uytterhoeven Cc: =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Simon Horman , Linux-Renesas , Takeshi Kihara References: <20190216235854.15244-1-niklas.soderlund+renesas@ragnatech.se> <20190216235854.15244-2-niklas.soderlund+renesas@ragnatech.se> <959b482d-09a1-2ffc-1144-101348bb27d9@ideasonboard.com> From: Kieran Bingham Openpgp: preference=signencrypt Autocrypt: addr=kieran.bingham@ideasonboard.com; keydata= mQINBFYE/WYBEACs1PwjMD9rgCu1hlIiUA1AXR4rv2v+BCLUq//vrX5S5bjzxKAryRf0uHat V/zwz6hiDrZuHUACDB7X8OaQcwhLaVlq6byfoBr25+hbZG7G3+5EUl9cQ7dQEdvNj6V6y/SC rRanWfelwQThCHckbobWiQJfK9n7rYNcPMq9B8e9F020LFH7Kj6YmO95ewJGgLm+idg1Kb3C potzWkXc1xmPzcQ1fvQMOfMwdS+4SNw4rY9f07Xb2K99rjMwZVDgESKIzhsDB5GY465sCsiQ cSAZRxqE49RTBq2+EQsbrQpIc8XiffAB8qexh5/QPzCmR4kJgCGeHIXBtgRj+nIkCJPZvZtf Kr2EAbc6tgg6DkAEHJb+1okosV09+0+TXywYvtEop/WUOWQ+zo+Y/OBd+8Ptgt1pDRyOBzL8 RXa8ZqRf0Mwg75D+dKntZeJHzPRJyrlfQokngAAs4PaFt6UfS+ypMAF37T6CeDArQC41V3ko lPn1yMsVD0p+6i3DPvA/GPIksDC4owjnzVX9kM8Zc5Cx+XoAN0w5Eqo4t6qEVbuettxx55gq 8K8FieAjgjMSxngo/HST8TpFeqI5nVeq0/lqtBRQKumuIqDg+Bkr4L1V/PSB6XgQcOdhtd36 Oe9X9dXB8YSNt7Vj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KVsrnNDKnoY0f4U0z7eJv2NeF8xHMuiU RCIzqxX1GVYaNkKTnb/Qja8hnYnkUzY1Lc+OtwiGmXTwYsPZjjAaDX35J/RSKAoy5wGo/YFA JxB1gWThL4kOTbsqqXj9GLcyOImkW0lJGGR3o/fV91Zh63S5TKnf2YGGGzxki+ADdxVQAm+Q sbsRB8KNNvVXBOVNwko86rQqF9drZuw= Organization: Ideas on Board Message-ID: <59664792-ce36-d068-077f-e6cd12dc549b@ideasonboard.com> Date: Mon, 18 Feb 2019 11:34:13 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Hi Geert, On 18/02/2019 09:01, Geert Uytterhoeven wrote: > Hi Kieran, > > On Sun, Feb 17, 2019 at 11:13 PM Kieran Bingham > wrote: >> On 16/02/2019 23:58, Niklas Söderlund wrote: >>> From: Takeshi Kihara >>> >>> The register address used for the reg property of the adv7482 node in >>> other Renesas device trees are decimal not hex, change this for Ebisu to >>> align it with the others. >>> >>> Signed-off-by: Takeshi Kihara >>> [Niklas: rewrite commit message] >>> Signed-off-by: Niklas Söderlund >>> --- >>> arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts >>> index 62bdddcbbae7d9e9..23914c2b83965621 100644 >>> --- a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts >>> +++ b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts >>> @@ -383,7 +383,7 @@ >>> }; >>> >>> port@a { >>> - reg = <0xa>; >>> + reg = <10>; >> >> From the discussions on this before, we converted the port number to be hex. >> >> I really dislike that we have port@a, but reg=<10>; >> >> However as long as the value is written by the DTC as 'ten' and >> correctly interpreted as decimal this is still correct. >> >> I guess it doesn't hurt to have a decimal representation as that will >> then match the bindings port descriptions. It's a shame this can't be >> the 'port@10' for comprehension though. >> >> My only hesitation on providing either an RB/or AB tag here is whether >> perhaps we should instead convert the salvator-common to use hex so that >> they match that way instead? > > (More rationale, which may be considered bikeshedding ;-) All input here is helpful :) > I believe we tend to use decimal for small numbers, and hex for large numbers. > Exceptions are values where the meaning of the individual bits is important, > and hex is thus more suitable (e.g. rohm,ddr-backup-power = <0xf>). I believe without the 0x prefix in the reg <> the value is taken as decimal, so keeping decimal will still function correctly. I think my issue only stems from the fact that the @N value is 'hex' without the prefix which causes the difference. I'll stop fussing over this. The value is interpreted correctly, and as I said above - having a place where the port number is listed in decimal helps to match to the bindings table. It's just not in the place I'd like it to be - but I have no control over that. So, lets get this patch in and at least unify the current users ... Acked-by: Kieran Bingham > Gr{oetje,eeting}s, > > Geert > -- Regards -- Kieran