From owner-freebsd-arm@freebsd.org Fri Aug 28 08:41:00 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F90C9C4B56 for ; Fri, 28 Aug 2015 08:41:00 +0000 (UTC) (envelope-from mihai.carabas@gmail.com) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DD6C9D32 for ; Fri, 28 Aug 2015 08:40:59 +0000 (UTC) (envelope-from mihai.carabas@gmail.com) Received: by wibcx1 with SMTP id cx1so6562122wib.1 for ; Fri, 28 Aug 2015 01:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3wPwxhsHm0OSy+tEuGqBuOzz2We6UPFn3oLtnxXnEiY=; b=pzLdGZMJRdIwLE2sT4aMUVh8HOssbnWzW5Cnz5V2u8ZoBooxjwt591WGrVar4A8dw3 pTmZzCLPvmDrAmgefmcTdcwU76YXhk1lpEqE8NOTfK7fZkqDRhBI86hPyhu4Ct2zh+FJ TxuTl0g/Fpo+aK4EIHn8JcH0caAdxFr5KITxiP3m+QOG6GGnox9F4VhBZllf87/Dr/e2 S56NcZSKuuEEJqMbWSDWU2qf89c/PDK7fiDhAIqwTGGo3jpmggArzSfdRUXTdHmFY7k5 dQNWac/NTOkcAHMyXYwDFXkxzvnkplNaJveHnk71sWl5DpXhrWrrVq1LVU33O0687ZxC Whrg== MIME-Version: 1.0 X-Received: by 10.180.20.15 with SMTP id j15mr3170233wie.76.1440751258464; Fri, 28 Aug 2015 01:40:58 -0700 (PDT) Received: by 10.28.21.132 with HTTP; Fri, 28 Aug 2015 01:40:58 -0700 (PDT) In-Reply-To: References: Date: Fri, 28 Aug 2015 11:40:58 +0300 Message-ID: Subject: Re: GIC - interrupts interpretation in DTS/FDT From: Mihai Carabas To: Zbigniew Bodek Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2015 08:41:00 -0000 On Fri, Aug 28, 2015 at 11:35 AM, Zbigniew Bodek wrote: > Hello Mihai, > > This documents may be helpful: > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/arm/gic.txt > > The meaning of each interrupt cell (for ARM GIC) is described there. > > Thank you for pointing me out that document. The problem I was asking was specific to the FreeBSD gic code: """ 165 >------->------- * The hardware only supports active-high-level or rising-edge. 166 >------->------- */ 167 >------->-------if (fdt32_to_cpu(intr[2]) & 0x0a) { 168 >------->------->-------printf("unsupported trigger/polarity configuration " 169 >------->------->------- "0x%2x\n", fdt32_to_cpu(intr[2]) & 0x0f); 170 >------->------->-------return (ENOTSUP); 171 >------->-------} """ It is verified the not supported bits in both cases (PPIs and SPIs) and I didn't understand why. Probably a bug. Thank you, Mihai