Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp57267pxu; Tue, 6 Oct 2020 00:04:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVPr7atGm42PA/MdWIgF+yrHyQ1gErB8iZHoUTb2qLno3Co5oca/p+UTW4ApH4SAfP/SVy X-Received: by 2002:a17:907:212b:: with SMTP id qo11mr3607022ejb.107.1601967863467; Tue, 06 Oct 2020 00:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601967863; cv=none; d=google.com; s=arc-20160816; b=N7fr12N0O7BhNMKHUSMeEITT0bKnece0cfWVcg39FyFFioCw4XPDDJwwXEAjgFZLY9 HIuMxBSD6X2zkxGSEr8AOV86JFzTx3pGkGsHii6G4MUkM84+PU+UgSxZpz/6Mu0BbAI6 MBgIeJKdFPy7eAKkTNqEJE9MpnaEUHegmWj2+zqIkTW0TH/4xxwwMtVFaMUzyVCASoAR nYXzZFWyzFT9nNRo3s1VLykD4BGl7PZZokEBWxeehsLRjCTaENznsArSwbiBY/FcU/N+ vjxKZ8QP/45QAysTWN0g6OLwD3cxEZg2HDeXUzRObjwT0gYf2Fr4l21E4EfM3NfI/A49 LhlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kLnvcGYBW3K2JHWzUc8H3P/mWmh3X6aiUW1vORxEEk4=; b=1JDIXpv8YZROsmPMKxD5jiPVqP6Kjuk6efcofIe40hMgfeyl9OmQVimWpbhVcS5E/Q HeN7Y3XNb3q1d3MoMPjsmiP8j1CI7eibqqQOF+FflQIYfSNvrpxFA7gsEebRDSo+yECB ibzfyGWl3LQgmO1A8mh8vxj99swNWtMfG9ni6rIMAm/wV1B5bnrukx5cwqTiOgKhCmqq OY+xeilLI/ICgvUflf4ceTAUDIqJ6LuywJAFgyYFFf4ycXKtCnBWTd1l+dsl9I5nWb4V ZehcFIU56EoBZfyNREZFtB/zQBVzNPslpISV2nfLSNgw/sTCpbrHLNQHOiqViYyHjfyF 2pQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@antmicro.com header.s=google header.b=W84ohUHy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si1697069edq.83.2020.10.06.00.04.00; Tue, 06 Oct 2020 00:04:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@antmicro.com header.s=google header.b=W84ohUHy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727132AbgJFHBF (ORCPT + 99 others); Tue, 6 Oct 2020 03:01:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727038AbgJFHBF (ORCPT ); Tue, 6 Oct 2020 03:01:05 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44881C0613D2 for ; Tue, 6 Oct 2020 00:01:05 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id o8so753749pll.4 for ; Tue, 06 Oct 2020 00:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antmicro.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kLnvcGYBW3K2JHWzUc8H3P/mWmh3X6aiUW1vORxEEk4=; b=W84ohUHypmj3DBg8s+ZzDXVQ6kA9mRdTcNoOJkgWPvlicW1CRh+p6VASoV6JT9Lof9 i2cFX/BdUq1zT+mw/h/8Ekqn69vAzwwDDNWpfSbgbn/hJyJm19TP6hXUliGSLVEYqPmx 9I9pymggsZ2W2CFEInZUD22uUVY+3ty6L24Lk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kLnvcGYBW3K2JHWzUc8H3P/mWmh3X6aiUW1vORxEEk4=; b=h6NGxlZz/ZII1BEI4MqDcrsx7sqo9izOd7IBwLjbK8OwdvEN2ekVPysDTNURnD+jYL izyx0Y4loa5HunWmqbCjcYrPQhxLpHymXUtJIRjNEU4yy/AcoSBKNBrpEqpJ+ZurVzKZ DYudGnkkmUeTmFzkwJxXKYtvq3JVldGNnm/HhxfNB0nGmFJvfTR9CmO9/4XcyyiK7rd3 +dKO//GuI5i/o8hpfEwr6RESr5yTEMiJUo5FXIqiUl4mjj0dpCPkL4x3OWZjpoS88+l5 xbje4yks9WYwkMV0vcBcRcNgdyBpRsrferWHiDd/3xzimFK+1EuEUJU5zJs+Y+tZW9Tb f5IA== X-Gm-Message-State: AOAM531X8HLEVuqENXlY6TWJOeklzZGMULg3817EjKroe5/CLy2lMxfj k7SKltygdMBep9pc57h6SVk/oWqhjZYgXKiLoQGG0w== X-Received: by 2002:a17:902:9347:b029:d3:b2c6:1500 with SMTP id g7-20020a1709029347b02900d3b2c61500mr2057414plp.5.1601967664699; Tue, 06 Oct 2020 00:01:04 -0700 (PDT) MIME-Version: 1.0 References: <20200923120817.1667149-0-mholenko@antmicro.com> <20200923120817.1667149-4-mholenko@antmicro.com> In-Reply-To: From: Mateusz Holenko Date: Tue, 6 Oct 2020 09:00:52 +0200 Message-ID: Subject: Re: [PATCH v11 4/5] dt-bindings: serial: document LiteUART bindings To: Geert Uytterhoeven Cc: Rob Herring , Mark Rutland , Greg Kroah-Hartman , Jiri Slaby , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:SERIAL DRIVERS" , Stafford Horne , Karol Gugala , Mauro Carvalho Chehab , "David S. Miller" , "Paul E. McKenney" , Filip Kokosinski , Pawel Czarnecki , Joel Stanley , Jonathan Cameron , Maxime Ripard , Shawn Guo , Heiko Stuebner , Sam Ravnborg , Icenowy Zheng , Laurent Pinchart , Linux Kernel Mailing List , "Gabriel L. Somlo" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Fri, Sep 25, 2020 at 3:16 PM Geert Uytterhoeven wrote: > > Hi Mateusz, > > On Wed, Sep 23, 2020 at 12:10 PM Mateusz Holenko wrote: > > From: Filip Kokosinski > > > > Add documentation for LiteUART devicetree bindings. > > > > Signed-off-by: Filip Kokosinski > > Signed-off-by: Mateusz Holenko > > Reviewed-by: Rob Herring > > Thanks for your patch! Thanks for your review! > > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/serial/litex,liteuart.yaml > > @@ -0,0 +1,38 @@ > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > + > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/serial/litex,liteuart.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: LiteUART serial controller > > + > > +maintainers: > > + - Karol Gugala > > + - Mateusz Holenko > > + > > +description: | > > + LiteUART serial controller is a part of LiteX FPGA SoC builder. It supports > > part of the Right, will fix that. > > + multiple CPU architectures, currently including e.g. OpenRISC and RISC-V. > > + > > +properties: > > + compatible: > > + const: litex,liteuart > > Have you already decided how to handle future LiteUART variants that add > new features (e.g. CTS/RTS, DMA)? We were thinking of adding KConfig options, like [ ] LiteUART serial port support < > LiteUART DMA support and using ifdefs in the code. The other option could be to extend LiteX itself so that the UART core provides information about its configuration via the capabilities register. That way the driver could configure itself automatically at runtime. This is, however, not decided yet. > > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > +required: > > + - compatible > > + - reg > > + > > +examples: > > + - | > > + uart0: serial@e0001800 { > > + compatible = "litex,liteuart"; > > + reg = <0xe0001800 0x100>; > > + interrupts = <2>; > > + }; > > -- > > 2.25.1 > > > > > -- > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds Best regards, Mateusz -- Mateusz Holenko Antmicro Ltd | www.antmicro.com Roosevelta 22, 60-829 Poznan, Poland