From patchwork Fri Jan 6 20:07:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 40258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1008838wrt; Fri, 6 Jan 2023 12:18:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXvQy1PyXNLhWiq+yGDRAvs8B5v5NjpsEcpWTUEBqjp80rj8V5swUjj9wa15Ou556ByivQwU X-Received: by 2002:a17:907:86a6:b0:7c0:fd1a:79f0 with SMTP id qa38-20020a17090786a600b007c0fd1a79f0mr68422230ejc.21.1673036303591; Fri, 06 Jan 2023 12:18:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673036303; cv=none; d=google.com; s=arc-20160816; b=yOLKNBXF7AB8QBBvosh9bWIj5PPeBsIUMkcE9H9Bp/2fNMzQZ86J0tCmQAjbmuGB/V uhI+EmPAsrc+5SoZI7GBJ6kz3t/Ac37WNlZ1Y/hkMC7ZaU7VGTuNM4x0cw544TNAeWPg 1qKNNxVzWOkvrUj0V5TRanopOl/dZVHNWVztSVxCxLAw4o9NmzLPfwAtMetFJRTPxZFe q3QLknf/YmnBpHAHIOpQg6fCipJWk7g/9l5i6cCMho9UxnCws2aAhlty2D9mgXgVXWPA cYwIF26KID/eAosq/qLdAIyWuhTLHX04W0gLtI3woXq50tLfSsA5Re5k2kRH0WTuLk1e NCMg== 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 :dkim-signature:dkim-filter; bh=21TidiRTCCpbzSmO1piSrDtDDfRsxhbpoCOOo+kJCgM=; b=k2PHIh3SeTwIhFU9sN48qzKZA3OB/ZIUzXGsFmH8OBXG2wIaqx392wtO8bmc4qj0sJ 7zruNjJeM2gVYcpeG420CppI6rTJzeuaFVSor/zu1If4BZx1CC1a8RKNSpdtThb2/4bG XVmGvJLH0Z3UpI3Agjv9GCa4X57YnxDgGEMQ/aIvZ0jZZt2mjuBcAlHhwepZc65O784t ICH9Q6RBYK4dbl8Q8u1GMCf4KzpD0QL1rl30mo0yo9SbLc3szBYltmi1Q3Hf1T2Df0wW 8eyoAVf8vO3rEmSylLnb8TjihXdxReCHapbQpuk+8yhSgLWmwAKfhxMNBQiXtnp1ra9O PlHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=AfLvtJq3; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg24-20020a170907971800b007c0dcc79ec5si2576021ejc.161.2023.01.06.12.17.59; Fri, 06 Jan 2023 12:18:23 -0800 (PST) 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; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=AfLvtJq3; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236270AbjAFURf (ORCPT + 99 others); Fri, 6 Jan 2023 15:17:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236551AbjAFURL (ORCPT ); Fri, 6 Jan 2023 15:17:11 -0500 Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.166.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F2258461A; Fri, 6 Jan 2023 12:15:12 -0800 (PST) Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.75.146.107]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id E5D73C0000DF; Fri, 6 Jan 2023 12:09:01 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com E5D73C0000DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1673035741; bh=4tmxociq74DzqIKjaR1HWJny/pYlXg9f+mpHVbW2wPs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AfLvtJq3X7BtYJ5i5HEZp7214sF6oACd661afFz9l9vvQaJEpxTy8fBpX1kIZ1Aa8 Vf/A3/nuaNZKh0lEz9Az0biiz9sLlZVRPI8FMl4Bf7H8hMsQsl8ovKE9BsNyQJeOu3 MDUK5zjgW5S+BcfYiJKI5o6Br9TXmXM0VGM9iDNs= Received: from bcacpedev-irv-3.lvn.broadcom.net (bcacpedev-irv-3.lvn.broadcom.net [10.75.138.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPS id DA94B18041CAC6; Fri, 6 Jan 2023 12:09:01 -0800 (PST) Received: by bcacpedev-irv-3.lvn.broadcom.net (Postfix, from userid 28376) id C68C7101B3C; Fri, 6 Jan 2023 12:09:01 -0800 (PST) From: William Zhang To: Linux SPI List , Broadcom Kernel List Cc: anand.gore@broadcom.com, tomer.yacoby@broadcom.com, dan.beygelman@broadcom.com, joel.peshkin@broadcom.com, f.fainelli@gmail.com, jonas.gorski@gmail.com, kursad.oney@broadcom.com, dregan@mail.com, William Zhang , Krzysztof Kozlowski , Mark Brown , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/16] dt-bindings: spi: Convert bcm63xx-hsspi bindings to json-schema Date: Fri, 6 Jan 2023 12:07:53 -0800 Message-Id: <20230106200809.330769-2-william.zhang@broadcom.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20230106200809.330769-1-william.zhang@broadcom.com> References: <20230106200809.330769-1-william.zhang@broadcom.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754305715361508883?= X-GMAIL-MSGID: =?utf-8?q?1754305715361508883?= This is the preparation for updates on the bcm63xx hsspi driver. Convert the text based bindings to json-schema per new dts requirement. Signed-off-by: William Zhang --- .../bindings/spi/brcm,bcm63xx-hsspi.yaml | 52 +++++++++++++++++++ .../bindings/spi/spi-bcm63xx-hsspi.txt | 33 ------------ 2 files changed, 52 insertions(+), 33 deletions(-) create mode 100644 Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml delete mode 100644 Documentation/devicetree/bindings/spi/spi-bcm63xx-hsspi.txt diff --git a/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml b/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml new file mode 100644 index 000000000000..45f1417b1213 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/brcm,bcm63xx-hsspi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM6328 High Speed SPI controller + +maintainers: + - Jonas Gorski + +properties: + compatible: + const: brcm,bcm6328-hsspi + + reg: + maxItems: 1 + + clocks: + items: + - description: spi master reference clock + - description: spi master pll clock + + clock-names: + items: + - const: hsspi + - const: pll + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +unevaluatedProperties: false + +examples: + - | + spi@10001000 { + compatible = "brcm,bcm6328-hsspi"; + reg = <0x10001000 0x600>; + interrupts = <29>; + clocks = <&clkctl 9>, <&hsspi_pll>; + clock-names = "hsspi", "pll"; + num-cs = <2>; + #address-cells = <1>; + #size-cells = <0>; + }; diff --git a/Documentation/devicetree/bindings/spi/spi-bcm63xx-hsspi.txt b/Documentation/devicetree/bindings/spi/spi-bcm63xx-hsspi.txt deleted file mode 100644 index 37b29ee13860..000000000000 --- a/Documentation/devicetree/bindings/spi/spi-bcm63xx-hsspi.txt +++ /dev/null @@ -1,33 +0,0 @@ -Binding for Broadcom BCM6328 High Speed SPI controller - -Required properties: -- compatible: must contain of "brcm,bcm6328-hsspi". -- reg: Base address and size of the controllers memory area. -- interrupts: Interrupt for the SPI block. -- clocks: phandles of the SPI clock and the PLL clock. -- clock-names: must be "hsspi", "pll". -- #address-cells: <1>, as required by generic SPI binding. -- #size-cells: <0>, also as required by generic SPI binding. - -Optional properties: -- num-cs: some controllers have less than 8 cs signals. Defaults to 8 - if absent. - -Child nodes as per the generic SPI binding. - -Example: - - spi@10001000 { - compatible = "brcm,bcm6328-hsspi"; - reg = <0x10001000 0x600>; - - interrupts = <29>; - - clocks = <&clkctl 9>, <&hsspi_pll>; - clock-names = "hsspi", "pll"; - - num-cs = <2>; - - #address-cells = <1>; - #size-cells = <0>; - };