From patchwork Fri Dec 4 07:51:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 337726 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp36991ilb; Thu, 3 Dec 2020 23:53:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaT2Zw4drKe1sVnylBL1OtezYA4atK6ae+UXJ1LhAq2GKWyfQFoO2b7mmGWciZCXzeSz6c X-Received: by 2002:a17:906:f8d4:: with SMTP id lh20mr6065276ejb.442.1607068422252; Thu, 03 Dec 2020 23:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607068422; cv=none; d=google.com; s=arc-20160816; b=kLAYAUZyzRHwgTco7W4er6cxh0z2iwU5ElkVpAMFJ97DQm77bLsNw0eRnHg3EiawpI 6j/vQCaU5kLJQa0K3qWINJEN/pHIKOkjqL14lo5tCCOMMLNvyds313UIlPLUhDPba4oH WaXQXm4Yf19FKpmDO0aTuGwTr9+Ut6UB9wplFeCrJv+8hVsbvQoJVq/q71xX7O+QlAPe yKbmbPTaJFUHY9Nap+iSu1UsIjf4jPDG8t+WKd7hCcOV/6Z/I+mg+IfDmkd+7lopVJKA Lkifg5zV+SBo486g4kn38hv1C85vuHOF5/KonNavnNjgxcYAe+zol6n+HIOys68GMkat v2qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=7B4Z9V9FJVne7AXPMH64Qu4HHhhon+GsU3KmmNhBkbw=; b=ht8aK8G7uVAeikOa2lbbR69XKAbf/f6DgLR6jaDrbWI3eIP/nDP14YH7zaEllRdmzN l2kxf8sORSYn2RD8cu97WlAcN3aLOhUfBCbmoI/3DaUrLpaRVcc1NGgHo99pMIaIJ4ds Bz3MfOwz1MBd02g9j71IlxR3M6KjXD/alUHI3Cdnq9gdE/6cHViTnDAGLfhMH/wsUfGY IbzsmxSQ36aOm3tvjrFt3wJ3f3RdeUX5eptBqchrAtFPP3DX4L3fKMeLyl3ZsQjB0SWr 1xi2rh+x7ZH+71JRMXqD/frqsj/xwd2oCJzv17t2W6UMBSTb6wevJh411kRSbjotHWK7 aARA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OTRjZLLX; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t26si883861eji.212.2020.12.03.23.53.42; Thu, 03 Dec 2020 23:53:42 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OTRjZLLX; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728692AbgLDHx1 (ORCPT + 6 others); Fri, 4 Dec 2020 02:53:27 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:36452 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726669AbgLDHx1 (ORCPT ); Fri, 4 Dec 2020 02:53:27 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0B47pe0R081483; Fri, 4 Dec 2020 01:51:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1607068300; bh=7B4Z9V9FJVne7AXPMH64Qu4HHhhon+GsU3KmmNhBkbw=; h=From:To:CC:Subject:Date; b=OTRjZLLXP+HqLLYpiZw9JmRmOj/YPm80KxiwFc66YTOZO6I6m6PUZ1Z0TDOdZ6hou 6LXDzpeKfIClg0ZBNeP7wt8m8MfQhZn1vQQr7FJfDQFi8IWK7lSHEcA8+1/cbnj8Rp jt+keN7+C064XR8+j38sx9+qtc7/pXqQwhb1njFQ= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0B47peR0113074 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 4 Dec 2020 01:51:40 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 4 Dec 2020 01:51:40 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 4 Dec 2020 01:51:40 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0B47pL6s031834; Fri, 4 Dec 2020 01:51:24 -0600 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Rob Herring , Tero Kristo , Nishanth Menon , Kishon Vijay Abraham I , Tom Joseph , Lorenzo Pieralisi CC: , , , , Subject: [PATCH v2 0/3] PCI: J721E: Fix Broken DT w.r.t SYSCON DT Date: Fri, 4 Dec 2020 13:21:14 +0530 Message-ID: <20201204075117.10430-1-kishon@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Previously a subnode to syscon node was added which has the exact memory mapped address of pcie_ctrl but based on review comment provided by Rob [1], the offset is now being passed as argument to "ti,syscon-pcie-ctrl" phandle. This series has both driver change and DT change. The driver change should be merged first and the driver takes care of maintaining old DT compatibility. Changes frm v1: *) Remove use of allOf in schema *) Added Fixes tag *) Maintain old DT compatibility [1] -> http://lore.kernel.org/r/CAL_JsqKiUcO76bo1GoepWM1TusJWoty_BRy2hFSgtEVMqtrvvQ@mail.gmail.com Kishon Vijay Abraham I (3): dt-bindings: pci: ti,j721e: Fix "ti,syscon-pcie-ctrl" to take argument PCI: j721e: Get offset within "syscon" from "ti,syscon-pcie-ctrl" phandle arg arm64: dts: ti: k3-j721e-main: Remove "syscon" nodes added for pcieX_ctrl .../bindings/pci/ti,j721e-pci-ep.yaml | 11 +++-- .../bindings/pci/ti,j721e-pci-host.yaml | 11 +++-- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 48 ++++--------------- drivers/pci/controller/cadence/pci-j721e.c | 28 +++++++---- 4 files changed, 41 insertions(+), 57 deletions(-) -- 2.17.1