From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751203AbcHZHZX (ORCPT ); Fri, 26 Aug 2016 03:25:23 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:1554 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750771AbcHZHZV (ORCPT ); Fri, 26 Aug 2016 03:25:21 -0400 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Fri, 26 Aug 2016 00:21:02 -0700 Subject: Re: [PATCH v2 3/6] dt/bindings: Add bindings for Tegra GMI controller To: Mirza Krak References: <1472045838-22628-1-git-send-email-mirza.krak@gmail.com> <1472045838-22628-4-git-send-email-mirza.krak@gmail.com> CC: Stephen Warren , Thierry Reding , Alexandre Courbot , , , Prashant Gaikwad , Michael Turquette , , , , , , linux-kernel , , From: Jon Hunter Message-ID: Date: Fri, 26 Aug 2016 08:25:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.26.11.251] X-ClientProxiedBy: UKMAIL101.nvidia.com (10.26.138.13) To UKMAIL101.nvidia.com (10.26.138.13) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/08/16 05:53, Mirza Krak wrote: ... >> I have an idea which is following: >> >> gmi@70090000 { >> status = "okay"; >> #address-cells = <2>; >> #size-cells = <1>; >> ranges = <4 0 0x48000000 0x00040000>; >> >> cs4 { >> compatible = "simple-bus"; >> #address-cells = <2>; >> #size-cells = <1>; >> ranges; >> >> nvidia,snor-cs = <4>; >> nvidia,snor-mux-mode; >> nvidia,snor-adv-inv; >> >> can@0 { >> compatible = "nxp,sja1000"; >> reg = <4 0 0x100>; >> ... >> }; >> >> >> can@40000 { >> compatible = "nxp,sja1000"; >> reg = <4 0x40000 0x100>; >> ... >> }; >> }; >> }; >> >> Do not know if above will work at all (not able to test at current >> location), anyway I will play around with it some more and get back to >> you. > > Gave above a test run and it works like a charm. Are we happy with that? Does it not work with #address-cells = <1>? Seems odd to have the cs in the reg for the device. Cheers Jon -- nvpublic