From patchwork Tue Feb 4 09:37:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andre Heider X-Patchwork-Id: 1233195 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=aRFDj7aB; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Bfl05mc4zB3wK for ; Tue, 4 Feb 2020 20:38:20 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 165D581A99; Tue, 4 Feb 2020 10:38:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aRFDj7aB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C5BEE81AA8; Tue, 4 Feb 2020 10:38:11 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5B37181A8D for ; Tue, 4 Feb 2020 10:38:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=a.heider@gmail.com Received: by mail-wm1-x343.google.com with SMTP id a5so2438706wmb.0 for ; Tue, 04 Feb 2020 01:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uQK8MVpr5h2pmSdEWB3/kHAjecy2f6jLyTxFni+nzKY=; b=aRFDj7aBYU0vbwx/b9GnXA5c+5pl62BJ0Nv2ok7hFkIZuA/a5VMSDdMS19zB1rhyil rVpOSf+WwsSCjQwqu0JFypDvteA69TGmVSCZU96ql27VZFrG/iPEahX/6cvQPyCcDoPc i1snu3zK5b2YuiEO8wUupvP5Z+ZSN543keyauNjAmuOipEx0amCpe2cQECrtuXRZGIoT lAyPaIsowUC3t2Tr/vFGmkfjrEkpu3kjDwdVWL8PUwADWuMwz/cdDmIzz1X0qtjzlyXw gJPXWye/dxuGAQu3deepSxnY7UfeDs6fFb/pWzne+Lfc1NnztDHCUFs8D1yB1sm7AAJy IVHg== 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=uQK8MVpr5h2pmSdEWB3/kHAjecy2f6jLyTxFni+nzKY=; b=B/UvvsRb/xGqu4i3Fo1TZPyiVNa1hAyHB6E8Taai0pjf52vkMJofwKrwvFSbwL/fwG peASCWE9EOc2QQrSek9iO22LSvWNqD4z3WCkqXA4NaSPgBGygo3bRm6bIEoptP6si53B N40ywJRGxGS5gSK2xuGwM/d+yTghvNRAdsSWLtpsQxrn3DXXO+vAFl8H3zGjD78/PWSw 4SlvK0E4h1+tBPf9sVIlDREXzA0Cjp2IkQcnoExD1QCIc61ZWUPw4orRvBBYIgU1Jv9v eFNDsHxsRzmWQV08y7wlTXEY2qF4ILCtM1keQh9oLaxyZ9gZTbY7STHjcKk9T4ntgha3 1sTQ== X-Gm-Message-State: APjAAAXnaxzGjMva4WZHPtM3+aKoNOm+gr6sJqtxkOFJE2kAtJ7iVnDc 9xettoDZECuTpUn0O/bpVik= X-Google-Smtp-Source: APXvYqwng1MLitg123UysOgRnhJcdigl2SO109Wz0mW7L0T89Eud0cbJHv7kfv8NuAqmx88JT7OOww== X-Received: by 2002:a05:600c:2046:: with SMTP id p6mr4513522wmg.167.1580809087546; Tue, 04 Feb 2020 01:38:07 -0800 (PST) Received: from mamamia.internal (a89-183-45-130.net-htp.de. [89.183.45.130]) by smtp.gmail.com with ESMTPSA id q130sm3345425wme.19.2020.02.04.01.38.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 01:38:07 -0800 (PST) From: Andre Heider To: Jagan Teki , Maxime Ripard Subject: [PATCH v4 0/4] arm64: sun50i: Add support for Orange Pi 3 Date: Tue, 4 Feb 2020 10:37:54 +0100 Message-Id: <20200204093758.584725-1-a.heider@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ondrej Jirman , u-boot@lists.denx.de, Jernej Skrabec Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean Changes since v3: * use dts files from linux-next 98d25b0b266d * added commit description to "sunxi: board: extract creating a unique sid into a helper function" * added Maxime's Acked-by Changes since v2: * drop "sunxi: board: Use eth_env_set_enetaddr_by_index()" as it breaks compilation without CONFIG_NET * add "sunxi: board: extract creating a unique sid into a helper function" and use it for the the bdaddr so that it work without ethernet devices * use `if (CONFIG_FIXUP_BDADDR[0])` as suggested by Ondřej to give the compiler a better chance of discarding the function if the knob isn't set Changes since v1: * add CONFIG_FIXUP_BDADDR so fixing up a bdaddr is reusable * try to use "bdaddr" first, then fall back to generating an address Notes: * the kernel patch for btbcm to accept the "local-bd-address" property is on master and will be in v5.5-rc1 Andre Heider (4): sunxi: board: extract creating a unique sid into a helper function arm: sunxi: add a config option to fixup a Bluetooth address arm64: dts: sync Allwinner H6 files arm64: dts: sun50i: Add support for Orange Pi 3 arch/arm/dts/Makefile | 1 + arch/arm/dts/sun50i-h6-beelink-gs1.dts | 27 +++ arch/arm/dts/sun50i-h6-orangepi-3.dts | 287 +++++++++++++++++++++++++ arch/arm/dts/sun50i-h6-orangepi.dtsi | 4 + arch/arm/dts/sun50i-h6-pine-h64.dts | 4 + arch/arm/dts/sun50i-h6.dtsi | 137 ++++++++++-- arch/arm/mach-sunxi/Kconfig | 11 + board/sunxi/MAINTAINERS | 5 + board/sunxi/board.c | 139 ++++++++---- configs/orangepi_3_defconfig | 18 ++ 10 files changed, 569 insertions(+), 64 deletions(-) create mode 100644 arch/arm/dts/sun50i-h6-orangepi-3.dts create mode 100644 configs/orangepi_3_defconfig