Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2180085rwb; Fri, 2 Dec 2022 06:34:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4gicwIld5lR5y2XnKsEINRdVeuJBuyr9ubs4iA3PtsqN9UlHoheS90aEhgkciTjSSpjTB7 X-Received: by 2002:a17:90b:2542:b0:1fb:e7a:79b with SMTP id nw2-20020a17090b254200b001fb0e7a079bmr83111788pjb.93.1669991648439; Fri, 02 Dec 2022 06:34:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669991648; cv=none; d=google.com; s=arc-20160816; b=t/pu/Z8W+Q4amyORlRXhs8BWStwE4OggYBUfxbAHS+gwZq1ahEW9a24W8uEI7cjrKk I+zb3oPApp0NMredoygIDRBAAKnGyc1dkiQ+hDufdjRTHVlKKnxm/OQwv3+DNaZQTVmF hHVEDuJ1CFDWfwIaJ9spPR315Pfx8/4jyxjIzL4vX4qOvDpKquIRhJl0CxlFSnb4spkI u4mb/VmszGsb+72q+ZT+EAS9UtMDGQ9uHYikDTIERD1gT4LHqMA8yTmzgAb+3V+luRYQ AvHCCATD7wXqPF4aHNfI1WuAFm6Y6IupeE1EkzzujDEKA39RUdR5NcioJATSCqpDn0qr EtBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=OleVYyYSdQrxftbsACgnFpgQoQycL2+GNpbF6ZQYJrI=; b=vwuYz8REPwkTppbTMVvCcY47K6rJgTRSPeoL9xOZ6SSRLOcdI+pnTeEdFvWHX9vzs2 jVmQCXwgxy70IeEah0qBVYC7R0dAmyzC3wYbOYCpGZNX+4hyPeZkJRS4QdfhyGfvSNHe 5aqal1lbxbfdSyaE1PzHhz0QOl8GRqtTr1tjenO9qns+RH6Dk43tmgmHTq6OfJtXI4tY 2VdcIksg2yU/BIfur3LskUeep03GvKOEJeDrZm/v2rm3q35h2wwhhrDJo2xj000bs0oH qMP2U4tyniPORr52vkQLrrsbkyA9WAtjkH0zIPnbUVWBuskZvOw/RhMp7frzyZ8ydzyl mZWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BKZNh8ZQ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=QZDw597V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a1709027e4300b00186de874df8si6581834pln.442.2022.12.02.06.33.57; Fri, 02 Dec 2022 06:34:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BKZNh8ZQ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=QZDw597V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233512AbiLBOEN (ORCPT + 82 others); Fri, 2 Dec 2022 09:04:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233419AbiLBOEF (ORCPT ); Fri, 2 Dec 2022 09:04:05 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDD6FDB0D4; Fri, 2 Dec 2022 06:04:03 -0800 (PST) Date: Fri, 02 Dec 2022 14:04:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669989842; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OleVYyYSdQrxftbsACgnFpgQoQycL2+GNpbF6ZQYJrI=; b=BKZNh8ZQlwJvPl73s8bMT7PK0+0ye7x6fWVRqZtbpcCnnoWsySZZCTt8J/BsVK9LnO37Bb 0h5h2OMbazmkA/dh0924eALKJMO6p3IJR++XWpXPDsJZ74ntro1VZS952rxtXcimpja9sL h8Ni/kILAUxXJKB4VlZeRlv/F3ezULMD1ECRFQzWMpFASbxbs9Vkhxq0YJc36mQg0QVfCg w/yVseP652LXDZUSg9Gm6yHFrA8KOxG9C/qfyql7addQsllr1tlvINNMXPLEOpHIEwqN15 tI2TnWO9d/C20rcfFeD4bXVcQ0kXeN5xdxVo+E0Yo9A5rm6O2sIovJ802D/Xrg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669989842; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OleVYyYSdQrxftbsACgnFpgQoQycL2+GNpbF6ZQYJrI=; b=QZDw597VQd+pJ7fOdrBMA8proigShsAde646+0LLWi7b2xV18sQt+EddUHkVvMlAopO3+g Evt52/gD+Gbo14CA== From: "tip-bot2 for Rahul Tanwar" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] dt-bindings: x86: apic: Convert Intel's APIC bindings to YAML schema Cc: Andy Shevchenko , Rahul Tanwar , Thomas Gleixner , Rob Herring , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221124084143.21841-2-rtanwar@maxlinear.com> References: <20221124084143.21841-2-rtanwar@maxlinear.com> MIME-Version: 1.0 Message-ID: <166998984109.4906.13787701827607564768.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/apic branch of tip: Commit-ID: 2b822f474621bb2f4f21dd6dae6900e2ccca7e95 Gitweb: https://git.kernel.org/tip/2b822f474621bb2f4f21dd6dae6900e2ccca7e95 Author: Rahul Tanwar AuthorDate: Thu, 24 Nov 2022 16:41:40 +08:00 Committer: Thomas Gleixner CommitterDate: Fri, 02 Dec 2022 14:57:13 +01:00 dt-bindings: x86: apic: Convert Intel's APIC bindings to YAML schema The DT bindings for X86 local APIC (lapic) and I/O APIC (ioapic) are outdated. Rework them: - Convert the bindings for lapic and ioapic from text to YAML schema. - Separate lapic & ioapic schemas. - Add missing but required standard properties - Add missing descriptions Suggested-by: Andy Shevchenko Signed-off-by: Rahul Tanwar Signed-off-by: Thomas Gleixner Reviewed-by: Rob Herring Link: https://lore.kernel.org/r/20221124084143.21841-2-rtanwar@maxlinear.com --- Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-ioapic.txt | 26 -------------------------- Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-ioapic.yaml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-lapic.yaml | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-ioapic.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-ioapic.yaml create mode 100644 Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-lapic.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-ioapic.txt b/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-ioapic.txt deleted file mode 100644 index 7d19f49..0000000 --- a/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-ioapic.txt +++ /dev/null @@ -1,26 +0,0 @@ -Interrupt chips ---------------- - -* Intel I/O Advanced Programmable Interrupt Controller (IO APIC) - - Required properties: - -------------------- - compatible = "intel,ce4100-ioapic"; - #interrupt-cells = <2>; - - Device's interrupt property: - - interrupts =

