Message ID | 20230615182938.18487-5-tanure@linux.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp854652vqr; Thu, 15 Jun 2023 12:04:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ471cI/6ofV/TLoga6gp4aKU9wPphX1lD1t//KxnfPEGao+LG10opA1PH2al+jb5UdH7aEK X-Received: by 2002:aa7:c149:0:b0:514:90b1:da with SMTP id r9-20020aa7c149000000b0051490b100damr13375466edp.29.1686855892834; Thu, 15 Jun 2023 12:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686855892; cv=none; d=google.com; s=arc-20160816; b=DURUoRVKz3PQGmQ0WcXXJvhD/PhHa+GpT+fzd71eu9XXmt6oNkxUa1aEYm26hz+WV6 4zWGhAQqF709DwQa1v4KNDg/0hYvW8fA4uwG0wUNGesp7frJHLi0B0GUQdlVhRuuxu07 P8vX6+ur5cooTC7zSRniGuYy+eq8pDvmyxdoTwxQbCHRAtftnTwYVqI9ZI+iR0/WJ8VD zDDg3FyTSp6XhwU6PhOmWuxcHjiP5GRUcElDCduXpFo8riQdkeye1IscI94MlEr67Mwn 4T9lmpqunGFGIwEjQeWzkZhh3kjq0HR2IuG6w8ic2xKoSyfJ2umSc9lFrYsxRCiob/m3 G4Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+CTYF5ruN+Zlst0kqVClfG2q0zNldhioydCFUBAjqvk=; b=IkBj+81E+z6fJicukSXGcWbDqmus3ioEmvnoUJ0WwCjedqclCtJLjaR7R/z8Vsf/MW hK5CAikBv5yAfXwYEXLjxhTwtWbWYdMn1rdkjmEgSzEMzQuHU8VoryT6wS8Pc1qMgrWH PLSlzH7UciqXawdbrMjfIn7UO3Ku54Y8/w7A6Yw5PrlCJ4NVLM0InNAabo3aGIrTVskE GTITEqIoMt6QNBv6y1kTH/AFVABhQjwQV0zAplwMdDwQxA/Gif0M5Ra6YPagnzYU6OZX YfT6+DhyuWBoMQ7Q9dlqYAxGM3uXtphH5+OTY/uzojLiuJIlpqOHpBEdEdV8LfurnT3z 5e5w== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y20-20020a056402135400b0051a20125979si1486786edw.272.2023.06.15.12.04.24; Thu, 15 Jun 2023 12:04:52 -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; 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 S234027AbjFOSaA (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Thu, 15 Jun 2023 14:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229767AbjFOS3s (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 15 Jun 2023 14:29:48 -0400 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A9A3199D; Thu, 15 Jun 2023 11:29:47 -0700 (PDT) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-311167ba376so797604f8f.1; Thu, 15 Jun 2023 11:29:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686853786; x=1689445786; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+CTYF5ruN+Zlst0kqVClfG2q0zNldhioydCFUBAjqvk=; b=S054bT1lrM/PWsRaNvvPbZPVtKFjamZSjJcfWmZ84rdy5x9CazvAlGFjDhxxQkD5Yl qxGHB9nCJKRxxjgNZ/CSIs8x+5oAMVU96kYb2GG0kcCQakFj2Eff1xS/7BQoTOnAJOQg Hs9cTTaZ+oZoXQoPgyA8VhFqG3y3sr5lcjyz9kmwTz9zIZZW37dB9K4hFfW3bKTDZegS UzGqQxxui1Gcp+2tPJhQhJ0TcwUprzuZhLvMTxvx5ZW04ByEPFuwbK2lSl7zxGQuknek h902l07yY7u4wFLJ+yBhVYV+ek7XboQPME1m4QPPZ6gTw9I8Mbfv947+udFmcBGGyLff jvcw== X-Gm-Message-State: AC+VfDwzhLbqvtSgdbIjOpvi5Rz7pVzfQYV5/FzKljFqvy8E1UH+le5c hnNOTERBBx+mQQ693y24x2A= X-Received: by 2002:a5d:6408:0:b0:30f:a938:6d5d with SMTP id z8-20020a5d6408000000b0030fa9386d5dmr10449466wru.56.1686853785730; Thu, 15 Jun 2023 11:29:45 -0700 (PDT) Received: from ryzen.lan (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id c3-20020adffb03000000b0030ab5ebefa8sm21525887wrr.46.2023.06.15.11.29.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 11:29:45 -0700 (PDT) From: Lucas Tanure <tanure@linux.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Neil Armstrong <neil.armstrong@linaro.org>, Jerome Brunet <jbrunet@baylibre.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Kevin Hilman <khilman@baylibre.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Nick <nick@khadas.com>, Artem <art@khadas.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, Lucas Tanure <tanure@linux.com> Subject: [PATCH 4/6] dt-bindings: serial: amlogic, meson-uart: support T7 Date: Thu, 15 Jun 2023 19:29:36 +0100 Message-ID: <20230615182938.18487-5-tanure@linux.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230615182938.18487-1-tanure@linux.com> References: <20230615182938.18487-1-tanure@linux.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768796604365707138?= X-GMAIL-MSGID: =?utf-8?q?1768796604365707138?= |
Series |
Add Amlogic A311D2 and Khadas Vim4 Board Support
|
|
Commit Message
Lucas Tanure
June 15, 2023, 6:29 p.m. UTC
Add serial bindings support menson T7 SoC family.
Signed-off-by: Lucas Tanure <tanure@linux.com>
---
Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml | 1 +
1 file changed, 1 insertion(+)
--
2.41.0
Comments
On Thu, Jun 15, 2023 at 07:29:36PM +0100, Lucas Tanure wrote: > Add serial bindings support menson T7 SoC family. > > Signed-off-by: Lucas Tanure <tanure@linux.com> > --- > Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml > index 01ec45b3b406..01b01f8840ea 100644 > --- a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml > +++ b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml > @@ -46,6 +46,7 @@ properties: > - amlogic,meson8b-uart > - amlogic,meson-gx-uart > - amlogic,meson-s4-uart > + - amlogic,meson-t7-uart | diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c | index 2501db5a7aaf..0208f9a6ba7e 100644 | --- a/drivers/tty/serial/meson_uart.c | +++ b/drivers/tty/serial/meson_uart.c | @@ -796,6 +796,10 @@ static const struct of_device_id meson_uart_dt_match[] = { | .compatible = "amlogic,meson-s4-uart", | .data = (void *)&meson_g12a_uart_data, | }, | + { | + .compatible = "amlogic,meson-t7-uart", | + .data = (void *)&meson_g12a_uart_data, | + }, | { /* sentinel */ }, | }; | MODULE_DEVICE_TABLE(of, meson_uart_dt_match); You're adding another element to this enum, but the driver change implies compatibility with the s4 uart. Should you not set this up with fallback compatibles? Cheers, Conor. > - description: Everything-Else power domain UART controller on G12A SoCs > items: > - const: amlogic,meson-g12a-uart > -- > 2.41.0 >
On Thu, Jun 15, 2023 at 10:25 PM Conor Dooley <conor@kernel.org> wrote: > > On Thu, Jun 15, 2023 at 07:29:36PM +0100, Lucas Tanure wrote: > > Add serial bindings support menson T7 SoC family. > > > > Signed-off-by: Lucas Tanure <tanure@linux.com> > > --- > > Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml > > index 01ec45b3b406..01b01f8840ea 100644 > > --- a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml > > +++ b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml > > @@ -46,6 +46,7 @@ properties: > > - amlogic,meson8b-uart > > - amlogic,meson-gx-uart > > - amlogic,meson-s4-uart > > + - amlogic,meson-t7-uart > > | diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c > | index 2501db5a7aaf..0208f9a6ba7e 100644 > | --- a/drivers/tty/serial/meson_uart.c > | +++ b/drivers/tty/serial/meson_uart.c > | @@ -796,6 +796,10 @@ static const struct of_device_id meson_uart_dt_match[] = { > | .compatible = "amlogic,meson-s4-uart", > | .data = (void *)&meson_g12a_uart_data, > | }, > | + { > | + .compatible = "amlogic,meson-t7-uart", > | + .data = (void *)&meson_g12a_uart_data, > | + }, > | { /* sentinel */ }, > | }; > | MODULE_DEVICE_TABLE(of, meson_uart_dt_match); > > You're adding another element to this enum, but the driver change > implies compatibility with the s4 uart. Should you not set this up with > fallback compatibles? I will drop this patch and use the s4 and g12a compatible strings. > > Cheers, > Conor. > > > - description: Everything-Else power domain UART controller on G12A SoCs > > items: > > - const: amlogic,meson-g12a-uart > > -- > > 2.41.0 > >
On Sun, Jun 18, 2023 at 06:37:40PM +0100, Lucas Tanure wrote: > On Thu, Jun 15, 2023 at 10:25 PM Conor Dooley <conor@kernel.org> wrote: > > > > On Thu, Jun 15, 2023 at 07:29:36PM +0100, Lucas Tanure wrote: > > > Add serial bindings support menson T7 SoC family. > > > > > > Signed-off-by: Lucas Tanure <tanure@linux.com> > > > --- > > > Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml > > > index 01ec45b3b406..01b01f8840ea 100644 > > > --- a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml > > > +++ b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml > > > @@ -46,6 +46,7 @@ properties: > > > - amlogic,meson8b-uart > > > - amlogic,meson-gx-uart > > > - amlogic,meson-s4-uart > > > + - amlogic,meson-t7-uart > > > > | diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c > > | index 2501db5a7aaf..0208f9a6ba7e 100644 > > | --- a/drivers/tty/serial/meson_uart.c > > | +++ b/drivers/tty/serial/meson_uart.c > > | @@ -796,6 +796,10 @@ static const struct of_device_id meson_uart_dt_match[] = { > > | .compatible = "amlogic,meson-s4-uart", > > | .data = (void *)&meson_g12a_uart_data, > > | }, > > | + { > > | + .compatible = "amlogic,meson-t7-uart", > > | + .data = (void *)&meson_g12a_uart_data, > > | + }, > > | { /* sentinel */ }, > > | }; > > | MODULE_DEVICE_TABLE(of, meson_uart_dt_match); > > > > You're adding another element to this enum, but the driver change > > implies compatibility with the s4 uart. Should you not set this up with > > fallback compatibles? > > I will drop this patch and use the s4 and g12a compatible strings. You still need to add a compatible for the t7, just let it fall back to one of the others. Eg: compatible = "amlogic,meson-t7-uart", "amlogic,meson-s4-uart"; Cheers, Conor.
diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml index 01ec45b3b406..01b01f8840ea 100644 --- a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml +++ b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml @@ -46,6 +46,7 @@ properties: - amlogic,meson8b-uart - amlogic,meson-gx-uart - amlogic,meson-s4-uart + - amlogic,meson-t7-uart - description: Everything-Else power domain UART controller on G12A SoCs items: - const: amlogic,meson-g12a-uart