Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp397172pxb; Fri, 22 Apr 2022 03:28:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwITuJpIbiSsbaAHRkL1eVMqKcG/tRckEjFQJmJlfoRj6Wp9dd7QpfRXInQKmChPOoaKQaL X-Received: by 2002:a17:90b:3847:b0:1d1:16bb:83ba with SMTP id nl7-20020a17090b384700b001d116bb83bamr15553134pjb.216.1650623296946; Fri, 22 Apr 2022 03:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650623296; cv=none; d=google.com; s=arc-20160816; b=nHgcM5oe0Pbo2WIhoT+elWqovc/hE6wikpSBTVZn+/meEBOoJ+uV+tpujzM1LMdqRt 8Gf+LschBTxZamxH+nCwZdw/mskxXIbgvSRS4TKdgH4rENk2KbXjUxlsvuoFUMoDdOuT GLycoHgg3OJeP9XqlCPDCDfPWl+cT88LJxBO+gz+MHcMYW3bhxfzorOY9N5BAGh6fzTf qoJB8dVALxKAOTdaex2N1Fdx+1sEQcVMC5DuDZLYDs81CCmwbS8lC61llPSgTEMshKuH EL4LZpK7VSYLdxaOYdYQeWsxx3ima2ukO9p+Y1db/+AEI56frgl/iHgX3Y+/mjhr1l8O JrWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=8F6CN53BzDZd0GMZX26lmOXkDER5jODrK2Ga60c0CVk=; b=tYcQaX9l6/xLaBBKD3YD4o7phuIekgVxP9jQLjJA5Y7ctaimVCcwWQHGiBLdscAuuQ vZrcTy5o3KJ6mCXXsiS+HggrEnZ4oVPAew0f65inmMOTH7xNoBLSWoIj3zTNWo6AsqMw lgZBr+bk78IQv4+swG+5kqdnVeKOymXAHgy5kb8SjPHFI1PcePzZkewA6CmWBY5vRHzb FegGygAdsUppl+LWVtF93anqOWFFrtnjyetruKQ7s6hpffkya45azAT7bqxgia+PQ3TU xWmx0DpwieybF4nv67YbTVNv6LUgyKSL86wApnvq9jzYULztChLDt38P3NQM+EVQaxky RNzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=haspqQR+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw10-20020a17090b4d0a00b001cb1157100esi8462481pjb.137.2022.04.22.03.28.02; Fri, 22 Apr 2022 03:28:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=haspqQR+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391195AbiDUSV2 (ORCPT + 99 others); Thu, 21 Apr 2022 14:21:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377142AbiDUSVX (ORCPT ); Thu, 21 Apr 2022 14:21:23 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B04613EAA9; Thu, 21 Apr 2022 11:18:32 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 04C0A221D4; Thu, 21 Apr 2022 20:18:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1650565111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8F6CN53BzDZd0GMZX26lmOXkDER5jODrK2Ga60c0CVk=; b=haspqQR+8nkQNrGwTx3EQqnDmd+2SRdz5JmOPZnrMg9CndqZ59zzbpPiNTZL6wjwAPniyT e1SvFJtellWwqCE4XhM2lYr9s4VvZeZpHqDyGIrU2VyDO80VX/rhp3qIJJL6GCCOzBCNHl fKTZk5iIPsrEIIWXD1+BjQAdNISJoro= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 21 Apr 2022 20:18:30 +0200 From: Michael Walle To: Sean Anderson Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Shawn Guo , Rob Herring , Krzysztof Kozlowski , Li Yang , linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: Re: [PATCH 4/8] dt-bindings: nvmem: sfp: Add compatible binding for TA 2.1 SFPs In-Reply-To: <20220421175657.1259024-5-sean.anderson@seco.com> References: <20220421175657.1259024-1-sean.anderson@seco.com> <20220421175657.1259024-5-sean.anderson@seco.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <816dad4a1fd6869d89fc143030dd4ff9@walle.cc> X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2022-04-21 19:56, schrieb Sean Anderson: > Trust Architecture (TA) 2.1 devices include the LS1012A, LS1021A, > LS1043A, and LS1046A. The SFP device on TA 2.1 devices is very similar > to the SFP on TA 3.0 devices. The primary difference is a few fields in > the control register. Add a compatible string. > > Signed-off-by: Sean Anderson > --- > > .../devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git > a/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml > b/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml > index e7d1232fcd41..aa277f1eee7e 100644 > --- a/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml > +++ b/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml > @@ -18,8 +18,13 @@ allOf: > > properties: > compatible: > - enum: > - - fsl,ls1028a-sfp > + oneOf: > + - description: Trust architecture 2.1 SFP > + items: > + - const: fsl,ls1021a-sfp > + - description: Trust architecture 3.0 SFP > + items: > + - const: fsl,ls1028a-sfp I'm unsure about this one. Esp. if you reuse the fsl,ls1028a-sfp compatible on other SoCs, there were some endianess issues with other IP blocks on the ls1028a. So it might be that on the LS1028A the IP has to accessed in little endian order and for other devices in big endian. I think we should add one compatible per SoC unless we know better. -michael