From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 295B01A9FAB for ; Sat, 24 Jan 2026 12:36:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769258207; cv=none; b=bEuodQUCoSatJaJS/GXhVIuELz/fzVr9BCLJocOVBjhADGVmS8gd4oRGHIU+Y+F+dfQt2SGYgGEJYFELlNDkC7KBtX3bM86HvIvD6ajogYPSvGaQ8beNCNHR8LuoUJnChGAvGpSCqS55qTbhyUlcc3KLH/9hYD5yO8xf6z7Wv3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769258207; c=relaxed/simple; bh=2lpZPiehnZVWy67SwNKoHY2awngWTM8se8vqxPxB49s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QtOhDpldJfKepVrIk4hIo+4HN/L3KCKaySx4Igm6BatpD2EWz3gtPWz9NdpRIx54Oiy/uiZxkX09X4p3wWSUFYeVXMOMhm4b14bHTcxk9VLaY0JJO3EwGf0gNus0ZABhYClWz3JCZh1Lg9+5iOAG1AHVnOX2oL/b760pjIxvOMI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZKXZuKU6; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZKXZuKU6" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-430f2ee2f00so1865158f8f.3 for ; Sat, 24 Jan 2026 04:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769258204; x=1769863004; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=aWxFjlQ15iLHcZ2sWOA5/KipFAdTrRSE3rE8bBRoPNA=; b=ZKXZuKU6H3gpgJsBv4nBKoSRZurn8Uq84zCD5msjjPeLSfiZHak/zkvW5uVpmUeVvu IQ7b6BTrwj2w9L8U1cdLDndX2TzL/nBRBVaPPsIn8I0I/BC+UX1pSiEKnHgOzQiv3Kqr 2Dtd7OglaljVFT4EHPwI70g2PDFnu58bcaWX3Kf6JXerqh4rxnVtsCzr7ljxQH6OVjNE So2h+8zVCiz7V+tb9gMd9NOUm0WTkWZDP1zmhJnqmKNTG7AzfDCANQk7mxiXsXVVb87s 1WGs3mc42WxRCY8yXugGy/O5l7bEn0cywRpujac9wUrOamSS8ii1q7RU9D8RhPdaqDFw xGUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769258204; x=1769863004; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aWxFjlQ15iLHcZ2sWOA5/KipFAdTrRSE3rE8bBRoPNA=; b=iLIUE8LBuc6BLZ4FWS5hCRgvvf0iIehmnUjxCJSC9z4Sp+gEvoy0BllCcCZGCfsX8q xmh1UnUKBSoQil5PL+oUBbDMlO1jwdqLwdYCVt9ULpGdDnco1kDLKKH8W0qAkiAwaCKo 1mOitauJJRBe9rORymrSnmmrcWk5Sz7SkpqczremGCGbFyd6kCFxTzZiu7qnAQdzicK2 SaonnK7S9U8WDbZSUPtpbJ7Q78MuWdgNgmdImSv6BiP3FFom6KNadTwdw76ZlwiK04g7 KbLzYiJhvEgx6OVnt0j1qfEwTw3PZNXuwqBv4NPXhEAWjXrm9P9/mGQqiniAjJZKnyOA LE1Q== X-Forwarded-Encrypted: i=1; AJvYcCUcpA/PP1i1PV5Vf/3GX3W1JdUcFoYO/V2TwJEP+d9C+K7MPE6P/MxDgh5GHiop8ty5F8cbRRHZk6jX8d0=@vger.kernel.org X-Gm-Message-State: AOJu0YyNfBb7y8Ab/6BKJY08apcOQGZq4vruvNCZKJQVZTzyQDLJbFh7 /IY7Iu1J5Q8TyIoj51lxKh9iqPDY4ynkP41aO7ShbvMsZRCZMjlknPkF X-Gm-Gg: AZuq6aJG3YOXS68gJx1fhjVsqICp/AABOLUnN7+rBkllrxU3qVNwLmIaXDTuvddgZzD g2iEuhlt6+dacco837p1HwNqV4tYGSia71VM8aLa5XiKNSoocIjwZXO9pAetVUayrf+8eWnmOHk Qh0xc3x/GQnUS+u5qkOTgGz7j5JQ/0/2s77AcBfKHczyJBnHPvZYsVFfU9W7e/qRX2EeuUCGfpy MhYqxUO7LqTzWwI8APftC8FdKOQ+GNSJC0zpwPNc10QQAQpd2U2iGXAeO/ttx21oIN2Ac9LDNNR 02Zfv9IbvdL8LwX+7zff1dur+R/J9/Hq32G5mWSwN+3gj0PZXdC6cnaeMJ55CuxOWOjMD9/RN5+ jqYiUk36dhSmEYbeN5LAsHK5cZYPrSQU1cPRAloexOwYktGCoE4bOhWKeBC/udOJHWJqDeeU1kD 1x7uq+I0jSXHOIFKd948LPehm5mgzGRmxwZv7YjtRhBKOOy2A2WY+UVq30W/1uLURA X-Received: by 2002:a05:6000:1847:b0:435:9756:d4c4 with SMTP id ffacd0b85a97d-435b15d6927mr9998528f8f.17.1769258204232; Sat, 24 Jan 2026 04:36:44 -0800 (PST) Received: from localhost (brnt-04-b2-v4wan-170138-cust2432.vm7.cable.virginm.net. [94.175.9.129]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435b1f7c9cesm14772613f8f.41.2026.01.24.04.36.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 04:36:42 -0800 (PST) Date: Sat, 24 Jan 2026 12:36:42 +0000 From: Stafford Horne To: Gary Lau Cc: linusw , linux-kernel , linux-openrisc , devicetree , robh , krzk+dt , conor+dt , geert+renesas , "krzysztof.kozlowski" , brgl , linux-gpio Subject: Re: [PATCH v6 1/6] dt-bindings: gpio-mmio: Correct opencores GPIO Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Jan 23, 2026 at 10:18:04PM +0800, Gary Lau wrote: > Hi Stafford, > > I should clarify my setup: I'm using hardware address translation to make the > OpenCores 8-bit GPIO appear as 32-bit to the CPU. Specifically: > > 1. Address translation: The CPU's 32-bit addresses are right-shifted by 2 bits >    (adr_i[2] in Verilog), so each 32-bit CPU access maps to the correct 8-bit >    OpenCores register. > > 2. Data width adaptation: Only dat_i[7:0] and dat_o[7:0] are connected, so >    32-bit writes are truncated to 8-bit, and reads are zero-extended. > > This hardware wrapper makes brcm,bcm6345-gpio driver "work" with my OpenCores > GPIO, but it's really a hardware-level compatibility layer, not true software > compatibility. > > So you're absolutely right that the native opencores,gpio isn't compatible > with brcm,bcm6345-gpio. My setup works because of custom hardware translation, > not because the IP cores are compatible. Thanks Gary for testing. -Stafford