From patchwork Tue Aug 28 18:55:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Urja Rannikko X-Patchwork-Id: 10578939 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B6755139B for ; Tue, 28 Aug 2018 18:57:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A647E2AA03 for ; Tue, 28 Aug 2018 18:57:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A4F92AA92; Tue, 28 Aug 2018 18:57:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3CD302AA03 for ; Tue, 28 Aug 2018 18:57:30 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=XW2ygFP9OUvVru64mgMJKMdabSAtOg29nOUbg+KcJAY=; b=ZdP Iuqi5oh4iERNZAJL5CSPVhT6X+niD/GG86wRWlLulb6EsEX8FQn+Y46Wyy/EhsvTB4QXJH+7rZ9pY aO9y5ACIO2ZZKA/sYCVs/y9cLMfJ+xvsPywZKkTYgsBXJmvUWU7r5rtcrrRr4pG4lrKCZMfwtw6nU GSfLkmll/deKFawKHdqXwT5ETIuGRoKJgMdilYGz+z1o7VEGLQL3RDwnnowIVk84B7vaX6EgHRYH4 t4SNPM9cC6+01edjOp2HVybJpS7Z1lZfrwazmUei1lGl/T5r2OPuNH4EoDIQu2wXp/HeJljEOvPWe 71SKlYPOrxtsdPEFU1k3LQXYgAIJiYQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fujB0-00047C-OR; Tue, 28 Aug 2018 18:57:18 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fujAv-00043f-TH for linux-arm-kernel@lists.infradead.org; Tue, 28 Aug 2018 18:57:15 +0000 Received: by mail-wm0-x243.google.com with SMTP id n11-v6so3045673wmc.2 for ; Tue, 28 Aug 2018 11:57:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=v1CniQ7Zu580EUG2FDPB8vUnB6+kIo5TgfMSSG70CYI=; b=TUhfKu+ApSfzhdclgn5Htta968d98sVPvmu68vXCLXJW4V43DCxMWGgat0uBE1iV+L HzJegBEmQwxTf6db9F5SiS4qXhk6PgP9iv1dnRDn4jJTtRx5ZYyi7uj7g2Mrj/X+wOop aYu2pPfoXiNcTa89QWgO2yTNsbIj6mM31us467WtIUqk9Z5J1MVJiVAdCftAWjalWqmd /qSwXAY4yS115lE0ICOaR4HdqehENFbumk3LaDa2N9y+hfa2ny5ITjyhsVLNJdUowFTS swkvCIf+1yChSVPagmh8+w2L7n84k405eKp2ksokjjjX0llURByMGEIJsNXhmCjtBOPh F4/Q== 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; bh=v1CniQ7Zu580EUG2FDPB8vUnB6+kIo5TgfMSSG70CYI=; b=XmablvIiAbzvtHTCw1whsoGFHCOoGCEHSdhGXGWfHUBEvZMj0S94sa9C4B+rw++asx MQT6rMJuJxeCnFzpquQUxf7LoyDnN4WwXW1E9s2OgMM83+3kO0g8PXF7CG+k0KRa6FIU gjBxYcGizvymsOQFjff+pR1beWFQ3nErqVVl4TQdQKCZfpblUKdOFrDkYYMX+gOAN8RX h/rBLliznAlPhZRLmlJH5KicaYZ7k4QVe4ZnoJOUSobR1vtMqiJz1kFIDWEpbO6/pP5l kD3nWsNwxH/+yvN3MWwi0/frG2AhEdUyF0VVBDj/RGcD8tkz9wXU+7js93AjrX4zq91P QbPQ== X-Gm-Message-State: APzg51Ar5CqmvHEOo6/3IMpf6Ex3LBG5+NOQiPsk9xZtOsjnn6VAbh1K Ym9hm6K6Dumtz1hbloJloE8cReHd0A== X-Google-Smtp-Source: ANB0VdY7Hx9nIj6hAEV620qqPgwpMvusIdngoJwMvSs4yhaqP1QUWQyfHOmt5Rpp+W7+y1DvM0gyNg== X-Received: by 2002:a1c:b157:: with SMTP id a84-v6mr2037941wmf.18.1535482621629; Tue, 28 Aug 2018 11:57:01 -0700 (PDT) Received: from localhost.localdomain (esm-84-240-79-214.netplaza.fi. [84.240.79.214]) by smtp.gmail.com with ESMTPSA id x125-v6sm1389843wmg.27.2018.08.28.11.57.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Aug 2018 11:57:00 -0700 (PDT) From: Urja Rannikko To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/7] [RFC] rk3288 veyron chromebook hdmi frequencies Date: Tue, 28 Aug 2018 18:55:06 +0000 Message-Id: <20180828185513.13216-1-urjaman@gmail.com> X-Mailer: git-send-email 2.18.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180828_115713_972063_5D1F99F3 X-CRM114-Status: GOOD ( 14.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Urja Rannikko , devicetree@vger.kernel.org, heiko@sntech.de MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This is a series trying to make the "hack" of dedicating a pll (npll) on these chromebooks to one of the VOPs (that is used for HDMI) more acceptable for upstream. Notably it should change nothing for non-chromebook rk3288 designs, and allows enough configurability that such designs could later use this feature for either VOP if it is desirable. I expect the first patch to be acceptable (atleast almost) as-is. It just adds the PLL frequencies used for HDMI into the PLL configuration list, so they're ready to be used for hdmi whether by fixed configuration, automagic magicness or dedicating a PLL. For the device tree bindings, I added a binding for the list of allowed hdmi frequencies (that quite closely a hardware property both due to EMI/RF considerations and clock/PLL configuration...) as "rockchip,hdmi-rates-hz" but i think this could have a common name. Suggestions? This has been tested on my ASUS C201, and effectively gives the same display compatibility as ChromeOS has. (This journey started with me plugging in my 1920x1200 samsung 2443BW and getting 1280x1024 at 55.555... Hz.) Urja Rannikko (7): clk: rockchip: improve rk3288 pll rates for better hdmi output dt-bindings: clock: rk3288-cru: Add property to dedicate NPLL for VOPx drivers: clk-rk3288: support for dedicating NPLL to a VOP dt-bindings: display/rockchip: dw_hdmi: Add property for HDMI frequency list drm: dw_hdmi-rockchip: better clock selection logic and dts-based rate list dts: rk3288: support for dedicating npll to a vop dts: rk3288-veyron-chromebook: dedicate npll to VOP0/HDMI + HDMI rates .../bindings/clock/rockchip,rk3288-cru.txt | 3 + .../display/rockchip/dw_hdmi-rockchip.txt | 1 + .../boot/dts/rk3288-veyron-chromebook.dtsi | 67 +++++ arch/arm/boot/dts/rk3288.dtsi | 6 +- drivers/clk/rockchip/clk-rk3288.c | 98 +++++-- drivers/clk/rockchip/clk.h | 3 + drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 269 ++++++++++++------ 7 files changed, 335 insertions(+), 112 deletions(-)