Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3670467pxf; Mon, 22 Mar 2021 12:01:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8pRa8q/fSEL897OX+5WFAVMJuW8Ewxy4X0Z3mUDMaxh56CW1/90y2Gae5W+NN3X6Vd4iH X-Received: by 2002:a17:906:a8a:: with SMTP id y10mr1302379ejf.288.1616439700408; Mon, 22 Mar 2021 12:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616439700; cv=none; d=google.com; s=arc-20160816; b=Cx46xdEyH3QkPpuTsdiDTfCJkBYR5KjpUguJw9tqRN+AKe9T9h3+DiTnwbZIPCMzYA nr+sCvema8QLvmytfZTpfXVmZ3GDRFOdzpXCrP0rakA8gtFsN5vhh0hPS41oX9joOV6R ExB6KdbhBHAIHg0LPn0qVw8DG7OqHk7WTYn+T32D+jD/QUTopfJu9GMvIhpPbCJj813h 7XoZyu8gXrI5Ah75AblHxyOOq7KF5eOSwEqyGefSWasALNK49CGDwvZm6DP1NluHn3rM 5v50ZpTY3xYkAN8BcYUnabKzQ7fEhZOlXDrp0+xOZTQP3+O3nnPjY5rUQ5fS5Trmy/Fi r3tA== 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; bh=86Wqb6EPa5EhUaNrZiamA9aCCh99euYxEzzo54Lbh60=; b=lnIvDPYUCbpL9qaQ4zuq44HGG2DC8a7qvzSeP+ob+jAzOkYzxT+NnkQ5XuIP3QFnyU FOqwR+QEQdYy2AI4CbQ7JJDjDrXMFGy/B7/HcavH8k87lXQpEmhivSfv48YD3p9hEI3+ y8zfHKX88LcJ5CKi6dqjrvnKXycMLToPVG2SE01JGPkGT9SVRpUgY/oAasb0RhCYpd1A f8b72ojXHF7fY/xgv+KwUUHR0eF8kxlYyY2FzuCOS+3CyNvKIOozwZPvvyskamQAfveX QQpjHUk9/RJTP9vUoUBxRotgPrCsL/947pEcTIwgLPb9nxq3J2OheZ9RtcbQ9zZyIjiD 4dFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rGZp0km8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si11941482edr.603.2021.03.22.12.01.17; Mon, 22 Mar 2021 12:01:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rGZp0km8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232351AbhCVS7s (ORCPT + 99 others); Mon, 22 Mar 2021 14:59:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:40100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231802AbhCVS7X (ORCPT ); Mon, 22 Mar 2021 14:59:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EF46E6199F; Mon, 22 Mar 2021 18:59:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616439562; bh=y1ZkXj1p9qb2LpsafIaIzi+n5YFdfgSKB2+GzEoekEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rGZp0km82YYtIIZJ1y3Eqz/ipHYqARAf4K34McixWHy3ntDWvuqi29tI6ScpjeRL5 emytAe/owDssH0WhKUJa4RNP9uxv0P1KQl96j+GpZTbudc6i8hP4fMuzR0oAaAPY+K BpnsNRcKu+g5QC6YrzFSZNQY4ffg5EMRdsxVTvkbxT80XAM/89yOb0Qpwt7LDO/Swo d3EuzOmDOSmcThb78/R1mi29tTAXxf77izAoVF4BlNvgxFCY7/BAFHbwYZNdxL2ECz FZgs0wollp1HKmNUi71ETvdJ6yZRJg3cymEwo9tidjvlEJmQiI0uDxYMxDFdzzZH96 tHBbtwFWGh30A== From: Nicolas Saenz Julienne To: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, Saenz Julienne , Ulf Hansson , Ray Jui , Scott Branden Cc: f.fainelli@gmail.com, phil@raspberrypi.com, tim.gover@raspberrypi.com, adrian.hunter@intel.com, alcooperx@gmail.com, nsaenzjulienne@suse.de, linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH 1/4] dt-bindings: mmc: iproc-sdhci: Convert to json-schema Date: Mon, 22 Mar 2021 19:58:14 +0100 Message-Id: <20210322185816.27582-2-nsaenz@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210322185816.27582-1-nsaenz@kernel.org> References: <20210322185816.27582-1-nsaenz@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the brcm,iproc-sdhci binding to DT schema format using json-schema Signed-off-by: Nicolas Saenz Julienne --- .../bindings/mmc/brcm,iproc-sdhci.yaml | 58 +++++++++++++++++++ .../bindings/mmc/brcm,sdhci-iproc.txt | 37 ------------ 2 files changed, 58 insertions(+), 37 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml delete mode 100644 Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt diff --git a/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml new file mode 100644 index 000000000000..19d84f3ef9e6 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/brcm,iproc-sdhci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom IPROC SDHCI controller + +maintainers: + - Nicolas Saenz Julienne + +allOf: + - $ref: mmc-controller.yaml# + +properties: + compatible: + enum: + - brcm,bcm2835-sdhci + - brcm,bcm2711-emmc2 + - brcm,sdhci-iproc-cygnus + - brcm,sdhci-iproc + + reg: + minItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + description: + Handle to core clock for the sdhci controller. + + sdhci,auto-cmd12: + type: boolean + description: Specifies that controller should use auto CMD12 + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + sdhci0: sdhci@18041000 { + compatible = "brcm,sdhci-iproc-cygnus"; + reg = <0x18041000 0x100>; + interrupts = ; + clocks = <&lcpll0_clks BCM_CYGNUS_LCPLL0_SDIO_CLK>; + bus-width = <4>; + sdhci,auto-cmd12; + no-1-8-v; + }; + +... diff --git a/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt b/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt deleted file mode 100644 index 09d87cc1182a..000000000000 --- a/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt +++ /dev/null @@ -1,37 +0,0 @@ -Broadcom IPROC SDHCI controller - -This file documents differences between the core properties described -by mmc.txt and the properties that represent the IPROC SDHCI controller. - -Required properties: -- compatible : Should be one of the following - "brcm,bcm2835-sdhci" - "brcm,bcm2711-emmc2" - "brcm,sdhci-iproc-cygnus" - "brcm,sdhci-iproc" - -Use brcm2835-sdhci for the eMMC controller on the BCM2835 (Raspberry Pi) and -bcm2711-emmc2 for the additional eMMC2 controller on BCM2711. - -Use sdhci-iproc-cygnus for Broadcom SDHCI Controllers -restricted to 32bit host accesses to SDHCI registers. - -Use sdhci-iproc for Broadcom SDHCI Controllers that allow standard -8, 16, 32-bit host access to SDHCI register. - -- clocks : The clock feeding the SDHCI controller. - -Optional properties: - - sdhci,auto-cmd12: specifies that controller should use auto CMD12. - -Example: - -sdhci0: sdhci@18041000 { - compatible = "brcm,sdhci-iproc-cygnus"; - reg = <0x18041000 0x100>; - interrupts = ; - clocks = <&lcpll0_clks BCM_CYGNUS_LCPLL0_SDIO_CLK>; - bus-width = <4>; - sdhci,auto-cmd12; - no-1-8-v; -}; -- 2.30.2