From patchwork Wed Feb 6 15:32:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 157644 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6545392jaa; Wed, 6 Feb 2019 07:33:01 -0800 (PST) X-Google-Smtp-Source: AHgI3Iah4S8Xs9f8LTsCDR30+NSlItey1OvZyrk1UIC0AJmLuYBwg/GTAQEly16ATmifIWhtBWL2 X-Received: by 2002:a17:902:28e6:: with SMTP id f93mr11170559plb.239.1549467181187; Wed, 06 Feb 2019 07:33:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549467181; cv=none; d=google.com; s=arc-20160816; b=oWe/vL0vtGZ0Ih4N+h3H2VzYhqBf1GTcmI1yDg33UAz3YP0igb1e4aoc85tn/Nx7eJ 1ith0nMy4aHcBce4hcoYrqTOz14JC14QcnZkCozIu1FAtkZvS0gFiDVt+PLF+IWK6gpi GvzF3LLjEcED3xy94IV5cJDjGV9FzLxHCybotUEVP+vAJHMs3/m2papnumyM9micpqDj rqcKVXCSJx6KhHNFaA8LMw+uHtDcAatpOMOQ6NM/Kfx6Vjnn7Ip7rwvDi8ru7KBA1O3m WQkTHHoFQvdO/EjXVS6k37/c+Sp/y2YzFA50hGKtNQry/655izMVIpNyTETV/OIhWYVc 5G2w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=9HWf7hUgZh6GIFRMufOwE+uKd6NEJBNzajxfUgCI2cM=; b=DYMm+PX2Exwoe8zUFO9BL+xOD7KTx847mfNSemcXloQ0p0eBo2w8hkge1aWFqEnezR XlDaA5wuvaYViKzQWi4gxqmKBmkvlCr35y63H45XpeTXCkU18zbMJDkrs5NjlwxwS5WK +PdbTr1NtiU5fSd1a5sUB9DQac9kmJv1xQnflpyN5jTgd1akkhx4+fwpr9XNYbGfR19N MKTj64Qmu6bzFKdgEAOz97tAmapbSLLlaCk7q5QJUAldAoNAaou4UaYN1mkeZ/jv2N5f Dy1iFpzyJcwLumV5rmLDZc+OSWbD/xohitmyCsUtbEzR9KMC4pY+MtyBtryWw8yOmZQY EAxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cxo0DPSN; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si1843256pga.15.2019.02.06.07.33.00; Wed, 06 Feb 2019 07:33:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cxo0DPSN; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727999AbfBFPdA (ORCPT + 15 others); Wed, 6 Feb 2019 10:33:00 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:38071 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbfBFPdA (ORCPT ); Wed, 6 Feb 2019 10:33:00 -0500 Received: by mail-lj1-f193.google.com with SMTP id c19-v6so6430543lja.5 for ; Wed, 06 Feb 2019 07:32:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9HWf7hUgZh6GIFRMufOwE+uKd6NEJBNzajxfUgCI2cM=; b=cxo0DPSNn8stamen6WhwIv3zX86XRg+9930fbKrefnz0bJ/hjS+g4d3qLmefhYR9mZ yf020WVRim6CsCm3iwTb8nXMc5c9Eal1OPRYqL63eA/EGDvKL6N3yV33TpYMnfGp6YDE WB4obuqHDXF8vIgpH2ofSZAcEz6MgvicbZkK+F7dfRCfo9mdmzqJ2URW8oap8q7jj7lM A1so2EAggPqlp26C0AZbuMukVtfhQVP5PpTHhNIANfKKikAJrIbvWeDUEa6c4tu2o3MC o/OCnkSiK1+EioycQFWvLPuHKkp1WaYbNLUxkXbT4OIBlzSpNfzjLotpQ8JZ8TJCrMVy LWUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9HWf7hUgZh6GIFRMufOwE+uKd6NEJBNzajxfUgCI2cM=; b=jt9r8xEcuI+aVHQsgTNQkzjX600+4Vk9fs/9cvVArq3EaTEeEJpOMYkgBLbeAZGIEH jJytiP5qhaLlIKxNISHMvwoa8V/KuDnvChBAC2hdHi7OUOPrhRtN0XwdBdhhlRuoNdPb MEILGAycGseb/Zn8tW/gSuBBTvr3zdGd3IsB3uvPsGmMef4ZmJFHlk2d1XFVejAYb0UM 3lhwkBiQoiofYcbc/oZPIHYexczzStxYUSWE3sDGVM6FwMtc/uqaf9T4HZPlpTxnR/hx Vvv7Ou2evoAaDBwFrzjeukzo9GNzDjSTlv8xWwxXOnNLHcsqrAy3HOGL0IHKjC1m8Ype QSsw== X-Gm-Message-State: AHQUAuYix6iIp6HegYqmmJknlxSefSh5UFpnxRDESPmhl3twiddYNLBy I9K+0UEgTQsBOiLYmkhj3FwmZjwDcHA= X-Received: by 2002:a2e:4503:: with SMTP id s3-v6mr6624228lja.44.1549467177474; Wed, 06 Feb 2019 07:32:57 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id d3sm2660180lfj.39.2019.02.06.07.32.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Feb 2019 07:32:56 -0800 (PST) From: Linus Walleij To: linux-arm-msm@vger.kernel.org, Andy Gross , David Brown Cc: linux-arm-kernel@lists.infradead.org, Linus Walleij , Brian Masney Subject: [PATCH] ARM: dts: qcom-apq8060: Fix up interrupt parents Date: Wed, 6 Feb 2019 16:32:50 +0100 Message-Id: <20190206153250.16495-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Before we fixed up the interrupt hierarchy for the SSBI GPIO controller, we had to use the PM8058 directly to pick interrupts. After making the interrupt controller work properly, we can reference the real interrupt parent. Cc: Brian Masney Signed-off-by: Linus Walleij --- Brian: please include this at the end of your series. --- .../arm/boot/dts/qcom-apq8060-dragonboard.dts | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) -- 2.20.1 diff --git a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts index 497bb065eb9d..4e6c50d45cb2 100644 --- a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts +++ b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts @@ -93,9 +93,8 @@ vdd-supply = <&pm8058_l14>; // 2.85V aset-gpios = <&pm8058_gpio 35 GPIO_ACTIVE_LOW>; capella,aset-resistance-ohms = <100000>; - /* GPIO34 has interrupt 225 on the PM8058 */ /* Trig on both edges - getting close or far away */ - interrupts-extended = <&pm8058 225 IRQ_TYPE_EDGE_BOTH>; + interrupts-extended = <&pm8058_gpio 34 IRQ_TYPE_EDGE_BOTH>; /* MPP05 analog input to the XOADC */ io-channels = <&xoadc 0x00 0x05>; io-channel-names = "aout"; @@ -515,9 +514,8 @@ ak8975@c { compatible = "asahi-kasei,ak8975"; reg = <0x0c>; - /* FIXME: GPIO33 has interrupt 224 on the PM8058 */ - interrupt-parent = <&pm8058>; - interrupts = <224 IRQ_TYPE_EDGE_RISING>; + interrupt-parent = <&pm8058_gpio>; + interrupts = <33 IRQ_TYPE_EDGE_RISING>; pinctrl-names = "default"; pinctrl-0 = <&dragon_ak8975_gpios>; vid-supply = <&pm8058_lvs0>; // 1.8V @@ -526,9 +524,8 @@ bmp085@77 { compatible = "bosch,bmp085"; reg = <0x77>; - /* FIXME: GPIO16 has interrupt 207 on the PM8058 */ - interrupt-parent = <&pm8058>; - interrupts = <207 IRQ_TYPE_EDGE_RISING>; + interrupt-parent = <&pm8058_gpio>; + interrupts = <16 IRQ_TYPE_EDGE_RISING>; reset-gpios = <&tlmm 86 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&dragon_bmp085_gpios>; @@ -539,12 +536,11 @@ compatible = "invensense,mpu3050"; reg = <0x68>; /* - * GPIO17 has interrupt 208 on the - * PM8058, it is pulled high by a 10k + * GPIO17 is pulled high by a 10k * resistor to VLOGIC so needs to be * active low/falling edge. */ - interrupts-extended = <&pm8058 208 IRQ_TYPE_EDGE_FALLING>; + interrupts-extended = <&pm8058_gpio 17 IRQ_TYPE_EDGE_FALLING>; pinctrl-names = "default"; pinctrl-0 = <&dragon_mpu3050_gpios>; vlogic-supply = <&pm8058_lvs0>; // 1.8V @@ -589,11 +585,10 @@ compatible = "smsc,lan9221", "smsc,lan9115"; reg = <2 0x0 0x100>; /* - * GPIO7 has interrupt 198 on the PM8058 * The second interrupt is the PME interrupt * for network wakeup, connected to the TLMM. */ - interrupts-extended = <&pm8058 198 IRQ_TYPE_EDGE_FALLING>, + interrupts-extended = <&pm8058_gpio 7 IRQ_TYPE_EDGE_FALLING>, <&tlmm 29 IRQ_TYPE_EDGE_RISING>; reset-gpios = <&tlmm 30 GPIO_ACTIVE_LOW>; vdd33a-supply = <&dragon_veth>;