From patchwork Tue Dec 3 08:45:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andre Heider X-Patchwork-Id: 1203561 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.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.b="LLoFukNz"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47RwYh4wqQz9sP6 for ; Tue, 3 Dec 2019 19:46:00 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 52659C21D72; Tue, 3 Dec 2019 08:45:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 277A3C21C57; Tue, 3 Dec 2019 08:45:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B7CEAC21C3F; Tue, 3 Dec 2019 08:45:50 +0000 (UTC) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by lists.denx.de (Postfix) with ESMTPS id 6B224C21C27 for ; Tue, 3 Dec 2019 08:45:50 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id p17so2453089wmi.3 for ; Tue, 03 Dec 2019 00:45:50 -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=NsP19gV1Z77MClo9MDn3+vzs0KfJ9L6TIiYDMZ0B3m4=; b=LLoFukNzyStdLMqi1kYpCqK7Zxj6/eRmMymQ8nSRb6X914qDEIeBtxHE/c9NJI5g7w bMKwEA53M32PLzlcDE5+ARL/y3lCmoCx6dQjQYIos8c2FfF1dnAuS8EdoUrebA/6fj2b 8pJ+yB0QmPwvbMo6NCUV2W16bc7eEvvQaSkLDT68v2ZKwXaATmeMOZdjKyfl+gWfr49k /aFftlkBgHenTDIEMMQMt/4MQ00KwHB5zYiCXF22UeopgOEOvHfYew8dysGlZsJI7qso ynVaIbJi5cJr/Dr/CPXrqBukNuZAxqgS9cD0m349ME24qXFkGPmxROrZC11bUzrpofzS Xqrw== 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=NsP19gV1Z77MClo9MDn3+vzs0KfJ9L6TIiYDMZ0B3m4=; b=pfFOHKmH+uMQ7d18xCgaZZE10hfyxnGiggGdxmfzrfDGS4Pr8r2JsNlinU6TOh/oOE 9g6LR1Em7Kj4+5b3Vm5q7PZIkcXw7dVfdc+Yw0nFnk7QZkpNpfYwLrhIlUezjNgKY61O AOYhmk+wMuVMiSL/VOoGCS+fdi/i7KZRNUFzv9NA0JWIevQsVeJlGZynG9ZgsxNRg1uj Ek8W/7ka8Hvwe/1S/PR5G+fLcv0DAvD+5N4r7DH8IjPG3Lrnu2vF1rWYoLyeCnqYxebI eepZz5Bt/tfqeqZT4jjcKVxHPfKzFSblj17j4OzXmUcrMPFL+HdSHGdHV8a3NvwpEJfd RVbw== X-Gm-Message-State: APjAAAWF5eMdRkYsGwJquCy+SW2tKxf6FopCDqgzSYr/mDqsjocQyNFM ThOnb8gwPkvsV9e9Em/jTPE= X-Google-Smtp-Source: APXvYqyfz7nkoreT6FwT2wYLSRvdJOFGJjm6RGBAVNmv/7p57kRf7/D3rhi4yk5OlKh1OQQWIffIHg== X-Received: by 2002:a7b:c847:: with SMTP id c7mr13445411wml.3.1575362750094; Tue, 03 Dec 2019 00:45:50 -0800 (PST) Received: from mamamia.internal (a89-183-66-130.net-htp.de. [89.183.66.130]) by smtp.gmail.com with ESMTPSA id u1sm2150866wmc.3.2019.12.03.00.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 00:45:49 -0800 (PST) From: Andre Heider To: Jagan Teki , Maxime Ripard Date: Tue, 3 Dec 2019 09:45:35 +0100 Message-Id: <20191203084539.1956677-1-a.heider@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Cc: Ondrej Jirman , u-boot@lists.denx.de, Jernej Skrabec Subject: [U-Boot] [PATCH v3 0/4] arm64: sun50i: Add support for Orange Pi 3 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 Acked-by: Maxime Ripard