Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp221135iob; Mon, 2 May 2022 17:38:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1lEZ2w6FE3aDJ0AFQoV5+TgRiEzMl5n/ikyp6jnyXiDoVSVMaqTuxN5cG2qsruroGf/ya X-Received: by 2002:a17:90b:1c01:b0:1dc:2980:983d with SMTP id oc1-20020a17090b1c0100b001dc2980983dmr1989043pjb.0.1651538282446; Mon, 02 May 2022 17:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651538282; cv=none; d=google.com; s=arc-20160816; b=ddQhK7eWZymzdF22OtzL0LQL6daXd+BXcOoBaLnkJSWAdGUhtEohGQmabKCtdBJGg4 vtzhWkF38ZO23oMCbCD/aTTlwZwKIvMA0LG6j6a/hvA6yjqI+8T7mTznSsKl+QcqAO6X DhZTEVLVqoNBzlqvLV50tuVdXEzbit6+g/UHMz8c2ZN2cIPbW9d+d9zPNMsiFGXuDmg1 ZTJNuRiIwUhbz5TV/WNOWRr/l01p2fWrDz5iAnZMzAivot68O5HEDHzZiD6bi/W3i1GH jKDGM1bfR/x48QW6FpsgzEMz5T3c5UgA+YVBcVwDf2tUBHGjuN5aAQP0dIEFSqmLCSlF IgwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Nz24vOgbO+S+U8mDnvNyuaqkq2y9c7dnqNkZosUFJl4=; b=nXb4/6gqWP5yWtfqV8FRwqUgZbByteHBUVReSs7/veOU9TiLsingoYIw2cGTpNtg1V OiZhq2BJVR/18psuUfnhMGTpqR6o9NZ34iC4/P2BSgrntjVsa0rEaQvIzTWKx1Nf/D7D iXXniAVZPIpMu61AlIIJLQolDiAoslX9ut4M1curRsUziYzbn8n1Cls7JO26owPCa0G4 h9DOHvyS9gZIrPDssVkYEpynEsRuBsDHsWWVJuFzC2hwCVQtD2ADs5RRgOk84MJ7oJBs gUYkEpH8EsanLw4vDkKASD0LYthDn3Y/zvpeP21nnOVNOA0m+D8igqNylp/yseQlsWWL RjeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WugItvxT; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i19-20020a631313000000b00382b764a7a9si15438275pgl.731.2022.05.02.17.37.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:38:02 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WugItvxT; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DA3DC45525; Mon, 2 May 2022 17:29:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354299AbiEBQPy (ORCPT + 99 others); Mon, 2 May 2022 12:15:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386196AbiEBQPj (ORCPT ); Mon, 2 May 2022 12:15:39 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABDD2DFFC; Mon, 2 May 2022 09:12:09 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 34F4B1F42BC7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651507928; bh=yFJOMKwuIhisyg/HTjYUfFFgojnjn1gaRe4MzlvPbJ8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WugItvxTkOGGNHaEeKBTDncAM3wUeRs3oShgHGf4GWeVrX/mMiT1QygpMU4x5j065 Gt6pyaBHFSuQyXEAYYa28BgHWT2AFjZ8qhjXyFtxtQaQAgj1scf++bvYnN0LPsRNLi Nce9SmSI9VJi9VrUeXPTLEafQp1+wPzugsIy3ByqPyONYVqhh07PyqnzfKsbe/QdCG M96xm5UA5kIIdPqVzlfRRSV4yCAJ8jrFmk0njylohNyipmPCk2/FWxZxrQV8qDr8Iy LL96d6HWQYUl894lIIUIdjaj/+4WOzRgEiBtOgz52UELJWKVB3NbSFCGf44AUVzO6H Ua1OkdPiuO7ug== Date: Mon, 2 May 2022 12:12:03 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] arm64: dts: mediatek: Add fallback compatible for mt8192's flash Message-ID: <20220502161203.pfmjyep4escqwjix@notapiano> References: <20220429195745.2203461-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220429195745.2203461-1-nfraprado@collabora.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no 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 On Fri, Apr 29, 2022 at 03:57:45PM -0400, N?colas F. R. A. Prado wrote: > The dt-binding for Mediatek's SPI NOR flash controller expects a mt8173 > fallback compatible for mt8192, so add it in mt8192.dtsi. > > The driver already sets custom data based on the mt8192 compatible, so > this fallback compatible won't be used and is added purely to suppress > the dt-binding warning. > > Signed-off-by: N?colas F. R. A. Prado By the way, I wonder if this patch should be accompanied by a patch adding the mediatek,mt8192-nor standalone compatible as deprecated in the dt-binding. I feel like the answer is in theory yes, but in practice no. The fact that the mediatek,mt8192-nor standalone compatible was accepted in the devicetree means that it should show in the dt-binding, since it's an acceptable binding. But since the binding already shows up there with a fallback binding, then this standalone binding should be considered deprecated. But in practice, the mediatek,mt8192-nor is the more specific binding so documenting its standalone use as deprecated wouldn't accomplish much. What do you think? Thanks, N?colas > > --- > > arch/arm64/boot/dts/mediatek/mt8192.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > index 26dbe9ecc528..32a836105ea7 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > @@ -896,7 +896,7 @@ pcie_intc0: interrupt-controller { > }; > > nor_flash: spi@11234000 { > - compatible = "mediatek,mt8192-nor"; > + compatible = "mediatek,mt8192-nor", "mediatek,mt8173-nor"; > reg = <0 0x11234000 0 0xe0>; > interrupts = ; > clocks = <&topckgen CLK_TOP_SFLASH_SEL>, > -- > 2.36.0 >