From patchwork Sun Mar 12 16:57:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662519 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56396C6FD19 for ; Sun, 12 Mar 2023 16:58:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231197AbjCLQ6D (ORCPT ); Sun, 12 Mar 2023 12:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbjCLQ6B (ORCPT ); Sun, 12 Mar 2023 12:58:01 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F4857ECB for ; Sun, 12 Mar 2023 09:57:59 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id er25so11580996edb.5 for ; Sun, 12 Mar 2023 09:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678640278; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=k5AnnZE28vmaXIXEQrL8eUKQzsCZWn8PosDZ4WwlUFo=; b=hqnw8EeVwBJsA089DgVENUSeXwPRY8vRG+4mYsZdo5MqWl4YqMFgYX4ZIlpQsLZL7t B+/PrW6elq07xthNR+WznP7eKbqzUai058p/OvhqjTmaALmeTJrG4A/cIJ4Oqc4AaS9m j205GKaHsfgO789k2tiqQe1rwMIsHbtzM1fszaX3BUBcWrgXCpK9Q2xX8P+c6uf5OQJO iMdi2uoRvx6qA7WDxA9MzSw3+SuHwIcB0qAO2G4/avnPJiZ6Qmd8iJXzj6eY8l85B1Te XlQAfU5s+PfAScew4zajsI4Tf3daQ6sw0h6QThXMAjOliQlCF24I4JAQ3VYUaMp3jIwV /Pmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678640278; 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=k5AnnZE28vmaXIXEQrL8eUKQzsCZWn8PosDZ4WwlUFo=; b=bREmya9PUuPico5rDR+fGmxh8vbZ01YikatziVqqGkLXG0JonxGbh1d6Mb68RwOHAl HHvVYqVsuXouMiq6o2EwCadvIMMUuxC5QF6Ik0Z2S+rWlChehmi1lt3MZPH8kCiIuL6f AB3ZwdkHkmyvWEEIFQr5nQuvDUTUV8pFpcmsdhDRvnRvhb5Zhd0PF1aUWo+vhUYLAev3 dFoKPolQycYiy1XX/ggCC8Xsdl8kJbV2T++/e1TiIVYiYTPi32Ek+GneNHxyaaicHF7H nHX7klUNfHqubT9n1Yqi4L8oSLidtgzUBDNA4Z5DwRDJrg4qAwnJzZNCyi5A2rDIQC0b WHUA== X-Gm-Message-State: AO0yUKWWnVlQUTEmVhpK/nPGkjjLLnCgDaGRba3hVyqpoSYgP+lk1Ok1 gCfICiWZkF6MA9jaTCcDgbL3IQ== X-Google-Smtp-Source: AK7set8AQ3hvSDIO61F7nvE8/aXECdaLSX+D3AHg5tWE60d7IQm/2kKe3eVV1PvcTUwu0PpTgqlFMQ== X-Received: by 2002:a17:906:175b:b0:8b1:3483:e3d5 with SMTP id d27-20020a170906175b00b008b13483e3d5mr27161002eje.48.1678640278013; Sun, 12 Mar 2023 09:57:58 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d9f6:3e61:beeb:295a]) by smtp.gmail.com with ESMTPSA id t17-20020a170906179100b008e724dfc44bsm2405483eje.78.2023.03.12.09.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 09:57:57 -0700 (PDT) From: Krzysztof Kozlowski To: =?unknown-8bit?q?Mauro_Carvalho_Chehab_=3Cmchehab=40kernel=2Eorg=3E=2C_R?= =?unknown-8bit?q?ob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Krzysztof_Kozlo?= =?unknown-8bit?q?wski_=3Ckrzysztof=2Ekozlowski+dt=40linaro=2Eorg=3E=2C_Hans?= =?unknown-8bit?q?_Verkuil_=3Chverkuil=40xs4all=2Enl=3E=2C_=82_Chmiel__=3Cpa?= =?unknown-8bit?q?wel=2Emikolaj=2Echmiel=40gmail=2Ecom=3E=2C_linux-media=40v?= =?unknown-8bit?q?ger=2Ekernel=2Eorg=2C_devicetree=40vger=2Ekernel=2Eorg=2C_?= =?unknown-8bit?q?linux-kernel=40vger=2Ekernel=2Eorg?= Cc: Krzysztof Kozlowski , Rob Herring Subject: [RESEND PATCH] media: dt-bindings: silabs,si470x: Convert to DT schema Date: Sun, 12 Mar 2023 17:57:55 +0100 Message-Id: <20230312165755.385593-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the Silicon Labs Si470x FM Radio Receiver bindings to DT schema. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Resending because this patch is waiting for three months: https://patchwork.kernel.org/project/linux-media/patch/20221209175926.335227-1-krzysztof.kozlowski@linaro.org/ --- .../devicetree/bindings/media/si470x.txt | 26 ---------- .../bindings/media/silabs,si470x.yaml | 48 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 49 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/si470x.txt create mode 100644 Documentation/devicetree/bindings/media/silabs,si470x.yaml diff --git a/Documentation/devicetree/bindings/media/si470x.txt b/Documentation/devicetree/bindings/media/si470x.txt deleted file mode 100644 index a9403558362e..000000000000 --- a/Documentation/devicetree/bindings/media/si470x.txt +++ /dev/null @@ -1,26 +0,0 @@ -* Silicon Labs FM Radio receiver - -The Silicon Labs Si470x is family of FM radio receivers with receive power scan -supporting 76-108 MHz, programmable through an I2C interface. -Some of them includes an RDS encoder. - -Required Properties: -- compatible: Should contain "silabs,si470x" -- reg: the I2C address of the device - -Optional Properties: -- interrupts : The interrupt number -- reset-gpios: GPIO specifier for the chips reset line - -Example: - -&i2c2 { - si470x@63 { - compatible = "silabs,si470x"; - reg = <0x63>; - - interrupt-parent = <&gpj2>; - interrupts = <4 IRQ_TYPE_EDGE_FALLING>; - reset-gpios = <&gpj2 5 GPIO_ACTIVE_HIGH>; - }; -}; diff --git a/Documentation/devicetree/bindings/media/silabs,si470x.yaml b/Documentation/devicetree/bindings/media/silabs,si470x.yaml new file mode 100644 index 000000000000..a3d19c562ca3 --- /dev/null +++ b/Documentation/devicetree/bindings/media/silabs,si470x.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/silabs,si470x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Silicon Labs Si470x FM Radio Receiver + +maintainers: + - Hans Verkuil + - Paweł Chmiel + +properties: + compatible: + const: silabs,si470x + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fmradio@10 { + compatible = "silabs,si470x"; + reg = <0x10>; + interrupt-parent = <&gpj2>; + interrupts = <4 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpj2 5 GPIO_ACTIVE_HIGH>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 2892858cb040..a068df885006 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19034,6 +19034,7 @@ L: linux-media@vger.kernel.org S: Odd Fixes W: https://linuxtv.org T: git git://linuxtv.org/media_tree.git +F: Documentation/devicetree/bindings/media/silabs,si470x.yaml F: drivers/media/radio/si470x/radio-si470x-i2c.c SI470X FM RADIO RECEIVER USB DRIVER