Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp432371pxb; Wed, 11 Nov 2020 07:17:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYUO/n1N3GKqLYZ02f1qIJAGUcQJoFoBSLmO4KAQ6a44bHKxk/jIoP3Hl7PEj6nwsT0Scz X-Received: by 2002:a50:fc95:: with SMTP id f21mr26612117edq.383.1605107835287; Wed, 11 Nov 2020 07:17:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605107835; cv=none; d=google.com; s=arc-20160816; b=PTxuinQsjYErHuV1AGcv6WcEI0KLzlZcWABipD0aCDOAEE46ddR0YlTc0dONpmOFFX uM9IbBY1Ybyh8epUO6C+sXroj9f6pljv1zdcAks+j5pnCJnqgp+X9lYTGlgjzbU/2c9Q m2ePN4QW5qgogW8osvBbzIgaCuW1EUpH7DvFokdcukWGr22EPo2XPUh/MAKTyYGz7yia STMXOaA1WMHjni0M6d3aeGAtuvibkj/a8csSLzsQuPU6Inx8h2SJ3JoRpksGbHPeFDe7 TMtZzeOfzz6MWDwLVI2KmMU0dADIYemNyHH8L9wpsz6s4XF3Dl6xtuqf9o4IS53qUPyG XXng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NrV1YLf9hAhEWpcFqIV+LLflGTuDseojQTcqBfSnm3M=; b=BtydCwT758psxi3TNE001G0186BDY+mBnhRKJQInQ8yCBxt4ociAoXX4nY3P97ciQB g1dg3091JKACTPYiI7IZI5Huqqu/hfwn5Oe5fTNmleSkxhiz0K4IGczeGsrVt40eMNU3 EtTKVI05KgUvKQTPBWKaM+J2nGYfjLsiK616AeV7mLQ2MOJy/JnYTLnYPh/3dyGr50RY 2Q0tuSi7LDq2uQgBSeHOqqk/304I+gVIHM+dM96cbBrg0yGgv2rBgbXmb43hVELX1r7Q CV0MkDPYALcooTbo40SmqPmIWySiXOkrlqfo9zWoMvhD4Mgyyj2tfOI/oHqw7Wf7Wbma F8Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eAWlPlIm; 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 gf11si1518526ejb.494.2020.11.11.07.16.48; Wed, 11 Nov 2020 07:17:15 -0800 (PST) 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=default header.b=eAWlPlIm; 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 S1727310AbgKKPOI (ORCPT + 99 others); Wed, 11 Nov 2020 10:14:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:35744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbgKKPOH (ORCPT ); Wed, 11 Nov 2020 10:14:07 -0500 Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) (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 4F717206A1; Wed, 11 Nov 2020 15:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605107646; bh=d0sY6zcF8k38P2t09esju++5JTYGiRwTGV3GDkSzykY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eAWlPlImegdvQTY3m8tm6JNO7LKooiC3iopOwPK9+Su1UcfGl0kRPEZMh880JY69D LqTSrOsPzDQMRVaGAbKahhd5agIlqtbGykcswKi0t6Jl015jqcrwRbosiQz8StmATV d87Um7BWjGzcAKvam0BhmbBoNQb4MoMbfflkQAwQ= Received: by mail-ot1-f42.google.com with SMTP id g19so2396722otp.13; Wed, 11 Nov 2020 07:14:06 -0800 (PST) X-Gm-Message-State: AOAM533gFQu4IvxOzSAKJwmygpHmo+zDdAAc+0kJmg1WQkFgd5TUFW11 pqHKbT3GDajc1AoIlD6gd4YkchibA8MGdPc/tg== X-Received: by 2002:a05:6830:2f8:: with SMTP id r24mr17995064ote.129.1605107645484; Wed, 11 Nov 2020 07:14:05 -0800 (PST) MIME-Version: 1.0 References: <20201111145757.74974-1-aford173@gmail.com> In-Reply-To: <20201111145757.74974-1-aford173@gmail.com> From: Rob Herring Date: Wed, 11 Nov 2020 09:13:53 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V3] dt-bindings: soc: imx: Add binding doc for spba bus To: Adam Ford Cc: devicetree@vger.kernel.org, Adam Ford-BE , Shawn Guo , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 11, 2020 at 8:58 AM Adam Ford wrote: > > Add binding doc for fsl,spba-bus. > > Signed-off-by: Adam Ford > --- > make dt_binding_check showed no errors if I did this right. > > V3: Rebase sample from aips-bus example > Split off from series adding i.MX8M Nano functions to reduce noise > V2: Attempted to update yaml from feedback > > diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile > index f50420099a55..ec8073cb2e71 100644 > --- a/Documentation/devicetree/bindings/Makefile > +++ b/Documentation/devicetree/bindings/Makefile > @@ -3,8 +3,6 @@ DT_DOC_CHECKER ?= dt-doc-validate > DT_EXTRACT_EX ?= dt-extract-example > DT_MK_SCHEMA ?= dt-mk-schema > > -DT_SCHEMA_LINT = $(shell which yamllint) > - ??? > DT_SCHEMA_MIN_VERSION = 2020.8.1 > > PHONY += check_dtschema_version > @@ -26,10 +24,6 @@ find_cmd = find $(srctree)/$(src) \( -name '*.yaml' ! \ > -name 'processed-schema*' ! \ > -name '*.example.dt.yaml' \) > > -quiet_cmd_yamllint = LINT $(src) > - cmd_yamllint = $(find_cmd) | \ > - xargs $(DT_SCHEMA_LINT) -f parsable -c $(srctree)/$(src)/.yamllint > - > quiet_cmd_chk_bindings = CHKDT $@ > cmd_chk_bindings = $(find_cmd) | \ > xargs -n200 -P$$(nproc) $(DT_DOC_CHECKER) -u $(srctree)/$(src) > @@ -43,7 +37,6 @@ quiet_cmd_mk_schema = SCHEMA $@ > rm -f $$f > > define rule_chkdt > - $(if $(DT_SCHEMA_LINT),$(call cmd,yamllint),) > $(call cmd,chk_bindings) > $(call cmd,mk_schema) > endef > @@ -55,7 +48,7 @@ override DTC_FLAGS := \ > -Wno-graph_child_address \ > -Wno-interrupt_provider > > -$(obj)/processed-schema-examples.json: $(DT_DOCS) $(src)/.yamllint check_dtschema_version FORCE > +$(obj)/processed-schema-examples.json: $(DT_DOCS) check_dtschema_version FORCE > $(call if_changed_rule,chkdt) > > ifeq ($(DT_SCHEMA_FILES),) > diff --git a/Documentation/devicetree/bindings/bus/fsl,spba-bus.yaml b/Documentation/devicetree/bindings/bus/fsl,spba-bus.yaml > new file mode 100644 > index 000000000000..91dae405ed39 > --- /dev/null > +++ b/Documentation/devicetree/bindings/bus/fsl,spba-bus.yaml > @@ -0,0 +1,65 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/bus/fsl,spba-bus.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Shared Peripherals Bus Interface > + > +maintainers: > + - Shawn Guo > + > +description: | > + A simple bus enabling access to shared peripherals. > + > + The "spba-bus" follows the "simple-bus" set of properties, as > + specified in the Devicetree Specification. It is an extension of > + "simple-bus" because the SDMA controller uses this compatible flag to > + determine which peripherals are available to it and the range over which > + the SDMA can access. There are no special clocks for the bus, because > + the SDMA controller itself has its interrupt, and clock assignments. > + > +select: > + properties: > + compatible: > + contains: > + const: fsl,spba-bus > + required: > + - compatible > + > +properties: > + $nodename: > + pattern: "^bus(@[0-9a-f]+)?$" > + > + compatible: > + items: > + - const: fsl,spba-bus > + - const: simple-bus > + > + '#address-cells': > + enum: [ 1, 2 ] > + > + '#size-cells': > + enum: [ 1, 2 ] > + > + ranges: true > + > +required: > + - compatible > + - '#address-cells' > + - '#size-cells' > + - ranges > + > +additionalProperties: true > + > +type: object Should be: additionalProperties: type: object > + > +examples: > + - | > + bus@30000000 { > + compatible = "fsl,spba-bus", "simple-bus"; > + #address-cells = <1>; > + #size-cells = <1>; > + reg = <0x30000000 0x100000>; > + ranges; > + }; > -- > 2.25.1 >