Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3774666ybz; Mon, 27 Apr 2020 23:36:00 -0700 (PDT) X-Google-Smtp-Source: APiQypKpy9dzVfN+Xr0ZVSEseo/GNY2vG6KxLhPSIwKHTa1JC7cSLQKDYN2D+B/VDk2dcp4A36e6 X-Received: by 2002:a17:906:5601:: with SMTP id f1mr22691655ejq.152.1588055759924; Mon, 27 Apr 2020 23:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588055759; cv=none; d=google.com; s=arc-20160816; b=OMP9TRFThqIm7fBJAkPf8StG/5mWtb+OhjLcRujFyjegHjIfYm7sRg9Djl/nkxl56z pdYhAd5EOT3ajnqO30R0BB22UTPqfnwO6Ix3FUfv4lgAZVFvAOGQ5iQehYempiYQdvFd MV+LTCTHzX8mpbdfC/efk9YRfMlDSk3knQG2kMO9XPvOwWzyhkhJ2bu15LN8YImHXU8w XrKp9F38xEXPTUB+63c8eTFfOwkR+YNdDVWapXbSlBzr7BNELd1L9dFZE++7jcIL6pkk 8NLmHrKkFIzVuYrCefovCCJBUTLNBgyaTf8a91yVM/N/hv4R8yNsNBqboFiSspWvvoTP z7kw== 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=1XlUhy0dRv4lb48Z5xt+RQejfJLHvhsj0tcPHPo+ais=; b=hE15bLU89ea9McOGtDgW9W35XgBZfLcxdFsLUnVMqAoSuXYs8Zc57bZx/GecqEuipz i+3v8kXCZzEO1s8j0XntRY2SuTUprdP4IuoM1HujrAdrXaDyHtLOlyZ3Mj0m93B5vbV7 knOB9sVp+vio4PziQKOgFxnXqi9A8PZ5cd2wufUbd7/0WtIYBsUPkaz7DATNNJdisMzn s0C3wygJrusd1TVGrXaQDNFX3EWA0o2vJMVxu+/cb8dYmdEHePvEhylqWqkdPmvY6Abm K5lYCs1Hwa+yYx4SAdsD/FybgT0MRI0DUDhUXm58J84cSRTpUGcmHjlbfcBZ9DqThUsu KtNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b="m/PmyQfB"; 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 bu17si1179082edb.124.2020.04.27.23.35.37; Mon, 27 Apr 2020 23:35:59 -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="m/PmyQfB"; 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 S1726661AbgD1Gdq (ORCPT + 99 others); Tue, 28 Apr 2020 02:33:46 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:60594 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbgD1Gdo (ORCPT ); Tue, 28 Apr 2020 02:33:44 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 7CDC320CDC; Tue, 28 Apr 2020 06:33:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1588055624; bh=GFn3tLYEcmzd/L7zYYKa9VLN4d+R7mYnKJ2CLoxhCiQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m/PmyQfB/W3OsIIyZlfjB52uoj+N/DTglrBnLsdDjwR4YSF4w6VFL6mRG0uh7JLrz nFKnmEp1MFuKxcT/cz8aGDH7CRRPZT/c6gh2RjhWyAb0MZ4NiTHY7tKXJ4c0JyK6Sm dXAqzuWu1u3rj8QNT2KOXhUy84OKFHhS8CUdBHCX9C/RAoSWoPNq7VJCbZxQKMv4Mt nZrPX50CaGMv1lJOerkHY0es/UnFvH+6zU652+2UMOQ1JSMUtUeZROz022zZIQ0rjL RBW6K6rzsyH79Kn2ywsnYyYifcFoBiCH0asPeJ2w4Wi8Ng3mWMA0joAee26MPuh16m q3kvBaiUHkwlA== 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 v2 4/6] dt-bindings: interrupt-controller: Add Loongson PCH PIC Date: Tue, 28 Apr 2020 14:32:43 +0800 Message-Id: <20200428063247.2223499-4-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200428063247.2223499-1-jiaxun.yang@flygoat.com> References: <20200422142428.1249684-1-jiaxun.yang@flygoat.com> <20200428063247.2223499-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 | 56 +++++++++++++++++++ 1 file changed, 56 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..92a8cd0ce23b --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml @@ -0,0 +1,56 @@ +# 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 + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +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.0.rc2