; - - The first number (P) represents the interrupt pin which is wired to the - IO APIC. The second number (S) represents the sense of interrupt which - should be configured and can be one of: - 0 - Edge Rising - 1 - Level Low - 2 - Level High - 3 - Edge Falling - -* Local APIC - Required property: - - compatible = "intel,ce4100-lapic"; diff --git a/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-ioapic.yaml b/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-ioapic.yaml new file mode 100644 index 0000000..39ab8cd --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-ioapic.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/interrupt-controller/intel,ce4100-ioapic.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Intel I/O Advanced Programmable Interrupt Controller (IO APIC) + +maintainers: + - Rahul Tanwar + +description: | + Intel's Advanced Programmable Interrupt Controller (APIC) is a + family of interrupt controllers. The APIC is a split + architecture design, with a local component (LAPIC) integrated + into the processor itself and an external I/O APIC. Local APIC + (lapic) receives interrupts from the processor's interrupt pins, + from internal sources and from an external I/O APIC (ioapic). + And it sends these to the processor core for handling. + See [1] Chapter 8 for more details. + + Many of the Intel's generic devices like hpet, ioapic, lapic have + the ce4100 name in their compatible property names because they + first appeared in CE4100 SoC. + + This schema defines bindings for I/O APIC interrupt controller. + + [1] https://pdos.csail.mit.edu/6.828/2008/readings/ia32/IA32-3A.pdf + +properties: + compatible: + const: intel,ce4100-ioapic + + reg: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells' + +additionalProperties: false + +examples: + - | + ioapic1: interrupt-controller@fec00000 { + compatible = "intel,ce4100-ioapic"; + reg = <0xfec00000 0x1000>; + interrupt-controller; + #interrupt-cells = <2>; + }; diff --git a/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-lapic.yaml b/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-lapic.yaml new file mode 100644 index 0000000..55184cb --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-lapic.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/interrupt-controller/intel,ce4100-lapic.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Intel Local Advanced Programmable Interrupt Controller (LAPIC) + +maintainers: + - Rahul Tanwar + +description: | + Intel's Advanced Programmable Interrupt Controller (APIC) is a + family of interrupt controllers. The APIC is a split + architecture design, with a local component (LAPIC) integrated + into the processor itself and an external I/O APIC. Local APIC + (lapic) receives interrupts from the processor's interrupt pins, + from internal sources and from an external I/O APIC (ioapic). + And it sends these to the processor core for handling. + See [1] Chapter 8 for more details. + + Many of the Intel's generic devices like hpet, ioapic, lapic have + the ce4100 name in their compatible property names because they + first appeared in CE4100 SoC. + + This schema defines bindings for local APIC interrupt controller. + + [1] https://pdos.csail.mit.edu/6.828/2008/readings/ia32/IA32-3A.pdf + +properties: + compatible: + const: intel,ce4100-lapic + + reg: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells' + +additionalProperties: false + +examples: + - | + lapic0: interrupt-controller@fee00000 { + compatible = "intel,ce4100-lapic"; + reg = <0xfee00000 0x1000>; + interrupt-controller; + #interrupt-cells = <2>; + };