From patchwork Tue Jan 29 15:19:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Pisati X-Patchwork-Id: 1032852 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43pqtF35jnz9sDr; Wed, 30 Jan 2019 02:19:49 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1goVAt-0004V4-0h; Tue, 29 Jan 2019 15:19:43 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1goVAr-0004Ur-T7 for kernel-team@lists.ubuntu.com; Tue, 29 Jan 2019 15:19:41 +0000 Received: from 1.general.ppisati.uk.vpn ([10.172.193.134] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1goVAr-0002IK-Kc for kernel-team@lists.ubuntu.com; Tue, 29 Jan 2019 15:19:41 +0000 From: Paolo Pisati To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/1] [SRU] [B-C/raspi2] build CM3 dtb if (arch=arm64) Date: Tue, 29 Jan 2019 16:19:40 +0100 Message-Id: <1548775181-15889-1-git-send-email-paolo.pisati@canonical.com> X-Mailer: git-send-email 2.7.4 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1813133 Impact: The dtb for the Raspberry CM3 board is not shipped in the Bionic -raspi2 kernel arm64 variant. Fix: The dtb for the cm3 board was not compiled at all, in the arm64 arch - apply the attached patch and recompile. How to test: The linux-modules-*-raspi2_arm64.deb should contain the bcm2710-rpi-cm3 dtb now: $ dpkg -x linux-modules-4.15.0-1031-raspi2_4.15.0-1031.33_arm64.deb foobar ... $ ls -l foobar/lib/firmware/4.15.0-1031-raspi2/device-tree/broadcom/ total 92 -rw-r--r-- 1 ppisati ppisati 24566 Jan 23 12:59 bcm2710-rpi-3-b-plus.dtb -rw-r--r-- 1 ppisati ppisati 24303 Jan 23 12:59 bcm2710-rpi-3-b.dtb -rw-r--r-- 1 ppisati ppisati 23015 Jan 23 12:59 bcm2710-rpi-cm3.dtb -rw-r--r-- 1 ppisati ppisati 17451 Jan 23 12:59 bcm2837-rpi-3-b.dtb Regression potential: The patch is trivial - it just builds the cm3 dtb if arch=arm64, and doesn't modify any code, so the regression potential is zero here. Patch applies cleanly to Cosmic/raspi2 too. Steve Pavao (1): devicetree: add RPi CM3 dts to arm64; mimic the RPi 3B arm64 dts implementation, by referring to the actual dts file in the arm directory arch/arm64/boot/dts/broadcom/Makefile | 2 ++ arch/arm64/boot/dts/broadcom/bcm2710-rpi-cm3.dts | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 arch/arm64/boot/dts/broadcom/bcm2710-rpi-cm3.dts Acked-by: Colin Ian King