Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3013841ybe; Sun, 8 Sep 2019 05:27:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGPd7YUIEL3mgJ/wJiFp1C7POu0fK1jMybJi/p3ndnr8cY54bsadww9ipkijsJRicD5Esr X-Received: by 2002:a63:de4f:: with SMTP id y15mr17332331pgi.239.1567945624628; Sun, 08 Sep 2019 05:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567945624; cv=none; d=google.com; s=arc-20160816; b=EF9Sc/jZWNkr86M1iMTkltYTBdGBehxkzHyU+rFtHmkau8dsVFptEgAbYhMqGbhmyk 8Rix6RFRWc0mYGE6KagCoE7mwa3SBOa+nTLoLarkNYD1t9rpFrcnEGryf2jFjdNiGVJC huzm9FkAFc0wP+SkRBo1EF6L+NzlWEwpWupISQyxnvh9WnvRrvsJmYJPCmzXkD74g34j dK6qsvFU07GgEXyKwtt7ouOfg5ShVTrlkdaIAqvEkCRZ2Vc8LJuoLEBd+hJw7oRrmJ+0 6MozhTw0tBwMDMGTVglJL29+a7PdhqVcFQTIx36QOpHvopZ5rB2nTeNqqrZTFVacK5lp mSgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=tcgGh/VZT5QIu1UNGlfycg1MLojs4whv2stVJZ09gQQ=; b=h9+32tT5LSGIvmcft7sE6L6KyTMFMYmpREEOeluEcW3Ra71E0zjuRECuVDD9MarsEY yTgYCDItfzLChjJYzQ/cpoKF7gOXi1dMCJo7IP2Q3oAsMoaHJwEtq0TvDgy/7L9ThVh0 vqGK9wKO3YG4EPs9GfCIsRh8OckMzopQUNsV2VsyEXvBPNaN8MaAb6naNIfiew9aAEHC qVPjHUMw4OdbkkWOYFbHDFdZluptmN5SIURttM17NFVzsDfxgEF8pcWNu2rD58SGf4ey JiEQvxSZxQilzud0MFmuFxc0jecuy9WEYZdKgmrCY4V0ThKLpDZ6ku0oSm2g9//OngzC jtAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=S4Y7LQrw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id co8si9584939plb.241.2019.09.08.05.26.49; Sun, 08 Sep 2019 05:27:04 -0700 (PDT) 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; dkim=pass header.i=@flygoat.com header.s=mail header.b=S4Y7LQrw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406416AbfIGDO4 (ORCPT + 99 others); Fri, 6 Sep 2019 23:14:56 -0400 Received: from forward105j.mail.yandex.net ([5.45.198.248]:39912 "EHLO forward105j.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726940AbfIGDOz (ORCPT ); Fri, 6 Sep 2019 23:14:55 -0400 Received: from mxback1g.mail.yandex.net (mxback1g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:162]) by forward105j.mail.yandex.net (Yandex) with ESMTP id EF329B208EF; Sat, 7 Sep 2019 06:14:51 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback1g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 2JKCtu78lv-EpdWVWF0; Sat, 07 Sep 2019 06:14:51 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1567826091; bh=tcgGh/VZT5QIu1UNGlfycg1MLojs4whv2stVJZ09gQQ=; h=In-Reply-To:From:To:Subject:Cc:Date:References:Message-ID; b=S4Y7LQrwUYkeQkmnwJ5juysEF5QAalUf3/9h3ETa1gOzQmmUt98t8PxI3JLHgXZ5b 9pZ0q8Zph7d3x6kuUT5oHCG1TXKIA2GLsG0uFxYTN94SQuIA/5g7k7gMcmeLHC3gt2 0N8UQxZdqkn4qOk0g7VsA7qkm41KLxXz5Yfw8v/M= Authentication-Results: mxback1g.mail.yandex.net; dkim=pass header.i=@flygoat.com Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 1wa3aXpB17-EK4Kh1TM; Sat, 07 Sep 2019 06:14:50 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Subject: Re: [PATCH v2 14/19] MIPS: Loongson64: Add generic dts To: Huacai Chen Cc: "open list:MIPS" , Paul Burton , Thomas Gleixner , Jason Cooper , Marc Zyngier , LKML , Rob Herring , Mark Rutland , devicetree@vger.kernel.org References: <20190905144316.12527-1-jiaxun.yang@flygoat.com> <20190905144316.12527-15-jiaxun.yang@flygoat.com> From: Jiaxun Yang Message-ID: <182a271e-6a66-ed71-2d68-509d8e85d857@flygoat.com> Date: Sat, 7 Sep 2019 11:14:09 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/7 上午10:53, Huacai Chen wrote: > On Thu, Sep 5, 2019 at 10:47 PM Jiaxun Yang wrote: >> Add generic device dts for Loongson-3 devices. >> They seems identical but will be different later. >> >> Signed-off-by: Jiaxun Yang > Hi, Jiaxun, > > I'm very glad to see that dts files become less in this version, but I > think we also don't need to distinguish cpu types (i.e., > 3a1000/3b1500/3a2000/3a3000). Then, we only need three dts files > (loongson3_ls2h.dts, loongson3_ls7a.dts, loongson3_rs780.dts) which is > the same as in our own git repository. If we really need to > distinguish cpu type, PRID or CPUCFG in Loongson-3A4000 is more > suitable than dts. In other words, I want dts only do as minimal as > possible. Hi Huacai, I have the  same consideration with you. However, the reason why I split this dts is that these chips have significant differences. For example, 3B1x00 have different memory and config registers layout, Their HT config space is a delicate node, HTMSI interrupts is not functional until 3A3000, and their syscon registers are not identical. You may say they can be identified by PRID, but I'm not intend to spread PRID all the way in other subsystems, thus I think dts is still the best way to tell these differences. Thanks -- Jiaxun Yang > > Huacai >