Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3359478pxb; Mon, 17 Jan 2022 18:33:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJySXrf0gMq8SJAar6mox8EwsBwwfCZqldMtvhBGm3i2xe/fLdNuZeGIsM2qfUwCpeGbgbaj X-Received: by 2002:a17:903:1211:b0:149:9809:77be with SMTP id l17-20020a170903121100b00149980977bemr24818579plh.133.1642473188403; Mon, 17 Jan 2022 18:33:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642473188; cv=none; d=google.com; s=arc-20160816; b=GjsTIhrRyvlkMsVQmBhs81LnzsIF6RWxXmx7Uz1Lh6CPsOo5rxqzDXMX4MxnlSjRbi vZSXBjHGw/adXsj/zJC3jqtCl0Zk5j8yUQPnszYHKGj1Ie6XUcsJEZdcEqT+6rTLdo8S 6RRNuHANyzI4u2toxUw25m4cu1s2MtQENijxyUJL8uMoe3UsPCvPrsTVcH1It8bF3YQP 5hbtiJ+kEc09VKfxpKZq6RhV5+BXhHoKNJ/TWR7AfEBHKM/UYvvup31nmgBatV67C7qj H6SmHxVOaUiw1zAJu06IiEHZPlleApb3U5QTrg3mfCZC+ys4y3Vl/4zjFD+IRczoh8GG Z0jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kHhCRgvF9Wf+R6yEgWiaK5gOZflCu4gFexOOmAZwK3A=; b=ViSKJMwhoKNfXUjsfezQeRHhCtiZJmPT/XUSa+QYIrV0X7+KO5DTDVf3+0A77reIPD 8cqCMXOD3ZJ4kwbavuz61wlbYJjNzVOa1D0NOvpx6zZXUpuhSYps+R8HWwoJFv6iyLpH fNh4NAoaSJfLd1ZvjjV3PboTqjksi6AVuyw5tns7Bxly2kzyUlAetuY9pyWyp2jRSj/G nrsNZOjnEbpA+nnZ6vscNehDyLj2kZebOSpNuJ1Fn8s8Ezs9KN7Iwj2B90VBpbY0leR+ iZ9F17HTGIDUXddgokGRml2793ZzhSUgbGiu6xEIwEIHOuMeIwdZ+/+VNer3pB3553vh KpVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YsHtL+bl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si9590029plo.504.2022.01.17.18.32.55; Mon, 17 Jan 2022 18:33:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YsHtL+bl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237146AbiAQOjE (ORCPT + 99 others); Mon, 17 Jan 2022 09:39:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234367AbiAQOjD (ORCPT ); Mon, 17 Jan 2022 09:39:03 -0500 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11BB3C061574; Mon, 17 Jan 2022 06:39:03 -0800 (PST) Received: by mail-yb1-xb2e.google.com with SMTP id g81so46359468ybg.10; Mon, 17 Jan 2022 06:39:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kHhCRgvF9Wf+R6yEgWiaK5gOZflCu4gFexOOmAZwK3A=; b=YsHtL+blfxwmFULnGvT3ULZ4xkuIYMK/Pd/Zg8NTRgLF6XqOZdWNT0SzetQ/F01GQo 6Dld83r6NDOqox7MsT8O765x4oqVXIZD6EuiS7gZ0tJU+IlRB/C3veG4LcHqIwTrOUrO 6HZA5rNpF4+dyXvRhpV6GxtZ6uRY/afq/4vyRWf4Wos3kZ5SEwwXgruJD2VBqTyRsmDi kEkd/HDGq3rYUHneKgp9Ik3B3yA+1EniOwtbuJ6yEdgckNeRbaEvJhGHXLdoEOUYihAs 9XXDzpdCuxTxtSsjzAOmpMo6T5Qiqo8MDQfHpp56eqBtzDgrYiFzC5t4nVd+p7p99C2d 9nKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=kHhCRgvF9Wf+R6yEgWiaK5gOZflCu4gFexOOmAZwK3A=; b=uJy4XWwpqLWeCZ+AmnjzaLl1Tva5HtkyYMjT8SgapMiHuO4ORKMTXLPSSXjFds+jdC oSkXtg17rUc+0JwQWE4g4pFES0A4wj77lDDkFzth3ZqHiuyhOp4sytrr5a/Xqs2mgm6V 8DlCmPsf629GKzokC6+s7VLjSLfQoQT+pOGKSMAsD/BsBVtfdQIBEDL7xQUwYjYHmAqI QIdgm7ss/BJWp4OcZIZmwRNrdutq0OdWHmW1NrPPoF6voaQK70wUreZws4qqi+tAv+Fa WhJo96CaKLmTxOdZAfcxPx+k+t+IgmmYZfBHc6uTLP8pAOhuNNTGUt5y8nWE7N6hYjHd 3OAw== X-Gm-Message-State: AOAM5305CNU+yizbswBZkeZGxftnTu+4eXIJPhNmImkagrXKsuZfbsRA u005aCA4NOv9HsjRI+USduohlpVaxYBvlLfajZc= X-Received: by 2002:a25:6d06:: with SMTP id i6mr26656526ybc.216.1642430342223; Mon, 17 Jan 2022 06:39:02 -0800 (PST) MIME-Version: 1.0 References: <20210728135534.703028-1-pgwipeout@gmail.com> <20210728135534.703028-6-pgwipeout@gmail.com> In-Reply-To: From: Peter Geis Date: Mon, 17 Jan 2022 09:38:50 -0500 Message-ID: Subject: Re: [PATCH 5/9] arm64: dts: rockchip: add rk3568 tsadc nodes To: Piotr Oniszczuk Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Heiko Stuebner , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "open list:ARM/Rockchip SoC..." , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 17, 2022 at 9:13 AM Piotr Oniszczuk wrote: > > > > > Wiadomo=C5=9B=C4=87 napisana przez Peter Geis w d= niu 17.01.2022, o godz. 14:49: > > > >> > >> Peter, > >> > >> I'm trying to use this series to get thermal on rk3566 based tvbox (x9= 6-x6). > >> Driver loads but i'm getting following error: > >> > >> [ 132.873979] rockchip-thermal fe710000.tsadc: failed to register sen= sor 0: -517 > >> [ 132.874650] rockchip-thermal fe710000.tsadc: failed to register sen= sor[0] : error =3D -517 > >> > >> Maybe you have some hints here? > > > > Error -517 means -EPROBE_DEFER, a device it relies on hasn't probed. > > TSADC doesn't directly rely on anything that shouldn't already be > > enabled. (Pinctrl, clocks, and grf all break a lot more than tsadc if > > disabled) > > Does your kernel config have all of the rockchip elements enabled? > > > > Peter, > For sure I can't say 'yes' with 100% confidence. > I'm trying do my best for rk3566 (currently have working: SD/Eth/HDMI/Sou= nd/USB2port0/BT). > > Maybe you may point me pls for good reference of rk356x defconfig? > > btw: a bit of context: > In my application (https://github.com/warpme/minimyth2) i have target to = have single OS binary for all supported Allwinner/Amlogic/Rockchip/Broadcom= devices. > By this kernel config i'm using is painfully assembled to have minimal wo= rking kernel for all targets. > It's a painful road....but still want to go this route for: minimal image= size; shortest build time & one-for-all binary. > my current config: https://github.com/warpme/minimyth2/blob/master/script= /kernel/linux-5.16/files/linux-5.16-arm64-armv8.config I recommend you use `make savedefconfig`. It produces a simplified defconfig based on your .config. Your issue is in your dts. You have retained the quartz64-a &cpu_thermal active thermal node without tying in an active thermal control device (a fan). By default the rk356x dtsi passive thermal trips are hooked up and will throttle the device in case of overtemp. If your device has no active thermal control, you don't need to add the &cpu_thermal node at all to your dts. > > btw2: for rk3566 i'm using majority of your patches! > Great work of you! > > > > > > >