From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23FD5C49ED7 for ; Tue, 10 Sep 2019 15:11:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E590D206A5 for ; Tue, 10 Sep 2019 15:11:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BowZLg3z"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZYUlMdf0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E590D206A5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=u4QFOftBiQ8+M1rTdMlJ7Dvl9ysLZEYqrUCfCeAjNMU=; b=BowZLg3zBBvYuI s6bDXENGbr+8cOlGpHvrJziQ/7xtOzznLy1YFZvnOdJOraliTa5YFbvZCBqTS8W32Z29q6U3KuhgD zJGqSZ+lwxLfd5otXveBbRVS1BeaktY3rQjyNOwzwZhGAAu6VaUhhI/WK04+QjoCPYsLI2DA02bBr jQi46p9em+eMKjselqStg7CnFJYZcAO6z4B03ZVFsPVcXmERf1ZO5wxWosUTClc+f3EgT9P37V9tn Ai94yMs/Eovv4t8o6WHPA8JqDW6/T6bIWbJR5paOD7IY7/yUXPoy3JE8MBcn7uBQ6L4+MWL1XOdJV Lz/qe3QelotpLntNDrwg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i7hnL-00085n-Un; Tue, 10 Sep 2019 15:11:03 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i7hnI-00085R-M3 for linux-arm-kernel@lists.infradead.org; Tue, 10 Sep 2019 15:11:02 +0000 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 91D67206A5 for ; Tue, 10 Sep 2019 15:10:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568128259; bh=m/YNmL/8/TSyoCc5oOLni8zLfIyO+RqyTvkDCDiaJkE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZYUlMdf0T3mmhpWiAxUR7L1GuNmhavyN6AG8BhDmCrnC8LKFbD7DaDYDmIlS65wkE mH8uXrYK+0D1Lbc8p7dF2jHYf6kKq/Qz5JDKqjq1rNZWr11LYq9m79l7DrihkVBQJM Uu+ZM8tgX2iW5CXbl2khgkaxTrcsbkEy/I/WJE8I= Received: by mail-wr1-f52.google.com with SMTP id l16so20948356wrv.12 for ; Tue, 10 Sep 2019 08:10:59 -0700 (PDT) X-Gm-Message-State: APjAAAUpFhQWkgBxrzNiAlAzuoMy094mNOD8UCY5XvodGeSzB9ZNj3P9 LE3GeYOLRcnbP5gsNXiy1NGS2oFqQVfjzefxlGA= X-Google-Smtp-Source: APXvYqyj4m8TBpmsu3pOm97GV/oSl+zJjOan1KMd0PBJ2TBBgsH27HtwYrs7mRlX7tWY5LeTMOFGfJLb8bRDa+uNtow= X-Received: by 2002:adf:c613:: with SMTP id n19mr27426152wrg.109.1568128258061; Tue, 10 Sep 2019 08:10:58 -0700 (PDT) MIME-Version: 1.0 References: <71d30e3f-65b3-0f0e-4078-f917b5d1f075@gmail.com> In-Reply-To: <71d30e3f-65b3-0f0e-4078-f917b5d1f075@gmail.com> From: Chen-Yu Tsai Date: Tue, 10 Sep 2019 16:10:46 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Mainlining support for MStar ARMv7 SoCs; Where to start? To: Daniel Palmer X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190910_081100_747896_9325B67C X-CRM114-Status: GOOD ( 24.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matthias Brugger , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 10, 2019 at 3:59 PM Matthias Brugger wrote: > > Hi Daniel, > > On 10/09/2019 16:18, Daniel Palmer wrote: > > Hi all, > > > > I've been working independently on support for MStar's ARMv7 SoCs for > > a few months now > > and I'm at the point where it's probably good enough for general consumption. > > > > Right now I'm sitting on a bunch of commits that adds the new machine, > > adds support for the clocks, pinctrl etc all the way up to mmc host, > > ethernet and usb. I'm sure I can't drop all of that in one go but I'm > > unsure of what the initial set of commits should look like. For > > instance does it matter if the new machine is added but it's totally > > unusable because there is no support for the clocks or should I put > > together a package that is the minimum needed to get to a shell? > > > > I think a shell is the minimum you should get to. > So my take would be to send basic DTS (and clocks, if needed) so that you can > boot into a shell, even using a initramfs. To expand on this, your basic DTS would likely include the CPU cores, an interrupt controller (GIC?), a basic timer block (ARM arch timer?), the UART(s), and a dummy clock for the UART(s). If the hardware blocks are already supported in mainline, then the first series would be extremely simple. Otherwise you would need to include the drivers for the UART, timer, and interrupt controllers so you can boot to a shell. An old example would be the initial Allwinner support patches: https://patchwork.kernel.org/patch/2838400/ Note the watchdog node is not needed. ChenYu > For the rest I'd propose to send each driver as a independent series. If you > want to add the DTS patch which adds the driver to your board, then make sure to > notice that it is based on the basic support. > > Hope that helps. > Regards, > Matthias > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel