Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp27998pxb; Fri, 5 Mar 2021 13:24:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBczrtISm1bA2bRkKc3LxnuyQTKuyPxRKIk4G44bLmBnKBZrzyVTOMlv0f1XPm+VISBcMV X-Received: by 2002:aa7:d385:: with SMTP id x5mr11207753edq.289.1614979483306; Fri, 05 Mar 2021 13:24:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614979483; cv=none; d=google.com; s=arc-20160816; b=hMUmrWezg2T1w+BVFjKqViMwTP32LeSYdHwG2GTR/haEk6lhSmgGbAqP4uMLm3tXMu TA4jhR9azgjrZmYbTnFNkjPaMpsoUqXJojhJ8Az+lH2HhzkZKpbA/6bC9lEkmlBDb5pU h9A0GeVsBW67MTUMR9Zm5rsA90dcYgW8kkWDcuORBMB33RaB4HsTBfcj/UzmWI3NPjKm 5enTgbo46zPJe9QTWnKdu8RTEn1b+8aEr5KB/+5J89gcamFVDGg0Zq1L3tqWDfrVkgZR 1man7VbUQQ4yib+DT6QCq7JjPqipJHvdO8xl/WSLFTwUzDzdIXEEE7pNbDHxAF+ihair kSjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Kgp+8TKM8Byg9mm9YN8yCXWXwp0Cjl6dB6xN7JrKEoA=; b=JRYt/bTMnOm5bwxCgHDp3h/TTzTzTJGPUwmNtipENaLM0iLTr2EwFUw2ebm3EcIA0X bAjIQSH743QNTCY1taef6Hidgx1NsWzLlsGvsau4o4F9ExPyFwKwfbp4bajNP05T5Qnx 6Bd+n56F89WJIKmLzct8drQhLoOwkdTcfQOIqkV3zxQNMcD7Yz+0ODf6tgs6SyhJ4lp/ uwxaa6TcUOvOYJ09bhV3esa8UFyC5mkM4+gsPNkvdQqpWr4Js2z7e3W0A5HqgYckFMHE gAfMaOwqaHBzYUG6cC15QY2CgtwhJf8ClySrnG0pAlcfiylPdgsxt5VGxsxNSYFkv29L ABHQ== 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=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 ju25si2011610ejc.668.2021.03.05.13.24.20; Fri, 05 Mar 2021 13:24:43 -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; 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 S229729AbhCEVWb (ORCPT + 99 others); Fri, 5 Mar 2021 16:22:31 -0500 Received: from mail-ot1-f54.google.com ([209.85.210.54]:44195 "EHLO mail-ot1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbhCEVWX (ORCPT ); Fri, 5 Mar 2021 16:22:23 -0500 Received: by mail-ot1-f54.google.com with SMTP id f33so3151711otf.11; Fri, 05 Mar 2021 13:22:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Kgp+8TKM8Byg9mm9YN8yCXWXwp0Cjl6dB6xN7JrKEoA=; b=mK9SiAsUQRFuhszOALgGTyb8pIIJhDOTvoZGvRWEqqkYpFsgOHcya82W4r2a8d9DfR pUukeCPv/HsmoKnzS2/2c2T6Cl6Dla8aHYtsxjIithKkT3QMVbXc57n1RNIe8/frDuP6 vKHVEabOhDRyReYzA8n4m+Zf1o2HTqJcnv8Age6vLiLrr6AvPod74J6Y8zc1fss1V9Je jLyMveNlI884Vhrjo+A8xX2miJupu4yUTypqcsEfq0zrE/HBUEWrSqt8MGNKJOu5MgQB yZzS9QEG5lrAoIzRyVykXq7h7yNocCmESkYodXCwYzrflKCv7Qzvs5iFP8HUY8FePEbW r5gQ== X-Gm-Message-State: AOAM5318ruahZUtfMV9va7IkVeWK/kpAgkLG4x3twiIXNHfl5xDLXnL0 N2I+/IMxNryBt96S+dgebw== X-Received: by 2002:a9d:6019:: with SMTP id h25mr9691347otj.203.1614979342668; Fri, 05 Mar 2021 13:22:22 -0800 (PST) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id w11sm770351ooc.35.2021.03.05.13.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 13:22:22 -0800 (PST) Received: (nullmailer pid 668925 invoked by uid 1000); Fri, 05 Mar 2021 21:22:21 -0000 Date: Fri, 5 Mar 2021 15:22:21 -0600 From: Rob Herring To: Orson Zhai Cc: Baolin Wang , Chunyan Zhang , Jassi Brar , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Haidong Yao , Orson Zhai Subject: Re: [PATCH v2 2/3] dt-bindings: mailbox: Add interrupt-names to SPRD mailbox Message-ID: <20210305212221.GA667054@robh.at.kernel.org> References: <20210213122143.19240-1-orsonzhai@gmail.com> <20210213122143.19240-3-orsonzhai@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210213122143.19240-3-orsonzhai@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 13, 2021 at 08:21:42PM +0800, Orson Zhai wrote: > From: Orson Zhai > > We add an optional supp-outbox interrupt support to SPRD mailbox driver > with newly added sc9863a support and change to configure interrupts with > names in device tree files. > > Signed-off-by: Orson Zhai > --- > .../bindings/mailbox/sprd-mailbox.yaml | 18 +++++++++++++++--- > 1 file changed, 15 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml b/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml > index 26a5cca3f838..67736450ee93 100644 > --- a/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml > +++ b/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml > @@ -15,6 +15,7 @@ properties: > compatible: > enum: > - sprd,sc9860-mailbox > + - sprd,sc9863a-mailbox > > reg: > items: > @@ -22,9 +23,18 @@ properties: > - description: outbox registers' base address > > interrupts: > - items: > - - description: inbox interrupt > - - description: outbox interrupt > + minItems: 2 > + maxItems: 3 > + > + interrupt-names: > + oneOf: > + - items: > + - const: inbox > + - const: outbox > + - items: > + - const: inbox > + - const: outbox > + - const: supp-outbox You can do this instead: interrupt-names: minItems: 2 items: - const: inbox - const: outbox - const: supp-outbox > > clocks: > maxItems: 1 > @@ -40,6 +50,7 @@ required: > - compatible > - reg > - interrupts > + - interrupt-names > - "#mbox-cells" > - clocks > - clock-names > @@ -56,5 +67,6 @@ examples: > clock-names = "enable"; > clocks = <&aon_gate 53>; > interrupts = , ; > + interrupt-names = "inbox", "outbox"; > }; > ... > -- > 2.17.1 >