From patchwork Sat Oct 31 13:41:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320080 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268508ilc; Sat, 31 Oct 2020 06:44:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSiQ6mCTP83tqgjGOzQgIZviqFoLsI3YXVLZDAl2hAYgRrs18an9zE6Kt4gfflNAnodlEc X-Received: by 2002:a05:6402:1d82:: with SMTP id dk2mr7450461edb.299.1604151852280; Sat, 31 Oct 2020 06:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151852; cv=none; d=google.com; s=arc-20160816; b=taZBV066jl3OVnurWRet4QnyT205ec+Vayfaa69PqOGi9O+uvzlYB2O36/qo6aUEFi bP7afykB3t/TBB3XplLrvte3G2ATlnm6lE3vNeKoY/b8vhiIzWKoUpOTEV+dEchITi8F bji9i1qIXl+Qh/BOD4ZC9slUR/3S42lfx+YFtH4mJIyTHWDvqCAR8mC5VtqG17sERzr/ /BXZ6W9cfn/cAd+14RihJ7aeFq9cGEp/iIvsGNDRT3ipO3n6aoP3cni51HXJC32VJVyz m0+GnJEKFRKCSmvA3alTL5fsq2dZUJIvSjRo4wHPlyloK4bBElfpbSVKmHRmS/DYhv58 ICyg== 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=jlSCaF1vvtne6O1adg6u4hfYx2LgaxQwKhsYsN4+re4=; b=xz+OAks1XMi5SZEuKRLQG3H4Tpn82z79ZncIuNlEIeR3oSWS866Em2Xg/wLEDnccBy EceN9tok0PNSVquOZLsjCCrrbDatb8hC2yERqP2fQte3SPcIgAS27MRdlis6wrfalkQ6 rzcpg99NVHJSJIqToqo/ad+7yxdeM3L6FE396IIDMHURCDj4Sf3F3upeImtquwX/UEEW OVgj2Jm6lxEOdS/IonIFFprzMOwdajDqhAiYDvT2PMn5fkc1rj0WE6cNAaZPhXTfSnis Bt+h2N0hQlhrZSDxr66/yXqMyzFjY8AnWOutly8f4yf90nUbuTUKCe7VpmWJS914wT3B fkgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YDC+q5PU; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 h25si6243872ejc.209.2020.10.31.06.44.12; Sat, 31 Oct 2020 06:44:12 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=default header.b=YDC+q5PU; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727733AbgJaNoL (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:43310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoL (ORCPT ); Sat, 31 Oct 2020 09:44:11 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E8BA02071A; Sat, 31 Oct 2020 13:44:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151850; bh=6EZB7x6oFcfAJZ1pVtfgZV70lcpSunl0/PAGzn/FAhE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YDC+q5PUPfCJN+S/76JFa5U5Lzmv7NKAwBzN2GDGQE9DS21xB/QH2j/JA5ORoj91n 7mD4Tj1Gj2KBhp0Tha5oSsGzXXIWTiG7tmIMdQhcApdw49/mzLVWil7/dwUJCjX+Nl rlmaF5BQsDnsoHHkwAXyy07iKfXjvjrFyNl4jeTM= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Sanchayan Maity Subject: [PATCH v2 19/29] dt-bindings:iio:dac:fsl,vf610-dac yaml conversion Date: Sat, 31 Oct 2020 13:41:00 +0000 Message-Id: <20201031134110.724233-20-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple binding to convert. Example expanded a little to include an example bus. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Sanchayan Maity --- .../bindings/iio/dac/fsl,vf610-dac.yaml | 55 +++++++++++++++++++ .../devicetree/bindings/iio/dac/vf610-dac.txt | 20 ------- 2 files changed, 55 insertions(+), 20 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/dac/fsl,vf610-dac.yaml b/Documentation/devicetree/bindings/iio/dac/fsl,vf610-dac.yaml new file mode 100644 index 000000000000..999c715c6179 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/fsl,vf610-dac.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/fsl,vf610-dac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale vf610 Digital to Analog Converter + +maintainers: + - Sanchayan Maity + +properties: + compatible: + const: fsl,vf610-dac + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: dac + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + bus@40000000 { + compatible = "fsl,aips-bus", "simple-bus"; + reg = <0x40000000 0x00070000>; + ranges; + #address-cells = <1>; + #size-cells = <1>; + dac@400cc000 { + compatible = "fsl,vf610-dac"; + reg = <0x400cc000 0x1000>; + interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; + clock-names = "dac"; + clocks = <&clks VF610_CLK_DAC0>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/dac/vf610-dac.txt b/Documentation/devicetree/bindings/iio/dac/vf610-dac.txt deleted file mode 100644 index 20c6c7ae9687..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/vf610-dac.txt +++ /dev/null @@ -1,20 +0,0 @@ -Freescale vf610 Digital to Analog Converter bindings - -The devicetree bindings are for the new DAC driver written for -vf610 SoCs from Freescale. - -Required properties: -- compatible: Should contain "fsl,vf610-dac" -- reg: Offset and length of the register set for the device -- interrupts: Should contain the interrupt for the device -- clocks: The clock is needed by the DAC controller -- clock-names: Must contain "dac" matching entry in the clocks property. - -Example: -dac0: dac@400cc000 { - compatible = "fsl,vf610-dac"; - reg = <0x400cc000 0x1000>; - interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; - clock-names = "dac"; - clocks = <&clks VF610_CLK_DAC0>; -};