From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7D1DC4338F for ; Mon, 2 Aug 2021 22:10:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9924760EBC for ; Mon, 2 Aug 2021 22:10:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9924760EBC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JEsyTfrb+UKBHbVX42savFbqDcljiDPCKN6H47BK6BM=; b=L2SO7yvivfQxuD sTtFjB5Iczhb0amRfLCP5QZkqKE2OuV478F6Tvf/iTK/WcwwqyrUM2+sdJm9sMzeJaNZe5YvlwhBl s75y+BJCtAqw/1UoYPVyCzlhhPxn8vuPMC549oG9lnbt8J4hDRCiFT9SjZ/r5VLoB2qzQxg0TOx6U 1H5siv5KvQiD7rZXpFlpCsv9zJUhyftUpdP9Kfdzk9DHEUHydWeoV+SffEovsgA32FCzKsP7dIAJ1 ocB6aS92SZTS6k4P6Yac0Q1bCoGMGGaHQqpvxp+abCZClRr2EpcJZj1miMKEkgjAwwe5c/xjrzfak 5oUk3cqDwIko1C4jeU4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAg6Q-000PaS-Dg; Mon, 02 Aug 2021 22:08:07 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAg3t-000Ogp-7G for linux-arm-kernel@lists.infradead.org; Mon, 02 Aug 2021 22:05:31 +0000 Received: by mail-lj1-x231.google.com with SMTP id l17so25814998ljn.2 for ; Mon, 02 Aug 2021 15:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f4Jq9gl2ARwrRn06odyaWbr3HPN6maH2tmlepLpICLQ=; b=MLIcHdyzqdfreru+s++ylAOMhh4x87pH4fTiM8NolxwbJ4s533k1tEwN94GBs4fxwE wvvaomNX6gweyYL+GyVXF/bP87C7VCClGESAPHy8fg06cR6J0/bJiyRJIfTieKx4EitG p7MKUaGm7TOjWZfAhqrKyBMI1QDvz2GUmw/bEOhlWyajUWzjwp5KGK/DiNslRAll40+r cXag3ATAspedaLCiDnhA31N9Cc6YNl7SWzGc2KjPfAXwOl/m9/X3lmdMMzUWYVxy6ZbD 4Q7w5cr3Q2G97kICieVbQ+Y1md67D+2+xCrkXusrozFfUrPol6DlK38vgs8MyEWcqZwb aA0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f4Jq9gl2ARwrRn06odyaWbr3HPN6maH2tmlepLpICLQ=; b=dpW74MnK+rJkIh9zS5zAah4NQRzPRzQr6G/d0UtN8z6ijD5yBvybbpy9oqGSeJbhjy pKrxK6DEL+h0ruC21NiqpyuYMTVEmYPrT9RvePYAoCYp3G2pBJgQGGTjK3QQ2zKPXcyW bgoNo88rXecNEABkFzzSN94xaOua7bE4O3Bl5Ss2MulVySpOIUc08GZhKnAhzLRbAdYW BtCmxI6P/VTrjK2SaZiOi2EKAgckA7V+mAagCoSGrUKl4uxtZNTuN6inOXPQ18U4LuAh tUAEWTUD4nUrQdGD+KVrBc037/kjbVygvCrKqxGZCm97JnOLPnA79k/I/aqiGCpffPhu e78w== X-Gm-Message-State: AOAM5312/3tpgwstIHukFPvXYXl2BoKMk0nVQAlD8+GqdphTRyA+NTEo iRis99QQTG+AourJ1Vw6dV8rtxT/4U9HaBu2UrYR9g== X-Google-Smtp-Source: ABdhPJzpj+jwiQgWTCA9DKToDC179kk+HHNtV+Jk50q10s25CYNEQgd+dGykwrF3cTd6BuMMSv9u1OlVG0VhfGttN/k= X-Received: by 2002:a2e:b04e:: with SMTP id d14mr13100267ljl.74.1627941927175; Mon, 02 Aug 2021 15:05:27 -0700 (PDT) MIME-Version: 1.0 References: <20210729144128.2834328-1-linus.walleij@linaro.org> <87tuk91er6.wl-maz@kernel.org> <87sfzt0z5f.wl-maz@kernel.org> In-Reply-To: <87sfzt0z5f.wl-maz@kernel.org> From: Linus Walleij Date: Tue, 3 Aug 2021 00:05:15 +0200 Message-ID: Subject: Re: [PATCH] ARM: dts: ixp4xx: Add a devicetree for Freecom FSG-3 To: Marc Zyngier Cc: Andrew Lunn , Linux ARM , Imre Kaloz , Krzysztof Halasa , Rod Whitby X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210802_150529_334215_ADE2070F X-CRM114-Status: GOOD ( 17.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Aug 1, 2021 at 8:59 PM Marc Zyngier wrote: > Andrew Lunn wrote: > > The driver exports the file "registers" in /sysfs. Do you see any sort > > of application/driver running in userspace which might be talking to > > the switch? > > Hmmm. Which driver? I don't see any switch-related driver, nor any > userspace (what I have is an extremely minimal OpenWRT userspace that > has hardly more than busybox). I think Andrew is referring to CONFIG_MICREL_KS8995MA drivers/net/phy/spi_ks8995.c (previously a Kendin product). http://ww1.microchip.com/downloads/en/DeviceDoc/ks8995ma.pdf We are guessing the FSG-3 has this switch. Unfortunately we don't know which pins it is connected to, but it is an SPI device. Should look like this: + spi { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + sck-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + miso-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + mosi-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; + cs-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + num-chipselects = <1>; + + switch@0 { + compatible = "micrel,ks8995"; + reg = <0>; + spi-max-frequency = <50000000>; + }; + }; Maybe you can see which pins it is using in the original firmware? It may be completely unconnected as it can also be configured from a companion EEPROM with no interaction from the host. Yours, Linus Walleij _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel