Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3045620pxv; Mon, 12 Jul 2021 08:03:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaBLlTpfauvBUKKHVN77ZIUq9SA3ikhK21QCckkJEEoZpuOLX5T+Zna++mEBPxl/GpSUIv X-Received: by 2002:a05:6e02:1be8:: with SMTP id y8mr38617108ilv.152.1626102215652; Mon, 12 Jul 2021 08:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626102215; cv=none; d=google.com; s=arc-20160816; b=KxZZGXMEGeMQd3zZNfkljSicErxpLU7r75DqzdJyDbQy6Xm98rhmFA7eqFNMLrwpb0 E+q8tt9dMWsr0dpGPszU8qmrqL7G0Z3Dwu0e96HTurDsy2QaO2maLkR/VMkQiTq/IsGq JKfWELy3hJuRwlzdlh0SvEBcux1Cx5BaGm2AuNBjNNWik3/NiBaUGBc/JfzDlJOLPT1g 5LDG9C+ZGXEu+mNxzA2kivgG7QYxTQws/XEYcUVRqDnCPNXjHrrYHy0dQHguF6jmVFAO 6pVRgdIu5OQtjyWfOrwqysmiUf5bC6XfkKsGzyssgzmE2tiewilnLcqNQsPDuP1As5d1 3vGw== 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; bh=68IqN37EpLArFRu9yp9umR0WddwEaJvcq4NyH1w1h1I=; b=RqgCNAvWwwBWtgw8ZRTfBrqtwjclMiB1UUAY/HVIOMKczasMRxGFeY/k1iLjO+PW8w wJRwQNPz5cTBC6/zBkaVwog3Q19fNywJb1Dj0Zuyoz/KbCrjkmDsMX8FqbdDrMcvTD6z d6tPBqxTU8l3UhBCLT9uohOxKeBwfseiy013/XqvMXGgl2oPC0jSRUNKJu+QowlBB7Xv 88kezFn0OopJw3zc+u56qxB6zB591qkRren0j4Sy/LcGAPM12aV3FEXzI3RPFKn7V5OI N3ou4AIlZweRJrIPU9HAzCJX3c8lBGvIdm4EkHhply1nH6ElylGH4El1xSZiXSTLWC4g WzCA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si18714014iob.27.2021.07.12.08.03.22; Mon, 12 Jul 2021 08:03:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235315AbhGLPFg (ORCPT + 99 others); Mon, 12 Jul 2021 11:05:36 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54220 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235302AbhGLPFg (ORCPT ); Mon, 12 Jul 2021 11:05:36 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 7E8A11F425C8 Received: by jupiter.universe (Postfix, from userid 1000) id 4300A4800C7; Mon, 12 Jul 2021 17:02:44 +0200 (CEST) From: Sebastian Reichel To: Greg Kroah-Hartman Cc: Mark Brown , Rob Herring , Arnd Bergmann , Shawn Guo , Sascha Hauer , Fabio Estevam , Ian Ray , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, kernel@collabora.com, Sebastian Reichel , Rob Herring Subject: [PATCHv6 1/3] dt-bindings: misc: ge-achc: Convert to DT schema format Date: Mon, 12 Jul 2021 17:02:40 +0200 Message-Id: <20210712150242.146545-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210712150242.146545-1-sebastian.reichel@collabora.com> References: <20210712150242.146545-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the binding to DT schema format. Also update the binding to fix shortcomings * Add "nxp,kinetis-k20" fallback compatible * add programming SPI interface and reset GPIO * add main clock * add voltage supplies * drop spi-max-frequency from required properties, driver will setup max. frequency Reviewed-by: Rob Herring Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/misc/ge-achc.txt | 26 -------- .../devicetree/bindings/misc/ge-achc.yaml | 65 +++++++++++++++++++ 2 files changed, 65 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/misc/ge-achc.txt create mode 100644 Documentation/devicetree/bindings/misc/ge-achc.yaml diff --git a/Documentation/devicetree/bindings/misc/ge-achc.txt b/Documentation/devicetree/bindings/misc/ge-achc.txt deleted file mode 100644 index 77df94d7a32f..000000000000 --- a/Documentation/devicetree/bindings/misc/ge-achc.txt +++ /dev/null @@ -1,26 +0,0 @@ -* GE Healthcare USB Management Controller - -A device which handles data aquisition from compatible USB based peripherals. -SPI is used for device management. - -Note: This device does not expose the peripherals as USB devices. - -Required properties: - -- compatible : Should be "ge,achc" - -Required SPI properties: - -- reg : Should be address of the device chip select within - the controller. - -- spi-max-frequency : Maximum SPI clocking speed of device in Hz, should be - 1MHz for the GE ACHC. - -Example: - -spidev0: spi@0 { - compatible = "ge,achc"; - reg = <0>; - spi-max-frequency = <1000000>; -}; diff --git a/Documentation/devicetree/bindings/misc/ge-achc.yaml b/Documentation/devicetree/bindings/misc/ge-achc.yaml new file mode 100644 index 000000000000..ff07aa62ed57 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/ge-achc.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +# Copyright (C) 2021 GE Inc. +# Copyright (C) 2021 Collabora Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/misc/ge-achc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GE Healthcare USB Management Controller + +description: | + A device which handles data acquisition from compatible USB based peripherals. + SPI is used for device management. + + Note: This device does not expose the peripherals as USB devices. + +maintainers: + - Sebastian Reichel + +properties: + compatible: + items: + - const: ge,achc + - const: nxp,kinetis-k20 + + clocks: + maxItems: 1 + + vdd-supply: + description: Digital power supply regulator on VDD pin + + vdda-supply: + description: Analog power supply regulator on VDDA pin + + reg: + items: + - description: Control interface + - description: Firmware programming interface + + reset-gpios: + description: GPIO used for hardware reset. + maxItems: 1 + +required: + - compatible + - clocks + - reg + - reset-gpios + +additionalProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + spi@1 { + compatible = "ge,achc", "nxp,kinetis-k20"; + reg = <1>, <0>; + clocks = <&achc_24M>; + reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; + }; + }; -- 2.30.2