Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2422511ybl; Thu, 9 Jan 2020 12:28:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzWpn081OldeD3m2QimiDW+wFMu2TMhDMN2/w9qbqP1S8XYR3/5I9yP8WK6Kp5JBq1b8kGg X-Received: by 2002:a9d:6c92:: with SMTP id c18mr10193664otr.157.1578601722293; Thu, 09 Jan 2020 12:28:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578601722; cv=none; d=google.com; s=arc-20160816; b=Ll+l8NL1CUqtVfyXpHp/Vw53uNP8JP758sZovapCVca3MVS+dH80VXyHHLj7LMTFFP F+zX2+WLArPIUec4hdeiUZiegBsPiN2AdjC1/o2r1zZqoaa8o3T+YWkLds9mcNRM7b8W URGlJmaav6Uk5qtwXI9BwtFRB1K/J5k1cP8LhNSfIHaZXwB8JmD1SYwXirgkNB+ZKhoq KHzmB9HUJDTiHll/8gb29oy0XgblsgkduJJt+nlM0sSfGVV6MS5cq97aVPawwZVA4tdo qvjAbpeS+vcRZeoafaivd+Rsza8PiuTfxqH1GQauPy12CSpsoC0tmfciLd1em6Tu0spM aU9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:mime-version :from:dkim-signature; bh=d88Xq53MKTDEJhK31IGTSeb6nL+720DGGuqob3OXfa0=; b=X6JRTD5qZgvz+m92eqhsoWzNFGN2k/qhcA5Eb5QjYtEZ+wJtEbT4QRYCs/BoA0cZZt vgX+tFkYvpNEGoZwBtYfkBaqi+xvotlJ+cGqlW8r6B58rz6PbJoJ9g5QPinT1F/XU6Yn m6b9Oh7ngT9AGxQHD419PZ31Ik5GqHiTSJjqaXwqiMzCjVMG6gAJYAOdMcigDWDU06i8 QEibWI7/+pdpl4j04pkcNmThPDn1+q7kePPJ8xQGvthC3ouRq1zaUxf3dg0YzYLcXH/L dPN6w37of0b4Nnwi6OzB2YIjxDN1+TeMIct67N1/lrxONjCfoMpy/wzINcl6x5yUpqPO JxWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ossystems-com-br.20150623.gappssmtp.com header.s=20150623 header.b=rwFdPy8z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si5175630otf.161.2020.01.09.12.28.29; Thu, 09 Jan 2020 12:28:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ossystems-com-br.20150623.gappssmtp.com header.s=20150623 header.b=rwFdPy8z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731266AbgAIQTD (ORCPT + 99 others); Thu, 9 Jan 2020 11:19:03 -0500 Received: from mail-qk1-f177.google.com ([209.85.222.177]:35930 "EHLO mail-qk1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729722AbgAIQTD (ORCPT ); Thu, 9 Jan 2020 11:19:03 -0500 Received: by mail-qk1-f177.google.com with SMTP id a203so6504283qkc.3 for ; Thu, 09 Jan 2020 08:19:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ossystems-com-br.20150623.gappssmtp.com; s=20150623; h=from:mime-version:date:message-id:subject:to; bh=d88Xq53MKTDEJhK31IGTSeb6nL+720DGGuqob3OXfa0=; b=rwFdPy8zJV4rDrzUrwoPihzrxRWL7XDmnNQCU13Evd8P428xLWbB0UgvxHcq2BJqY3 YbBbyQPLxRfmJGz+MMr10dlPkhL6KjBEZrFaYA7R7ZFC7IfUfETQwL2h4rUcF4zEdUlj la/rkaKJqCSfxyRTKFV3YB8ZXwbEUgeIBpJEOeoJANe+C8lJE7c/jznxB5bn7evGqJJM UfZqc8Y1CsOIQAFM7wl5hYnqpscgaqkaamRsrOIpuAxyQU20x5geSNeLEZHXftaWYeFL 7RYDenLf2lsm9oJMxdfMul82aUBQm8VNgaBo3k6oPk/LR09QV7XrzolQl9klQ4lqkiTn Tc/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=d88Xq53MKTDEJhK31IGTSeb6nL+720DGGuqob3OXfa0=; b=uEmYknCWvKFdjVaWB9dULeAyhPtkhjFfJGPYojH0PeoA7hKkJAFJbYw96VfjnmcqWf jmuMU/hsB8o+T4JN1ar2TCqwGN8PZlxTyrjIg9nexQ4yrBFwmJZgDnjGh7cgFVoLZBdF 5H16ItJSRdfm8qg1o/RHjylxec6iVWYtKu+cW8T4dODdA3JcLirLOZKuR5uDotOmAAiV OmDiA39ocy/6bnBQ1tbQLi+KJF3bHnbckBLfynDaYrqu2PNyC3O3gd9uSedTG+gjEsmA /BBpnefxiKoZHr4M3uVhj3E1oIKSVxU+PQggr4SvplJxjPz1kaeIDwjVJ8nNtXyXG7zS 2IRQ== X-Gm-Message-State: APjAAAXifB/ub8mJhVbkBaMdE8ucrYQBGb/7nW63m6DQYM4NoOsBI9H3 mgBeHsEOzLWoHAD2xJvQDReu56ld8a9H1w== X-Received: by 2002:a05:620a:1001:: with SMTP id z1mr9174643qkj.99.1578586742112; Thu, 09 Jan 2020 08:19:02 -0800 (PST) Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com. [209.85.160.170]) by smtp.gmail.com with ESMTPSA id h1sm3645079qte.42.2020.01.09.08.19.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jan 2020 08:19:01 -0800 (PST) From: Otavio Salvador X-Google-Original-From: Otavio Salvador Received: by mail-qt1-f170.google.com with SMTP id v25so4480856qto.7 for ; Thu, 09 Jan 2020 08:19:01 -0800 (PST) X-Received: by 2002:ac8:3510:: with SMTP id y16mr8837483qtb.6.1578586740862; Thu, 09 Jan 2020 08:19:00 -0800 (PST) MIME-Version: 1.0 Date: Thu, 9 Jan 2020 13:18:48 -0300 X-Gmail-Original-Message-ID: Message-ID: Subject: RV1108G run-time detection To: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Heiko Stuebner , Kernel development list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, We would like to know if there is a way to distinguish between RV1108 and RV1108G versions in run-time. The reason we are asking is because arch/arm/boot/dts/rv1108.dtsi defines the following operational points: 408, 600, 816, 1008 MHz, but the RV1108G version does not support 1GHz and its maximum operating frequency is 800MHz (not 816 MHz). In the i.MX SoCs we can read a fuse that indicates the "speed grading" of the chip and decide which operating points could be used for that particular version. Is there such a mechanism in RV1108? Any suggestions to limiting the RV1108G operational point at 800MHz? Thanks -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750