From patchwork Wed Nov 22 14:42:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13465018 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id DE022C61D97 for ; Wed, 22 Nov 2023 14:42:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mdZXe6XInOMpa5WXlV7NgbZIg3KXbolJcDpWqYgtkgI=; b=wj+Fbdoxted4J+ Chl902RBlh6JQADVmXmmFYvpJAb0kwvqNnipFQIXxN1IsXtkvs8XO5AxdqG4pbEHdrnPZa7kdr+eM nCsoa6ws2LR9PNc3CZw/vhftbwP54BewZwzSYSoTtcUdeCKkJHm3a2Ps8Oa6kkKegPej8/3CZFx3o Q88IqFLcgGNJMdgJgC5AJdMZZf0r+du+4N595rpQBgJO/hZTfmRazU3bCzMl/jqoHSt1t+kkEjmTM sIxqKSdCxORWaJODyD2Ho92wZzKNCAcps41tox4RQn5d2N7xOPGkaYXpXObPgETqJuLKhIIcYFi6R SIKVc3XBFtoIPCrWSkAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5oQz-00283Z-0b; Wed, 22 Nov 2023 14:42:33 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5oQv-00282m-1u for linux-arm-kernel@lists.infradead.org; Wed, 22 Nov 2023 14:42:31 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5401bab7525so9821239a12.2 for ; Wed, 22 Nov 2023 06:42:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700664144; x=1701268944; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NUFxX9SRRRyGDoDMgzIpg9Kj0aIkUdbV6wP95me/PNw=; b=XMz2bsJR9pP5KjUXksdWTVXUcFxh/XLVEX0VUcQgF1BcRXyJRAj0Z5JT0Ucdt4DVCo C8Jz9Q0itMvfLUPuz3LhTvG0p2wprYko/cXVv4jGBnaI14a8RpVlpSrqaTdhkq+nhTYg gfH6XW78WlwVTc56wG1LgZcbEuyUJXoK42Y6YoCb3jxAGx2x0DQJVaJTtpVGWH050bzk 7qlyUmguOG7Ar7EB26fJCyAB+fL9NqaDOr0QG9aICIHMtAcWRTWtKHBu06dQVqlHDjb9 S5hRLmcZ2gaFr/PCHCg9g5LfBCHmjeDirCOwGmIZzkUiR56ePjrMFRJEjgLE+c+jONe8 rSuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700664144; x=1701268944; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NUFxX9SRRRyGDoDMgzIpg9Kj0aIkUdbV6wP95me/PNw=; b=aVWH4dYc5qa5GJ4+LpOqV9GEGTVbWqhIXjPo0tYGcmTyUoxUuvikRl8lAQZfiyqS30 B2YzZfC9G000o6RoKj3wgzwUO5K8ETDmkbaQ/bj/a2bOlHp8xe5HCpPG+N77Mgd1fmTV 7D99COdUxaA1qnVvS7JgbIMYLrbbKo8jqK70X5sQkrG3Zxy933qaZiG65a67C+JHC4s1 g9+Thz8ScP0S/1513EkWfQDYt09II6pn5WfGwEjlQwSrNEjhLpqLZytopHAhLNxKmnBu NGI86Ym1tagZenAGMAdKK09QS8HAHmWhnYsHOk7euEoeLiS3AXEHeMqcbRJiUDWnrOCe l40Q== X-Gm-Message-State: AOJu0YwPnDMXWzkMi7LLZGXYvaBQ1A/r4ThHcInSUN1D4Q+ScRG3mKOr bk/5UhFqP1AEJI/McBH3NGs= X-Google-Smtp-Source: AGHT+IFK5dXEW4ujsGpPqd7dGdQoi8bAvwXl2MRkh2CAniFxYCzAEJ5gLklZnE2yuRUSqPvKJOBsIw== X-Received: by 2002:a17:906:cb8d:b0:a00:7937:4460 with SMTP id mf13-20020a170906cb8d00b00a0079374460mr1511558ejb.25.1700664144080; Wed, 22 Nov 2023 06:42:24 -0800 (PST) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id g26-20020a170906349a00b00a0451802b3csm941221ejb.4.2023.11.22.06.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 06:42:23 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli , William Zhang , Anand Gore , Kursad Oney , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Greg Kroah-Hartman , Jiri Slaby , Andre Przywara , Alexandre TORGUE , Neil Armstrong , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH V2 1/2] dt-bindings: serial: add Broadcom's BCMBCA family High Speed UART Date: Wed, 22 Nov 2023 15:42:07 +0100 Message-Id: <20231122144208.21114-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231122_064229_651792_D359AC7B X-CRM114-Status: GOOD ( 15.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki It's an UART controller that first appeared on BCM63138 SoC and then was reused on other bcmbca familiy chipsets. Signed-off-by: Rafał Miłecki Reviewed-by: Krzysztof Kozlowski --- V2: Extend "compatible" and rename YAML file accordingly Krzysztof: since I reworked "compatible" I didn't want to carry on your Reviewed in case there is sth wrong with the updated schema. .../bindings/serial/brcm,bcmbca-hs-uart.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcmbca-hs-uart.yaml diff --git a/Documentation/devicetree/bindings/serial/brcm,bcmbca-hs-uart.yaml b/Documentation/devicetree/bindings/serial/brcm,bcmbca-hs-uart.yaml new file mode 100644 index 000000000000..64ef9eee7be2 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/brcm,bcmbca-hs-uart.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/brcm,bcmbca-hs-uart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Broadband SoC High Speed UART + +description: + High speed serial port controller that was designed to handle Bluetooth + devices communication. It supports sending custom frames that need to be + processed by a host system. + +maintainers: + - Rafał Miłecki + +allOf: + - $ref: serial.yaml# + +properties: + compatible: + items: + - enum: + - brcm,bcm4908-hs-uart + - brcm,bcm4912-hs-uart + - brcm,bcm6756-hs-uart + - brcm,bcm6813-hs-uart + - brcm,bcm6846-hs-uart + - brcm,bcm6855-hs-uart + - brcm,bcm6856-hs-uart + - brcm,bcm6858-hs-uart + - brcm,bcm6878-hs-uart + - brcm,bcm47622-hs-uart + - brcm,bcm63138-hs-uart + - brcm,bcm63146-hs-uart + - brcm,bcm63158-hs-uart + - brcm,bcm63178-hs-uart + - const: brcm,bcmbca-hs-uart + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + + serial@fffec400 { + compatible = "brcm,bcm63138-hs-uart", "brcm,bcmbca-hs-uart"; + reg = <0xfffec400 0x1e0>; + interrupts = ; + }; From patchwork Wed Nov 22 14:42:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13465022 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B4EFBC61D9B for ; Wed, 22 Nov 2023 14:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8SxjdPnAHd1kioPWzqdbBU+07KpOG0gZgiDvO+qPt2Y=; b=VJH8gdgalpidyb XsATDZ4yr4R1c4QjN0YvIoVUPW6BkBuebOvfg8zKERiuSZWPQekmuCvDjIE4o1lVYT4Tx6VtFmN4H 3nbaGfamBZlg9BGHNxpD0KiiLeOAwIQVZ75S2r7rcjEo5gWUibSGn5TogH+DtCUKFjb90IJjFpj7b cLr4LfDO6QXJ3kG2RFc4mpxOqOj5sMB6O7olBrmjSV5rCY/ep8SiNA0gJMM8EzRMa+v/wfpz+D3vj Mb8uMIABGJIeqlzVKTB0+iTJ6wYHDQUakjTkZTSdi2GK6XLiUoh0SIRUoSyfokMJ7vos+5WWajcRi osDBfv79rtgOo8qYEnlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5oRb-0028IH-2q; Wed, 22 Nov 2023 14:43:11 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5oRO-00286B-1v for linux-arm-kernel@lists.infradead.org; Wed, 22 Nov 2023 14:43:01 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a0029289b1bso421698166b.1 for ; Wed, 22 Nov 2023 06:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700664173; x=1701268973; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=g/z7cZGo4AH+Kl8ZoU+fwv3avNMZa+bBMOnxsl0hk6s=; b=RpgEpI38cm0xQH8b3xvI4/nS21v+Bi5eDmhRbRcZoEJcqvaRG0gEqsmkjiBK7O//v1 ibBoNAvKuPZKfXOL7uFBK+/kjouroXK6zC6WfaFL2kqPKOF2Hj6OJEX0HIETag9fMnvS lAfNar4/wsP58maiGZeLyq0P2sC22vwJmxwNM30F6IlaiPx+lBUjLyWY2sOPBOmWM8k3 BhYDu6P0H05Nxd+CEAagiRPp4j93/A7ljQUj9kDlv4YVUBR/Mw/Oii0sS2ARbKOJIzu3 Maz/wa5izY9gRQuLSSibQJ242Q4sES6MMhPe1rVA0Lu/zKhZkppron2f4QIMgnKazA+p 4TXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700664173; x=1701268973; 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=g/z7cZGo4AH+Kl8ZoU+fwv3avNMZa+bBMOnxsl0hk6s=; b=jjhVO/rSwgzHRYVnzvMnk5zsg3hnVCu+bRrHbz4Aqufz8To6RdlBt/WvvJYuYzbk2/ f1K8LBdIX10ZcSSHwd0tYzD4lJtO5sUgyq2/mQM1KFnbqz6iPQkQlh9jyoaVHCiej6gM +eJhTFHS8e83FiX5pYfid6BanxSev72EjrjyX79/rEVUdGuQqgfhDWJeG9oPMu/T4vBR hpX37I8h+PILRd1G6IQORXr7WsPkNd19FJcTm7NT6VaIY48K+gv4x403nJdXkVztgFUc ad4bBpKRUM0nxdRxZCAqHY1LuXNek1cF/tvir1nozYCEJi0Xj9tGQmEYWxlKdtT7Ac1t U6KQ== X-Gm-Message-State: AOJu0YwxWg+F/8PqynUruQ9gNImapTkd+z9mQrMu1nk08jZDM7Heqyob Ab8Ve1yFAKkgxFk52ODsOc3G6gtfh20= X-Google-Smtp-Source: AGHT+IF1aP/JjzO5QLHkDyw0DxwVXFxJ66Wo6X0nSHSrkxOrvZ4EAyRq0kZ8ShpYsGik/R3NH1gCCw== X-Received: by 2002:a17:906:4096:b0:9de:cfa1:f072 with SMTP id u22-20020a170906409600b009decfa1f072mr1808752ejj.25.1700664172980; Wed, 22 Nov 2023 06:42:52 -0800 (PST) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id g26-20020a170906349a00b00a0451802b3csm941221ejb.4.2023.11.22.06.42.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 06:42:52 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli , William Zhang , Anand Gore , Kursad Oney , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Greg Kroah-Hartman , Jiri Slaby , Andre Przywara , Alexandre TORGUE , Neil Armstrong , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH V2 2/2] ARM: dts: broadcom: Add BCM63138's high speed UART Date: Wed, 22 Nov 2023 15:42:08 +0100 Message-Id: <20231122144208.21114-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20231122144208.21114-1-zajec5@gmail.com> References: <20231122144208.21114-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231122_064258_663982_58A5C612 X-CRM114-Status: GOOD ( 11.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki It's designed for hardwiring Bluetooth devices to it. Signed-off-by: Rafał Miłecki --- V2: Update "compatible" arch/arm/boot/dts/broadcom/bcm63138.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm63138.dtsi b/arch/arm/boot/dts/broadcom/bcm63138.dtsi index 93281c47c9ba..4ef02283612b 100644 --- a/arch/arm/boot/dts/broadcom/bcm63138.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm63138.dtsi @@ -232,6 +232,12 @@ nand_controller: nand-controller@2000 { interrupt-names = "nand"; }; + serial@4400 { + compatible = "brcm,bcm63138-hs-uart", "brcm,bcmbca-hs-uart"; + reg = <0x4400 0x1e0>; + interrupts = ; + }; + bootlut: bootlut@8000 { compatible = "brcm,bcm63138-bootlut"; reg = <0x8000 0x50>;