Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp648502lqt; Fri, 19 Apr 2024 06:40:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjLQPoS70ctuRZe34toMJrB1uT3w4Z7CzzRA2j4SnYmQWvtuNjOe9msEHUThA7QHv7C6eL39+Z9FMRnn5gA4jzeTroXKt7jXv7R6CV6A== X-Google-Smtp-Source: AGHT+IFYsKZ0msA2TGax7B//qOFIkeAu8YH4XwuU39/TLwos+6LltIVHGgFfQLfdcD+a65vtBRwY X-Received: by 2002:a05:620a:234:b0:78d:6dfa:3e42 with SMTP id u20-20020a05620a023400b0078d6dfa3e42mr2345030qkm.66.1713534044608; Fri, 19 Apr 2024 06:40:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713534044; cv=pass; d=google.com; s=arc-20160816; b=ItrL7n+hyrGpSF5Swp5uwkm9MKtIhEFmRqyhsArjM8JpPk8RwuQruKO86FPivF6+Zi ZCJ6HpScoFQuWfvLcHkBdBppOlFc8LJuzUg4pfgL109Vs9EFNS1fvsFOod1Xcmy+3rwq 176bevutKpIAFl8roGuS9Rq2P/AXBlSWH7dEEP55QWeE0U6wHNSTdwQCmF/YRsEUdUSe +PpIm1zFBtfAsGF0WsT+57sQWoDsGgZ2RjauhJ3XpHugufr/cvc8bjT8im8knEPc0ZWE u+VvHkP7jKRjBVCB/Yqml/cQ1yOaPYZX6ZLvlerjou5BIEgbGH6wJdr1z1z7QGJmu1Wm HDWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=88OzPCMmMVYOwupPg6OkAd67e40tz5zYU0Q3Z+mUdkU=; fh=p7cKZzlM2X3ODjXRUmJkLl4gWagY4j8B0qJfLEoYiGs=; b=xThNiN0TBGNXji5ZTUW2yvWCWoOqEi1o6EjRok5YTS5SBkRmhRdz5d710ZO5BuRO1F UwKAp1Qd8l6wa4rekRnhI5wQ39mgEUvTmwh7m7Q053YDOIVGvCjfQUuELG8g9pk8Bw8x pg1MlIW1xos+kLeAnoa7xUggna7zhwYafOUfJjf1npmyQcdBbqd6UdyfF1wRA1b5lTdF rGRSxYaP5V2lHyUfQsto87ImG1UbcnfJRFZpuXZ3gYhW60DEhdA5ZO9cRJrT8930KO5C FJ6m6LDHITtzpbi/jlyDkTMnmDqHHvYbQoaxPnUyYAPdoR8hfqlZHaObraYVFu9BFFG+ ELrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lvZonMul; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-151490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q2-20020a05620a0c8200b0078ed1542ae7si3763681qki.593.2024.04.19.06.40.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 06:40:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lvZonMul; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-151490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 477AD1C22A5C for ; Fri, 19 Apr 2024 13:40:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 88EEA12AAE9; Fri, 19 Apr 2024 13:40:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lvZonMul" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 231F9128806; Fri, 19 Apr 2024 13:40:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713534034; cv=none; b=H6DW/Dr8XQW1r5/tYetQNBaZlI2aAna9LngLZGGG3uK4++E2G47CL3USyuRqPWeBioddr6lkDpRFq/OJr1JwEAUvGmK00dSNQZMujIKqQG8wBnn7EicdAb7J2/0pV7BJNf5YGOlFL/U9Z+zMbj1yuoau89YqIMGDBd/zRqylgGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713534034; c=relaxed/simple; bh=r303P7AMvICWwMERTQj17vy0rKIEfoN+4xEvUKIS2Io=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ukRUS39Iqu9G0Ax6BOCi15fnOlGWfoOFFwprhW7UsqpnMObNoEoVpYXghG6dG+3an45CNXHrJGGW+C79Lq/RdUB7MkL4uEwtjaSwfN+tg2kiGK9C4LXe+DOfmiK3J4BVgZiOSrJPTEW/L93h4zzXW49X2fHk0FQFxC+xo5IaFjc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=lvZonMul; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-518a56cdbcfso3310374e87.2; Fri, 19 Apr 2024 06:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713534031; x=1714138831; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=88OzPCMmMVYOwupPg6OkAd67e40tz5zYU0Q3Z+mUdkU=; b=lvZonMulcxbn5sX+pO2mUvxozDXkDPQOqaMAzpGXi4E/kPLdyrxDGH3BC3smYLvn7U so0ZVrN59l27v8X6QEwFJsvHcsM4ypfFKCUm8lMSrBKMXo62jEe8cLaQYaoPYRcI803F NdeD+vnDT9HP74EoyPWiTZ2yoihntSsUuQWT0iNB1hiSOXGssCbjTrZY70wnGgomuCiN pQX8IeUzaMdxoAa1TSBW67KXBpX42QK/UB5BMRfux7vg4KFXeNPctU8gLmdvBD4ngeAE kj2P/f7gBlfE7C6r9o++l6Y5T9izJg/fpiXHeYUMHok0Ap7+3DyWwe4vwV5vF4Ub5Zn+ HVtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713534031; x=1714138831; 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=88OzPCMmMVYOwupPg6OkAd67e40tz5zYU0Q3Z+mUdkU=; b=NQKMAg8fOwv5y8UdZyAw6igTMoWKwRyYPn9xM5VwKAKn26w/CvHFCAEXwNrGhVJt2x RJd13sEx2kH5glPjy9B1DinJn1D/l4YFm5W+jxmJD6HBYwy5zmHNryTw0hhCLqsdpAuM l+A3w+qKOra9t5q/qNZTejPGU6ePFm8AsyVn+nK+bbWkS8pmnbc1GX0/Bw9joxq9Ow4V LuaImGr1ZWwfiPbAm7kyWIkhx0FHT5eQCjW4uWY1TaUNwVMBTxis2o7e0cHMItv1hAq6 q3Agg/3LGQJYWWk8YLO7gxdfaZ7kPEab8akj3/7DgMLmU4zhiUNyJ9t1qS/c2y9gdfGF EeMw== X-Forwarded-Encrypted: i=1; AJvYcCVT8NHvI41uSSqt80J5tfe7GVIWTx2EK3QiLpgYRfM+j+C0sCpTztAtXTqQNl39aA7KnMyPsjDXlPJDz5XWp5SBGTEwX9dbeD/LIiu7rdKK0r3RoCh801zoetqj+CLuhV36poqzuk/KgZ8XqeEJS1OVLOXimv+Iu1OEO+z9GyCP8NwGxS9R+A== X-Gm-Message-State: AOJu0YyK+gX7dKo2CPBO/cp8Qx1xQGC+2sgGWBvahaOG3JW8Sfrh+9yr Ry/Hdu+GvcK6nox7PMvNs3YJkXU4ioWLEAdBKnV9c8+J/k0Bqi+BONcfhe3e X-Received: by 2002:ac2:4bd0:0:b0:516:9f03:6a92 with SMTP id o16-20020ac24bd0000000b005169f036a92mr2566518lfq.43.1713534031040; Fri, 19 Apr 2024 06:40:31 -0700 (PDT) Received: from pratik-IdeaPad.lan (customer-145-40-29-195.stosn.net. [145.40.29.195]) by smtp.googlemail.com with ESMTPSA id q3-20020a056512210300b0051876f88f46sm711190lfr.208.2024.04.19.06.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 06:40:30 -0700 (PDT) From: Pratik Farkase X-Google-Original-From: Pratik Farkase To: Cc: Pratik Farkase , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Pratik Farkase , Stefan Wahren , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3] dt-bindings: serial: brcm,bcm2835-aux-uart: convert to dtschema Date: Fri, 19 Apr 2024 15:40:08 +0200 Message-Id: <20240419134010.105297-1-pratik.farkase@wsisweden.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert the Broadcom BCM2835 Auxiliary UART to newer DT schema. Created DT schema based on the .txt file which had `compatible`, `reg` `clocks` and `interrupts` as the required properties. This binding is used by Broadcom BCM2835 SOC used in some Raspberry PI boards. Changes from original file: Implemented complete example which the original txt binding lacked. Reviewed-by: Conor Dooley Signed-off-by: Pratik Farkase --- Changes in v3 - Removed unecessary headers from example - Removed the `uart1` label --- Changes in v2 - Updated Maintainers list according to feedback - Fixed typo `Auxiliar` to `Auxiliary` --- --- .../bindings/serial/brcm,bcm2835-aux-uart.txt | 18 -------- .../serial/brcm,bcm2835-aux-uart.yaml | 46 +++++++++++++++++++ 2 files changed, 46 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.yaml diff --git a/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt deleted file mode 100644 index b5cc6297cd1b..000000000000 --- a/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt +++ /dev/null @@ -1,18 +0,0 @@ -* BCM2835 AUXILIAR UART - -Required properties: - -- compatible: "brcm,bcm2835-aux-uart" -- reg: The base address of the UART register bank. -- interrupts: A single interrupt specifier. -- clocks: Clock driving the hardware; used to figure out the baud rate - divisor. - -Example: - - uart1: serial@7e215040 { - compatible = "brcm,bcm2835-aux-uart"; - reg = <0x7e215040 0x40>; - interrupts = <1 29>; - clocks = <&aux BCM2835_AUX_CLOCK_UART>; - }; diff --git a/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.yaml b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.yaml new file mode 100644 index 000000000000..8a31eb56b865 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/brcm,bcm2835-aux-uart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: BCM2835 AUXILIARY UART + +maintainers: + - Pratik Farkase + - Florian Fainelli + - Stefan Wahren + +allOf: + - $ref: serial.yaml + +properties: + compatible: + const: brcm,bcm2835-aux-uart + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + serial@7e215040 { + compatible = "brcm,bcm2835-aux-uart"; + reg = <0x7e215040 0x40>; + interrupts = <1 29>; + clocks = <&aux BCM2835_AUX_CLOCK_UART>; + }; -- 2.34.1