Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1119955ybk; Sat, 16 May 2020 01:31:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwypCim7YhSYQncIybGs//P3u4UN5SMNvY+YzSiAR/dBIWJJYiZxT9gFatnUU+FNbK/V5/9 X-Received: by 2002:a17:906:7256:: with SMTP id n22mr6301457ejk.31.1589617913005; Sat, 16 May 2020 01:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589617912; cv=none; d=google.com; s=arc-20160816; b=sguyf/xLAAtPHASB/0KNhC1qEDGMplSJbBHc9XS2vr30D7OkQ7HksegrrGpVvLeW9k +ogKfO3rt9Rcsmp8k/Cqe30rfNz/hil0bFFRHIaMosvl/QLPR7KO9gOFIc3CwI6Idwhz gZRAqwbkePJ6UYcY7lyymGxdMh8PUvnHEhoOXzimUlSLFgxS2DQbEPkWk79Mf2QkwcrV xPMnwsQYW8kOiYMC6Lh/zf01NcOhoG0fL7YsSxZCK473cgX6dpFOx+EF13xIZ5qjwDSJ 4sWhY2tErY/FSmiXvQsHmgOEY6Bvhb2CJF53v/eox4Bj/bz11nBPkjN/IVwJxGdo0fAU gKTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8TgMUBKNWSm5leS8octWudDUiKiJSZ1UuyGe3apL1Yw=; b=V/v4TierxsH72dVosZssG+wgDsSmDcrjHcyTesgdAY01ACfc5u1ShJ0/X6U7I+zFoh BeZcYyJmyIl0xsNMQUDhzEtoIX9V5sKJJ76oBSry0mLYT+LizlBSckGf9FtGc/6h6BVT 4I/1i33Or6+8YhV0y8v0cVQ1dwmWKo29HFiSZzUzdooxkBF3ciDu8HcKOIKuv0w5XA5u YdDJRLtdxSPTusFHquuKiAF91luRa5k7Ho/bQ+Kj9PldZ0UUekAffqUWXfO0Q6M5l41G wfSvoHilD1Q163VWk66LeDEA0p8I/c0wvtQMQYHf2msRMxU4Fpqpus9H9kMvqpN09t6d DTlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=AkGK26bh; 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=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x26si2563800edv.448.2020.05.16.01.31.29; Sat, 16 May 2020 01:31:52 -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; dkim=fail header.i=@flygoat.com header.s=vultr header.b=AkGK26bh; 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=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727004AbgEPI37 (ORCPT + 99 others); Sat, 16 May 2020 04:29:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbgEPI35 (ORCPT ); Sat, 16 May 2020 04:29:57 -0400 Received: from vultr.net.flygoat.com (vultr.net.flygoat.com [IPv6:2001:19f0:6001:3633:5400:2ff:fe8c:553]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD163C061A0C; Sat, 16 May 2020 01:29:57 -0700 (PDT) Received: from localhost.localdomain (unknown [142.147.94.151]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 9366521015; Sat, 16 May 2020 08:29:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1589617797; bh=T/aRKioc+CrdVULJk3R3hF3HC6gDpa3I2SYjNCunjo0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AkGK26bhTMn3Xg+4xoqWDRkUyOZ5P9+DcHmGxaKRMfgABhTxDnGRTAsP/6HWxTdeW lVkTxZaJRUrgf4CEe06SySyhNxfOpfOHYzhrX2WyPPw+jSL+/hB3IV5HcEgIt3w+il KYDt1FZRnXSctF0ThBBzq25mdGebor/3PyvxWUY1WSWvjb0rcnaYZ3Glea9NISpKBH PKi+DnpxVgINAq4fM7IYt5KkViEDW29hKDda73dPZNz9efZ4TuuoySvc77fTaQ+cRD LxLDHfLlEBoJ2BUqWnGuHWYmXAcsDVJNE1k9u0EdNXVN4WDQUwFl0Om1Gm2aorv3F/ Me9w2XkB1qifQ== From: Jiaxun Yang To: maz@kernel.org Cc: Jiaxun Yang , Thomas Gleixner , Jason Cooper , Rob Herring , Huacai Chen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v4 4/6] dt-bindings: interrupt-controller: Add Loongson PCH PIC Date: Sat, 16 May 2020 16:29:04 +0800 Message-Id: <20200516082912.3673033-4-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200516082912.3673033-1-jiaxun.yang@flygoat.com> References: <20200427060551.1372591-1-jiaxun.yang@flygoat.com> <20200516082912.3673033-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding for Loongson PCH PIC Controller. Signed-off-by: Jiaxun Yang -- v2: - Fix naming - Mark loongson,pic-base-vec as required --- .../loongson,pch-pic.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml b/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml new file mode 100644 index 000000000000..9306741f7bec --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/interrupt-controller/loongson,pch-pic.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Loongson PCH PIC Controller + +maintainers: + - Jiaxun Yang + +description: + This interrupt controller is found in the Loongson LS7A family of PCH for + transforming interrupts from on-chip devices into HyperTransport vectorized + interrupts. + +properties: + compatible: + const: loongson,pch-pic-1.0 + + reg: + maxItems: 1 + + loongson,pic-base-vec: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: | + u32 value of the base of parent HyperTransport vector allocated + to PCH PIC. + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + +required: + - compatible + - reg + - loongson,pic-base-vec + - interrupt-controller + - '#interrupt-cells' + +examples: + - | + #include + pic: interrupt-controller@10000000 { + compatible = "loongson,pch-pic-1.0"; + reg = <0x10000000 0x400>; + interrupt-controller; + #interrupt-cells = <2>; + loongson,pic-base-vec = <64>; + interrupt-parent = <&htvec>; + }; +... -- 2.26.2