Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp118258ybx; Tue, 5 Nov 2019 20:48:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzGnOIgx6W+3tj/1I18EVBXmTZ1nP4mJ4f1WI1QGu99bm45giHNHgCeoHs6Vv4zKQuktmJM X-Received: by 2002:a50:becf:: with SMTP id e15mr523832edk.135.1573015708119; Tue, 05 Nov 2019 20:48:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573015708; cv=none; d=google.com; s=arc-20160816; b=boSQlplvPyIezUcZPKT6xnZMPPPNa6V5mFUE/Z7IQDi3iSX2VLDm4Dss+nGlmOs8pr WnFAxUhTUMO8tnbQ2xhzMzXEXnl3DH25LBdnbrmVyJFpALUNDKtk1yaI912zvnI/GUQa bTzGNKVJ1/CDeLMIN6n3u0boQa3vxCW4l47agK9dM8mU2I6Gx1Ga3WVYM05YzcFse7rO xFN4dGTxxwNe4CfbfAWGtA6Fu3GIrePtD0YU2G3E0XKSlRz0lK6Vju88YD5wjLnb+2xL LJ5FksGxQUPakLN3zJK1fBiiyw/+Ldohhbcbi+/Kf98G6VHdFE74SIqpFdQnp3150lgg olrg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=wGH4y8/QINgJibe6iZ9D+TwVEAiOc3D7dGreYmQ5/Jo=; b=qAESs6TsGPRdhon9hwNEiFe1H22apzcyTbSf8BExAgd3SAe3v+Gw1Ou2CDjMWLA2Rp /cvofmYZLacIquJGplA8rwz+BFTdHMdbtFh2TovpWm+KEVWOv/SuCCG3oBZljSodKVab aRyVyMqsB49k9+mLgn+i6oVSQy7morbz1P0h7ntSqxOo6G8q4NHtOOSdDcgD1P729+kM oD0fokgf/AgKLYwnmDF/RFOtEwQGsrLp2Lw34WFtAiS5sPk9Upg9zFo9NiwQrPphmtGS 9dPOSjms+1cK347dvHMMeYG8l4dkbdWpViILJsowJ9Wl2RSHY/n+0roCAMBri4ib1ib4 8L3w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e45si11816354edb.177.2019.11.05.20.48.04; Tue, 05 Nov 2019 20:48:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731293AbfKFEqH (ORCPT + 99 others); Tue, 5 Nov 2019 23:46:07 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:44669 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729303AbfKFEqH (ORCPT ); Tue, 5 Nov 2019 23:46:07 -0500 Received: by mail-oi1-f196.google.com with SMTP id s71so19796395oih.11; Tue, 05 Nov 2019 20:46:06 -0800 (PST) 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:content-transfer-encoding :in-reply-to:user-agent; bh=wGH4y8/QINgJibe6iZ9D+TwVEAiOc3D7dGreYmQ5/Jo=; b=PcPPcKtcb5RD+Sjz/zWztR6iG52z8wcUOi81skxd0tvQTrxS6NFbRqsUWAwSBR/TNl Awy3323AQMJH3eL+E5pVsL7/6tWek453OCU43QhsrLcB+uZmf+uV3wMSnRRWWgtIXWFo hnb0mrqevGQOiwDgp9+dNazt/hwrCliETYwQgHLx8MEGVEsSn7atOi5qEZpkJly4Xlyk rQc7aVPdxQnZ++RM42B8hxlRnbumi0Y9972P9cD9zA1hGIaT0Ebh1ldMJBdCmGMBK3l0 66/QLwSNxArU6shG7h6rjxEvefUd+GJDl+FmSJ4BaLqIZQK98F3Jv9h00SBazVJgK2zZ x9FA== X-Gm-Message-State: APjAAAU8HWkr7yGRz/7aiKE4FCc9iHYuUSoBBK3VzHYXFiZc0hMAxvcE hjO2j+1SFc+eNDhrfOX/0w== X-Received: by 2002:aca:ad52:: with SMTP id w79mr500353oie.149.1573015566353; Tue, 05 Nov 2019 20:46:06 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id c15sm7156877otk.12.2019.11.05.20.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 20:46:05 -0800 (PST) Date: Tue, 5 Nov 2019 22:46:05 -0600 From: Rob Herring To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: linux-realtek-soc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Rutland , devicetree@vger.kernel.org Subject: Re: [RFC 05/11] dt-bindings: soc: realtek: rtd1195-chip: Extend reg property Message-ID: <20191106044605.GA28959@bogus> References: <20191103013645.9856-1-afaerber@suse.de> <20191103013645.9856-6-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191103013645.9856-6-afaerber@suse.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 03, 2019 at 02:36:39AM +0100, Andreas F?rber wrote: > Allow to optionally specify a second register to identify the chip. > Whether needed and which register to specify depends on the family; > RTD1295 family will want the CHIP_INFO1 register. > > Signed-off-by: Andreas F?rber > --- > A SoC specific binding would defeat the purpose of the generic Linux driver; Why? You can map any number of compatibles to a generic driver. > is it possible to check the root node's compatible in an if: expression > to prohibit using more than one reg on "realtek,rtd1195"? The "rule" is different programming model, different compatible string for the block. But this looks simple enough, I don't really care. > > .../devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml b/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml > index 565ad2419553..e431cf559b66 100644 > --- a/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml > +++ b/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml > @@ -11,13 +11,15 @@ maintainers: > > description: | > The Realtek SoCs have some registers to identify the chip and revision. > + To identify the exact model within a family, further registers are needed. > > properties: > compatible: > const: "realtek,rtd1195-chip" > > reg: > - maxItems: 1 > + minItems: 1 > + maxItems: 2 > > required: > - compatible > @@ -29,4 +31,10 @@ examples: > compatible = "realtek,rtd1195-chip"; > reg = <0x1801a200 0x8>; > }; > + - | > + chip-info@9801a200 { > + compatible = "realtek,rtd1195-chip"; > + reg = <0x9801a200 0x8>, > + <0x98007028 0x4>; > + }; > ... > -- > 2.16.4 >