Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp462923pxb; Tue, 9 Feb 2021 05:03:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwN6EZEvd7apJ46iLe+3AHoZPM7XhkxT3uhwbicsTAZTDL4paxBXoc3kPAi/lprBTKpwbzZ X-Received: by 2002:a17:907:a059:: with SMTP id gz25mr22371872ejc.400.1612875811429; Tue, 09 Feb 2021 05:03:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612875811; cv=none; d=google.com; s=arc-20160816; b=Jt8szsOmR5ZAk0i7mBix0d1T0dZfhr7ekq9MbPd44/P2CXfWoIkYbJz5uPeJL1rxdI d7cGLo8aqA+OEzXPmEPPBO+rBfIHAKPrx9FudTc9iUMzGSFzq6ut2otZ3xXOV/jEuq5C 3oTGeXQiB7d/wU5sj8IWQfirzbLrBmrCSRh7SdONNcrOWCuMBgdVSLGbcCP3npjwcpjE NM3tDj9VDejFPR5P1vqpin23KbtaGkAxBagCBQC1EFcRhZw1G0G4PSMt0+pBnkFPHO01 9eICpnjC0vh0jdB6DWqz9a71CNEXWZiaKBJU2uHPCw97nWOJrln0m9iJuJVfIq10vZwY kFxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=FwLtSf6AruBNKL83Iuk9BHRC+D3b8nKdDjYwgFrAWAQ=; b=Z6/YY+cevJIfAf7TbF82bWcYliLKXaoHBZebtqmLxX+W2W7w4PaPVLMmZ9CKU3YNoQ meIF87TjlH6ZhZJVSeoRN/n51SAghGtR2Eq/Cxd9Xlormi7waYpKUw08yDa+9j0guQVa 8jPbvtbxQ7Hw5pdbe35Bj9aa/aCItHJEEgaf6eKObVRjXxBANVohyr7cjL0QLikeUeJD vqCvI7dMirRdP1bq8DOZVTjeCOZvAk3lNqfAuCqb7Pz7cVb4SY9MX5HYu/39RpRQ8iva OL7NpTxSTo8xcZRXOrEEkaVx4niWbT72XtAUfYfLfdb6As6pICVaFTAQwBBYhz5vASDh Yt6Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci12si13687668ejb.90.2021.02.09.05.03.02; Tue, 09 Feb 2021 05:03:31 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230272AbhBINBY (ORCPT + 99 others); Tue, 9 Feb 2021 08:01:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:41904 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbhBINBW (ORCPT ); Tue, 9 Feb 2021 08:01:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 07E60AF9C; Tue, 9 Feb 2021 13:00:39 +0000 (UTC) From: Nicolas Saenz Julienne To: f.fainelli@gmail.com, linux-kernel@vger.kernel.org Cc: linux-rpi-kernel@lists.infradead.org, phil@raspberrypi.com, wahrenst@gmx.net, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, mripard@kernel.org, eric@anholt.net, Nicolas Saenz Julienne , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [RFC/PATCH v2 00/16] Raspberry PI 4 V3D enablement Date: Tue, 9 Feb 2021 13:58:56 +0100 Message-Id: <20210209125912.3398-1-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series attempts to enable V3D on BCM2711, the SoC available on the Raspberry Pi 4 family of boards. Due to the lack of documentation some things are taken as it from testing/downstream implementation[1], which I'm hilighting here: - It's not clear that the following is 100% true, maybe someone can confirm: "In BCM2711 the new ARGON ASB took over V3D. The old ASB is still present with the ISP and H264 bits, and V3D is in the same place in the new ASB as the old one." - Patch #10 I took as is from the downstream implementation, I can't really provide an exact explanation on what changed HW wise. Ultimately, I need confirmation from the Broadcom folks that they are alright with patch #12 (deleting pm ops in V3D). With all this, I get a more or less stable experience using mesa 20.3.4 and X11/Gnome. Regards, Nicolas --- Changes since v1: - Use 'reg-names' - Correct ASB names - Add missing binding patch for V3D - Address Stefan's comments Nicolas Saenz Julienne (16): dt-bindings: soc: bcm: bcm2835-pm: Convert bindings to DT schema dt-bindings: soc: bcm: bcm2835-pm: Introduce reg-names dt-bindings: soc: bcm: bcm2835-pm: Add support for bcm2711 ARM: dts: bcm2835/bcm2711: Introduce reg-names in watchdog node ARM: dts: bcm2711: Use proper compatible in PM/Watchdog node mfd: bcm2835-pm: Rename asb to rpivid_asb mfd: bcm2835-pm: Use 'reg-names' to get resources mfd: bcm2835-pm: Add support for BCM2711 soc: bcm: bcm2835-power: Add support for BCM2711's Argon ASB soc: bcm: bcm2835-power: Bypass power_on/off() calls dt-bindings: gpu: v3d: Add BCM2711's compatible drm/v3d: Get rid of pm code drm/v3d: Add support for bcm2711 ARM: dts: bcm2711: Enable V3D ARM: configs: Enable DRM_V3D arm64: config: Enable DRM_V3D .../devicetree/bindings/gpu/brcm,bcm-v3d.yaml | 1 + .../bindings/soc/bcm/brcm,bcm2835-pm.txt | 46 ---------- .../bindings/soc/bcm/brcm,bcm2835-pm.yaml | 88 +++++++++++++++++++ arch/arm/boot/dts/bcm2711.dtsi | 15 +++- arch/arm/boot/dts/bcm2835-common.dtsi | 1 + arch/arm/configs/multi_v7_defconfig | 1 + arch/arm64/configs/defconfig | 1 + drivers/gpu/drm/v3d/Kconfig | 2 +- drivers/gpu/drm/v3d/v3d_debugfs.c | 18 +--- drivers/gpu/drm/v3d/v3d_drv.c | 12 +-- drivers/gpu/drm/v3d/v3d_gem.c | 9 -- drivers/mfd/bcm2835-pm.c | 83 ++++++++++++----- drivers/soc/bcm/bcm2835-power.c | 82 +++++++++++------ include/linux/mfd/bcm2835-pm.h | 3 +- 14 files changed, 225 insertions(+), 137 deletions(-) delete mode 100644 Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.txt create mode 100644 Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.yaml -- 2.30.0