From patchwork Mon Mar 2 15:57:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mylene Josserand X-Patchwork-Id: 11415797 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A20DE92A for ; Mon, 2 Mar 2020 15:58:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7D980217F4 for ; Mon, 2 Mar 2020 15:58:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gZRRUsQq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7D980217F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=odVszTgJLtR1sfXXKq0qV9O8hmZbN4OeiL/E2qrtn+U=; b=gZRRUsQq5x+CCZ T+WHpIuF10gxnaiSNc4yv1U4B1iaxyvWF9P7rZCzxoMa3G+w7fDjfsRC663Xb3F/8WiDq7xinDKBG KNcn2EJwTTFnRHCXRj2e/s+H+dF4Smc8gp1VmQCfK2Vtt2slkZKYONQ4KBZeQ1oG4B7BF6pPbhA8a 9NTRttnx+UWcvIY/QRRcXYQsb4MJtKGaWoReGY8Ut1s2VSBmeUoasCW5qeG+5d8rtnWfgtiHzkwgO 6AjDXrlGIvae3VUMYdYFRPHM4IbeKwz566LJ2lsLZqHgfajAVIrNyS4A4CqxT/TZguUeiA0Jn9YhZ H2DYyKoLkq5QL2zQlLCw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8nSV-00056C-3n; Mon, 02 Mar 2020 15:58:19 +0000 Received: from bhuna.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e3e3]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8nSS-00055F-4U; Mon, 02 Mar 2020 15:58:17 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: myjosserand) with ESMTPSA id BFAD1296058 From: =?utf-8?q?Myl=C3=A8ne_Josserand?= To: linux@armlinux.org.uk, heiko@sntech.de, mturquette@baylibre.com, sboyd@kernel.org Subject: [PATCH 0/2] ARM: Add Rockchip rk3288w support Date: Mon, 2 Mar 2020 16:57:01 +0100 Message-Id: <20200302155703.278421-1-mylene.josserand@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200302_075816_310037_5B3062F1 X-CRM114-Status: GOOD ( 11.86 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mylene.josserand@collabora.com, kernel@collabora.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hello everyone, This series adds the support for the Rockchip RK3288w which is a revision of the RK3288. It is mostly the same SOC except for, at least, one clock tree which is different. This difference is only known by the BSP kernel repository [1]. Currently, the mainline kernel will not hang on rk3288w but it is probably by "chance" because we got an issue on a lower kernel version. According to Rockchip's U-Boot [2], the rk3288w can be detected using the HDMI revision number (= 0x1A) in this version of the SOC. Not to rely on U-Boot about the compatible, the patch 01 will handle the detection of the HDMI version in the rockchip subsystem. Let me know what you think! Best regards, Mylène Josserand [1] https://github.com/rockchip-linux/kernel/blob/develop-4.4/drivers/clk/rockchip/clk-rk3288.c#L960..L964 [2] https://github.com/rockchip-linux/u-boot/blob/next-dev/arch/arm/mach-rockchip/rk3288/rk3288.c#L378..L388 Mylène Josserand (2): ARM: Rockchip: Handle rk3288/rk3288w revision clk: rockchip: rk3288: Handle clock tree for rk3288w arch/arm/mach-rockchip/rockchip.c | 45 +++++++++++++++++++++++++++++++ drivers/clk/rockchip/clk-rk3288.c | 21 +++++++++++++-- include/soc/rockchip/revision.h | 22 +++++++++++++++ 3 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 include/soc/rockchip/revision.h