From owner-freebsd-arm@freebsd.org Wed Feb 21 22:16:41 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DFEBF05C96 for ; Wed, 21 Feb 2018 22:16:41 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 88F32763FE for ; Wed, 21 Feb 2018 22:16:40 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-lf0-f44.google.com with SMTP id t204so4587440lff.9 for ; Wed, 21 Feb 2018 14:16:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yDY2rE3IG70Ng8y2aSUSwuceAENZz2io/jpK8sbbzso=; b=lJSoYAgOeFF7JZjswgmESLxd/GkRAHTlgm6T6n/uKaEg6/mY4PJoE1e+mgGjy/xLbB Vi6LD/HCWybkd+DHFR8z7BUWdP1DRuxmTxUxoeR7wnLo1zGRHQvFdD060n4Kk8pZCU2D Iqy/32DBvppIUt5Nigu/6ltIIsNB9aomiaoci161Iap0ntCTNQcjjpsOAABxKC9DskGP O8pP05hdXQEJq1QhwPj14M6J9/zgDcOGg+Iv6Ab5PttvIMcTDokdT+xlasCHYCaW9uMA Hh0CRCUx38Wn98bvZ8ybL5D4ndZ0MPRlYqyICmD/rVEjs2d6a6B/S6mNbqNmwSP5wbWc caTw== X-Gm-Message-State: APf1xPACPi83vRwbi/SLBB4ZpoUQgYYsHnerPBRxw3dONFijPoT4YRND vMQSqwjVLmxBx3ZpbIqcHKagRKGC X-Google-Smtp-Source: AH8x225NSUjUKZLs7bqQXJhbLA1/B6cS4XYP9bhe90x8+TaeZHiNbGsUlbRDhtzU8ASFQ9uZ9oSRqg== X-Received: by 10.46.19.17 with SMTP id 17mr3460284ljt.102.1519251398330; Wed, 21 Feb 2018 14:16:38 -0800 (PST) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com. [209.85.215.43]) by smtp.gmail.com with ESMTPSA id v83sm3089797lje.53.2018.02.21.14.16.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2018 14:16:38 -0800 (PST) Received: by mail-lf0-f43.google.com with SMTP id x196so4572414lfd.12 for ; Wed, 21 Feb 2018 14:16:38 -0800 (PST) X-Received: by 10.25.196.66 with SMTP id u63mr3376679lff.108.1519251397894; Wed, 21 Feb 2018 14:16:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.46.106.8 with HTTP; Wed, 21 Feb 2018 14:16:17 -0800 (PST) In-Reply-To: <1a75717a-36a9-bda5-4c2e-dbd2e8154eff@unrelenting.technology> References: <1a75717a-36a9-bda5-4c2e-dbd2e8154eff@unrelenting.technology> From: Kyle Evans Date: Wed, 21 Feb 2018 16:16:17 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: No aw_thermal device on Orange Pi One To: Greg V Cc: Juan Ambriz , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Feb 2018 22:16:41 -0000 On Wed, Feb 21, 2018 at 3:54 PM, Greg V via freebsd-arm wrote: > On 02/22/2018 00:44, Juan Ambriz wrote: >> >> Hi. >> >> Just built and image for Orange Pi One using r329366 with crochet. Using >> the board configuration for OrangePi-Plus2E the only change made was in >> setup.sh file to use u-boot-orangepi-one. >> >> Looking at old messages on the list I see that "aw_thermal0: > Thermal Sensor Controller> mem 0x1c25000-0x1c253ff" is missing. > > Hi. This happened because we're using device trees from upstream (Linux) > now, and they do not have entries for the thermal sensor. > > I made a little work-in-progress patch: > https://gist.github.com/myfreeweb/a6cb7261fc79977f4c1c224cfe5ca3de > That uses the configuration proposed for Linux: > https://lkml.org/lkml/2018/1/28/406 > But it currently fails in aw_thermal_init. > > And anyway, reading the sensor correctly depends on reading thermal > calibration data, which is currently in progress: > https://reviews.freebsd.org/D13556 This support landed independently of that review, and I failed to update it. Very few of the -sid devices have landed in upstream FDT, so these will need to be added as overlays for the time being.