Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4262708ybc; Fri, 15 Nov 2019 01:35:11 -0800 (PST) X-Google-Smtp-Source: APXvYqyD7bAxX8ZGYew+rBXFy/wawqLNqM3q7u0g6HjSM6mi9nN1cQdEejAKSGg2TkTVNMZgf2xG X-Received: by 2002:a17:906:d795:: with SMTP id pj21mr13040868ejb.44.1573810510914; Fri, 15 Nov 2019 01:35:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573810510; cv=none; d=google.com; s=arc-20160816; b=YcKGKJrotmSBoj5AMfknykrp+dwKoRGQt7toRlseNB3dlAhTtWave7g7qDLINcOK1z nSkz1gfzqRXVT5xUMSr04Ux7jlTN+1wEfxN+cGWW0RfOpTxIFbT8co+9gIkpZzvIp6ZP eBovIe1FXhQz7pkva9WBHxChAahn0hP4xjL6zrBCCPthq7anF6F6GZfKc3hQVy2p8LHr e70ddjfPeJfHxfGt5aRSx9c1sJj9erI6ynRtU0Nd1RdEsTBPGRXYD2sp2ufZPd94wxAs TJE/4ytfNFqFR5zXEEIrp+Zd96rMp2TKRAOehLnXu6Ne3Hdv7Byowp/WxxWWoX9ZYpvB nCjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=DWxElGoP4rE+rqJr2AM0rqkLbrjjlnEHZFlowKc7g/E=; b=Pu2ItQPrQiUd92S1e0p02F89I3oPVhTusxLh+T5EKw+3tyvrnEllCRnxh6c4H4vsEC L+dz5EuVCAvBFmTtLqgdfUbp4767sH8U2akYw8gJaPZVUBjf4nwcXMJfnBdaHrosxVjJ OJnwyodGT11n7Dsfzoyjr1OILZFU9UhjAaikdSIlu28dND9Qz+bjX765cbw5oF7UaIPh nHc6iP2KD/AVixMF10hXY2vYlwpGCKTBTKlmFlXdCH7sezx+xg3wij5yr/d419E6WePz Wla1Wd//d55OLa4nNqHDAHydrtV38t785ayVsWv2sL3GvPtCA59dTlBoUavKnjkIoKzO zZoA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ob19si5602678ejb.56.2019.11.15.01.34.44; Fri, 15 Nov 2019 01:35:10 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727241AbfKOJdt (ORCPT + 99 others); Fri, 15 Nov 2019 04:33:49 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:44295 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726930AbfKOJdt (ORCPT ); Fri, 15 Nov 2019 04:33:49 -0500 Received: from mail-qk1-f170.google.com ([209.85.222.170]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPSA (Nemesis) id 1My2pz-1hfdsh0DyZ-00zV17; Fri, 15 Nov 2019 10:33:48 +0100 Received: by mail-qk1-f170.google.com with SMTP id d13so7589673qko.3; Fri, 15 Nov 2019 01:33:47 -0800 (PST) X-Gm-Message-State: APjAAAXS/EV5BsFcJFwN5VESTmD3xzK1lo4Tpyx3tZDu3ZV4vc/th8Iq tbAJcCQrU1iJ+99PiZZyUU0NGuiczPNXYO+vloI= X-Received: by 2002:a37:58d:: with SMTP id 135mr11660269qkf.394.1573810426879; Fri, 15 Nov 2019 01:33:46 -0800 (PST) MIME-Version: 1.0 References: <20191114114525.12675-1-orson.zhai@unisoc.com> <20191114114525.12675-2-orson.zhai@unisoc.com> In-Reply-To: <20191114114525.12675-2-orson.zhai@unisoc.com> From: Arnd Bergmann Date: Fri, 15 Nov 2019 10:33:30 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: Add syscon-names support To: Orson Zhai Cc: Lee Jones , Rob Herring , Mark Rutland , DTML , "linux-kernel@vger.kernel.org" , steven.tang@unisoc.com Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:eAMMgYvcgQoIgeVOJdJnUY/zP11VckfLtwFUG99sJIU8dAsgB97 u+/vqG/j8y5hJiZP05FZJmsBaHHVRdgp9Q2pj1HvCU31AbH3QMzT8Obj4hvoDVfdDciCdb7 q1RpMPtr/0FgtjxpBbA/2vqCJnA9sos/rT3tomqcs9pcjTXG0WfEja+K5ZeeLJkDfxvL40O 4KgiVz2t3zMISXv1BBgjA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:3zhn3xOu5SQ=:XN5QE8YqU9AxAkLLOGzELj 4WN0CHJacEG2b4cF2W6VXmxgTitnHkllDhz/1eu+tPDjFN1BiN8Nuihcf8qpksrRt+S1CNNqx 5+PK+riuhCsyA68T9d0c8d+0pA3cPwMLn/TWTBNa6VdTRjbsUMBf1dtKMB7XgMh4iiOna2DG8 yxqPyk3FUt8YgMjezbKmtrRR/cds8G1YukNhPCrqUyBr3dq1GXpJCMh+g41OC9rv4dL4Oak82 oTHaNfmY2QBks8HF1Om7CIYdX7flDfflMqxrHV+MHjGQIkyvL9TKkXqSzVFFZNmVQVpLJDhEK hvYm0Twf3eVvtBnZRPasrmTXIJtrDrqQb5kZq1I2kvT0vAWHK+kwwoF6tNrAsvEMbgcEVDklA TfiDaBh/evD6CTycBB5CPhPXFAWa0sT/E06l9HGTjvFe6yEdbf/k4yG7YfqNZJX8oTpjY0T4A /2B+fokO01pGeOuN+VmpqTWsQ101KCMRBRAiHrihbFHNqukh2+sBb+SfePfYycjC3rZyDJhiB oLzUEABLr64u9YOx5qvU1BYqGru4ywTTgaVXBlf1tcc0YugZSrMG98zz6YuEBTEYYvtE7pNpe 0EFU9P5YUe9mG2wwOpV2tccUHirhRnPYIVgKoemx0UEuX2E0/znFTM1jFiPU/YGbEFKu9IsSL 8OEDh7cX0xAXLNStwMlsgrnnxRML7VSfEjDoLL4ytIgoTCR+cYbHwkf1m1BlJo4sX5iixltLk As5QXXSM5aiqufpyOCg8IPNMt80iHkHckfk9uijT1jHMB42DgANNavX9Z/Y9g6Mg9i27mWYs7 +jINjnKPIBskDGPI20MYah/jEqecwbmrzPVefrpl0QO+V95Z74TPPaKppM43UDs3j8PZPL0zs vVCdoq8csaWrQQhrVJeA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 14, 2019 at 12:48 PM Orson Zhai wrote: > > > Make life easier when syscon consumer want to access multiple syscon > nodes. > Add syscon-names and relative properties to help manage complicated > cases when accessing more one syscon node. > > Signed-off-by: Orson Zhai Hi Orson, Can you explain why the number of cells in this binding is specific to the syscon node rather than the node referencing it? In most other bindings that follow the same scheme, the additional arguments are interpreted by the subsystem that is being referenced, but the syscon driver is just a simple driver with no subsystem and no code to interpret those arguments. The way would otherwise handle the example from your binding would be with two separate properties in the display node, like syscon-enable = <&ap_apb_regs 0x4 0xf00>; syscon-power = <&aon_regs 0x8>; in which case, the syscon driver does not need to know anything about how it's being used, and the display driver is the one making sense of the arguments according to its own binding. I assume you have some good reason for introducing the other approach, but I don't understand it from your submission. Arnd