From patchwork Mon Mar 30 18:16:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1056 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 43C873F03F for ; Mon, 30 Mar 2020 20:16:30 +0200 (CEST) Received: by mail-ot1-f70.google.com with SMTP id a3sf15668327oti.11 for ; Mon, 30 Mar 2020 11:16:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585592189; cv=pass; d=google.com; s=arc-20160816; b=ehkfXNhS7MjPoUv2vCrhBasZKlaJvLkw2SjMJkyKWZhhDRK5P8QMMUsReYBo+9Y+Vc jzbvOddnxDYdVnZJzHDQIbtK5yfqx5v3kBVHD/YrIlyrpr8YjqI/jShMWyYoYX2ZX91q LPJwVgfPwfsyFg9gnDwi8U7HFc7RBlryfXDTuar11l1gVvmwuhf3EcY5OsTPfh/4uzy1 rTZ63WUD3fU0ZY9WRJCwL4Epss4VBStR+o3+OF8ArPEVPWrgkXHRBki8QreHWYWt/KJc 8ZLyWyscohzpizHNhBU+KS/KpylzsupmIBKbEzrxG9STwO5qYSIlLqwQAxVQmSQ3JHb4 zyVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qqCziSQu8hiSSX096zHTxtse6tB3iO2/7cCfCXkMSII=; b=LhYTvsbVLVUSsWb61IvkA+7+hPoxvvR8GRvfCeBxl+ntHw7uAOcmA0OTpAXR95J0Ka Jb3U5b60D8i6bjhY3CV7EPsrrBsCOqh1GSboPLvJ0p/cQhwBKLSL0X+aQxL3El0Hy577 DsWqtveKgO5uXEm6gNECGCFJkrKRefPr1IU6ovsNsMuj3LKhy8yYZVf+Zp6Ty5kzt4+w 4WtjbLhgZ56F4XxbNlOOLnJfEAFjBYFt767G5K7SrO0VeeOClqNNtN9Bg3RFuIcfsmGa C0esAnV/4SUyFvoZLoZ8AaNv9pXM9EL7winirEIFdO5RFMne3cq8GH1Z2p9blzMCjDpx I4pQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="YggXH8/k"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=qqCziSQu8hiSSX096zHTxtse6tB3iO2/7cCfCXkMSII=; b=iyTzdb8IzDVVqBMjFG36U1095KzKjLF7mCXGlmm2aE6p9IOi6IrnktiyBG29Jdh6Ge iPWaCqh+ySzXatWSIzMG0W7MukqGSNYO6lFDDxHnqHlZJOOnk1EVOvX7Q3xWqKIcsCIJ d+v3Vr8zbZFi7Z0dv83lZOTVmlTYqtf+5JWUM= 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:in-reply-to :references:mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=qqCziSQu8hiSSX096zHTxtse6tB3iO2/7cCfCXkMSII=; b=tKg9WyMu6B4q3aeedwRYge8sZ+1vajbeZn3FkM9x+qOEVdf5rBQEffZdMG8BQf/1Fl flxXSdqvEVDJ+1Pw/rTV8d4sAWTPTrtq+Uke681gwd3JTOQ3kuIBcOnh47lzoJgcQMUA ZVRAcZ8EeiLvQTTu6WOpQqv+0Hw4hyRNRpaky6Ys1RyJER53G5aXK5W4rp3mlEgHgpr7 Gqpr7Qf0WCsVPEqmQveOaUT982i9CqLPfCeUWKLu32D8QdBUpA4OjTNXCfEtE1F+Zc9E //WHx3kwpGWU+Gew+WfFR997C+ezFem2khwm+y9y/kb3UulS4aXncLhJ5gpjD167lAxR 24mw== X-Gm-Message-State: ANhLgQ1iPQgaRjmvwCy37Jrzm2j2f7Qr9f1YNiOOLsgRqIM7TirpMrBR SnKnhKrPX6opZs/q+Qlke9t4W6ar X-Google-Smtp-Source: ADFU+vugLdOzA75r/W61U5xQO9xlZZ73MnRR0AT7mk9xggq1rquMW70OWlXw9CZkt9JUe8R91XVGmw== X-Received: by 2002:a9d:2dc1:: with SMTP id g59mr341019otb.90.1585592188676; Mon, 30 Mar 2020 11:16:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a9d:3bc8:: with SMTP id k66ls6917241otc.10.gmail; Mon, 30 Mar 2020 11:16:28 -0700 (PDT) X-Received: by 2002:a9d:6c45:: with SMTP id g5mr10154710otq.347.1585592188187; Mon, 30 Mar 2020 11:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585592188; cv=none; d=google.com; s=arc-20160816; b=s5aaM9tYfuGDA9pP0Fa5nL5F+VNFIw4g7xl0o8zGavXSHPa+U5W/hWMG59MU1sjgQc Y4OXzD3nBxxcYiPo8h78iThcwBmZczPyhu+xydCxkeVMgYeVC/Yo4MMW2utcY0nIUEub ArVQb8Jv1OKdRcDyAaAm1bzpNcwPOmizgIazRmE2DuqE/Tg9VGTWe9OfodrqHAnTRnfL BfZlDbo71GWprGRKhT/Zuypl8q3J6YK6ICh2wsRioQccbADUMpXGCdhQ7SghGi5KW1PF j5OymE0LNsggLcOad2kSv2Wask/ufVDeczS46U6F/rAZPXp99xiCxxUSILKIFL2O4COk dhJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=wJTLWcIFZyv0JFO9cta9pHUG+lGi0mCPWEKe9LuSPG8=; b=cB2K+veEYmGw6UqQxM52c0vNEbnZsBDTCmNYZnxRyhtI3kwLFjhth/M2Q6BpycqS5U WmdpSi9r07X4Tom/wD6Q3nzX/tqDXrs9Ys6a93f9MVvlI4udddT3L+fSp0eWzXg5xTeD cbvjglS3UhPKv9mJZBOeaaUALxGLxdS7YflRTHLuzy+qQluQQN08dfGukUp9uTX7jSTC KQmEyXbWAhabZH0aWTYpBQMNIjHo6YqptWmUDtz443ew/0ZVRQUvW7eDhRoHI01Ib87q 24ajVWTe5RPozubo9RUAsH+GmBrCoGzHE6n3LXzTKNnu/ExAWelvBDKZyCf6L0WAUxBK GoqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="YggXH8/k"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l81sor14469817oif.145.2020.03.30.11.16.28 for (Google Transport Security); Mon, 30 Mar 2020 11:16:28 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:2c87:: with SMTP id s129mr12932224pgs.406.1585592187786; Mon, 30 Mar 2020 11:16:27 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:b95e:3742:c972:389e]) by smtp.gmail.com with ESMTPSA id p7sm207452pjp.1.2020.03.30.11.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 11:16:27 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich , Anatolij Gustschin Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 1/4] arm64: dts: rk3399-u-boot: Delete vop assigned-clocks/rates Date: Mon, 30 Mar 2020 23:46:10 +0530 Message-Id: <20200330181613.29462-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200330181613.29462-1-jagan@amarulasolutions.com> References: <20200330181613.29462-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="YggXH8/k"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Linux supporting assigned-clocks for VOP on rk3399 by assuming U-Boot not initializing it on this linux commit: commit <617f4472bdd3> ("arm64: dts: rockchip: init rk3399 vop clock rates") There is no specific need to initialize these assigned clock in U-Boot as video drivers still work with default aclk and   hclk values. So, these clocks are simply not supported by rk3399 clock driver. But, during stdio probe of vidconsole, the device probe will try to check whether the assigned clocks on that video console node is initialized or not? and return error if not. So, delete these property via -u-boot dtsi as there is no specific need in U-Boot. Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/dts/rk3399-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi index 8b857ccfc7..b846f9cde7 100644 --- a/arch/arm/dts/rk3399-u-boot.dtsi +++ b/arch/arm/dts/rk3399-u-boot.dtsi @@ -99,9 +99,13 @@ }; &vopb { + /delete-property/ assigned-clocks; + /delete-property/ assigned-clock-rates; u-boot,dm-pre-reloc; }; &vopl { + /delete-property/ assigned-clocks; + /delete-property/ assigned-clock-rates; u-boot,dm-pre-reloc; }; From patchwork Mon Mar 30 18:16:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1057 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6A2AE3F03F for ; Mon, 30 Mar 2020 20:16:34 +0200 (CEST) Received: by mail-ot1-f69.google.com with SMTP id a10sf3669159otq.17 for ; Mon, 30 Mar 2020 11:16:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585592193; cv=pass; d=google.com; s=arc-20160816; b=fUw4h6s7DiYJ08phjZZSgt01PUE5xQDYIAb1ZJYBSKw/hCx5Mt9r/eBAajnAoqPdZb ppHCDmrjN9+utQNgCc5FC1ZGlPW3Sl0S+Q7YD35+bbF0jYxT0kwAD+TMzgXAujbQGFJw u7hUhvsxgjw8ug5YdFPpFBK+4zCt7HrQGzPwK7CeR04CnLw520SWLRG9q1URlQDIHLl7 S88GgVLhTg0vibQqWfwadKiuJ2wyqLWeEmnCWZIOGfrswf9fy6G8OpCkFDHS3d8EUfUw q0Ie2Pf3SnxQwJOqGsqq8z8zAJSh2Tp6oC1IdE3QRttwuD7octiLsjbfZrYmNB433N0a Cuzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=T6sWe0vKSyDQ3jUj21oPcStJFbyxS0q1BwNEh6YzYlI=; b=v3xQ4wF5EHUeQjZ2Gys95cnN1Ydd4Rw3LBp3w4+j9epmm34x0OsxgGXldKhSLKY8gI yZ682sarxDul8dLwR4dBeNTb1YD7lOVLbt2xMLOrM9wMyaC5QoIqVxCfup0trcySXiUJ NFrLtjM3IMW8gIhL8pvDSKTBv2K/HNsexblksRsbgqsOIUABkJVzZMigiwkD6kHboHmA O17YgglGQ3+qHGrcyJqnJkoYxxaad4zPn8N0rBAeQZy+34HsYBkZUpLwBNdtQtw1Z5RQ xjQfEqEpcltpJdPGOHYgWZ0+xhNOUc6rfsdo0KIRZHoXAl2a/TmgZEUaF0vrJvgyWjrc sb+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jpdl8vLX; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=T6sWe0vKSyDQ3jUj21oPcStJFbyxS0q1BwNEh6YzYlI=; b=MDO8hz650aWP+HBxA0Cc1fTQYXnEecuZXJjhjJrEPaywpOfct65ygzlJ5bkV4Pfodp F0JIdBVDVwGdI0BzbxNqsHRpb9w4Xo0X2s0WnmeuOcZDTZdorh7wjzMhv1l1XDKpRQJV /c1oH1KoYMrrFRbSyqolamVozte3OsHUcVd/M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=T6sWe0vKSyDQ3jUj21oPcStJFbyxS0q1BwNEh6YzYlI=; b=X4zcGzM/CQviFHO5GxSQY4l09pvQlltJhWYV8V0yg868IaMvUJo01bo/MbM605QVBV QEyPOlCysVXcVathGDi9STGH63txjTiHYrU2Na/EsBRh5t1Pzy1/QatGwX4r9MgXgvMU htdPLN81BfuvDlnMiRDpSwb4hBvGhjhAL9C9uLE2zBl/UHPIXzLhuBUflnIpsEfrg+Sb PZDCHbYIiEXsKaHZLz8HqEWTGHQw1jdwEUTQyTe7nBYQw3UvjtAl/WYhDfofOiTogJGh ls1c6F0nxO6Cy+z9LMQUChwmxh5GI7l9zed/+Mou4lrFE+qH7K3MsgHAVYy0B7dqd15R SokA== X-Gm-Message-State: ANhLgQ2a9VayWNP+75+x6bKV/vO4+QcIWPQlzwQHvzHZn2x0mf7Wno4Y 9hbdp+D6j4TLnFfmyS0X+w5jQqFJ X-Google-Smtp-Source: ADFU+vtFnx953tPfx+vpsfWvMINSRv8ktCrEUOzrOFxDHTkeUIkZos2t+26+JE5tEo5xoAcqthWvVQ== X-Received: by 2002:aca:de42:: with SMTP id v63mr403571oig.99.1585592193168; Mon, 30 Mar 2020 11:16:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a9d:30c4:: with SMTP id r4ls6905956otg.9.gmail; Mon, 30 Mar 2020 11:16:32 -0700 (PDT) X-Received: by 2002:a9d:3a62:: with SMTP id j89mr9359031otc.45.1585592192670; Mon, 30 Mar 2020 11:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585592192; cv=none; d=google.com; s=arc-20160816; b=qUK7SyZCYD8GK8zE882JuTmTU6Wljo7HR/jFwhwCaAGg0VxHeGz4WoHx66u+eTrghH BaCKD+WFyFPPGr+p0ZawLmGeI/kDpG7uJs0xxuI8wFtzCYuqPx5MTqz0uFAYUU1Z4KrR VKVIn3UVonHwFZjJFkSyylu9Vc5jdqzlfJ177XnO/hezRE9EmgHSsMRF5pvwqn/WkaJF lJXjaU1iDG7j1eGDM+9lETcBmWjzBKFdGCxw80es77QBmUav9HM1jFgBT9pTvuwL2CXN 9ZcF6w419cPgXBXycYfKYt5sceas2g6qDrffb5IaDAEnlRItIdjSZcuB2xrPxPn5dAFm nKmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OoGn8QBGSdBeVcx7ww2exfrAU8/niS0AWwlQNFH0BPE=; b=E2C3wCEASU9CTlbzrgMxhOQXLo9QzdEVXA6jppjQ8HWpvhni5wiqDHgWdj4C7AdEDS WzFfNy8qCROnULfMOm9yYqkjHYr6v4XbQXgiaUDowu0bsOqY9hc3vQoxZZkHyCj+8kBR h/7C3MWP4XR91LJCU3Ev4xCrKmh0k5UJXFZy/J8LfABTE+vm8YZVefmqFxHfR/4la4DV 9alRkEJZwhg5L6nOo5MMasYnQ4HsqN2o6TWPtyABMNJXFI0+zuO8HSl2yjdHv9Mm5sJ+ R2BT1o6Z9og4aRXw13kO4kNgt5Ne2ln0DSJkaNGnMDfW6S73RPsmoF6Yu5/XuTRj7MAc /CxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jpdl8vLX; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id o82sor13921953oig.65.2020.03.30.11.16.32 for (Google Transport Security); Mon, 30 Mar 2020 11:16:32 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:faa:: with SMTP id 39mr441309pjz.190.1585592192279; Mon, 30 Mar 2020 11:16:32 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:b95e:3742:c972:389e]) by smtp.gmail.com with ESMTPSA id p7sm207452pjp.1.2020.03.30.11.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 11:16:31 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich , Anatolij Gustschin Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 2/4] video: rockchip: Fix vop modes for rk3399 Date: Mon, 30 Mar 2020 23:46:11 +0530 Message-Id: <20200330181613.29462-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200330181613.29462-1-jagan@amarulasolutions.com> References: <20200330181613.29462-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jpdl8vLX; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , VOP display endpoint pipeline configuration is differs between rk3288 vs rk3399. These VOP pipeline configuration depends on how the different display interfaces connected in sequence to IN and OUT ports like for, RK3288: vopb_out: port { #address-cells = <1>; #size-cells = <0>; vopb_out_edp: endpoint@0 { reg = <0>; remote-endpoint = <&edp_in_vopb>; }; vopb_out_hdmi: endpoint@1 { reg = <1>; remote-endpoint = <&hdmi_in_vopb>; }; vopb_out_lvds: endpoint@2 { reg = <2>; remote-endpoint = <&lvds_in_vopb>; }; vopb_out_mipi: endpoint@3 { reg = <3>; remote-endpoint = <&mipi_in_vopb>; }; }; RK3399: vopb_out: port { #address-cells = <1>; #size-cells = <0>; vopb_out_edp: endpoint@0 { reg = <0>; remote-endpoint = <&edp_in_vopb>; }; vopb_out_mipi: endpoint@1 { reg = <1>; remote-endpoint = <&mipi_in_vopb>; }; vopb_out_hdmi: endpoint@2 { reg = <2>; remote-endpoint = <&hdmi_in_vopb>; }; vopb_out_mipi1: endpoint@3 { reg = <3>; remote-endpoint = <&mipi1_in_vopb>; }; vopb_out_dp: endpoint@4 { reg = <4>; remote-endpoint = <&dp_in_vopb>; }; }; here, HDMI interface has endpoint 1 in rk3288 and 2 in rk3399. The rockchip vop driver often depends on this determined endpoint number and stored in vop_mode. So based on this vop_mode the bpp and pin polarity would configure on detected display interface. Since, the existing driver using rk3288 vop mode settings enabling the same will result wrong display interface configuration for rk3399. Add the patch for fixing these vop modes for rk3399. Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/include/asm/arch-rockchip/vop_rk3288.h | 11 +++++++++++ drivers/video/rockchip/rk3399_vop.c | 2 -- drivers/video/rockchip/rk_vop.c | 4 ++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-rockchip/vop_rk3288.h b/arch/arm/include/asm/arch-rockchip/vop_rk3288.h index 8398249509..872a158b71 100644 --- a/arch/arm/include/asm/arch-rockchip/vop_rk3288.h +++ b/arch/arm/include/asm/arch-rockchip/vop_rk3288.h @@ -85,6 +85,16 @@ enum { LB_RGB_1280X8 = 0x5 }; +#if defined(CONFIG_ROCKCHIP_RK3399) +enum vop_modes { + VOP_MODE_EDP = 0, + VOP_MODE_MIPI, + VOP_MODE_HDMI, + VOP_MODE_MIPI1, + VOP_MODE_DP, + VOP_MODE_NONE, +}; +#else enum vop_modes { VOP_MODE_EDP = 0, VOP_MODE_HDMI, @@ -94,6 +104,7 @@ enum vop_modes { VOP_MODE_AUTO_DETECT, VOP_MODE_UNKNOWN, }; +#endif /* VOP_VERSION_INFO */ #define M_FPGA_VERSION (0xffff << 16) diff --git a/drivers/video/rockchip/rk3399_vop.c b/drivers/video/rockchip/rk3399_vop.c index 81c122d7a9..1d5b3931a6 100644 --- a/drivers/video/rockchip/rk3399_vop.c +++ b/drivers/video/rockchip/rk3399_vop.c @@ -45,8 +45,6 @@ static void rk3399_set_pin_polarity(struct udevice *dev, V_RK3399_DSP_MIPI_POL(polarity)); break; - case VOP_MODE_LVDS: - /* The RK3399 has neither parallel RGB nor LVDS output. */ default: debug("%s: unsupported output mode %x\n", __func__, mode); } diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index e91d4dfa7f..e1bd656bee 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -118,10 +118,12 @@ static void rkvop_enable_output(struct udevice *dev, enum vop_modes mode) V_EDP_OUT_EN(1)); break; +#if defined(CONFIG_ROCKCHIP_RK3288) case VOP_MODE_LVDS: clrsetbits_le32(®s->sys_ctrl, M_ALL_OUT_EN, V_RGB_OUT_EN(1)); break; +#endif case VOP_MODE_MIPI: clrsetbits_le32(®s->sys_ctrl, M_ALL_OUT_EN, @@ -313,7 +315,9 @@ static int rk_display_init(struct udevice *dev, ulong fbbase, ofnode ep_node) /* Set bitwidth for vop display according to vop mode */ switch (vop_id) { case VOP_MODE_EDP: +#if defined(CONFIG_ROCKCHIP_RK3288) case VOP_MODE_LVDS: +#endif l2bpp = VIDEO_BPP16; break; case VOP_MODE_HDMI: From patchwork Mon Mar 30 18:16:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1058 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 53BEF3F03F for ; Mon, 30 Mar 2020 20:16:39 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id n28sf16077881pfq.4 for ; Mon, 30 Mar 2020 11:16:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585592198; cv=pass; d=google.com; s=arc-20160816; b=X9OBrRw9d2hLxfixIUPXGKQWK5K7CGWgCOJYiqHAxjN+ZfTRfOQHj3kmKvtLUFrVmv PlRKu29701PJssPwivBF5LwUcmd+m+ED5c50D/b5GHm4jDdRqBsx//RaLtv2h6XRnNmd PhQkFSPb7OdoSS5nOYz8zx5oJAnsSJa4NuRMAOnjafhYsY2ZMZqeCvMJkQpyQYDynMRX SaYdlIr9+mVeTAXozEWr+5c3FWVUEP2qn19xCG/LYiaxEcELz4Nv6LN9bZv8XIzoc7Tg GuJ2bls+3MPjCWc+KSpOlxDyDt/AiG1v1iIBZW1GpyAHC/cgygtM15ArTBOEvaAciZ0e x3AQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=wilsGfRQe6dRk7ddtfZ4INeXj72VkEo4GCc+48klllQ=; b=jzvK9LDuZF7VFLMbD2rBdooGtTwMyQFEaqM+WEIKTzj++uplmgM3x2/wq4eERNQr+f rbN+/CY7Akee7kzk6+7O2KEkZI+Fe00uW9MUK8+i3gfFi29uBXnGSQeulVBOwQZfH35L 271f82Demi33TXqJyKf+9hnbD+VsIisrOR9IGRrXJF6VRNDZIztjShTQ56uIvOGkLfm8 5VxGCC7WCc7DmJc7w5Z1FToH0Ax3xm/L10uVO+0GoUoLmSxA/17JxlzeTKkFP9GTUsDX gi0RqPlKYU6/vdeTCUBJNoK+6UvAfvF/jIebD0HnhUG5kzw+w7Z2RHkV3j10oZ9I8XgK jIKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fRsHvCK3; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=wilsGfRQe6dRk7ddtfZ4INeXj72VkEo4GCc+48klllQ=; b=ZjtiLjQx0+um2i5hZhvLk4KGs4OUymxECMbwNjQ/lLZyYPN3TzuKCLsJmLwNTRnH29 6i6w1wIc85I6fi3tCtTSnzgl6D1vlwJ1Oq/toOyPD7Y05xrp9wy9xFt5yRi/iuDMVQ3k dcoqiaF3VyMNatUT7RiuoTKYhUl0Ng+lLrbao= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=wilsGfRQe6dRk7ddtfZ4INeXj72VkEo4GCc+48klllQ=; b=Gj/riLelfBicdiTlaYNfoR9S9MHN7z7/7Df1NQ5fkhIVqAojr5cimuE6oXIpOOxdae kOwdq3hrLOXBT/TL/LMZTAbtgsHWe1VgSTV2Pp7NT2E/aHkTwI9ixoydD4y2D15SDBOZ bUfAkAlbSycxYC8gN4q9PqnsxTRs0Hk14c/uvxTxFWOInmDMo4HOtvRnwbRrMAQOBG24 h0C5mA6WXqZ9OD/6NFjaO/MHgzHpnRJeybvlnQjMid4lnjNQnr3xc0vyw7Zkm0VwNy/M jnpWrgsROtXI0Y1fPOx+2kp96WM/Oyb9bsBNFeJduA5jSwiz//KBS/jP06nX7szD/L3E hjCg== X-Gm-Message-State: ANhLgQ0zsRWB1eooK03hclfYQqfCup4K4zZB4bAcM/PNkNUBRQWqIGDG /gLyh7q2mtVjqjvy1Gnr/E6Ilv0w X-Google-Smtp-Source: ADFU+vurNXO919VZUnoyNabzuaAG82RmbDBJq86QCOjD4/wu8/yvbgdTSDhMhcLVERCHUmhEJwp0Vg== X-Received: by 2002:a17:902:fe0f:: with SMTP id g15mr14491230plj.25.1585592197484; Mon, 30 Mar 2020 11:16:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ff18:: with SMTP id f24ls12989037plj.0.gmail; Mon, 30 Mar 2020 11:16:37 -0700 (PDT) X-Received: by 2002:a17:902:8c94:: with SMTP id t20mr13409503plo.336.1585592196919; Mon, 30 Mar 2020 11:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585592196; cv=none; d=google.com; s=arc-20160816; b=wQbVSkk7Xh08iGktfG5ZHRe4yKkrTU7Aoqul5CIeLqFtmtbGIpRQItbtiSGK3f9DaW yuJD0gg605PwZuj/Q93KHx9yLv3QgEoQWu47tbptT41XYtzM0lFuwWLE6hDzaHLDzrZ8 HDQT2L4VqIQkPDNKwEnW6CmidxPXuLESPJwHmqyG1YXxnGv13A1eldRVEbVGV1eFRTz/ MIO75FoQMv/E+jHynj6mqqzpJji/WT3LRBK4Xz3saZsLKMzCDO7laThRP0Gkyrgia6Db t3JBbMsVqp/x0xXXyVcp7oLcw9DJEOiRw0LGqJCU4hwpi6bKdaBf32Zt7dYYf3YDLMuu tNBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gvUS8A/eL7b7o1g6E1PL+fAftkvIDyBq1evUjTl0k/Q=; b=zA+AHTBZhDHSlz3YoG9gynptLfK5N4FmQrFlMZNfOhufD4xmmOdIBjXlykCHAY+Bal zLWI7ZyERW9ABKLLXnDU1hlSzdfC1JnKz0gEPIgR1cEjRSI4xUg2kX/ZyBmyP6uL7dy+ Pejbm2yxN3C5yeqcb/NNuFgIuPmVxnxzDWWQOQAqcAXAsD43npcBzJr5+mUpU5GO3+Ri yJqz8bF9ounK8VzYn3scTFkpZ5P9djdAAUgcckb1MtneYaRZbSAin68xAH3l0GZZzXW8 O+/bqnRPMLvxTZqhcJztWGdZWfVAmmN60ksRFnXOOiYcmVrOeQx6ikndw3BN8j45RsX2 Fthg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fRsHvCK3; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id y22sor19691076plr.24.2020.03.30.11.16.36 for (Google Transport Security); Mon, 30 Mar 2020 11:16:36 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:b682:: with SMTP id c2mr354882pls.36.1585592196301; Mon, 30 Mar 2020 11:16:36 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:b95e:3742:c972:389e]) by smtp.gmail.com with ESMTPSA id p7sm207452pjp.1.2020.03.30.11.16.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 11:16:35 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich , Anatolij Gustschin Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 3/4] rockchip: Enable pre console for rk3399 Date: Mon, 30 Mar 2020 23:46:12 +0530 Message-Id: <20200330181613.29462-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200330181613.29462-1-jagan@amarulasolutions.com> References: <20200330181613.29462-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fRsHvCK3; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable pre console buffer for rk3399 platform. This would help to capture the console messages prior to the console being initialised. Enabling this would help to capture all the console messages on video output source like HDMI. So we can find the full console messages of U-Boot proper on HDMI display when enabled it for RK3399 platform boards. Buffer address used for pre console is 0x0f200000 which is ram base plus 240MiB. right now the Allwinner SoC is using similar computation. Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/mach-rockchip/Kconfig | 1 + common/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index ed7514ab75..0cb1f23d0f 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -229,6 +229,7 @@ config ROCKCHIP_RK3399 select DM_PMIC select DM_REGULATOR_FIXED select BOARD_LATE_INIT + imply PRE_CONSOLE_BUFFER imply ROCKCHIP_COMMON_BOARD imply ROCKCHIP_SDRAM_COMMON imply SPL_ROCKCHIP_COMMON_BOARD diff --git a/common/Kconfig b/common/Kconfig index 46e4193fc8..bd35de3056 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -568,6 +568,7 @@ config PRE_CON_BUF_ADDR default 0x2f000000 if ARCH_SUNXI && MACH_SUN9I default 0x4f000000 if ARCH_SUNXI && !MACH_SUN9I default 0x0f000000 if ROCKCHIP_RK3288 + default 0x0f200000 if ROCKCHIP_RK3399 help This sets the start address of the pre-console buffer. This must be in available memory and is accessed before relocation and From patchwork Mon Mar 30 18:16:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1059 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6D2823F03F for ; Mon, 30 Mar 2020 20:16:42 +0200 (CEST) Received: by mail-pj1-f70.google.com with SMTP id y21sf16021830pjn.5 for ; Mon, 30 Mar 2020 11:16:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585592201; cv=pass; d=google.com; s=arc-20160816; b=P7peNq4M0yoFkumk8GDeCC8Zsz1jUKIsCoZHex9q7rygVr95xlP8vwdJDHERaKgNiX dFRN5/wOshFRXyqeCogGFEWSJXrpdXm3TLXe/QdxjTTQcPwYCein2buWFAVyqvnJcQcy U271e9hxxUpLBsJ/px06PJQdVSxIoiTM1MKRCUHV2zLvoWeQoX6Xq56+FLgQHJy/kNiV pfvhp40oQTn6mzLf9lpVo6EzJzRX9Ro1CNwyksZH16hsUEw9HiqymMxIIB6QY+P+Xsep bQflUFWLjAkIhSY+eIJPeJWVs/N9v8SuVaHaj6LZt6j/3kJeHKwaWy5gnoHlSkzefYt1 4vXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=2KfulCqo5MzpeR5JXxWjX6Rm9m8Px2dsPKY7RHpj2FE=; b=l4tCW7yIdb0wcZNzouoXyRqE6jjQrNTzqjOWaSpXrUQaeE25l5S2ay/FJQ2dpHaPAC 5x8yWxDu/2b0WdWUNQvoeeRHNmpfwXhDMSMc+ER/g94jzx/tSJOy6kWxS/KgtNNyTgii XNVn4UHMNK7sxF73RtSbLE7Riw44JjotoEHj8ENKdXjPyEHpNAUxkz+NzaHU2+S0/h8y go2U/OgSYUoqYUpE0cTPDa3nFkVLOHTT6dumB8lJoPFOrINSPsZ5jOyNwPtiVAg2QqEL rIDGQ8wRvP8BRZY34ITruc8mu1ktmgJ1C8LHH4Eo15O8/yXyIRJXIHs+zeC7+tDdK1lC aC6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=G5Jb1WTO; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=2KfulCqo5MzpeR5JXxWjX6Rm9m8Px2dsPKY7RHpj2FE=; b=V9kVaSFL0NkhyPXveoNVA9+IYu7HlH3RxP4xoSvTBdx44X2emrHUQ32y0yz2i6tfHR svIfa3T1bhORZuu1WDo5OX5Pxok0Zc52U6SjIaZDd0fHqpOFfFJzxgFdZRb9lvMWrJXZ Mfud/xSIbvMjzZgY91c+iY3PCpvv1vZGYmrt4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=2KfulCqo5MzpeR5JXxWjX6Rm9m8Px2dsPKY7RHpj2FE=; b=mR/7VYQ9Frh3IPx0vkZtstNt88y6p2jnSSTOb1CotaS3y0lJgRdxPSRVXEbwfdRiQG ysaYt5kAOktIXqsGDa4eizsFaZjt6VQQGU3QCsvWJn4HFtZDsLzSrnmJOWNpumGmitjg dx7qZzPLeizE9ik+DOlsCnNR9Uw5sMMo6dA1H2bdVgRPGK5qYHXJTOXcEDzbOY9AWwXJ h1z/9yT9so4Ict5r2OJM9s4j252IPQN1RM7+ywLY8QGnDisDKX8YSyB0fVX2GCQBgjq+ fH9DN1LPHlAvTt7zyKh0xVS56tf36QzVX2+X2gSXTuQRt4TjI//5WMgewG+1sWeaaeMa YGGg== X-Gm-Message-State: AGi0PuY6/HaVYmk6+/2TIVbdOiKFMCXZNKBH2Qfaks6W99WxJh6QLhLc kuZ79ZoIDsTk/9LMx0bqhMlN/Re+ X-Google-Smtp-Source: APiQypLiuwOXEkEGBDnZdAvwQzxRT7hEIATaJIApg0rQLCu6rBGwJjECnAZ1qVRyKUWm4U6QUmDwuQ== X-Received: by 2002:a17:902:d909:: with SMTP id c9mr350501plz.6.1585592201198; Mon, 30 Mar 2020 11:16:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:332a:: with SMTP id m39ls332565pjb.2.gmail; Mon, 30 Mar 2020 11:16:40 -0700 (PDT) X-Received: by 2002:a17:902:aa4c:: with SMTP id c12mr14338751plr.168.1585592200648; Mon, 30 Mar 2020 11:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585592200; cv=none; d=google.com; s=arc-20160816; b=jYPVkwpqO4YpOcNHD+UQhBd3k5nxqX82iqMfcpiVB2rHFayC/l6xRlSTlt6Nd6dwsx wzHPwW0t2maEyOVjOK94GLsKPKnE9h+/7L8R0rCGAROXMjt75A2l1EqvYzH+P1rGI0op Azbjh4mRjLc4HcCrUiC+/tdrQwPeIUMLlooD8VohvR9vRb+vD5WOeLefoAjHjv5P1U7w c7PACZkXc5IG6WuAwTMrjzlhgbcBZxe3EYRnWJyxhZ7PaUOoOAdqrV2Ek9/joP7UjyPc ziKE4qRM9bCbOP8pqGAnRxUKuy2ElLkAPMTLPkNMy1wphmsF9MTgbtSkoxSWVTqnlUBb aclw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mbP8yTk1wDXX6Om+l/BmnhYz0CyI1FvoE9vWahYLyqA=; b=LxsCN2h/e0vgJ0mAQpwcj/FF9IW7rGXfxPqJLrSfONBHhhHdOKwS/P/PdxS3cU9DB6 aNh9aCZ9XBp8A3zLpVwzPfhd9PJ6kKCpyo1E+ZIdDvkPM9qJhUp11VPNqxpEZludpd0V clNxOmeMlXoocN/5pHONvqxttpkjggoE8HCJ7gOSCkfq8pDil/5O/lf3wehC4n1FyXYU 9DWEMfXg8bDZ8oYyCSOUOTBuaHVeewLhLlTR8Pl5xSSOt3/R7JSASXud3w3zI5W+QfIC gF0tiDaXmvc3EerduQZwEo2QEXLcZjELxL6jJvgvHdXR7D23+uEEKODPtNAF9v2EIQsO XnnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=G5Jb1WTO; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id v15sor466337pju.34.2020.03.30.11.16.40 for (Google Transport Security); Mon, 30 Mar 2020 11:16:40 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90a:c583:: with SMTP id l3mr713589pjt.84.1585592200261; Mon, 30 Mar 2020 11:16:40 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:b95e:3742:c972:389e]) by smtp.gmail.com with ESMTPSA id p7sm207452pjp.1.2020.03.30.11.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 11:16:39 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich , Anatolij Gustschin Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 4/4] rockchip: Enable HDMI output on rk3399 board w/ HDMI Date: Mon, 30 Mar 2020 23:46:13 +0530 Message-Id: <20200330181613.29462-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200330181613.29462-1-jagan@amarulasolutions.com> References: <20200330181613.29462-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=G5Jb1WTO; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable config options and console setting to respective rk3399 board for HDMI output. Boards supported and tested on this patch are: - NanoPc T4 - NanoPi M4 - NanoPi Neo4 - ROC-RK3399-PC Signed-off-by: Jagan Teki --- Changes for v2: - use usbkbd in stdin - enable USB_KEYBOARD configs/nanopc-t4-rk3399_defconfig | 7 +++++++ configs/nanopi-m4-rk3399_defconfig | 7 +++++++ configs/nanopi-neo4-rk3399_defconfig | 7 +++++++ configs/roc-pc-rk3399_defconfig | 6 ++++++ include/configs/evb_rk3399.h | 5 +++++ 5 files changed, 32 insertions(+) diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig index 9ea9b11574..607a00dbf7 100644 --- a/configs/nanopc-t4-rk3399_defconfig +++ b/configs/nanopc-t4-rk3399_defconfig @@ -52,5 +52,12 @@ CONFIG_USB_ETHER_ASIX88179=y CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_USB_KEYBOARD=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/configs/nanopi-m4-rk3399_defconfig b/configs/nanopi-m4-rk3399_defconfig index ad0e808bf6..3fcb7ac2d7 100644 --- a/configs/nanopi-m4-rk3399_defconfig +++ b/configs/nanopi-m4-rk3399_defconfig @@ -52,5 +52,12 @@ CONFIG_USB_ETHER_ASIX88179=y CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_USB_KEYBOARD=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/configs/nanopi-neo4-rk3399_defconfig b/configs/nanopi-neo4-rk3399_defconfig index d038a8cab9..b9ea535e43 100644 --- a/configs/nanopi-neo4-rk3399_defconfig +++ b/configs/nanopi-neo4-rk3399_defconfig @@ -52,5 +52,12 @@ CONFIG_USB_ETHER_ASIX88179=y CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_USB_KEYBOARD=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index d540a17aeb..be76524cef 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -59,3 +59,9 @@ CONFIG_USB_ETHER_SMSC95XX=y CONFIG_USB_KEYBOARD=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/include/configs/evb_rk3399.h b/include/configs/evb_rk3399.h index c0b0358893..2d3db22877 100644 --- a/include/configs/evb_rk3399.h +++ b/include/configs/evb_rk3399.h @@ -6,6 +6,11 @@ #ifndef __EVB_RK3399_H #define __EVB_RK3399_H +#define ROCKCHIP_DEVICE_SETTINGS \ + "stdin=serial,usbkbd\0" \ + "stdout=serial,vidconsole\0" \ + "stderr=serial,vidconsole\0" + #include #if defined(CONFIG_ENV_IS_IN_MMC)