From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 673AAC433EF for ; Sat, 22 Jan 2022 00:54:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZgXg1Q4UTsGG/mmOTaDxmeXrsKvXmQ0x26u7OL9s/Ug=; b=tkRcUoFL5zegVM j++LKtJnxwhRnD+s7iELJ8MVY1hRPSrdcyQHTPxNymzhmWpMDP7uHHlMd2Pe0el4RXbszrum88adk WDMKmpsdO4BUyiy3E0oo2KCuOhZHedKlAXJIxua2plCPp7QjU5qSN3ORXUiiUwRxKagoT/GRGol1a 0qqt/iU6TlpZ06sYqhp9ERnoacpd/DQyiAycQV7DpYP8YzED8sBOUT9fBrwCm8Fruph+OTkYFMtHH UXrzbS0Ovs7CpVH57U7VFDOq8LfFcBmNfLwFEr49w6rI8T/Bp+XZbpCqi0sGXnV2FnWNs3Ot+WsrX SWGYmC8cPmEHPnNVLexA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nB4ed-00GK5s-5Q; Sat, 22 Jan 2022 00:53:19 +0000 Received: from mail-ot1-f49.google.com ([209.85.210.49]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nB4eZ-00GK5N-MX; Sat, 22 Jan 2022 00:53:17 +0000 Received: by mail-ot1-f49.google.com with SMTP id t4-20020a05683022e400b00591aaf48277so13810530otc.13; Fri, 21 Jan 2022 16:53:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NwEsLoY/zSy6+8ww4zg4hbAmBeGUwDI4bJpwjmotxhw=; b=s1XsTvjLBIJLAa5RrLwT+IOC/USUmFe/ZUQhDCZAs+DMYcSkOhx3Hf/Bph22MqYQYg Q+uJHhSocgeHoE7muE+qtea4lNIFZYOxfBWfwPcJINKdLoeJC10TjIHNCwLt7Dv5Kwwm 34DWr4sCajiO7/iY5xc9UfL00wyVIDbgtCGzxinUf3gccT+GxLuxKWSh8KNWtocUGQPH +ayF5OewmkfE9T4kIHgbUqIj/BUPdKSfuAYqmWmIVNntoitl6kjT6KjTrkPHkv6+tSP7 kNeiKdgiFpwvRpMbsqzxBRNJs+osyrP01Gi51RQ/laH40VPWfxhmHmu9BEMEp4KFb3R+ rOPw== X-Gm-Message-State: AOAM531WD3U0qrdRt/Ei5xZf/4hzeRVOAXLIPyRqfGIaWTWsaLC2Iig7 +mFh1dqwQ2Y8Xi/wkFKb/w== X-Google-Smtp-Source: ABdhPJxtvDyzMhYHyXQ+iSpTb2lRwqvIuBsflwOHWmHmO5EdG97wJnvBRPsDourd04+3nSBlNcks0Q== X-Received: by 2002:a9d:7d11:: with SMTP id v17mr4619824otn.34.1642812792929; Fri, 21 Jan 2022 16:53:12 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id k17sm1771351otk.80.2022.01.21.16.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 16:53:12 -0800 (PST) Received: (nullmailer pid 1949948 invoked by uid 1000); Sat, 22 Jan 2022 00:53:11 -0000 Date: Fri, 21 Jan 2022 18:53:11 -0600 From: Rob Herring To: Leilk Liu Cc: Mark Brown , Matthias Brugger , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH V2 1/3] dt-bindings: spi: Convert spi-slave-mt27xx to json-schema Message-ID: References: <20220112103609.17421-1-leilk.liu@mediatek.com> <20220112103609.17421-2-leilk.liu@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220112103609.17421-2-leilk.liu@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220121_165315_766238_8EBE4912 X-CRM114-Status: GOOD ( 17.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jan 12, 2022 at 06:36:07PM +0800, Leilk Liu wrote: > Convert Mediatek ARM SOC's SPI Slave controller binding > to json-schema format. > > Signed-off-by: Leilk Liu > --- > .../spi/mediatek,spi-slave-mt27xx.yaml | 73 +++++++++++++++++++ > .../bindings/spi/spi-slave-mt27xx.txt | 33 --------- > 2 files changed, 73 insertions(+), 33 deletions(-) > create mode 100644 Documentation/devicetree/bindings/spi/mediatek,spi-slave-mt27xx.yaml > delete mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt > > diff --git a/Documentation/devicetree/bindings/spi/mediatek,spi-slave-mt27xx.yaml b/Documentation/devicetree/bindings/spi/mediatek,spi-slave-mt27xx.yaml > new file mode 100644 > index 000000000000..3364fff08cca > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/mediatek,spi-slave-mt27xx.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/spi/mediatek,spi-slave-mt27xx.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: SPI Slave controller for MediaTek ARM SoCs > + > +maintainers: > + - Leilk Liu > + > +allOf: > + - $ref: /spi/spi-controller.yaml# > + > +properties: > + compatible: > + oneOf: > + - items: > + - enum: > + - mediatek,mt2712-spi-slave > + - items: > + - enum: > + - mediatek,mt8195-spi-slave Just: enum: - mediatek,mt2712-spi-slave - mediatek,mt8195-spi-slave > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + items: > + - description: clock used for the clock gate Just 'maxItems: 1' > + > + clock-names: > + items: > + - const: spi > + > + assigned-clocks: > + maxItems: 1 > + description: | > + The mux clock for the given platform. > + > + assigned-clock-parents: > + maxItems: 1 > + description: | > + The parent of mux clock for the given platform. You can drop assigned-clocks. They are always allowed on nodes with 'clocks'. > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + #include > + > + spi@10013000 { > + compatible = "mediatek,mt2712-spi-slave"; > + reg = <0x10013000 0x100>; > + interrupts = ; > + clocks = <&infracfg CLK_INFRA_AO_SPI1>; > + clock-names = "spi"; > + assigned-clocks = <&topckgen CLK_TOP_SPISLV_SEL>; > + assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL1_D2>; > + }; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel